/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #5c6bc0;
    --primary-hover-color: #3f51b5;
    --primary-light: #7986cb;
    --dark-color: #1a1a2e;
    --light-color: #f0f4ff;
    --text-color: #2d3748;
    --text-light: #f1f1f1;
    --border-color: #d4daef;
    --section-bg-color: #ffffff;
    --accent-color: #ff6b6b;
    --gradient-primary: linear-gradient(135deg, #5c6bc0 0%, #7c4dff 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --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: 700;
}

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: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    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;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    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: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    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;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.phone-link {
    display: none;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    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(--primary-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);
}

/* --- HERO SECTION (About as Hero) --- */
.hero-section {
    position: relative;
    padding: 160px 20px 100px;
    background: var(--gradient-hero);
    color: #ffffff;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px 200px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(360deg); }
}

.hero-section .section-title {
    color: #ffffff;
    font-size: 56px;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.highlight-text {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-block {
    margin-top: 32px;
}

/* --- STATS SECTION --- */
.stats-section {
    background: var(--dark-color);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* --- BUTTONS --- */
.button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    min-height: 56px;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button--primary {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: var(--primary-hover-color);
}

.button--standard {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(92, 107, 192, 0.4);
}

.button--standard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(92, 107, 192, 0.5);
    color: #ffffff;
}

/* --- 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: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(92, 107, 192, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantages-short__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(92, 107, 192, 0.15);
}

.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;
}

/* --- TECH SECTION --- */
.tech-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0;
}

.tech-section .section-title {
    color: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.tech-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.tech-card h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

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

.products-tabs .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.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: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(92, 107, 192, 0.3);
}

.dropdown__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 107, 192, 0.4);
}

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

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--section-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    min-width: 220px;
    overflow: hidden;
}

.dropdown__menu.active {
    display: block;
}

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

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

.dropdown__link.active {
    background: var(--gradient-primary);
    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: var(--section-bg-color);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(92, 107, 192, 0.1);
}

.product-card__title h3 {
    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: 12px;
}

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

.advantages-item--reverse {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.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: 16px;
}

.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 DETAILED SECTION --- */
.about-detailed {
    background: var(--section-bg-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;
}

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

/* --- CONTACTS SECTION --- */
.contacts {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
}

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

.contacts-info {
    background-color: var(--section-bg-color);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(92, 107, 192, 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: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-width: 120px;
    min-height: 120px;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.social-media__item:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(92, 107, 192, 0.3);
    border-color: transparent;
}

.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: 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-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

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

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

.footer-link:hover {
    color: var(--primary-light);
}

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

    .hero-section {
        padding: 180px 20px 120px;
        min-height: 700px;
    }

    .hero-section .section-title {
        font-size: 64px;
    }

    .hero-tagline {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .product-card__media {
        order: 1;
    }

    .product-card__content {
        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; }
    
    .hero-section {
        padding: 200px 20px 140px;
        min-height: 800px;
    }

    .hero-section .section-title {
        font-size: 72px;
    }

    .hero-tagline {
        font-size: 36px;
    }

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

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

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

    .footer-text {
        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;
    }
}

