/* new30.css */

:root {
    --primary: #FF6F00;
    --primary-hover: #E66400;
    --dark: #2D2D2D;
    --light: #F8F9FA;
    --gray: #6C757D;
    --border: #EAEAEA;
    --card-bg: #FFFFFF;
    --section-bg-light: #F4F5F6;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    font-optical-sizing: auto;
}

/* --- Скроллбар --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* --- Анимации появления --- */
.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.fade-element.animated {
    opacity: 1;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Header (Glassmorphism) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo img {
    height: 52px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    background: var(--light);
    color: #000000;
}

.chevron {
    transition: transform 0.2s ease;
    opacity: 0.6;
}
.dropdown:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 240px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 18px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--light);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: var(--border);
}

/* --- Hero Section --- */
.hero {
    padding: 90px 24px 70px;
    background: var(--dark);
    color: #FFFFFF;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #A0AEC0;
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-btn {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 111, 0, 0.3);
}

.hero-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
}

.hero-btn svg {
    transition: transform 0.2s ease;
}

.hero-btn:hover svg {
    transform: translateX(3px);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 35px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #A0AEC0;
}

/* --- Секции общего назначения --- */
.benefits, .how-it-works, .calculator {
    padding: 90px 24px;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

/* --- Benefits Grid --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.benefit-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.benefit-text {
    color: var(--gray);
    font-size: 1rem;
}

/* --- Calculator Box --- */
.calculator {
    background: var(--section-bg-light);
}

.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* --- How It Works Steps --- */
.steps {
    max-width: 750px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 40px;
    gap: 24px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--light);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-text {
    color: var(--gray);
}

/* --- Geo Targeting Section --- */
.geo-section {
    padding: 90px 24px;
    background-color: var(--card-bg);
}

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

.geo-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 45px;
    text-align: center;
    letter-spacing: -0.02em;
}

.geo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.geo-card {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.geo-city-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.title-v-salda { color: var(--primary); }
.title-n-salda { color: var(--dark); }

.geo-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #4A5568;
}

.geo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.geo-list li {
    font-size: 0.95rem;
}

.geo-list strong {
    color: var(--dark);
}

.geo-partners {
    margin-top: 50px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.geo-disclaimer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #A0AEC0;
}

/* --- Оптимизированный Footer --- */
.footer {
    background: var(--dark);
    color: #FFFFFF;
    padding: 70px 24px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 50px;
}

.footer-logo img {
    height: 48px;
    margin-bottom: 20px;
    width: auto;
}

.footer-about {
    color: #A0AEC0;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-right: 20px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    position: relative;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #A0AEC0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.phone-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}
.phone-link:hover {
    color: var(--primary);
    transform: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #718096;
    font-size: 0.85rem;
}

/* --- Мобильный нижний таб-бар (Premium App Style) --- */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
    z-index: 1010; /* Поверх мобильного меню */
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: 16px;
    padding-right: 16px;
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    width: 25%;
    height: 100%;
    transition: color 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-bar-item:active {
    transform: scale(0.95);
}

/* Состояние, когда меню ОТКРЫТО (кнопка превращается в закрывашку) */
.bottom-bar-item.menu-open-state {
    color: var(--primary) !important;
}

.bottom-bar-item.main-cta {
    color: var(--primary);
    width: 30%;
}

.cta-icon-wrapper {
    background: rgba(255, 111, 0, 0.08);
    padding: 6px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.bottom-bar-item.main-cta:active .cta-icon-wrapper {
    background: rgba(255, 111, 0, 0.15);
}

/* --- Адаптивный дизайн (Media Queries) --- */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-container > div:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    body {
        /* Безопасная зона + высота таб-бара */
        padding-bottom: calc(64px + env(safe-area-inset-bottom)); 
    }
    .nav-desktop {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-bottom-bar {
        display: flex;
    }
    .geo-grid {
        grid-template-columns: 1fr;
    }
    /* Защищаем футер от перекрытия таб-баром */
    .footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 76px;
    }
    .hero {
        padding: 60px 20px 40px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
    }
    .section-title, .geo-main-title {
        font-size: 1.75rem;
        margin-bottom: 35px;
    }
    .geo-card {
        padding: 24px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-container > div:first-child {
        grid-column: span 1;
    }
}

/* --- Мобильное меню (native sheet style) --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    /* Меню аккуратно доходит до таб-бара, не проваливаясь под него */
    bottom: calc(64px + env(safe-area-inset-bottom));
    background: #FFFFFF;
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.mobile-menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu-item .chevron {
    transition: transform 0.2s ease;
}
.mobile-menu-item.active .chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.mobile-dropdown {
    display: none;
    padding-left: 16px;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.mobile-dropdown.active {
    display: flex;
}

.btn-mobile-submit {
    margin-top: 24px;
    width: 100%;
    background: var(--primary);
}
.btn-mobile-submit:hover {
    background: var(--primary-hover);
}

.no-scroll {
    overflow: hidden;
}

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