:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    margin: 0;
    line-height: 1.6;
}

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

a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-text {
    color: var(--gray);
}
.btn-text:hover { color: var(--primary); }

.full-width { width: 100%; }

.header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    width: 100%;
}

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

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-main {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.logo-main span { color: var(--primary); }

.logo-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    margin-top: 4px;
}

.desktop-nav a {
    color: var(--dark);
    margin: 0 15px;
    font-weight: 500;
}
.desktop-nav a:hover { color: var(--primary); }

/* Хедер контакты */
.header-phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-right: 0;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.tg-link {
    display: none;
}

.hero {
    padding: 30px 0 80px; /* Уменьшили верхний отступ с 40px до 30px */
    background: linear-gradient(to bottom, #f8fafc, #fff);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px; /* Увеличили отступ снизу с 20px до 30px для симметрии */
    letter-spacing: -1px;
    margin-top: 0; /* Убираем дефолтный отступ сверху */
}

.hero-h1-sub {
    display: block;
    font-size: 0.75em;
    color: var(--primary);
    font-weight: 400;
    margin-top: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.author-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.phone-mockup {
    background: var(--dark);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 300px;
    height: 550px;
    margin: 0 auto;
    position: relative;
}

.screen-content {
    background: #fff;
    border-radius: 20px;
    height: 100%;
    overflow: hidden;
}

.intro-text-section {
    padding: 40px 0 20px;
    background: var(--white);
}

.intro-text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--dark);
    text-align: center;
}

.intro-text-content p {
    margin-bottom: 25px;
}

.intro-text-content p:last-child {
    font-weight: 700;
    color: var(--primary);
}

.features { padding: 80px 0; }
.section-title { font-size: 2.2rem; margin-bottom: 10px; }
.section-desc { color: var(--gray); margin-bottom: 50px; text-align: center; }
.text-center { text-align: center; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.proof-section {
    background: var(--dark);
    color: white;
    padding: 80px 0;
}

.screenshots-gallery {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-item {
    min-width: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 10px;
    text-align: center;
}

.img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #334155;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .img-wrapper img {
    transform: scale(1.05);
}

.caption {
    font-size: 0.9rem;
    margin-top: 10px;
    color: rgba(255,255,255,0.7);
}

.video-section {
    padding-bottom: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #000;
}

.video-container::before {
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pricing { padding: 80px 0; background: #f8fafc; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.price-card h3 {
    margin-top: 0;
}
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-card .btn {
    margin-top: auto;
}

.price-card.pro {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.tag.best { background: #dbeafe; color: var(--primary); }
.test .tag { background: #f3f4f6; color: var(--gray); }

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0 5px;
}
.price-desc { color: var(--gray); margin-bottom: 30px; }

.check-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    font-size: 0.95rem;
}

.card-footer-text {
    font-size: 0.85rem;
    text-align: center;
    color: var(--gray);
    margin-top: 15px;
}

.economics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Стили для блока "Дополнительные методы продвижения" */
.additional-methods {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: white;
}

.additional-methods .section-title {
    color: white;
    margin-bottom: 30px;
    font-size: 1.5rem; /* Чуть меньше заголовок для компактности */
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.method-card {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: white;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Используем min-height вместо height */
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Затемнение фона */
.method-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: -1;
    transition: background 0.3s;
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.method-card:hover::before {
    background: rgba(0,0,0,0.4); /* Картинка становится ярче при наведении */
}

.method-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

/* Фоновые изображения */
.bg-maps { background-image: url('Yand_biz/diva.jpg'); }
.bg-photo { background-image: url('Video_Photo/reclama-1-4-1-2.jpg'); }
.bg-smm { background-image: url('SMM/sk-dzen.jpg'); }
.bg-leads { background-image: url('Ice_Overhead/perehvat-lidov.png'); }
.bg-main { background-image: url('orders_gk.jpg'); }
.bg-complex { background-image: url('Complex_Marketing/reclama-1-32.jpg'); background-position: center 20%; }

.footer {
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    background: var(--white);
    color: var(--dark);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
}
.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Social Icons in Footer */
.footer-socials {
    display: flex;
    gap: 40px; /* Increased gap for desktop */
    align-items: center;
}

.social-link {
    color: var(--gray); /* Dark gray icons */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Fixed size */
    height: 40px;
}

.social-link:hover {
    transform: scale(1.1); /* Scale effect on hover */
}

/* Specific colors on hover */
.social-link.youtube:hover { color: #FF0000; }
.social-link.telegram:hover { color: #0088cc; }
.social-link.zen:hover { color: #000000; } 
.social-link.hh:hover { color: #D6001C; }

/* Dropdown Menu */
.desktop-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 12px;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

/* Arrow for dropdown */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.dropdown-content a {
    color: var(--dark) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    margin: 0 !important;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary) !important;
    padding-left: 25px; /* Slight movement on hover */
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropbtn {
    background-color: transparent;
    color: var(--dark);
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons, .hero-author { justify-content: center; }
    .features-grid, .pricing-grid, .economics-grid { grid-template-columns: 1fr !important; }
    .grid-2, .grid-4 { grid-template-columns: 1fr !important; } /* Force single column on mobile */
    .desktop-nav { display: none; }
    
    .header-actions .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero h1 { font-size: 2rem; }
    
    .screenshots-gallery {
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Мобильный вид для дополнительных услуг (как меню) */
    .methods-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .method-card {
        min-height: 60px; /* Используем min-height для мобильных */
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-socials {
        order: 2;
        margin: 10px 0;
    }
    
    .footer-contacts {
        align-items: center;
        order: 3;
    }
    .footer-left {
        order: 1;
    }
}