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

:root {
    --primary: #1a5f7a;
    --primary-dark: #134b61;
    --accent: #f9a826;
    --success: #2ecc71;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 70px;
    height: auto;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo-years {
    font-size: 11px;
    color: var(--gray);
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    font-size: 15px;
    color: var(--gray);
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

nav a:hover {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.header-address {
    font-size: 14px;
    color: var(--gray);
}

.header-phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.header-phone:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #e6951d;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(26, 95, 122, 0.85), rgba(26, 95, 122, 0.9)), url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?w=1920') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: #fff;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    color: var(--dark);
}

.hero-form h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
}

.checkbox-group input {
    width: auto;
    margin-top: 3px;
}

.form-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* Pain Section */
.pain-section {
    padding: 80px 0;
    background: var(--light);
}

.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pain-block,
.solution-block {
    padding: 30px;
    border-radius: 12px;
}

.pain-block {
    background: #fff;
    border-left: 4px solid var(--danger);
}

.solution-block {
    background: #fff;
    border-left: 4px solid var(--success);
}

.pain-title,
.solution-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pain-title .icon {
    width: 30px;
    height: 30px;
    background: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.solution-title .icon {
    width: 30px;
    height: 30px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pain-list,
.solution-list {
    list-style: none;
}

.pain-list li,
.solution-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    padding-left: 25px;
    position: relative;
}

.pain-list li:last-child,
.solution-list li:last-child {
    border-bottom: none;
}

.pain-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

.solution-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.table-wrapper .comparison-table {
    min-width: 540px;
}

.comparison-table th {
    background: var(--primary);
    color: #fff;
    font-size: 18px;
}

.comparison-table th:first-child {
    background: var(--primary-dark);
}

.comparison-table th.our {
    background: var(--success);
}

.comparison-table tr:nth-child(even) {
    background: var(--light);
}

.comparison-table td:nth-child(2) {
    color: var(--success);
    font-weight: 600;
}

.comparison-table td:nth-child(3) {
    color: var(--gray);
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
    background: var(--primary);
    color: #fff;
}

.experience-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.experience-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

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

.stat-item {
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(72%) sepia(60%) saturate(600%) hue-rotate(1deg) brightness(103%) contrast(96%);
}

.stat-text {
    font-size: 15px;
    line-height: 1.5;
}

/* Certificate */
.certificate-preview {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.certificate-img {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.certificate-img:hover {
    transform: scale(1.02);
}

.certificate-img:hover img {
    transform: scale(1.05);
}

.certificate-preview p {
    color: var(--gray);
    font-size: 13px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* Catalog */
.catalog-section {
    padding: 80px 0;
    background: var(--light);
}

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

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 320px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-badge.hit {
    background: var(--accent);
}

.product-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1;
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-content > .btn {
    margin-top: auto;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.product-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-specs {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-specs h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--dark);
}

.specs-list {
    font-size: 13px;
    color: var(--gray);
    list-style: none;
}

.specs-list li {
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.product-form {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-form.active {
    display: block;
}

.product-form .form-group input {
    padding: 10px 12px;
    font-size: 14px;
}

/* Calculator */
.calculator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calculator-image {
    height: 350px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0.8;
}

.calculator-form {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    color: var(--dark);
}

.calculator-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary);
}

.calc-result {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.calc-result p {
    padding: 8px 0;
    font-size: 15px;
}

.calc-result strong {
    color: var(--primary);
}

.calc-result .highlight {
    font-size: 22px;
    color: var(--success);
    font-weight: 700;
}

/* Timeline */
.timeline-section {
    padding: 80px 0;
}

.timeline-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 50px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: var(--primary);
}

.timeline-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
}

.timeline-text {
    font-size: 14px;
    color: var(--dark);
    max-width: 150px;
    margin: 0 auto;
}

/* CTA */
.cta-section {
    padding: 80px 0;
    background: var(--accent);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 30px;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
}

.cta-form .form-group input {
    border-color: #e0e0e0;
}

.cta-form .btn {
    background: var(--primary);
}

.cta-form .btn:hover {
    background: var(--primary-dark);
}

/* Dealers */
.dealers-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
}

.dealers-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.dealers-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.dealer-form {
    max-width: 450px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
}

.dealer-form input {
    background: rgba(255,255,255,0.9);
}

/* Footer */
footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-map {
    height: 250px;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.contact-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.footer-contacts h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-contacts p {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-contacts a {
    color: var(--accent);
    text-decoration: none;
}

.footer-contacts a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Floating Callback Button */
.floating-callback {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.floating-callback.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    position: relative;
    max-width: 420px;
    margin: 10vh auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--gray);
}

.modal-close:hover {
    color: var(--danger);
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

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

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.mobile-menu p,
.mobile-menu a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .hero-form {
        max-width: 100%;
    }

    .pain-grid {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .calculator-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-info {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    nav {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 26px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-direction: column;
        gap: 30px;
    }

    .timeline::before {
        display: none;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .floating-callback {
        right: 12px;
        bottom: 12px;
        padding: 14px 16px;
    }
}

/* ─── Сообщения форм (успех / ошибка) ─────────────────────────────────── */
.form-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
