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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.catalog {
    padding: 4rem 0;
    background: var(--light-gray);
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-emoji {
    font-size: 5rem;
}

.product-info {
    padding: 1.5rem;
}

.product-badge {
    display: inline-block;
    background: #fbbf24;
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1rem;
}

.product-features li {
    padding: 4px 0;
    font-size: 0.9rem;
}

.encyclopedia {
    padding: 4rem 0;
    background: var(--white);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.accordion-item:hover {
    box-shadow: var(--shadow);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 1.5rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--light-gray);
}

.accordion-icon {
    font-size: 1.5rem;
}

.accordion-arrow {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 0.8rem;
    color: var(--gray);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
    background: var(--light-gray);
    animation: fadeIn 0.3s ease;
}

.accordion-item.active .accordion-content {
    display: block;
}

.info-card h4 {
    margin: 1rem 0 0.5rem;
    color: var(--primary);
}

.info-card p {
    color: var(--dark);
    line-height: 1.7;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 6px 0;
    padding-left: 8px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.info-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.tip-box {
    background: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}

.calculator {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.calculator .section-title {
    -webkit-text-fill-color: var(--white);
}

.calculator .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.calc-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.5);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--white);
}

.input-group select option {
    color: var(--dark);
    background: var(--white);
}

.calc-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
}

.calc-result {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.result-main {
    margin-bottom: 1.5rem;
}

.result-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.result-unit {
    font-size: 1.1rem;
    opacity: 0.8;
}

.result-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.detail-item {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
}

.detail-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.result-hint {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 1rem;
    line-height: 1.6;
}

.compatibility {
    padding: 4rem 0;
    background: var(--light-gray);
}

.compat-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.compat-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 700px;
}

.compat-table th,
.compat-table td {
    padding: 14px 12px;
    text-align: center;
    border: 1px solid var(--light-gray);
}

.compat-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.compat-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: var(--light-gray);
}

.compat-yes {
    background: #d1fae5;
}

.compat-maybe {
    background: #fef3c7;
}

.compat-self {
    background: var(--light-gray);
    color: var(--gray);
}

.compat-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-icon {
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.compat-tips {
    max-width: 900px;
    margin: 0 auto;
}

.compat-tips h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.rule-card {
    background: var(--white);
    padding: 1.2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.rule-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.rule-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.myths {
    padding: 4rem 0;
    background: var(--white);
}

.myths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.myth-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.myth-card:hover {
    transform: translateY(-5px);
}

.myth-header {
    padding: 0.8rem 1.2rem;
    text-align: center;
}

.myth-false {
    background: #fee2e2;
}

.myth-label {
    background: #dc2626;
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.myth-body {
    padding: 1.2rem;
    background: var(--white);
}

.myth-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.myth-body p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.selector {
    padding: 4rem 0;
    background: var(--white);
}

.selector-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.selector-form {
    max-width: 800px;
    margin: 0 auto;
}

.selector-step {
    display: none;
}

.selector-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.selector-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.option-card:hover {
    border-color: var(--primary);
    background: #f0f0ff;
}

.option-card input[type="radio"] {
    display: none;
}

.option-card input[type="radio"]:checked + .option-icon {
    transform: scale(1.2);
}

.option-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.option-text {
    font-weight: 600;
    text-align: center;
}

.selector-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.selector-result {
    display: none;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.selector-result.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.selector-result h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.result-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-product-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.result-product-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.result-product-card .product-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.result-tip {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

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

.about {
    padding: 4rem 0;
    background: var(--light-gray);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.contacts {
    padding: 4rem 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

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

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.disclaimer {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

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

    .calc-inputs {
        grid-template-columns: 1fr;
    }

    .result-number {
        font-size: 3rem;
    }

    .result-details {
        flex-direction: column;
        gap: 1rem;
    }

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

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

    .info-table {
        font-size: 0.85rem;
    }

    .info-table th,
    .info-table td {
        padding: 8px;
    }
}
