/* =============================================
   MEGAHOL — Main Stylesheet
   ============================================= */

:root {
    --accent: #00AEEF;
    --accent-dark: #0077B6;
    --accent-navy: #001F3F;
    --accent-light: rgba(0, 174, 239, 0.12);
    --accent-glow: rgba(0, 174, 239, 0.35);
    --red: var(--accent);
    --red-dark: var(--accent-dark);
    --red-light: var(--accent-light);
    --black: #000000;
    --dark: #111111;
    --dark-2: #1A1A1A;
    --dark-3: #222222;
    --grey: #666666;
    --grey-light: #999999;
    --white: #FFFFFF;
    --font: 'Montserrat', sans-serif;
    --header-h: 80px;
    --container: 1200px;
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), background var(--transition), opacity var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    appearance: none;
    background: none;
}

.btn--red {
    background: linear-gradient(135deg, var(--accent-navy) 0%, var(--accent) 100%);
    color: var(--white);
    border-color: var(--accent);
}

.btn--red:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    border-color: var(--accent);
}

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

.btn--outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn--outline-red {
    background: var(--white);
    color: var(--accent);
    border-color: var(--accent);
    padding: 12px 28px;
}

.btn--outline-red:hover {
    background: var(--accent);
    color: var(--white);
}

.btn--sm {
    padding: 10px 22px;
    font-size: 12px;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 13px;
}

.btn--phone {
    padding: 20px 40px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    width: 100%;
    max-width: 420px;
}

/* ---- Section Labels & Titles ---- */
.section-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.section-title--dark {
    color: var(--dark);
}

.section-title--light {
    color: var(--white);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    height: 100%;
    gap: 12px;
    min-width: 0;
    container-type: inline-size;
    container-name: header;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header__logo-img {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.header__logo-text {
    display: none;
    flex-direction: column;
}

.header__logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.header__logo-name {
    display: block;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
    line-height: 1.1;
}

.header__logo-mega {
    color: var(--white);
}

.header__logo-hol {
    color: var(--accent);
}

.header__logo-tagline {
    display: none;
    font-size: 9px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.3;
}

.header__logo-tagline-text {
    color: var(--white);
}

.header__logo-tagline-accent {
    color: var(--accent);
}

.header__nav {
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.header__menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
}

.header__menu li {
    flex-shrink: 0;
}

.header__menu a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.header__menu a:hover,
.header__menu a.active {
    color: var(--white);
    border-bottom-color: var(--accent);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.header__phone i {
    color: var(--accent);
    font-size: 14px;
}

.header__menu-phone {
    display: none;
}

.header__lang {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__lang-form {
    margin: 0;
    display: inline;
}

.header__lang-btn {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all var(--transition);
}

.header__lang-btn:hover,
.header__lang-btn.active {
    color: var(--white);
    border-color: var(--accent);
    background: rgba(0, 174, 239, 0.15);
}

.header__menu-lang {
    display: none;
}

.header__burger {
    display: none;
    grid-column: 4;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
}

.hero > .container {
    width: 100%;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 80px 0 160px;
    max-width: 700px;
    text-align: left;
}

.hero__title {
    font-size: clamp(56px, 10vw, 96px);
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero__title-mega {
    color: var(--white);
}

.hero__title-hol {
    color: var(--accent);
}

.hero__subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.4;
}

.hero__features {
    margin-bottom: 40px;
}

.hero__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero__features li i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* =============================================
   FEATURES BAR
   ============================================= */
.features-bar {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding-bottom: 60px;
}

.features-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--dark-2);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.features-bar__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.features-bar__item:last-child {
    border-right: none;
}

.features-bar__icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features-bar__icon i {
    color: var(--accent);
    font-size: 20px;
}

.features-bar__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.features-bar__text strong {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}

.features-bar__text span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.4;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
    padding: 80px 0 100px;
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid #EEEEEE;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 28px 16px;
}

.service-card__icon i {
    color: var(--accent);
    font-size: 22px;
}

.service-card__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    padding: 0 28px;
    margin-bottom: 10px;
}

.service-card__desc {
    flex: 1;
    font-size: 13px;
    color: var(--grey);
    line-height: 1.6;
    padding: 0 28px 24px;
    margin-bottom: 0;
}

.service-card__image {
    width: 100%;
    height: 200px;
    margin-top: auto;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.service-card__image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: transform var(--transition);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
    position: relative;
    padding: 100px 0;
    background: var(--dark);
    overflow: hidden;
}

.how-it-works__bg {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42%;
    overflow: hidden;
    pointer-events: none;
}

.how-it-works__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--dark) 0%, transparent 35%);
    z-index: 1;
}

.how-it-works__bg img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: right center;
}

.how-it-works__content {
    position: relative;
    z-index: 1;
}

.how-it-works .section-title {
    margin-bottom: 50px;
}

.steps {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 680px;
}

.steps__item {
    flex: 0 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
}

.steps__circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-navy) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 24px var(--accent-glow);
}

.steps__circle i {
    color: var(--white);
    font-size: 22px;
}

.steps__fa-stack {
    font-size: 11px;
    width: 2.2em;
    height: 2.2em;
    line-height: 2.2em;
    vertical-align: middle;
}

.steps__fa-stack .fa-check {
    font-size: 0.55em;
}

.steps__text {
    flex: 1;
    min-width: 0;
}

.steps__text strong {
    display: block;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
}

.steps__text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    max-width: 180px;
}

.steps__connector {
    flex: 0 0 32px;
    align-self: center;
    height: 20px;
    padding-top: 0;
}

.steps__connector svg {
    width: 100%;
    height: 100%;
}

/* =============================================
   CTA
   ============================================= */
.cta {
    position: relative;
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.cta__content {
    padding-right: 20px;
}

.cta__media {
    position: relative;
    height: 380px;
    overflow: hidden;
    pointer-events: none;
}

.cta__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 40%);
    z-index: 1;
}

.cta__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: right center;
}

.cta__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta__subtitle {
    font-size: 18px;
    color: var(--grey);
    margin-bottom: 32px;
    font-weight: 500;
}

.cta__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
}

.btn--location {
    width: 100%;
    padding: 16px 28px;
    font-size: 13px;
    justify-content: center;
}

/* =============================================
   LOCATION MODAL
   ============================================= */
.location-modal[hidden] {
    display: none;
}

.location-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.location-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.location-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.location-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--grey);
    cursor: pointer;
    transition: color var(--transition);
}

.location-modal__close:hover {
    color: var(--dark);
}

.location-modal__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    padding-right: 30px;
}

.location-modal__desc {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 20px;
}

.location-modal__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 8px;
}

.location-modal__input {
    width: 100%;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    border: 2px solid #E5E5E5;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}

.location-modal__input:focus {
    outline: none;
    border-color: var(--accent);
}

.location-modal__submit {
    width: 100%;
    padding: 16px 24px;
}

.location-modal__status {
    min-height: 20px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.location-modal__status--info {
    color: var(--accent-dark);
}

.location-modal__status--success {
    color: #1a8f4a;
}

.location-modal__status--error {
    color: #c0392b;
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal {
    padding: calc(var(--header-h) + 40px) 0 80px;
    background: var(--white);
    min-height: 60vh;
}

.legal__content {
    max-width: 800px;
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey);
    margin-bottom: 28px;
    transition: color var(--transition);
}

.legal__back:hover {
    color: var(--accent);
}

.legal__title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.legal__updated {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 40px;
}

.legal__section {
    margin-bottom: 28px;
}

.legal__section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.legal__section-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--grey);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--black);
    color: var(--white);
}

.footer__main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr auto;
    gap: 40px;
    padding: 70px 20px 50px;
    align-items: start;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer__copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 16px;
}

.footer__heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__contact-list li {
    margin-bottom: 14px;
}

.footer__contact-list a,
.footer__contact-list span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact-list a:hover {
    color: var(--accent);
}

.footer__contact-list i {
    color: var(--accent);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer__social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.footer__badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__badge-inner {
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    text-align: center;
    min-width: 140px;
    background: rgba(0, 31, 63, 0.35);
}

.footer__badge-number {
    display: block;
    font-size: 48px;
    font-weight: 900;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.footer__badge-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer__bottom-inner p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.footer__bottom-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-links a:hover {
    color: var(--accent);
}

.footer__bottom-links span {
    color: rgba(255, 255, 255, 0.2);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Header: скрыть CTA когда мало места в контейнере */
@container header (max-width: 1120px) {
    .header__cta {
        display: none;
    }
}

/* Header burger menu — по ширине контейнера шапки */
@container header (max-width: 1040px) {
    .header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .header__nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.97);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    .header__nav.open {
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header__menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: none;
    }

    .header__menu li {
        width: 100%;
        text-align: center;
    }

    .header__menu a {
        display: block;
        padding: 10px 20px;
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
        border-bottom: none;
    }

    .header__menu a.active {
        color: var(--white);
        border-bottom: 2px solid var(--accent);
    }

    .header__menu-phone {
        display: block;
        padding: 10px 20px 6px;
    }

    .header__menu-phone .btn {
        width: 100%;
        justify-content: center;
    }

    .header__menu-lang {
        display: block;
        padding: 6px 20px 12px;
    }

    .header__menu-lang .header__lang {
        justify-content: center;
        gap: 8px;
    }

    .header__actions {
        display: none;
    }

    .header__burger {
        display: flex;
        flex-shrink: 0;
    }
}

/* Fallback для браузеров без container queries */
@media (max-width: 1100px) {
    .header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .header__cta {
        display: none;
    }

    .header__nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.97);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    .header__nav.open {
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header__menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: none;
    }

    .header__menu li {
        width: 100%;
        text-align: center;
    }

    .header__menu a {
        display: block;
        padding: 10px 20px;
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
        border-bottom: none;
    }

    .header__menu a.active {
        color: var(--white);
        border-bottom: 2px solid var(--accent);
    }

    .header__menu-phone {
        display: block;
        padding: 10px 20px 6px;
    }

    .header__menu-phone .btn {
        width: 100%;
        justify-content: center;
    }

    .header__menu-lang {
        display: block;
        padding: 6px 20px 12px;
    }

    .header__menu-lang .header__lang {
        justify-content: center;
        gap: 8px;
    }

    .header__actions {
        display: none;
    }

    .header__burger {
        display: flex;
        flex-shrink: 0;
    }
}

@media (max-width: 1100px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__main {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer__badge {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    .features-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .features-bar__item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 20px;
    }

    .features-bar__item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .features-bar__item:nth-last-child(-n+2) {
        border-bottom: none;
    }

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

    .steps__connector {
        flex: none;
        width: 20px;
        height: 40px;
        margin: 0 auto;
        transform: rotate(90deg);
    }

    .steps__item {
        max-width: none;
    }

    .cta {
        padding: 60px 0 0;
    }

    .cta__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .cta__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }

    .cta__media {
        height: 280px;
        margin: 0 -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }

    .cta__media img {
        object-position: center 22%;
    }

    .cta__media::after {
        background: linear-gradient(to bottom, var(--white) 0%, rgba(255, 255, 255, 0.4) 12%, transparent 30%);
    }

    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer__col--brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 600px) {
    :root {
        --header-h: 70px;
    }

    .header__logo-img {
        height: 36px;
    }

    .hero__content {
        padding: 60px 0 140px;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .features-bar {
        margin-top: -60px;
    }

    .features-bar__grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .features-bar__item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .features-bar__item:last-child {
        border-bottom: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .services {
        padding: 60px 0 80px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .how-it-works {
        padding: 70px 0;
    }

    .how-it-works__bg {
        width: 100%;
        opacity: 0.25;
    }

    .how-it-works__bg::after {
        background: linear-gradient(to bottom, var(--dark) 0%, transparent 40%);
    }

    .btn--phone {
        font-size: 18px;
        padding: 16px 24px;
    }

    .cta {
        padding: 50px 0 0;
    }

    .cta__inner {
        gap: 24px;
    }

    .cta__media {
        height: 240px;
    }

    .cta__media img {
        object-position: center 18%;
    }

    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .footer__col--brand {
        grid-column: 1 / -1;
    }

    .footer__col--contact {
        grid-column: 1;
        align-self: start;
    }

    .footer__badge {
        grid-column: 2;
        justify-content: flex-end;
        align-self: start;
    }

    .footer__badge-inner {
        padding: 18px 20px;
        min-width: 120px;
    }

    .footer__badge-number {
        font-size: 40px;
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .header__logo-img {
        height: 32px;
    }

    .hero__title {
        font-size: 48px;
    }
}
