/* DK Auto Electrical site styles */

:root {
    --black: #07090f;
    --ink: #0b0f1a;
    --navy: #09102d;
    --panel: #111830;
    --panel-2: #151d38;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --white: #ffffff;
    --text: #e8ecf3;
    --muted: #b3bccb;
    --cyan: #27dcd5;
    --cyan-dark: #1bb8b2;
    --blue: #4c8bf6;
    --radius: 5px;
    --gutter: 20px;
    --container: 1280px;
    --head-font: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --body-font: "Barlow", Arial, Helvetica, sans-serif;
    --header-h: 92px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    color: var(--white);
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--head-font);
    font-weight: 700;
    line-height: 1.02;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--cyan);
    color: var(--black);
    font-weight: 600;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.text-accent {
    color: var(--cyan);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--head-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--black);
}

.btn--primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.btn--outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--white);
}

.btn--outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.btn--light:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--black);
}

.btn--small {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 16px;
}

.btn--large {
    min-height: 56px;
    padding: 14px 34px;
    font-size: 20px;
}

.btn--block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--head-font);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cyan);
}

.text-link::after {
    content: "";
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: width 0.2s;
}

.text-link:hover::after {
    width: 28px;
}

/* Top bar */

.topbar {
    background: #000;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
}

.topbar__location {
    margin: 0;
}

.topbar__contact {
    display: flex;
    gap: 26px;
}

.topbar__contact a {
    color: var(--text);
}

.topbar__contact a:hover {
    color: var(--cyan);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 15, 0.97);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: var(--header-h);
}

.site-logo {
    flex: 0 0 auto;
    display: block;
    margin-right: auto;
}

.site-logo img {
    width: auto;
    height: 64px;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav__link {
    display: block;
    padding: 10px 8px;
    font-family: var(--head-font);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__item.is-open > .main-nav__link {
    color: var(--cyan);
}

.main-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 34px;
    margin-left: -8px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    padding: 10px 0;
    background: var(--ink);
    border: 1px solid var(--line);
    border-top: 3px solid var(--cyan);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

/* Invisible bridge so the menu stays open while the pointer moves down */
.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.dropdown a {
    display: block;
    padding: 9px 20px;
    color: var(--text);
    font-size: 16px;
}

.dropdown a:hover {
    background: var(--panel);
    color: var(--cyan);
}

@media (hover: hover) and (pointer: fine) {
    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.main-nav__actions {
    display: none;
}

.header-call {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 15px;
    background: var(--cyan);
    border-radius: var(--radius);
    color: var(--black);
    font-family: var(--head-font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.header-call:hover {
    background: var(--white);
    color: var(--black);
}

.menu-toggle {
    display: none;
}

/* Hero slider */

.hero {
    position: relative;
    height: clamp(560px, calc(100vh - var(--header-h) - 40px), 760px);
    background: var(--black);
    overflow: hidden;
}

.hero__slides,
.hero__slide {
    position: absolute;
    inset: 0;
}

.hero__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, center);
    transform: scale(1.04);
    transition: transform 7s ease-out;
}

.hero__slide.is-active .hero__image {
    transform: scale(1);
}

.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 12, 0.86) 0%, rgba(5, 7, 12, 0.62) 38%, rgba(5, 7, 12, 0.12) 72%),
        linear-gradient(0deg, rgba(5, 7, 12, 0.55) 0%, rgba(5, 7, 12, 0) 30%);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-bottom: 60px;
}

.hero__title {
    max-width: 700px;
    font-size: clamp(46px, 5.2vw, 78px);
    line-height: 0.95;
    letter-spacing: 0.005em;
}

.hero__title span {
    display: block;
}

.hero__accent {
    color: var(--cyan);
}

.hero__text {
    max-width: 500px;
    margin: 22px 0 30px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--text);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__slide .hero__title,
.hero__slide .hero__text,
.hero__slide .hero__actions {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__slide.is-active .hero__title {
    opacity: 1;
    transform: none;
    transition-delay: 0.25s;
}

.hero__slide.is-active .hero__text {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
}

.hero__slide.is-active .hero__actions {
    opacity: 1;
    transform: none;
    transition-delay: 0.55s;
}

.hero__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    left: 50%;
    transform: translateX(-50%);
}

.hero__dots {
    display: flex;
    gap: 10px;
}

.hero__dot {
    width: 34px;
    height: 4px;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.hero__dot::before {
    content: "";
    position: absolute;
    inset: -12px 0;
}

.hero__dot.is-active {
    background: var(--cyan);
}

.hero__arrows {
    display: flex;
    gap: 10px;
}

.hero__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(7, 9, 15, 0.6);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
}

.hero__arrow:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--black);
}

/* Facts strip */

.facts {
    background: var(--cyan);
    color: var(--black);
}

.facts__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facts__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 18px;
    font-family: var(--head-font);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.15;
    border-left: 1px solid rgba(7, 9, 15, 0.18);
}

.facts__list li:first-child {
    border-left: 0;
    padding-left: 0;
}

.facts__list li::before {
    content: "";
    flex: 0 0 8px;
    height: 8px;
    background: var(--black);
}

/* Sections */

.section {
    padding: 96px 0;
}

.section--tight {
    padding: 80px 0;
}

.section--dark {
    background: var(--black);
}

.section--navy {
    background: var(--navy);
}

.label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-family: var(--head-font);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--cyan);
}

.h2 {
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1;
}

.section-head {
    max-width: 780px;
    margin-bottom: 46px;
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 52px;
}

.split-heading__text {
    margin: 0;
    color: var(--muted);
}

.split-heading__side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

/* Service cards */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.service-card:hover {
    border-color: rgba(39, 220, 213, 0.55);
}

.service-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__media img {
    transform: scale(1.04);
}

.service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
    border-top: 3px solid var(--cyan);
}

.service-card__title {
    font-size: 26px;
    margin-bottom: 10px;
}

.service-card__title a {
    color: var(--white);
}

.service-card__title a:hover {
    color: var(--cyan);
}

.service-card__body p {
    font-size: 16px;
    color: var(--muted);
}

.service-card .tick-list {
    margin-bottom: 18px;
}

.service-card .text-link {
    margin-top: auto;
}

.tick-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 7px;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--text);
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: rotate(-45deg);
}

.tick-list--large li {
    font-size: 17px;
    margin-bottom: 11px;
}

/* Assessment prices */

.price-table {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--black);
}

.price-table__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 24px;
    border-left: 1px solid var(--line);
}

.price-table__item:first-child {
    border-left: 0;
}

.price-table__time {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.price-table__name {
    font-size: 23px;
    line-height: 1.08;
    min-height: 50px;
}

.price-table__price {
    margin: 16px 0 12px;
    font-family: var(--head-font);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--cyan);
}

.price-table__text {
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--muted);
}

.price-table__item .text-link {
    margin-top: auto;
}

.price-table__note {
    margin: 22px 0 0;
    font-size: 16px;
    color: var(--muted);
}

/* Feature split */

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}

.feature--reverse .feature__media {
    order: -1;
}

.feature__content .h2 {
    margin-bottom: 24px;
}

.feature__content > p {
    color: var(--muted);
}

.feature__media {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.feature__media img {
    width: 100%;
    height: 100%;
    max-height: 680px;
    object-fit: cover;
}

.feature__media--wide img {
    aspect-ratio: 4 / 3.4;
}

.feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.check-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 26px;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.check-columns li {
    position: relative;
    padding-left: 22px;
    font-size: 16.5px;
    line-height: 1.4;
}

.check-columns li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--cyan);
}

/* Before and after */

.ba {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: 70px;
    align-items: center;
}

.ba__intro .h2 {
    margin-bottom: 20px;
}

.ba__lead {
    color: var(--muted);
}

.ba__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0 18px;
}

.ba__tab {
    min-height: 46px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--head-font);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.ba__tab:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.ba__tab.is-active {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--black);
}

.ba__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--black);
    user-select: none;
    touch-action: pan-y;
}

.ba__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split);
    width: 3px;
    margin-left: -1.5px;
    background: var(--white);
    pointer-events: none;
}

.ba__handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    background: var(--cyan);
    border: 3px solid var(--white);
    border-radius: 50%;
}

.ba__handle span::before,
.ba__handle span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -6px;
    border: 6px solid transparent;
}

.ba__handle span::before {
    left: 6px;
    border-right-color: var(--black);
}

.ba__handle span::after {
    right: 6px;
    border-left-color: var(--black);
}

.ba__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.ba__range:focus-visible + .ba__handle,
.ba__frame:focus-within .ba__handle span {
    box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--cyan);
}

.ba__tag {
    position: absolute;
    top: 18px;
    z-index: 2;
    padding: 6px 14px;
    background: rgba(7, 9, 15, 0.82);
    border-radius: var(--radius);
    font-family: var(--head-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    pointer-events: none;
}

.ba__tag--before {
    left: 18px;
}

.ba__tag--after {
    right: 18px;
    background: var(--cyan);
    color: var(--black);
}

.ba__caption {
    min-height: 3.3em;
    margin: 0 0 24px;
    padding-left: 16px;
    border-left: 3px solid var(--cyan);
    color: var(--text);
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 250px;
    gap: 14px;
}

.gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink);
}

.gallery__item--1 {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery__item--6 {
    grid-column: span 2;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 16px 14px;
    background: linear-gradient(0deg, rgba(5, 7, 12, 0.9), rgba(5, 7, 12, 0));
    font-family: var(--head-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--white);
}

/* Membership plans */

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.plan {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 32px 30px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-top: 4px solid var(--plan-color, var(--cyan));
    border-radius: var(--radius);
}

.plan--bronze {
    --plan-color: #c07b45;
}

.plan--silver {
    --plan-color: #c5ccd6;
}

.plan--gold {
    --plan-color: #e0b44a;
}

.plan__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.plan__name {
    font-size: 34px;
    color: var(--plan-color);
}

.plan__price {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    white-space: nowrap;
}

.plan__price span {
    font-family: var(--head-font);
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
}

.plan .tick-list {
    margin-bottom: 26px;
}

.plan .btn {
    margin-top: auto;
}

/* Products */

.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--black);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.product--featured {
    flex-direction: row;
}

.product__media {
    display: block;
    background: #0d1122;
}

.product--featured {
    align-items: center;
    background: #0a0a0b;
}

.product--featured .product__media {
    flex: 0 0 52%;
    align-self: stretch;
    display: flex;
    align-items: center;
    background: #0a0a0b;
}

.product__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 26px;
}

.product--featured .product__body {
    justify-content: center;
}

.product__name {
    font-size: 30px;
}

.product__name a {
    color: var(--white);
}

.product__name a:hover {
    color: var(--cyan);
}

.product__price {
    margin: 0;
    font-family: var(--head-font);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--cyan);
}

.product__meta {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.spec-list {
    width: 100%;
    margin-bottom: 8px;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
}

.spec-list span {
    color: var(--muted);
}

.product-video,
.videos figure {
    margin: 0;
    min-width: 0;
}

.product-video video,
.videos video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #000;
    border-radius: var(--radius);
}

.product-video {
    display: flex;
    flex-direction: column;
}

.product-video video {
    flex: 1;
    height: 100%;
    min-height: 0;
}

.product-video figcaption,
.videos figcaption {
    margin-top: 10px;
    font-family: var(--head-font);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
}

.videos {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: center;
}

.videos__intro {
    padding-right: 20px;
}

.videos__intro .h2 {
    margin-bottom: 20px;
}

.videos__intro p:not(.label) {
    color: var(--muted);
    margin-bottom: 26px;
}

/* Contact */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 70px;
    align-items: start;
}

.contact__info .h2 {
    margin-bottom: 22px;
}

.contact__info > p {
    color: var(--muted);
}

.contact__list {
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.contact__list li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.contact__list span {
    font-family: var(--head-font);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact__list a {
    color: var(--white);
    font-weight: 500;
}

.contact__list a:hover {
    color: var(--cyan);
}

.contact__form {
    padding: 38px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form__field {
    margin-bottom: 18px;
    min-width: 0;
}

.form label {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.form__optional {
    font-weight: 400;
    color: var(--muted);
}

.form input,
.form select,
.form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: var(--black);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--body-font);
    font-size: 16px;
}

.form textarea {
    resize: vertical;
    min-height: 130px;
}

.form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2327dcd5' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form input::placeholder,
.form textarea::placeholder {
    color: #7f8898;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan);
}

.form__error {
    margin: 6px 0 0;
    font-size: 14px;
    color: #ff9b9b;
}

.form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-weight: 500;
}

.notice--success {
    background: rgba(39, 220, 213, 0.12);
    border: 1px solid var(--cyan);
    color: var(--white);
}

/* Footer */

.site-footer {
    background: #000;
    border-top: 3px solid var(--cyan);
    color: var(--muted);
    font-size: 15.5px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 50px;
    padding-top: 72px;
    padding-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 22px;
}

.footer-logo img {
    width: auto;
    height: 72px;
}

.footer-logo:hover img {
    opacity: 0.85;
}

.site-footer__brand p {
    max-width: 360px;
}

.site-footer__title {
    margin-bottom: 20px;
    font-size: 21px;
    letter-spacing: 0.05em;
}

.site-footer__col li {
    margin-bottom: 9px;
}

.site-footer__col a {
    color: var(--muted);
}

.site-footer__col a:hover {
    color: var(--cyan);
}

.site-footer__contact li {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

.site-footer__contact span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8c95a5;
}

.site-footer__contact a {
    color: var(--white);
}

.site-footer__col .btn {
    margin-top: 8px;
    color: var(--black);
}

.site-footer__bottom {
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.site-footer__legal a {
    color: var(--muted);
}

.site-footer__legal a:hover,
.site-footer__credit a:hover {
    color: var(--cyan);
}

.site-footer__credit a {
    color: var(--white);
}

.mobile-bar {
    display: none;
}

/* Tablet and small desktop */

@media (max-width: 1260px) {
    :root {
        --header-h: 80px;
    }

    .site-logo img {
        height: 56px;
    }

    .header-call {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        padding: 0;
        background: transparent;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        color: var(--white);
        cursor: pointer;
    }

    .menu-toggle__bars {
        position: relative;
        display: block;
        width: 24px;
        height: 16px;
    }

    .menu-toggle__bars span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: transform 0.25s, opacity 0.2s, top 0.25s;
    }

    .menu-toggle__bars span:nth-child(1) { top: 0; }
    .menu-toggle__bars span:nth-child(2) { top: 7px; }
    .menu-toggle__bars span:nth-child(3) { top: 14px; }

    .menu-open .menu-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
    .menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

    .main-nav {
        position: fixed;
        top: var(--nav-top, 120px);
        right: 0;
        bottom: 0;
        width: min(420px, 100%);
        padding: 14px var(--gutter) 30px;
        background: var(--ink);
        border-left: 1px solid var(--line);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
    }

    .menu-open .main-nav {
        transform: none;
        visibility: visible;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav__item {
        flex-wrap: wrap;
        border-bottom: 1px solid var(--line);
    }

    .main-nav__link {
        flex: 1;
        padding: 14px 0;
        font-size: 21px;
    }

    .main-nav__toggle {
        width: 48px;
        height: 48px;
        margin: 0;
        color: var(--white);
        border-left: 1px solid var(--line);
    }

    .main-nav__item.is-open .main-nav__toggle svg {
        transform: rotate(180deg);
    }

    .has-dropdown::after {
        display: none;
    }

    .dropdown {
        position: static;
        display: none;
        flex-basis: 100%;
        min-width: 0;
        padding: 0 0 10px 14px;
        background: transparent;
        border: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-dropdown.is-open .dropdown {
        display: block;
    }

    .dropdown a {
        padding: 10px 0;
        font-size: 17px;
        color: var(--text);
    }

    .dropdown a:hover {
        background: none;
    }

    .main-nav__actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 26px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-table {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .price-table__item:nth-child(4) {
        border-left: 0;
    }

    .price-table__item:nth-child(n + 4) {
        border-top: 1px solid var(--line);
    }

    .products {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .product--featured {
        grid-column: span 2;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .videos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .videos__intro {
        grid-column: 1 / -1;
        max-width: 640px;
        padding-right: 0;
        margin-bottom: 14px;
    }

    .ba {
        gap: 44px;
    }
}

@media (max-width: 1260px) and (min-width: 768px) {
    .product-video video {
        height: auto;
        flex: none;
    }
}

@media (max-width: 960px) {
    .section {
        padding: 72px 0;
    }

    .topbar__location {
        display: none;
    }

    .topbar__inner {
        justify-content: center;
    }

    .split-heading,
    .feature,
    .contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .split-heading {
        margin-bottom: 38px;
    }

    .feature--reverse .feature__media {
        order: 0;
    }

    .feature__media img {
        max-height: 520px;
    }

    .facts__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts__list li:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .facts__list li:nth-child(n + 3) {
        border-top: 1px solid rgba(7, 9, 15, 0.18);
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
    }

    .gallery__item--1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery__item--6 {
        grid-column: span 1;
    }

    .gallery__item--8 {
        grid-column: span 2;
    }

    .plans {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
    }

    .ba {
        grid-template-columns: minmax(0, 1fr);
    }

    .ba__frame {
        max-width: 560px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    :root {
        --header-h: 72px;
        --gutter: 18px;
    }

    body {
        font-size: 16.5px;
        padding-bottom: 62px;
    }

    .topbar {
        display: none;
    }

    .site-header__inner {
        gap: 12px;
    }

    .site-logo img {
        height: 46px;
    }

    .header-call {
        display: none;
    }

    .menu-toggle {
        margin-left: auto;
    }

    .main-nav {
        width: 100%;
        border-left: 0;
    }

    .hero {
        height: auto;
        min-height: calc(100svh - var(--header-h) - 62px);
        max-height: 720px;
    }

    .hero__slides {
        position: absolute;
    }

    .hero__image {
        object-position: var(--pos-mobile, center);
    }

    .hero__shade {
        background:
            linear-gradient(0deg, rgba(5, 7, 12, 0.94) 0%, rgba(5, 7, 12, 0.72) 45%, rgba(5, 7, 12, 0.2) 80%);
    }

    .hero__content {
        justify-content: flex-end;
        padding-bottom: 92px;
    }

    .hero__title {
        font-size: clamp(34px, 10vw, 50px);
    }

    .feature__actions {
        flex-direction: column;
    }

    .feature__actions .btn {
        width: 100%;
    }

    .hero__text {
        margin: 14px 0 22px;
        font-size: 16.5px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__controls {
        bottom: 22px;
    }

    .hero__arrow {
        width: 42px;
        height: 42px;
    }

    .facts__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .facts__list li,
    .facts__list li:nth-child(3) {
        min-height: 48px;
        padding: 8px 0;
        border-left: 0;
        font-size: 17px;
    }

    .facts__list li:nth-child(n + 2) {
        border-top: 1px solid rgba(7, 9, 15, 0.18);
    }

    .section {
        padding: 60px 0;
    }

    .h2 {
        font-size: clamp(32px, 9vw, 42px);
    }

    .service-grid,
    .price-table,
    .products,
    .videos {
        grid-template-columns: minmax(0, 1fr);
    }

    .price-table__item,
    .price-table__item:nth-child(4) {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 22px 20px;
    }

    .price-table__item:first-child {
        border-top: 0;
    }

    .price-table__name {
        min-height: 0;
    }

    .price-table__price {
        font-size: 42px;
    }

    .check-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .ba__tabs {
        gap: 8px;
        margin: 22px 0 16px;
    }

    .ba__intro .btn {
        width: 100%;
    }

    .ba__tab {
        padding: 8px 10px;
        font-size: 15px;
    }

    .ba__handle span {
        width: 44px;
        height: 44px;
        margin: -22px 0 0 -22px;
    }

    .ba__tag {
        top: 12px;
        font-size: 14px;
        padding: 5px 10px;
    }

    .ba__tag--before { left: 12px; }
    .ba__tag--after { right: 12px; }

    .gallery {
        grid-auto-rows: 160px;
        gap: 10px;
    }

    .gallery__caption {
        padding: 26px 10px 10px;
        font-size: 15px;
    }

    .product--featured {
        grid-column: auto;
        flex-direction: column;
    }

    .product--featured .product__media img {
        aspect-ratio: 1 / 1;
    }

    .product-video video {
        max-height: 560px;
        height: auto;
        flex: none;
    }

    .videos {
        gap: 26px;
    }

    .videos video {
        max-height: 600px;
    }

    .contact__form {
        padding: 24px 18px;
    }

    .form__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .contact__list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-top: 54px;
        padding-bottom: 40px;
    }

    .footer-logo img {
        height: 60px;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: env(safe-area-inset-bottom);
        background: #000;
        border-top: 1px solid var(--line);
    }

    .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        font-family: var(--head-font);
        font-size: 19px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .mobile-bar__call {
        background: var(--cyan);
        color: var(--black);
    }

    .mobile-bar__book {
        background: #000;
        color: var(--white);
    }

    .mobile-bar a:hover {
        color: inherit;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
