/* Базовые стили */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    background-color: #f8f8f8;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Усиление визуала при прокрутке */
.header.header--scrolled {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    background-color: rgba(255,255,255,0.98);
}

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

.nav__link {
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: #6cbe45;
}

.cart-icon {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.cart-icon:hover {
    color: #6cbe45;
}

.cart-icon__icon {
    font-size: 20px;
    transition: color 0.3s ease;
}

.cart-icon__count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #6cbe45;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: #6cbe45; /* Зелёный */
    color: #fff;
}

.btn--primary:hover {
    background-color: #5aa63c;
}

/* Общие стили секций */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    height: 93vh;
    background-image: url('./image/two.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-section__layout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: none;
    margin-left: 40px;
}

.hero-section .container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero-section__content {
    max-width: 540px;
    padding: 20px 0;
    margin-left: 0;
}

.hero-section__title {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #333;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

.hero-section__subtitle {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 40px;
    color: #555;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}



/* Advantages Section */
.advantages-section {
    padding: 80px 0;
    background-color: #fff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.advantages-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.advantages-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}

.advantage-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px 20px;
    flex-basis: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-icon img {
    width: 48px;
    height: 48px;
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
}

.advantage-product-preview {
    width: 140px;
    height: 60px;
    border-radius: 8px;
    margin-top: auto; /* Прижимает блок к низу карточки */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.advantage-product-preview.green { background-color: #556B2F; }
.advantage-product-preview.orange { background-color: #FF9800; }
.advantage-product-preview.black { background-color: #333; }

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.how-it-works__content {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.how-it-works__image {
    flex: 1;
    max-width: 500px;
}

.how-it-works__main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.how-it-works__text {
    flex: 1;
    max-width: 500px;
}

.how-it-works__description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.how-it-works__subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 40px 0 20px 0;
}

.how-it-works__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-it-works__benefits li {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.how-it-works__benefits li::before {
    content: '✓';
    color: #6cbe45;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 20px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 24px;
    font-weight: bold;
    color: #6cbe45;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 30px 20px 30px;
}

.faq-answer p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Modal для увеличения изображений */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #6cbe45;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    font-size: 18px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Делаем изображения кликабельными */
.product-page__main-image,
.thumbnail,
.how-it-works__main-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-page__main-image:hover,
.thumbnail:hover,
.how-it-works__main-image:hover {
    transform: scale(1.02);
}

/* Стили для корзины */
.cart-content {
    background-color: #fff;
    margin: 1% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f8f8;
    border-radius: 15px 15px 0 0;
}

.cart-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.cart-close {
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: #6cbe45;
}

.cart-body {
    padding: 10px 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fafafa;
}

.cart-item-image img {
    width: 100px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.cart-item-details p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.quantity-selector {
    margin-bottom: 15px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

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

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: #6cbe45;
    color: white;
    border-color: #6cbe45;
}

.ci-qty {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.cart-item-price {
    font-size: 20px;
    font-weight: bold;
    color: #6cbe45;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-form h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 3px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #6cbe45;
}

.field-error {
    margin-top: 6px;
    color: #d93025;
    font-size: 13px;
    min-height: 16px;
}

.has-error input {
    border-color: #d93025;
}

.contact-method {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-method label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.contact-method input[type="radio"] {
    margin: 0;
}

.cart-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f8f8;
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 20px;
    color: #333;
}

.cart-total strong {
    color: #6cbe45;
    font-size: 24px;
}

/* удалены кастомные стили скроллбара и кнопки заказа */

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

/* Product Section */
.product-page-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.product-page__layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.product-page__gallery {
    flex: 1;
    max-width: 400px;
}

.product-page__main-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-page__thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #6cbe45;
}

.product-page__details {
    flex: 1;
    max-width: 500px;
}

.product-page__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.product-page__price {
    font-size: 30px;
    font-weight: 700;
    color: #6cbe45;
    margin-bottom: 30px;
}

.product-page__color-selector p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    padding: 3px;
    box-sizing: border-box;
    background-color: white;
}

.color-option.active,
.color-option:hover {
    border-color: #333;
}

.color-option--green { 
    background-color: #4CAF50; 
    background-clip: content-box;
}
.color-option--orange { 
    background-color: #FF9800; 
    background-clip: content-box;
}
.color-option--black { 
    background-color: #333; 
    background-clip: content-box;
}

.product-page__features-list {
    margin-bottom: 30px;
}

.product-page__features-list li {
    font-size: 18px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #555;
}

.product-page__features-list li::before {
    content: '✔';
    color: #6cbe45;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.add-to-cart-btn {
    width: 100%;
    font-size: 20px;
    padding: 20px;
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .cart-icon__icon {
        font-size: 18px;
    }

    .hero-section {
        height: 100vh;
        padding: 20px 0;
    }

    .hero-section__layout {
        justify-content: center;
        text-align: center;
    }

    .hero-section__title {
        font-size: 40px;
    }

    .hero-section__subtitle {
        font-size: 16px;
    }

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

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

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

    .product-page__gallery {
        max-width: 100%;
    }

    .product-page__main-image {
        max-width: 100%;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .advantages-grid {
        flex-direction: column;
        gap: 20px;
    }

    .how-it-works__content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .how-it-works__image {
        max-width: 100%;
    }

    .how-it-works__text {
        max-width: 100%;
    }

    .how-it-works__description {
        font-size: 16px;
    }

    .how-it-works__subtitle {
        font-size: 20px;
    }

    .how-it-works__benefits li {
        font-size: 16px;
    }

    .faq-question {
        padding: 20px 15px;
    }

    .faq-question h3 {
        font-size: 16px;
        padding-right: 15px;
    }

    .faq-icon {
        font-size: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 20px 15px;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-section__title {
        font-size: 32px;
    }

    .hero-section__subtitle {
        font-size: 14px;
    }
    .cart-header h2 {
        font-size: 18px;
    }

    .cart-close {
        font-size: 24px;
    }

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

    .cart-form h3 {
        font-size: 18px;
    }
    .logo {
        font-size: 18px;
    }
}
/* Адаптив корзины */
@media (max-width: 768px) {
    .cart-content {
        width: 95%;
        margin: 2% auto;
    }

    .cart-body {
        padding: 10px 15px;
    }

    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .cart-item-image img {
        width: 120px;
        height: auto;
    }

    .cart-item-details h3 {
        font-size: 16px;
    }

    .cart-item-details p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .quantity-controls {
        justify-content: center;
    }

    .ci-qty {
        width: 50px;
        height: 32px;
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 18px;
    }

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

    .cart-total {
        font-size: 18px;
    }

    .cart-total strong {
        font-size: 20px;
    }

    #orderBtn {
        width: 100%;
    }
    /* перестраиваем шапку */
    .header__inner {
        flex-direction: row;
        justify-content: space-between;
    }

    /* скрываем меню по умолчанию */
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px;
        display: none;
        box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    }

    .nav.nav--open {
        display: flex;
    }

    .nav__link {
        font-size: 16px;
        padding: 10px 0;
    }

    /* бургер */
    .burger {
        width: 28px;
        height: 20px;
        position: relative;
        cursor: pointer;
        display: block;
    }

    .burger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #333;
        transition: all 0.3s ease;
    }

    .burger span:nth-child(1) { top: 0; }
    .burger span:nth-child(2) { top: 8px; }
    .burger span:nth-child(3) { top: 16px; }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }
}

/* ===== Адаптив шапки ===== */
@media (max-width: 992px) {
    .logo {
        font-size: 20px;
    }

    .nav {
        gap: 20px;
    }

    .nav__link {
        font-size: 15px;
    }

    .cart-icon {
        font-size: 14px;
    }
}
