/* --- 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);
}

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: var(--section-bg-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
}

.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: 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__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-color: var(--light-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.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-color: var(--section-bg-color);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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-color: var(--section-bg-color);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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-color: var(--light-color);
    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;
}

/* --- 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;
    }
}

/* 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;
    }
}
