/* =============================================
   ОБЩИЕ СТИЛИ И СБРОС
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* =============================================
   КНОПКИ
   ============================================= */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-download {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.3);
}

.download-icon {
    font-size: 1.2rem;
}

/* =============================================
   ШАПКА САЙТА
   ============================================= */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.header-contacts a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-contacts a:hover {
    color: #667eea;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =============================================
   ГЛАВНЫЙ БАННЕР С ВИДЕО И КАСТОМНЫМ ФОНОМ
   ============================================= */

.hero {
    margin-top: 80px;
    padding: 5rem 0;
    display: flex;
    align-items: center;
    /* Фоновый градиент по умолчанию */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Попытка загрузить кастомное изображение фона */
    background-image: url('../images/hero-background.jpg'), linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Если изображение не загрузится, останется градиент */
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.hero-video {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    height: 100%;
    min-height: 500px;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Фоллбэк изображение скрыто по умолчанию */
.hero-video img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.form-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* =============================================
   ФОРМЫ
   ============================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* =============================================
   КАРТОЧКИ КОНВЕРТОВ
   ============================================= */

.gallery {
    padding: 2.5rem 0;
    background: #f8f9fa;
}

.envelope-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.envelope-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.envelope-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.envelope-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.5;
}

/* =============================================
   БЛОК БОНУСНЫХ ОТКРЫТОК
   ============================================= */

.bonus-cards {
    padding: 5rem 0;
    background: white;
}

.bonus-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bonus-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.bonus-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.bonus-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #5a6c7d;
}

.bonus-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bonus-features li {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

/* =============================================
   ТАБЛИЦА ЦЕН
   ============================================= */

.prices {
    padding: 5rem 0;
    background: #f8f9fa;
}

.price-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.price-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.price-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e0e6ed;
    font-weight: 500;
}

.price-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.price-table tr.featured {
    background: rgba(102, 126, 234, 0.1);
}

.price-table tr.featured td {
    font-weight: 600;
    color: #667eea;
}

.price-notes {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.price-notes p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.price-notes ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.price-notes li {
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* =============================================
   ДОСТАВКА
   ============================================= */

.delivery {
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.delivery-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.delivery-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.delivery-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 2rem auto;
    display: inline-block;
    font-size: 1.1rem;
}

.delivery-companies {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.delivery-companies span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

/* =============================================
   СОТРУДНИЧЕСТВО
   ============================================= */

.cooperation {
    padding: 5rem 0;
    background: white;
}

.cooperation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cooperation-text h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
}

.cooperation-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #5a6c7d;
}

.payment-methods,
.documents {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-methods li,
.documents li {
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-weight: 500;
}

.cooperation-image img {
    width: 120%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* =============================================
   О НАС
   ============================================= */

.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #5a6c7d;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature h4 {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.about-contacts {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.about-contacts h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* =============================================
   ШАБЛОН МАКЕТА
   ============================================= */

.template {
    padding: 5rem 0;
    background: white;
}

.template-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.template-download {
    text-align: center;
}

.template-download h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.template-download p {
    font-size: 1.1rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
}

.template-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: left;
}

.template-info p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.template-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.template-info li {
    padding-left: 1rem;
    position: relative;
}

.template-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #11998e;
    font-weight: bold;
}

.template-video h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.video-container video {
    width: 100%;
    height: auto;
}

.template-video p {
    font-size: 1rem;
    color: #5a6c7d;
}

/* =============================================
   ФОРМА ЗАКАЗА
   ============================================= */

.order {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.order-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.order-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.order-info p {
    font-size: 1.1rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
}

.order-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-benefits li {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.order-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* =============================================
   ПОДВАЛ
   ============================================= */

.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 80px;
	width: auto;
    filter: brightness(1) invert(1);
}

.footer-contacts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-contacts a,
.footer-contacts span {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: #667eea;
}

.footer-copyright {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* =============================================
   АДАПТИВНОСТЬ
   ============================================= */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-video {
        aspect-ratio: 16/9;
        height: auto;
        min-height: auto;
    }
    
    .hero-form {
        min-height: auto;
    }
    
    .envelope-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .bonus-content,
    .cooperation-content,
    .about-content,
    .template-content,
    .order-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav {
        order: 3;
        flex-basis: 100%;
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        /* Увеличиваем верхний отступ для мобильной версии */
        /* Высота шапки + дополнительный отступ */
        margin-top: 100px;
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-video {
        aspect-ratio: 16/9;
        height: auto;
        min-height: auto;
    }
    
    .hero-form {
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .envelope-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .price-table th,
    .price-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .delivery-companies {
        gap: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contacts {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        /* Еще больше увеличиваем отступ для очень маленьких экранов */
        margin-top: 110px;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .form-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .bonus-features {
        grid-template-columns: 1fr;
    }
    
    .delivery-companies {
        flex-direction: column;
        align-items: center;
    }
}

/* =============================================
   АНИМАЦИИ И ЭФФЕКТЫ
   ============================================= */

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

.form-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Плавные переходы для всех интерактивных элементов */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Улучшенные фокус-состояния для доступности */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}