/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #68bc71;
    --primary-hover-color: #4fa85a;
    --primary-light: #7dd088;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #f1f1f1;
    --border-color: #e2e8f0;
    --section-bg-color: #ffffff;
    
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 800px at 10% 10%, rgba(104, 188, 113, 0.18), transparent 60%),
        radial-gradient(900px 700px at 85% 15%, rgba(79, 168, 90, 0.12), transparent 55%),
        radial-gradient(1000px 900px at 30% 95%, rgba(26, 26, 26, 0.06), transparent 60%),
        linear-gradient(180deg, #f7faf8 0%, #f3f7f4 45%, #f8f9fa 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    background:
        linear-gradient(rgba(26, 26, 26, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 26, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 25% 20%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.25) 55%, transparent 75%);
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-block {
    padding: 80px 0;
}

/* --- HEADER --- */
.header {
    background-color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    z-index: 5;
}

.nav.active {
    display: flex;
}

.nav-link {
    margin: 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.phone-link {
    display: none;
    font-weight: 500;
    color: var(--primary-color);
    line-height: var(--header-height);
    align-items: center;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.burger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--dark-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* --- PROMO BANNER (HERO) --- */
.promo-banner {
    position: relative;
    padding: 140px 20px 100px;
    background: radial-gradient(1100px 600px at 20% 30%, rgba(255, 255, 255, 0.55), transparent 55%),
        linear-gradient(135deg, #68bc71 0%, #4fa85a 100%);
    background-image: url('../images/main_banner_mobile.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: var(--header-height);
}

.promo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.0) 40%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
}

.promo-banner__in {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.promo-banner__main-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #2c2c2c;
    letter-spacing: -1px;
}

.promo-banner__main-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.promo-banner__btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.button {
    display: inline-block;
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    min-height: 56px;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.button--standard {
    background-color: #ffffff;
    color: var(--primary-color);
}

.baloon-license {
    margin-top: 8px;
}

.baloon-license__content {
    font-size: 14px;
    color: #2c2c2c;
    line-height: 1.5;
}

.baloon-license__content p {
    margin: 0;
}

/* --- ADVANTAGES SHORT SECTION --- */
.advantages-short {
    background-color: var(--section-bg-color);
}

.advantages-short__in {
    max-width: 1000px;
    margin: 0 auto;
}

.advantages-short__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--dark-color);
}

.advantages-short__list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.advantages-short__item {
    padding: 32px;
    background: rgba(248, 249, 250, 0.78);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
}

.advantages-short__item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.advantages-short__item-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    display: block;
}

/* --- PRODUCTS TABS SECTION --- */
.products-tabs {
    background-color: var(--light-color);
}

.products-tabs__in {
    max-width: 1200px;
    margin: 0 auto;
}

.products-tabs__dropdown-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown__toggle {
    background-color: var(--section-bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

.dropdown__arrow {
    font-size: 12px;
    transition: all 0.3s ease;
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--section-bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    min-width: 200px;
}

.dropdown__menu.active {
    display: block;
}

.dropdown__link {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    color: var(--text-color);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.dropdown__link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dropdown__link.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.products-tabs__tabs {
    position: relative;
}

.products-tabs__tab {
    display: none;
}

.products-tabs__tab.active {
    display: block;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(26, 26, 26, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.product-card__title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark-color);
    line-height: 1.2;
}

.product-card__desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 32px;
}

.product-card__desc p {
    margin: 0;
}

.product-card__btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card__media {
    text-align: center;
}

.product-slider img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- ADVANTAGES ITEM SECTION --- */
.advantages-item {
    background-color: var(--section-bg-color);
}

.advantages-item--reverse {
    background-color: var(--light-color);
}

.advantages-item__in {
    max-width: 1200px;
    margin: 0 auto;
}

.advantages-item__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.advantages-item__column {
    width: 100%;
}

.advantages-item__pic {
    text-align: center;
}

.advantages-item__pic img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.advantages-item__content {
    text-align: center;
}

.advantages-item__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark-color);
}

.advantages-item__desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
}

.advantages-item__desc p {
    margin: 0;
}

/* --- ABOUT SECTION --- */
.about {
    background-color: var(--section-bg-color);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--dark-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 24px;
}

/* --- CONTACTS SECTION --- */
.contacts {
    background-color: var(--light-color);
}

.contacts-content {
    max-width: 800px;
    margin: 0 auto;
}

.contacts-info {
    background: rgba(255, 255, 255, 0.86);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(26, 26, 26, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contacts-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 32px;
    color: var(--dark-color);
}

.contacts-subtitle:first-child {
    margin-top: 0;
}

.contacts-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 32px;
}

.contact-item {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.8;
}

.contact-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
}

.contact-item address {
    font-style: normal;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-link {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.map-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.map-link:hover {
    text-decoration: underline;
}

/* --- SOCIAL MEDIA SECTION --- */
.social-media {
    background-color: var(--section-bg-color);
}

.social-media__in {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.social-media__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.social-media__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(248, 249, 250, 0.78);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-width: 120px;
    min-height: 120px;
    justify-content: center;
}

.social-media__item:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(104, 188, 113, 0.3);
}

.social-media__item svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-media__item:hover svg {
    transform: scale(1.1);
}

.social-media__item span {
    font-size: 14px;
    font-weight: 500;
}

/* --- STATS STRIP --- */
.stats {
    padding: 0;
}

.stats__in {
    margin-top: -46px;
}

.stats__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(26, 26, 26, 0.09);
    backdrop-filter: blur(10px);
}

.stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(248, 249, 250, 0.78);
}

.stat__badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(104, 188, 113, 0.22), rgba(79, 168, 90, 0.12));
    border: 1px solid rgba(104, 188, 113, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat__value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

.stat__label {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.75);
    line-height: 1.35;
}

/* --- HOW IT WORKS --- */
.how {
    background: transparent;
}

.how__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 16px 45px rgba(26, 26, 26, 0.07);
}

.step-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.step-card__num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(104, 188, 113, 0.22), rgba(79, 168, 90, 0.10));
    border: 1px solid rgba(104, 188, 113, 0.24);
    color: var(--dark-color);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.step-card__desc {
    margin: 0;
    color: rgba(51, 51, 51, 0.78);
    line-height: 1.7;
}

/* --- FAQ --- */
.faq {
    background: transparent;
}

.faq__in {
    max-width: 900px;
    margin: 0 auto;
}

.faq details {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 18px 18px;
    box-shadow: 0 14px 40px rgba(26, 26, 26, 0.07);
}

.faq details + details {
    margin-top: 14px;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--dark-color);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "＋";
    font-size: 18px;
    color: rgba(26, 26, 26, 0.65);
    flex: 0 0 auto;
}

.faq details[open] summary::after {
    content: "—";
}

.faq__answer {
    margin-top: 12px;
    color: rgba(51, 51, 51, 0.78);
    line-height: 1.75;
}

/* --- CTA STRIP --- */
.cta-strip {
    padding: 0 0 60px;
}

.cta-strip__panel {
    background: radial-gradient(900px 500px at 20% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
        linear-gradient(135deg, rgba(104, 188, 113, 0.95) 0%, rgba(79, 168, 90, 0.95) 100%);
    border-radius: 22px;
    padding: 26px 22px;
    color: #0b1a0f;
    box-shadow: 0 22px 70px rgba(79, 168, 90, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-align: center;
}

.cta-strip__title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.cta-strip__text {
    margin: 0 auto 18px;
    max-width: 720px;
    color: rgba(0, 0, 0, 0.72);
}

.cta-strip__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.25);
    color: #0b1a0f;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.button--ghost:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-text {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-link {
    color: var(--text-light);
    margin: 0 10px;
    font-size: 14px;
}

.footer-link:hover {
    color: #ffffff;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet Styles */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .nav {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        backdrop-filter: none;
    }
    
    .nav.active {
        display: flex;
    }

    .nav-link {
        margin: 0 15px;
        font-size: 1rem;
        color: var(--text-color);
        display: flex;
        align-items: center;
        line-height: var(--header-height);
    }

    .phone-link {
        display: flex;
        align-items: center;
        line-height: var(--header-height);
    }
    
    .burger-menu {
        display: none;
    }

    .promo-banner {
        padding: 160px 20px 120px;
        min-height: 700px;
        background-image: url('../images/main_banner_hd.svg');
    }

    .promo-banner__main-title {
        font-size: 64px;
    }

    .promo-banner__main-subtitle {
        font-size: 28px;
    }

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

    .product-card {
        grid-template-columns: 1fr 1fr;
    }

    .product-card__media {
        order: 2;
    }

    .advantages-item__columns {
        grid-template-columns: 1fr 1fr;
    }

    .advantages-item__content {
        text-align: left;
    }

    .advantages-item--reverse .advantages-item__columns {
        direction: rtl;
    }

    .advantages-item--reverse .advantages-item__columns > * {
        direction: ltr;
    }

    .stats__panel {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 26px;
    }

    .stats__in {
        margin-top: -56px;
    }

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

    .cta-strip__panel {
        text-align: left;
        padding: 30px 34px;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 22px;
        align-items: center;
    }

    .cta-strip__actions {
        align-items: flex-end;
    }

    .cta-strip__title {
        font-size: 28px;
        margin-bottom: 12px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    
    .promo-banner {
        padding: 180px 20px 140px;
        min-height: 800px;
    }

    .promo-banner__main-title {
        font-size: 72px;
    }

    .promo-banner__main-subtitle {
        font-size: 32px;
    }

    .advantages-short__title {
        font-size: 48px;
    }

    .section-title {
        font-size: 48px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-nav {
        margin-top: 0;
    }
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
