/* ==============================================
   ВЕРИТЕКС - Основные стили (обновленные)
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1b3b5f;
    --primary-light: #295a91;
    --primary-dark: #0f2840;
    --accent: #ffd700;
    --accent-light: #fff9e6;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --gray-border: #e9ecef;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(27, 59, 95, 0.12);
    --shadow-hover: 0 16px 48px rgba(27, 59, 95, 0.2);
    --radius: 20px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- КНОПКИ ----- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 59, 95, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
}
.btn-accent:hover {
    background: #e6c300;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
}
.btn-white:hover {
    background: var(--gray-light);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-download {
    background: #e9ecef;
    color: var(--primary);
    border: 1px solid #dee2e6;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-download:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-video {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
}
.btn-video:hover {
    background: #c82333;
    color: #fff;
}

/* ----- ИКОНКИ МЕССЕНДЖЕРОВ (SVG) ----- */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 4px;
}
.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}
.social-icon svg {
    display: block;
}

/* ----- ШАПКА ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-border);
    padding: 12px 0;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-brand img {
    height: 44px;
}
.header-brand span {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-contacts .phone {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}
.header-contacts .phone:hover {
    color: var(--primary-light);
}

.header-contacts .email {
    color: var(--gray);
    font-size: 14px;
}

.messengers {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ----- МЕНЮ ----- */
.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    position: relative;
}
.main-nav a:hover {
    color: var(--primary);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.main-nav a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-border);
    margin-top: 12px;
    width: 100%;
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-border);
}
.mobile-menu a:last-child {
    border-bottom: none;
}
.mobile-menu .messengers {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* ----- ГЕРОЙ ----- */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-bg-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    animation: heroFloat 30s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-3%, 2%) scale(1.02) rotate(1deg); }
    66% { transform: translate(2%, -2%) scale(0.98) rotate(-1deg); }
    100% { transform: translate(-1%, 1%) scale(1.01) rotate(0.5deg); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: particleFloat 20s infinite;
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 22s; width: 4px; height: 4px; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 20s; width: 8px; height: 8px; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 24s; }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 19s; width: 5px; height: 5px; }
.particle:nth-child(7) { left: 50%; animation-delay: 2.5s; animation-duration: 21s; }
.particle:nth-child(8) { left: 15%; animation-delay: 4.5s; animation-duration: 17s; width: 10px; height: 10px; opacity: 0.2; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-150px) scale(1.5); opacity: 0.8; }
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
}
.hero h1 span {
    color: var(--accent);
}
.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 560px;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ----- СЕКЦИИ ----- */
.section {
    padding: 70px 0;
}
.section-gray {
    background: var(--gray-light);
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 18px;
}

/* ----- ПРЕИМУЩЕСТВА ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.feature-item {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-border);
    transition: var(--transition);
}
.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.feature-item .icon {
    font-size: 44px;
    margin-bottom: 14px;
    display: block;
}
.feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}
.feature-item p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* ----- КАТАЛОГ (карточки товара) ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-card .badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.product-card .model-image {
    text-align: center;
    margin-bottom: 14px;
    background: var(--gray-light);
    border-radius: 12px;
    padding: 16px;
}
.product-card .model-image img {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}

.product-card .specs {
    flex-grow: 1;
    margin-bottom: 14px;
}
.product-card .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--gray-border);
    font-size: 14px;
}
.product-card .spec-row:last-child {
    border-bottom: none;
}
.product-card .spec-label {
    color: var(--gray);
}
.product-card .spec-value {
    font-weight: 700;
    color: var(--primary);
}
.product-card .price-row {
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    border-radius: 10px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #d4e0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-card .price-row .price-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}
.product-card .price-row .price-value {
    font-size: 22px;
    color: #dc3545;
    font-weight: 800;
}

.product-card .actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.product-card .actions .btn-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.product-card .actions .btn-row .btn {
    flex: 1;
    min-width: 50px;
    font-size: 12px;
    padding: 6px 10px;
    text-align: center;
}

/* ==============================================
   ТАБЛИЦА
   ============================================== */
.table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 4px;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}

.table-wrapper thead {
    background: linear-gradient(135deg, #1b3b5f 0%, #295a91 60%, #3a7bb5 100%);
    color: #fff;
}

.table-wrapper thead th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
    position: relative;
}

.table-wrapper thead th:last-child {
    border-right: none;
}

.table-wrapper thead th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.table-wrapper thead th:last-child::after {
    display: none;
}

.table-wrapper tbody td {
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-border);
    font-size: 14px;
}

.table-wrapper tbody tr {
    transition: var(--transition);
}

.table-wrapper tbody tr:hover {
    background: #f0f7ff !important;
}

.table-wrapper tbody tr:nth-child(even) {
    background: var(--gray-light);
}

.table-wrapper tbody tr:nth-child(odd) {
    background: #fff;
}

.table-wrapper .model-name {
    font-weight: 700;
    color: var(--primary);
    text-align: left !important;
    padding-left: 16px;
}

.table-wrapper .price-cell {
    font-weight: 800;
    color: #dc3545;
    font-size: 17px;
    white-space: nowrap;
}

.table-wrapper .sizes-cell {
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 8px;
}

.table-wrapper .sizes-cell .size-option {
    display: block;
    padding: 2px 0;
}

.table-wrapper .sizes-cell .size-option:first-child {
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 4px;
}

.table-wrapper .sizes-cell .size-option:last-child {
    padding-top: 4px;
}

.table-wrapper .btn-download-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: var(--transition);
}
.table-wrapper .btn-download-sm:hover {
    background: var(--primary-light);
    color: #fff;
}

.table-footer {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: var(--accent-light);
    border-radius: 12px;
    border: 1px solid var(--accent);
}
.table-footer p {
    font-size: 14px;
    color: var(--primary);
    margin: 0;
}

/* ----- ФОРМА ----- */
.form-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 70px 0;
    color: #fff;
}
.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 44px 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}
.form-card h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 8px;
}
.form-card .subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(255,255,255,0.95);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent);
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.form-card .btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}
.form-card .privacy {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 14px;
}
.form-card .privacy a {
    color: #fff;
    text-decoration: underline;
}

/* ----- ВИДЕО МОДАЛКА ----- */
.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.video-modal-overlay.active {
    display: flex;
}
.video-modal-content {
    background: #000;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.video-modal-content .video-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-modal-content .video-close:hover {
    transform: rotate(90deg);
    background: #dc3545;
    color: #fff;
}
.video-modal-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
}
.video-modal-content .video-wrapper video,
.video-modal-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #000;
}
.video-modal-content .video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0 0 20px 20px;
}

/* ----- КОНТАКТЫ (БЛОК) ----- */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.contacts-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contacts-card h4 {
    color: var(--primary);
    margin-bottom: 16px;
}
.contacts-card .messengers-list {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.contacts-card .messengers-list .social-icon {
    background: var(--gray-light);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}
.contacts-card .messengers-list .social-icon:hover {
    background: var(--primary);
}
.contacts-card .messengers-list .social-icon:hover svg path {
    fill: #fff;
}

/* ----- ФУТЕР ----- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 24px;
}
.footer a {
    color: rgba(255,255,255,0.7);
}
.footer a:hover {
    color: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 40px;
}
.footer-grid h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 14px;
}
.footer-grid p {
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.8;
}
.footer-grid .legal {
    font-size: 13px;
    opacity: 0.6;
}
.footer .messengers {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.footer .messengers .social-icon {
    background: rgba(255,255,255,0.1);
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}
.footer .messengers .social-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* ----- АДАПТИВ ----- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .main-nav {
        display: none;
    }
    .burger {
        display: flex;
    }
    .header-contacts .email {
        display: none;
    }
    .header-contacts .phone {
        font-size: 15px;
    }
    .hero {
        padding: 120px 0 50px;
        min-height: auto;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 17px;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .section-title {
        font-size: 30px;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .form-card {
        padding: 28px 20px;
    }
    .product-card .actions .btn-row {
        flex-direction: column;
    }
    .video-modal-content .video-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .table-wrapper table {
        font-size: 12px;
        min-width: 600px;
    }
    .table-wrapper thead th {
        font-size: 11px;
        padding: 10px 6px;
    }
    .table-wrapper tbody td {
        padding: 8px 6px;
        font-size: 12px;
    }
    .table-wrapper .price-cell {
        font-size: 14px;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .messengers .social-icon {
        width: 32px;
        height: 32px;
    }
    .messengers .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .header-brand span {
        font-size: 18px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .table-wrapper table {
        font-size: 11px;
        min-width: 500px;
    }
    .contacts-card {
        padding: 20px;
    }
}