/* Variables */
:root {
    --primary: #D90000; /* Red from expert-lb.ru */
    --primary-hover: #b30000;
    --text-main: #2c3e50;
    --text-muted: #5c6e7e;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(217, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

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

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-main);
    font-weight: 500;
}

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

.header-contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus,
.mobile-menu-btn:active {
    color: var(--primary-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 0, 0, 0.2);
}

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.w-100 {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(217,0,0,0.05) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(-15deg);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

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

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-composition-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 4px solid #fff;
    object-fit: cover;
}

.badge {
    display: inline-block;
    background: rgba(217, 0, 0, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #111827;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Section Common */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--bg-light);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    white-space: nowrap;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Featured Product Card Redesign */
.featured-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 40px;
}

.fpc-header {
    background: linear-gradient(135deg, #f0f4fb 0%, #ffffff 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.fpc-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpc-image {
    max-height: 400px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }

.fpc-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fpc-title {
    font-size: 32px;
    color: #1a233a;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
}

.fpc-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.5;
}

.fpc-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
}

.fpc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-solid {
    background: #b91c1c;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.badge-outline {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.fpc-body {
    padding: 40px;
}

.fpc-intro-text {
    font-size: 16px;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
}

.fpc-intro-text strong {
    color: #0f172a;
    font-weight: 700;
}

.fpc-volumes-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

.volumes-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

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

.vol-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.vol-img {
    width: 40px;
    height: 60px;
    object-fit: contain;
}

.vol-icon-placeholder {
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.vol-text {
    display: flex;
    flex-direction: column;
}

.vol-text strong {
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 4px;
}

.vol-text span {
    font-size: 14px;
    color: #64748b;
}

.fpc-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.fpc-trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.fpc-trust-list li {
    font-size: 15px;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.fpc-actions-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.fpc-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.btn-fpc {
    padding: 14px 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-fpc.btn-primary:hover {
    background: #b91c1c;
}

.btn-fpc.btn-outline {
    border: 1px solid #e2e8f0;
    color: #334155;
}

.btn-fpc.btn-outline:hover {
    background: #f8fafc;
}

.fpc-microtext {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.fpc-composition-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 20px;
}

.fpc-composition-img img {
    max-height: 200px;
    object-fit: contain;
}

/* Responsive FPC */
@media (max-width: 1024px) {
    .fpc-header, .fpc-footer-grid {
        grid-template-columns: 1fr;
    }
    .volumes-grid {
        grid-template-columns: 1fr;
    }
    .fpc-actions-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card.highlight {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: #fff;
    border-bottom: 1px solid var(--border);
}

.product-image-wrapper {
    position: relative;
    background-color: #fff;
    padding: 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-enhanced {
    width: 100%;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.08));
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-enhanced {
    transform: scale(1.05) translateY(-5px);
}

.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-item {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(217,0,0,0.2);
}

.badge-outline {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: none;
}

.product-content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--text);
}

.product-subtitle {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.product-details, .product-details-modern {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.product-details-modern {
    background: #f8fafc;
}

.details-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.trust-list li {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
}

.action-microtext {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mt-auto {
    margin-top: auto;
}

.doc-link {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--text-muted);
}

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

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.adv-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.adv-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.adv-desc {
    color: var(--text-muted);
    font-size: 15px;
}

/* Certificates */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.cert-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    transition: var(--transition);
    height: 350px;
}

.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.gallery-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.gallery-card:hover {
    box-shadow: var(--shadow-hover);
}

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

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px; /* arbitrary large value for animation */
}

/* Form Elements */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 16px;
    transition: var(--transition);
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 0, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Footer Section */
.footer {
    background: #111827;
    color: #f9fafb;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 24px;
}

.footer-logo .logo-accent {
    color: #ff4a4a;
}

.footer-desc {
    color: #9ca3af;
    margin-bottom: 32px;
    max-width: 400px;
}

.footer-contacts p {
    margin-bottom: 12px;
    color: #9ca3af;
}

.footer-contacts a {
    color: #fff;
    font-weight: 500;
}

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

.footer-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer .form-control::placeholder {
    color: #9ca3af;
}

.footer .form-control:focus {
    border-color: #ff4a4a;
    box-shadow: 0 0 0 3px rgba(255, 74, 74, 0.2);
}

.form-policy {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 16px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    color: #9ca3af;
    font-size: 14px;
}

.footer-requisites {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .image-modal-content {
    transform: scale(1);
}

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

.image-modal-content .close-modal {
    top: -40px;
    right: 0;
    color: #fff;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 300;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 40px;
    }
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .header-contact {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .catalog-grid, .advantages-grid, .cert-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 60px 0;
    }
}
