/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-dark-green:    #002e2b;
    --color-header-bottom: #004440;
    --color-green-hover:   rgba(0, 120, 100, 0.55);
    --color-white:         #ffffff;
    --color-text:          #1a1a1a;
    --font-heading:        'Open Sans', sans-serif;
    --font-body:           'Open Sans', sans-serif;
    --header-height:       78px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: #fff;
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, var(--color-dark-green) 0%, var(--color-header-bottom) 100%);
    height: var(--header-height);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-logo img {
    height: 40px;
    display: block;
}

/* Навигация — пузырь */
.header-nav {
    background: rgba(255, 255, 255, 0.10);
    border: none;
    border-radius: 50px;
    padding: 9px 22px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav ul li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav ul li::before {
    content: '•';
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}

.header-nav ul li:first-child::before {
    display: none;
}

.header-nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    padding: 2px 6px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.header-nav ul li a:hover { opacity: 1; }

/* Правый блок хедера */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.header-whatsapp:hover { opacity: 1; }

/* ============================================
   КНОПКА-ПОЛЗУНОК (общие стили)
   ============================================ */
.header-cta,
.footer-cta {
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.35s, border-color 0.35s;
}

.header-cta {
    background: rgba(255, 255, 255, 0.10);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 5px 18px 5px 5px;
    color: var(--color-white);
    font-size: 13px;
    min-width: 175px;
}

.header-cta:hover {
    background: var(--color-green-hover);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-knob {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-white);
    flex-shrink: 0;
    margin-right: 10px;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-text {
    flex: 1;
    text-align: left;
    color: var(--color-white);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ============================================
   MOBILE HEADER
   ============================================ */
@media (max-width: 768px) {
    .header-nav,
    .header-actions {
        display: none;
    }

    .header-inner {
        padding: 0 20px;
    }

    .header-logo img {
        height: 58px;
    }

    .header-mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

@media (min-width: 769px) {
    .header-mobile-actions {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* WhatsApp мобилка */
.header-whatsapp-mobile {
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Бургер */
.burger-btn {
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
/* Пузыри по ширине контента, не на всю строку */
.mobile-nav {
    align-items: center;
}

.mobile-nav-item {
    width: auto;
    min-width: 160px;
    padding: 10px 28px;
}

.mobile-nav-services {
    width: auto;
    min-width: 200px;
    padding: 10px 28px 14px;
    text-align: center;
}

/* WhatsApp и бургер — иконки побольше */
.header-whatsapp-mobile svg {
    width: 32px;
    height: 32px;
}

.burger-btn svg {
    width: 28px;
    height: 20px;
}

.burger-btn svg rect {
    height: 2.5px;
}
.mobile-nav-services-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Убираем старые стили блока услуг */
.mobile-nav-services {
    background: none;
    border-radius: 0;
    padding: 0;
}

.mobile-nav-services-title {
    /* наследует .mobile-nav-item — пузырь только вокруг слова */
}

.mobile-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.mobile-services-list li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
}

.mobile-services-list li a:hover {
    color: var(--color-white);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: linear-gradient(180deg, #0a2e20 0%, #0f5c3a 35%, #1a7a5e 65%, #1db87a 100%);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px 24px 40px;
}

/* Крестик закрытия */
.mobile-menu-close {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* ============================================
   MOBILE NAV ITEMS
   ============================================ */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Обычный пункт меню — пузырь */
.mobile-nav-item {
    display: block;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Блок Услуги — пузырь с раскрытым списком */
.mobile-nav-services {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 10px 20px 14px;
    cursor: default;
}

.mobile-nav-services > span {
    display: block;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 10px;
}

.mobile-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-services-list li a {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
}

.mobile-services-list li a:hover {
    color: var(--color-white);
}

/* ============================================
   MOBILE MENU FOOTER
   ============================================ */
.mobile-menu-footer {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Соцсети с подписями */
.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}

.mobile-social-link:hover {
    color: var(--color-white);
}

/* ============================================
   КНОПКА "ОСТАВИТЬ ЗАЯВКУ" В МОБИЛЬНОМ МЕНЮ
   Серый фон по умолчанию, зелёный при нажатии
   ============================================ */
.mobile-cta {
    display: inline-flex;
    align-items: center;
    width: 100%;
    background: rgba(150, 150, 150, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 13px 18px 13px 9px;
    cursor: pointer;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.35s, border-color 0.35s;
}

.mobile-cta .cta-knob {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-white);
    flex-shrink: 0;
    margin-right: 12px;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta .cta-text {
    flex: 1;
    text-align: left;
    color: var(--color-white);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta:hover,
.mobile-cta:active {
    background: rgba(0, 140, 100, 0.65);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(160deg, #1a7a5e 0%, #1db87a 50%, #17a86a 100%);
    border-radius: 32px 32px 0 0;
    margin-top: 80px;
    color: var(--color-white);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 40px 32px;
}

/* ПК: лого + 3 колонки */
.footer-top {
    display: grid;
    grid-template-columns: 180px 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 32px;
}

.footer-logo img {
    height: 40px;
    display: block;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.footer-links li a:hover { color: var(--color-white); }

.footer-contact-link {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-contact-link:hover { color: var(--color-white); }

/* Соцсети под контактами на ПК */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.footer-social:hover { background: rgba(255, 255, 255, 0.28); }

.footer-address {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Кнопка-ползунок футер */
.footer-cta {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 10px 15px 10px 10px;
    cursor: pointer;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.35s, border-color 0.35s;
    width: 100%;
}

.footer-cta .cta-knob {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-white);
    flex-shrink: 0;
    margin-right: 10px;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cta .cta-text {
    flex: 1;
    text-align: left;
    color: var(--color-white);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Мобильный блок с кнопкой и соцсетями — скрыт на ПК */
.footer-mobile-bottom {
    display: none;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    text-align: center;
}

.footer-privacy {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-privacy:hover { color: var(--color-white); }

/* ============================================
   FOOTER MOBILE — строго по макету
   ============================================ */
@media (max-width: 768px) {

    .site-footer {
        border-radius: 24px 24px 0 0;
        margin-top: 48px;
    }

    .footer-inner {
        padding: 36px 20px 24px;
    }

    /* Лого на всю ширину, потом 2 колонки */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        padding-bottom: 20px;
    }

    /* Лого — строка 1, оба столбца */
    .footer-logo-col {
        grid-column: 1 / -1;
    }

    .footer-logo img {
        height: 48px;
    }

    /* Услуги — строка 2, столбец 1 */
    .footer-col-services {
        grid-column: 1;
    }

    /* Контакты — строка 2, столбец 2 */
    .footer-col-contacts {
        grid-column: 2;
    }

    /* Адрес под контактами — строка 3, столбец 2 */
    .footer-col-address {
        grid-column: 2;
        grid-row: 3;
    }

    /* Услуги растягиваются на строки 2–3 */
    .footer-col-services {
        grid-row: 2 / 4;
    }

    .footer-col-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer-links li a,
    .footer-contact-link,
    .footer-address {
        font-size: 14px;
    }

    /* Скрываем кнопку и соцсети внутри колонок на мобиле */
    .footer-col-address .footer-cta,
    .footer-col-contacts .footer-socials {
        display: none;
    }

    /* Мобильный блок кнопка + соцсети показываем */
    .footer-mobile-bottom {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px 0;
    }

    .footer-cta-mobile {
        width: 100%;
        font-size: 15px;
        padding: 9px 16px 9px 9px;
    }

    .footer-cta-mobile .cta-knob {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    /* Соцсети по центру, иконки крупнее */
    .footer-socials-mobile {
        justify-content: center;
        gap: 16px;
        margin-top: 0;
    }

    .footer-socials-mobile .footer-social {
        width: 52px;
        height: 52px;
    }

    .footer-socials-mobile .footer-social svg {
        width: 24px;
        height: 24px;
    }

    .footer-bottom {
        padding-top: 16px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        padding: 32px 16px 20px;
    }
}
/* ============================================
   HERO
   ============================================ */

/* Градиент продолжается из хедера и светлеет вниз */
.hero {
    background: linear-gradient(180deg,
    #004440 0%,
    #006b5e 30%,
    #1a9e6e 65%,
    #2dbd7a 85%,
    #3dd688 100%
    );
    min-height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: calc(100vh - var(--header-height));
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    text-align: center;
    padding-top: 64px;
    padding-bottom: 0;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    /* Фиксируем высоту зоны контента */
    margin-bottom: 0;
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-body);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Кнопка-ползунок героя — серый фон */
.hero-cta {
    display: inline-flex;
    align-items: center;
    background: rgba(150, 150, 150, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 24px 8px 8px;
    cursor: pointer;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.35s, border-color 0.35s;
    margin-top: 8px;
    min-width: 200px;
}

.hero-cta .cta-knob {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-white);
    flex-shrink: 0;
    margin-right: 12px;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta .cta-text {
    flex: 1;
    text-align: left;
    color: var(--color-white);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
    background: rgba(0, 140, 100, 0.55);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Девушка по центру */
.hero-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    /* Начинается не раньше чем через 260px сверху (высота контента) */
    top: 260px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image img {
    width: auto;
    height: 100%;
    max-height: 620px;
    object-fit: contain;
    object-position: bottom;
    display: block;
}


/* Услуги — левый нижний угол */
.hero-services {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.hero-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-white);
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    max-width: 64px;
    transition: opacity 0.2s;
}

.hero-service-item:hover {
    opacity: 0.8;
}

.hero-service-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.hero-service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-service-thumb--empty {
    background: rgba(255, 255, 255, 0.15);
}

/* Соцсети — правый нижний угол */
.hero-socials {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.hero-social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.hero-social-link:hover {
    color: var(--color-white);
}

/* ============================================
   HERO MOBILE
   ============================================ */
@media (max-width: 768px) {

    .hero {
        min-height: 70svh;
        position: relative;
        overflow: hidden;
        padding-bottom: 0;
    }

    .hero-inner {
        padding: 0 20px;
        height: 70svh;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .hero-content {
        padding-top: 28px;
        gap: 10px;
        margin-bottom: 16px;
    }

    .hero-image {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        z-index: 1;
        pointer-events: none;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        /* Высота = вся секция минус высота контента сверху */
        max-height: calc(100svh - 210px);
        object-fit: contain;
        object-position: bottom center;
        display: block;
    }

    .hero-services,
    .hero-socials {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-image img {
        max-height: calc(100svh - 200px);
    }
}

