:root {
    --bg: #08111b;
    --bg-soft: #0d1a29;
    --surface: #ffffff;
    --surface-soft: #f5f7fb;
    --text: #17212b;
    --text-light: #5e6b78;
    --line: rgba(255, 255, 255, 0.08);
    --line-soft: #e6ebf2;
    --primary: #1f8fff;
    --primary-dark: #0d6fd1;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(7, 21, 37, 0.12);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1400px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: #eef3f8;
}

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

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

.site-wrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

@supports not (min-height: 100dvh) {
    .site-wrapper {
        min-height: 100vh;
    }
}

.site-main {
    flex: 1;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background:
        linear-gradient(90deg, rgba(4, 17, 31, 0.97), rgba(7, 32, 58, 0.94)),
        var(--bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    transform: translateY(1px); 
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.12em; 
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.78); 
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 4px;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.96rem;
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
}

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

.site-nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--primary); /* вместо белого */
}

.site-nav a.active {
    color: var(--primary);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-phone:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
}

.phone-icon {
    font-size: 0.95rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 999px;
}

/* GLOBAL */

.section {
    padding: 72px 0;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line-soft);
}

.btn,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn {
    color: var(--white);
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 24px rgba(31, 143, 255, 0.25);
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-outline {
    color: var(--text);
    border: 1px solid #cad5e2;
    background: var(--white);
}

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

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 0;
    background:
        linear-gradient(
            90deg,
            rgba(3, 16, 29, 0.98) 0%,
            rgba(3, 16, 29, 0.92) 18%,
            rgba(3, 16, 29, 0.78) 34%,
            rgba(3, 16, 29, 0.45) 48%,
            rgba(3, 16, 29, 0.15) 62%,
            rgba(3, 16, 29, 0.00) 78%
        ),
        url("/static/main/images/hvac_hero_background.jpg");
    background-position: left top, center right;
    background-repeat: no-repeat, no-repeat;
    background-size: auto, cover;
    color: var(--white);
}

.hero-inner {
    min-height: 680px;
    display: flex;
    align-items: center;
}

.hero-left {
    width: 52%;
    padding: 34px 0 28px;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 700;
}

.hero-left h1 {
    margin: 0 0 18px;
    max-width: 780px;
    font-size: 3.55rem;
    line-height: 1.02;
    letter-spacing: -1.2px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
}

.hero-left h1 span {
    display: block;
    line-height: 1.02;
}

.hero-left .accent {
    display: block;
    margin-top: 10px;
    font-size: 0.95em;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.hero-sub {
    max-width: 580px;
    margin: 18px 0 30px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-actions .btn,
.hero-actions .btn-outline {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-actions .btn-outline {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: transparent;
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.hero-feature span {
    font-size: 0.92rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.76);
}

/* LIGHT SECTIONS */

.section-light {
    background: #f7f9fc;
    padding-bottom: 40px; /* вместо 80–100 */
}

.section-kicker {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px;
    font-size: 0.84rem;
}

.section-title {
    text-align: center;
    margin: 0 0 44px;
    font-size: 2.7rem;
    line-height: 1.1;
}

/* SERVICES */

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

.service-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--primary);
    font-weight: 700;
}

/* PLANS */

.plans-section {
    padding: 78px 0;
    background: linear-gradient(90deg, rgba(4, 17, 31, 0.98), rgba(5, 30, 55, 0.92));
    color: var(--white);
}

.plans-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.45fr;
    gap: 26px;
    align-items: center;
}

.plans-intro h2 {
    font-size: 3rem;
    margin: 0 0 18px;
}

.plans-intro p:last-of-type {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 420px;
}

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

.plan-card {
    padding: 28px 24px;
}

.plan-card h3 {
    text-transform: uppercase;
    font-size: 1.15rem;
    margin-top: 0;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 18px 0;
}

.price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.plan-card ul {
    padding-left: 18px;
    margin: 0 0 22px;
}

.plan-card li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.plan-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.06);
    z-index: 3;
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.contact-info h2 {
    margin-top: 0;
    font-size: 2.5rem;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.contact-list li {
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--primary);   /* весь текст синий */
}

.contact-form {
    padding: 26px;
}

#contact {
    scroll-margin-top: 120px;
}

.contact-form {
    transition: box-shadow 0.3s ease;
}

.contact-form.highlight {
    box-shadow: 0 0 0 3px rgba(47,143,232,0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #d7e0ea;
    font: inherit;
    background: #fff;
    color: #667085;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
}

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

.contact-form .btn {
    width: 100%;
}

/* FOOTER */

.site-footer {
    background: #07111d;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 54px 0 34px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-copy {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    align-content: flex-start;
}

.footer-right a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.footer-right a:hover {
    color: var(--primary);
}

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

.footer-bottom-inner {
    padding: 18px 0 24px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.92rem;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .hero {
        min-height: 620px;
        background:
            linear-gradient(
                90deg,
                rgba(3, 16, 29, 0.98) 0%,
                rgba(3, 16, 29, 0.88) 28%,
                rgba(3, 16, 29, 0.62) 46%,
                rgba(3, 16, 29, 0.20) 68%,
                rgba(3, 16, 29, 0.00) 86%
            ),
            url("/static/main/images/hvac_hero_background.jpg");
        background-position: left top, center right;
        background-size: auto, cover;
    }

    .hero-inner {
        min-height: 620px;
    }

    .hero-left {
        width: 52%;
    }

    .hero-left h1 {
        font-size: 3.45rem;
        max-width: 560px;
    }

    .hero-sub {
        max-width: 320px;
    }

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

    .plans-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1024px) {
    .site-nav {
        gap: 18px;
    }

    .header-phone {
        display: none;
    }
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 18px 0;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 0 4px;
        margin-left: 0;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a::after {
        bottom: -4px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .hero {
        min-height: auto;
        background:
            linear-gradient(
                180deg,
                rgba(3, 16, 29, 0.92) 0%,
                rgba(3, 16, 29, 0.70) 100%
            ),
            url("/static/main/images/hvac_hero_background.jpg");
        background-position: center center;
        background-size: cover;
    }

    .hero-inner {
        min-height: auto;
        padding: 56px 0;
    }

    .hero-left {
        width: 100%;
    }

    .hero-left h1 {
        font-size: 2.45rem;
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
    }

    .hero-features,
    .plans-grid,
    .form-row,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title,
    .plans-intro h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    .plan-card.featured {
        transform: none;
    }
}
.hero-features {
    display: flex;
    gap: 48px;
    margin-top: 42px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-feature .icon {
    display: flex;
    align-items: center;
    justify-content: center;

    /* СѓР±СЂР°Р»Рё РєСЂСѓРі */
    width: auto;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
}
.hero-feature:hover .icon {
    transform: translateY(-2px);
    box-shadow:
        0 0 18px rgba(31, 143, 255, 0.35),
        inset 0 0 8px rgba(31, 143, 255, 0.2);
}

.hero-feature svg {
    width: 42px;
    height: 42px;
    stroke: var(--primary);
    stroke-width: 1.4;
    fill: none;

    /* рџ‘‡ РґРѕР±Р°РІР»СЏРµРј glow РІРјРµСЃС‚Рѕ РєСЂСѓР¶РєР° */
    filter: drop-shadow(0 0 6px rgba(31, 143, 255, 0.6));
}

.hero-feature strong {
    display: block;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.hero-feature span {
    font-size: 13px;
    color: rgba(255,255,255,0.78);
}

.arrow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.arrow-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.25s ease;
}

.arrow-btn:hover svg {
    transform: translateX(4px);
}

.btn-phone-icon {
    width: 18px;
    height: 18px;
    fill: #ffffff !important;
    stroke: none !important;
    margin-right: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.header-phone-icon {
    width: 18px;
    height: 18px;
    fill: #1f8fff !important;
    stroke: none !important;
    filter: drop-shadow(0 0 5px rgba(31, 143, 255, 0.65));
    flex-shrink: 0;
    margin-right: 0;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-weight: 600;
}

.hero-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(31, 143, 255, 0.35);
}

.service-card {
    padding: 32px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;

    background: rgba(31, 143, 255, 0.1);
    color: #1f8fff;
    font-size: 30px;
}

.service-icon.ac {
  color: #2f7fe3;
  background: rgba(31, 143, 255, 0.1);
}

.service-icon.heat {
    background: rgba(255, 125, 45, 0.18);
    color: #ff7d2d;
}

.service-icon.fridge {
    color: #2f7fe3;
    background: rgba(31, 143, 255, 0.1);
}

.service-icon.repair {
    color: #2f7fe3;
    background: rgba(31, 143, 255, 0.1);
}

.service-icon.ac img {
    width: 44px;
    height: 44px;
}

.service-icon.heat img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.service-icon.fridge img {
    width: 50px;
    height: 50px;
}

.service-icon.repair img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}


/* Learn More со стрелкой */
.learn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.learn-link .arrow {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.learn-link:hover .arrow {
    transform: translateX(4px);
}

.plans-section {
    position: relative;
    padding: 70px 0;
    min-height: 520px;
    overflow: hidden;
    background: url("/static/main/images/hvac-technician.jpg") center 48% / cover no-repeat;
}

.plans-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(2, 18, 34, 0.90) 0%,
        rgba(4, 25, 47, 0.84) 45%,
        rgba(5, 29, 54, 0.80) 100%
    );
}

.plans-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.75fr 1.85fr;
    align-items: center;
    gap: 28px;
}

.plans-intro {
    color: #fff;
    max-width: 430px;
    text-align: left;
}

.plans-intro .section-kicker {
    color: #2f8fe8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 12px;
    text-align: left;
    margin-left: 0;
}

.plans-intro h2 {
    color: #fff;
    font-size: 38px;
    line-height: 1.05;
    margin: 0 0 14px;
}

.plans-intro h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    background: #2f8fe8;
    margin-top: 18px;
}

.plans-intro p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px; /* вместо 5px */
    align-items: stretch; /* ВАЖНО */
    width: 100%;
    max-width: 880px;
    margin-left: auto;
    margin-top: 20px; /* ← ВОТ ЭТО ДОБАВЬ */
}

.plan-card {
    min-height: 400px;
    height: 100%;

    border: 2px solid transparent;
    border-radius: 7px;
    padding: 26px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(0,0,0,0.24);

    display: flex;
    flex-direction: column;

    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-card h3 {
    color: #071827;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 24px;
    transition: all 0.25s ease;
}

.plan-card.is-active,
.plan-card:hover {
    border-color: #2f8fe8;
    transform: translateY(-6px);
}

.plan-card.is-active {
    border-color: #2f8fe8;
    transform: translateY(-14px);
    box-shadow: 0 26px 50px rgba(0,0,0,0.35);
}

.plan-card.is-active h3,
.plan-card:hover h3 {
    margin: -26px -26px 24px;
    padding: 18px 26px;
    background: #2f8fe8;
    color: #fff;
}

/* когда навели на любую карточку — Standard сбрасывается */
.plans-grid:has(.plan-card:hover) .plan-card.is-active {
    border-color: transparent;
    transform: translateY(0);
}

.plans-grid:has(.plan-card:hover) .plan-card.is-active h3 {
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
    color: #071827;
}

/* если навели именно на Standard — вернуть active */
.plans-grid:has(.plan-card.is-active:hover) .plan-card.is-active {
    border-color: #2f8fe8;
    transform: translateY(-14px);
}

.plans-grid:has(.plan-card.is-active:hover) .plan-card.is-active h3 {
    margin: -26px -26px 24px;
    padding: 18px 26px;
    background: #2f8fe8;
    color: #fff;
}

.plan-card .price {
    color: #071827;
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 26px;
    text-align: center;
}

.plan-card .price span {
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.plan-card li {
    margin-bottom: 13px;
    font-size: 15px;
    color: #334155;
}

.plan-card li::before {
    content: "✓";
    color: #1684e8;
    font-weight: 800;
    margin-right: 10px;
}

.plan-card a {
    margin-top: auto;
}

.plan-card .btn-outline {
    transition: all 0.25s ease;
}

/* active button по умолчанию */
.plan-card.is-active .btn-outline,
.plan-card:hover .btn-outline {
    background: #2f8fe8;
    color: #fff;
    border-color: #2f8fe8;
}

/* когда hover на другой карточке — Standard button белая */
.plans-grid:has(.plan-card:hover) .plan-card.is-active .btn-outline {
    background: transparent;
    color: #071827;
    border-color: #cbd5e1;
}

/* если hover именно на Standard — button синяя */
.plans-grid:has(.plan-card.is-active:hover) .plan-card.is-active .btn-outline {
    background: #2f8fe8;
    color: #fff;
    border-color: #2f8fe8;
    font-weight: 700;
}

.plans-intro {
    max-width: none !important;
}

.plans-intro > p:not(.section-kicker) {
    width: 450px !important;
    max-width: none !important;
}

.section-title {
    position: relative;
    display: block;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary); /* ← вот ключ */
    margin: 16px auto 0;
    border-radius: 3px;
}

/* === FIX: выравнивание Learn More === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch; /* важно */
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card p {
    flex-grow: 1;
}

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

/* CONTACT LIST - FINAL */

.contact-text {
  margin: 0 0 18px;
}

.contact-text p {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
  color: #4b5563;
}

.contact-text p:first-child {
  color: #0b1a2b;
  font-weight: 500;
}

.contact-sub {
  font-size: 15px;
  color: #4b5563;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0b1a2b; /* основной текст */
  font-size: 0.98rem;
  font-weight: 700;
}

.contact-list li:first-child {
    font-weight: 800;
}

.contact-list li:first-child .contact-link:hover {
    transform: translateX(3px);
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: #2f7fe3;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  color:  #2f7fe3;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  color: #0d4ea6;
  border-bottom-color: rgba(47, 127, 227, 0.45);
  transform: translateX(2px)
}

.arrow {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
}

.contact-link:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .contact-list {
    gap: 16px;
  }

  .contact-list li {
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .contact-icon {
    margin-top: 2px;
  }
}

.contact-info {
    text-align: left;
}

.contact-info .section-kicker {
    text-align: left;
    color: var(--primary);
}

.contact-info h2 {
    position: relative;
    text-align: left;
    margin: 0 0 22px;
}

.contact-info h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    background: var(--primary);
    margin: 14px 0 0;
    border-radius: 3px;
}

.highlight-line {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.plan-card {
    position: relative;
    overflow: visible;
}

.plan-badge {
    position: absolute;
    top: -24px; /* было -16 → чуть выше */
    left: 50%;
    transform: translateX(-50%);
    
    background: #1f8fff;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px; /* чуть больше */
    
    border-radius: 999px;
    letter-spacing: 0.04em;

    box-shadow: 0 8px 18px rgba(31, 143, 255, 0.45); /* сильнее */
    z-index: 10;
    border: 2px solid #fff;
}

.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.select-trigger {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #d7e0ea;
    background: #fff;
    color: #667085;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

/* стрелка */
.select-trigger::after {
    content: "▾";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #7c8a9a;
}

.select-dropdown {
    position: absolute;
    top: 110%; /* чуть ниже, чтобы был воздух */
    left: 0;
    width: 100%;

    background: #fff;
    border-radius: 10px;

    box-shadow: 0 16px 40px rgba(0,0,0,0.18);

    overflow: hidden;

    opacity: 0;
    pointer-events: none;

    transform: translateY(8px) scale(0.98);
    transition: all 0.18s ease;

    z-index: 100;
    padding: 8px;
}

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

.option {
    padding: 12px 18px;
    cursor: pointer;
    color: #333;
    border-radius: 8px;
}

.option:hover {
    background: #f5f9ff;
}

/* фокус как у input */
.custom-select.open .select-trigger {
    border-color: #2f8fe8;
    box-shadow: 0 0 0 3px rgba(47,143,232,0.15);
}

.option.selected {
    background: #eef6ff;
    color: #1f8fff;
    font-weight: 600;
}

.form-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #6b7c93;
    text-align: center;
}

.contact-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(47,143,232,0.25);
}

#services {
    scroll-margin-top: 120px;
}

#services.highlight {
    animation: highlightSection 1s ease;
}

@keyframes highlightSection {
    0% {
        background: rgba(47,143,232,0.08);
    }
    100% {
        background: transparent;
    }
}

.form-messages {
    margin-bottom: 16px;
}

.form-message {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.form-message.error {
    background: #fdecec;
    color: #b42318;
    border-color: #f5c2c2;
}

.form-message.success {
    background: #edfdf3;
    color: #067647;
    border-color: #abefc6;
}

.input-error {
    border-color: #f04438 !important;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.custom-select.input-error .select-trigger {
    border-color: #f04438 !important;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.custom-select.input-error.open .select-trigger {
    border-color: #f04438 !important;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.custom-select.input-error .select-trigger::after {
    color: #b42318;
}

.field-error {
    margin: -8px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #b42318;
}

/* ===================================================
   UNDER CONSTRUCTION
   =================================================== */

.under-construction-wrapper{
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.under-construction-card{
    max-width:520px;
    text-align:center;
}

.under-construction-card h1{
    margin-bottom:18px;
}

.under-construction-card p{
    margin-bottom:10px;
}

.sub {
    margin-top: 18px;
    font-size: 14px;
    color: #6b7280;
}

.call-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 26px;
    background: #2f7fe3;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
    }

/* ===================================================
   MOBILE / TABLET RESPONSIVE FIX
   =================================================== */

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

  .plans-layout {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin: 36px auto 0;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-inner {
    min-height: 76px;
    flex-wrap: nowrap;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .site-nav,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 18px 20px;
    background: #071827;
    flex-direction: column;
    gap: 18px;
  }

  .hero {
    min-height: auto;
    background-position: center;
  }

  .hero-inner {
    min-height: auto;
    padding: 64px 0 56px;
  }

  .hero-left {
    width: 100%;
  }

  .hero-left h1 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: 100%;
  }

  .hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .service-card {
    padding: 28px;
    min-height: auto;
  }

  .plans-section {
    padding: 60px 0;
    overflow: hidden;
  }

  .plans-layout {
  grid-template-columns: 1fr;
  justify-items: center;
}

.plans-grid {
  width: 100%;
  max-width: 420px;
  margin: 36px auto 0;
  grid-template-columns: 1fr;
  justify-items: center;
}

.plan-card {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

  .plan-card,
  .plan-card.is-active,
  .plan-card:hover,
  .plan-card.is-active:hover {
    transform: none;
  }

  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (max-width: 430px) {

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .brand-subtitle {
    font-size: 0.56rem;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .section-title,
  .plans-intro h2,
  .contact-info h2 {
    font-size: 1.85rem;
  }

  .service-card,
  .plan-card {
    padding: 24px;
  }

  .contact-form {
    padding: 20px;
  }

  /* iPhone fixes */

  .plans-intro > p:not(.section-kicker) {
    width: 100% !important;
    max-width: 100% !important;
  }

  .plans-layout {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }

  .plans-grid {
    width: 100%;
    max-width: 100%;
    margin: 36px auto 0;
    justify-items: center;
  }

  .plan-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .plan-badge {
    left: 50%;
    transform: translateX(-50%);
  }
}
