/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #f48735;
    --orange-dark: #e06820;
    --blue: #486aa4;
    --blue-dark: #3a5688;
    --blue-light: #eef2f8;
    --white: #ffffff;
    --off-white: #f6f7f9;
    --grey: #6b7280;
    --grey-light: #e2e4e8;

    --font: 'Jost', 'Avant Garde', 'Avangarde', 'Century Gothic', 'Futura', sans-serif;
    --max-width: 1200px;
    --line: 3px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--blue-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: var(--line) solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.btn--primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.btn--ghost {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn--ghost:hover {
    background: var(--blue);
    color: var(--white);
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: var(--line) solid var(--blue);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo-img {
    height: 44px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 2rem;
}

.header__nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--blue-dark);
    transition: color 0.2s;
}

.header__nav-link:hover {
    color: var(--orange);
}

.header__phone {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blue);
}

.header__phone:hover {
    color: var(--orange);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--blue);
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== Section Header ===== */
.section-header {
    margin-bottom: 3rem;
    border-left: 10px solid var(--orange);
    padding-left: 1.25rem;
}

.section-header__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.section-header__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--blue-dark);
}

/* ===== Hero ===== */
.hero {
    padding: clamp(4rem, 10vw, 7rem) 0;
    border-bottom: var(--line) solid var(--orange);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
}

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

.hero__text {
    font-size: 1.1rem;
    color: var(--grey);
    max-width: 50ch;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero visual — De Stijl blocks */
.hero__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 420px;
    justify-self: end;
}

.hero__block {
    position: absolute;
    border: var(--line) solid var(--blue);
}

.hero__block--orange {
    width: 60%;
    height: 55%;
    background: var(--orange);
    top: 5%;
    left: 0;
    border-color: var(--orange);
}

.hero__block--blue {
    width: 45%;
    height: 40%;
    background: var(--blue);
    bottom: 10%;
    right: 0;
}

.hero__block--light {
    width: 35%;
    height: 30%;
    background: var(--off-white);
    top: 30%;
    right: 5%;
    border-color: var(--blue);
}

/* ===== Promo / Акция ===== */
.promo {
    padding: clamp(4rem, 8vw, 6rem) 0;
    border-bottom: var(--line) solid var(--blue);
}

.promo-banner {
    display: grid;
    grid-template-columns: 280px 1fr;
    border: var(--line) solid var(--blue);
    background: var(--white);
}

.promo-banner__side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.promo-banner__side--orange {
    background: var(--orange);
}

.promo-banner__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
}

.promo-banner__price {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.promo-banner__old {
    font-size: 0.9rem;
    text-decoration: line-through;
    opacity: 0.8;
}

.promo-banner__content {
    padding: 2.5rem;
}

.promo-banner__title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.promo-banner__text {
    color: var(--grey);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 60ch;
}

.promo-banner__models {
    list-style: none;
    border-top: 2px solid var(--blue);
    margin-bottom: 1.5rem;
}

.promo-banner__models li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--grey-light);
    font-size: 0.95rem;
    color: var(--blue-dark);
}

.promo-banner__models li strong {
    color: var(--orange);
    font-size: 1.05rem;
    white-space: nowrap;
}

.promo-banner__note {
    font-size: 0.82rem;
    color: var(--grey);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ===== Services ===== */
.services {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--off-white);
    border-bottom: var(--line) solid var(--orange);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--line);
    background: var(--blue);
    border: var(--line) solid var(--blue);
}

.service-card {
    background: var(--white);
    padding: 2rem;
    transition: background 0.2s;
}

.service-card:hover {
    background: var(--blue-light);
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.service-card__text {
    font-size: 0.9rem;
    color: var(--grey);
    line-height: 1.5;
}

/* ===== Tariffs ===== */
.tariffs {
    padding: clamp(4rem, 8vw, 6rem) 0;
    border-bottom: var(--line) solid var(--blue);
}

.tariffs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.5rem;
}

.tariff-card {
    background: var(--white);
    border: 2px solid var(--blue);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.tariff-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
}

.tariff-card__header {
    padding: 1.25rem 1.5rem;
    background: var(--blue);
    color: var(--white);
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tariff-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tariff-card__subtitle {
    font-size: 0.82rem;
    opacity: 0.9;
    line-height: 1.3;
}

.tariff-card__body {
    padding: 1.5rem;
    flex: 1;
}

.tariff-card__section {
    margin-bottom: 1rem;
}

.tariff-card__section:last-child {
    margin-bottom: 0;
}

.tariff-card__section strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--blue-dark);
}

.tariff-card__section p {
    font-size: 0.85rem;
    color: var(--grey);
    line-height: 1.45;
}

.tariff-card__footer {
    padding: 1.25rem 1.5rem;
    border-top: 2px solid var(--blue);
    text-align: center;
}

.tariff-card__price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--orange);
}

.tariff-card__price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--grey);
}

.tariff-table {
    width: 100%;
    border-collapse: collapse;
}

.tariff-table tr {
    border-bottom: 1px solid var(--grey-light);
}

.tariff-table tr:last-child {
    border-bottom: none;
}

.tariff-table td {
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.tariff-table td:first-child {
    color: var(--grey);
}

.tariff-table__price {
    font-weight: 600;
    color: var(--blue-dark);
    text-align: right;
}

.tariffs__note {
    margin-top: 2rem;
    font-size: 0.82rem;
    color: var(--grey);
    text-align: center;
    font-style: italic;
}

/* ===== Contacts ===== */
.contacts {
    padding: clamp(4rem, 8vw, 6rem) 0;
    border-bottom: var(--line) solid var(--orange);
}

.contacts__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--line);
    background: var(--blue);
    border: var(--line) solid var(--blue);
}

.contacts__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--white);
    padding: 1.5rem;
    transition: background 0.2s;
}

.contacts__item:hover {
    background: var(--blue-light);
}

.contacts__item-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--orange);
}

.contacts__item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey);
    margin-bottom: 0.25rem;
}

.contacts__item p {
    font-weight: 500;
    color: var(--blue-dark);
}

.contacts__item a {
    color: var(--blue);
    transition: color 0.2s;
}

.contacts__item a:hover {
    color: var(--orange);
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 0;
    background: var(--blue);
    color: var(--white);
}

.footer__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer__logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1rem 0;
        border-bottom: var(--line) solid var(--blue);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .header__nav--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .header__nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
    }

    .header__phone {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__burger--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .header__burger--active span:nth-child(2) {
        opacity: 0;
    }
    .header__burger--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .hero__visual {
        display: none;
    }

    .promo-banner {
        grid-template-columns: 1fr;
    }

    .promo-banner__side {
        padding: 1.5rem;
    }

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

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

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

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

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .promo-banner__models li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}