:root {
    --olive: #6b8e23;
    --olive-dark: #4f6b1a;
    --light: #f9f7f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    color: #333;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.ticker {
    background: #e63939;
    color: white;
    overflow: hidden;
    padding: 14px 0;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(230, 57, 57, 0.3);
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100px;
    animation: ticker-slide 20s linear infinite;
}

@keyframes ticker-slide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.main-container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.hero {
    display: flex;
    justify-content: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(107, 142, 35, 0.25);
    aspect-ratio: 3 / 3.85;
    max-height: 520px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.75);
    color: var(--olive-dark);
    border: none;
    width: 52px;
    height: 52px;
    font-size: 28px;
    font-weight: 300;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.15);
}

.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }

.hero-info h1 {
    font-size: 2.85rem;
    color: var(--olive-dark);
    line-height: 1.1;
}

.price {
    font-size: 3.9rem;
    font-weight: 800;
    color: var(--olive-dark);
    margin: 20px 0 25px;
}

.price span {
    font-size: 1.8rem;
    font-weight: 400;
}

.size-selector label,
.color-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
}

.size-selector select {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 14px;
    background: white;
}

.description {
    font-size: 1.22rem;
    color: #555;
    margin-bottom: 18px;
}

.description-note {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    background: #f8f6ed;
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 4px solid var(--olive);
}

.btn-order {
    width: 100%;
    background: var(--olive);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(107, 142, 35, 0.35);
}

.btn-order:hover {
    background: var(--olive-dark);
    transform: translateY(-3px);
}

.hero-order-btn {
    width: auto;
    min-width: 280px;
    padding: 20px 55px;
    font-size: 1.45rem;
    margin-top: 15px;
}

.info-spoilers {
    margin: 80px 0 60px;
}

.spoiler-item {
    margin-bottom: 12px;
    border: 1px solid #e0d9c0;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.spoiler-header {
    width: 100%;
    padding: 22px 28px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--olive-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.spoiler-header:hover {
    background: #f8f6ed;
}

.spoiler-icon {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--olive);
    transition: transform 0.3s ease;
    line-height: 1;
}

.spoiler-content {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fdfcf7;
    font-size: 1.08rem;
    color: #444;
}

.spoiler-content p,
.spoiler-content ul {
    margin-bottom: 16px;
}

.spoiler-content ul {
    padding-left: 20px;
}

.spoiler-content li {
    margin-bottom: 8px;
}

.product-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    min-width: 560px;
}

.product-table th,
.product-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8e2cf;
    font-size: 1rem;
    vertical-align: top;
}

.product-table th {
    background: #f3f0e6;
    color: var(--olive-dark);
    font-weight: 700;
}

.product-table tr:last-child td {
    border-bottom: none;
}

.reviews {
    margin-top: 80px;
    padding: 50px 0;
    border-top: 1px solid #ddd;
}

.reviews h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--olive-dark);
    margin-bottom: 50px;
}

.reviews-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.review-item {
    background: white;
    padding: 28px 32px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.review-item strong {
    display: block;
    font-size: 1.25rem;
    color: var(--olive-dark);
    margin-bottom: 10px;
}

.footer-ticker {
    background: var(--olive);
    color: white;
    padding: 22px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 100px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    padding: 55px 35px 35px;
    border-radius: 24px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--olive-dark);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.size-display {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.1rem;
}

.size-display {
    background: #f8f8f8;
    min-height: 52px;
    display: flex;
    align-items: center;
}

.color-selector {
    margin: 25px 0 30px;
}

.color-options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.color-option:hover img {
    transform: scale(1.08);
}

.color-option.active img {
    border-color: var(--olive);
    box-shadow: 0 0 0 4px rgba(107, 142, 35, 0.25);
}

.color-option span {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.privacy-modal-content {
    max-width: 720px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 55px 45px 40px;
}

.privacy-modal-content h2 {
    margin-bottom: 25px;
    text-align: center;
}

.privacy-text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #444;
}

.privacy-text h3 {
    margin: 25px 0 12px;
    color: var(--olive-dark);
    font-size: 1.25rem;
}

.privacy-text p {
    margin-bottom: 16px;
}

.privacy-link {
    color: white;
    text-decoration: underline;
    font-size: 1.05rem;
}

.privacy-link:hover {
    color: #e0f0c0;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 2.5rem;
    color: #777;
    cursor: pointer;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.close-btn:hover {
    color: #333;
    transform: scale(1.2);
}

.color-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 10px 0 20px;
}

.color-checkbox-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f8f6ed;
    border: 2px solid #e0d9c0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.color-checkbox-item:hover {
    background: #f0ede4;
    border-color: var(--olive);
}

.color-checkbox-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--olive);
    cursor: pointer;
    flex-shrink: 0;
}

.color-checkbox-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.color-checkbox-item .color-info {
    flex: 1;
}

.color-checkbox-item span {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.color-select {
    width: 100%;
    padding: 11px 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.05rem;
    background: white;
}

.total-price {
    font-size: 1.4rem;
    text-align: center;
    margin: 25px 0 15px;
    padding: 14px;
    background: #f0ede4;
    border-radius: 12px;
    font-weight: 700;
    color: var(--olive-dark);
}

@media (max-width: 960px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        justify-items: center;
    }

    .carousel {
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-info {
        width: 100%;
    }

    .hero-info h1 {
        font-size: 2.2rem;
    }

    .price {
        font-size: 2.8rem;
    }

    .hero-order-btn {
        display: block;
        margin: 15px auto 0;
    }
}

@media (max-width: 768px) {
    .spoiler-header {
        padding: 18px 22px;
        font-size: 1.15rem;
    }

    .modal {
        align-items: flex-start;
        padding: 12px;
    }

    .modal-content {
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        margin: 0 auto;
        border-radius: 18px;
    }

    .privacy-modal-content {
        max-height: calc(100dvh - 24px);
        padding: 48px 20px 24px;
    }

    .product-table {
        min-width: 100%;
    }

    .product-table th,
    .product-table td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        max-width: 95%;
    }

    .hero-order-btn {
        width: 100%;
        min-width: 0;
        max-width: 280px;
        margin: 15px auto 0;
        display: block;
    }

    .modal {
        padding: 8px;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 48px 14px 18px;
        border-radius: 16px;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 2rem;
    }

    .color-checkbox-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 12px;
    }

    .color-checkbox-item img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    .form-group input,
    .color-select {
        font-size: 1rem;
        padding: 10px;
    }

    .total-price {
        font-size: 1.1rem;
        padding: 10px;
    }

    .description-note {
        font-size: 0.95rem;
        text-align: left;
    }

    .product-table-wrap {
        overflow-x: visible;
    }

    .product-table,
    .product-table thead,
    .product-table tbody,
    .product-table tr,
    .product-table th,
    .product-table td {
        display: block;
        width: 100%;
    }

    .product-table {
        min-width: 0;
        background: transparent;
        margin: 16px 0;
    }

    .product-table tr:first-child {
        display: none;
    }

    .product-table tr {
        background: white;
        border: 1px solid #e8e2cf;
        border-radius: 14px;
        padding: 14px 16px;
        margin-bottom: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    }

    .product-table td {
        border: none;
        padding: 0;
        white-space: normal;
        word-break: break-word;
    }

    .product-table td:first-child {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--olive-dark);
        margin-bottom: 6px;
    }

    .product-table td:last-child {
        font-size: 1rem;
        color: #444;
        line-height: 1.5;
    }

    .product-table td::before {
        content: none;
    }
}
