/* Базові налаштування */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #24332b;
    background-color: #f5f7f5;
}

h1,
h2,
h3,
p {
    margin: 0;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select,
input[type="checkbox"] {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

section {
    padding: 36px 0;
    scroll-margin-top: 20px;
}

.section-title {
    margin-bottom: 20px;
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
}

:focus-visible {
    outline: 3px solid #c96a18;
    outline-offset: 4px;
}

/* Шапка */

.header {
    padding: 16px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #dce5de;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #245c3c;
    text-decoration: none;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.nav-list a {
    font-size: 14px;
    text-decoration: none;
}

.nav-list a:hover {
    color: #245c3c;
    text-decoration: underline;
}

/* Головний блок */

.hero {
    text-align: center;
    background-color: #eaf1eb;
}

.hero-label {
    margin-bottom: 12px;
    color: #52665a;
}

.hero-title {
    margin-bottom: 24px;
    font-size: 32px;
    line-height: 1.15;
}

.hero-image {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 24px;
    border-radius: 16px;
}

/* Ціни */

.price {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    margin-bottom: 24px;
}

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

.price-old {
    font-size: 24px;
    color: #68766d;
}

.price-new {
    font-size: 32px;
    font-weight: 700;
    color: #245c3c;
}

/* Таймер */

.countdown {
    margin-bottom: 24px;
}

.countdown-title {
    margin-bottom: 12px;
}

.countdown-values {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.countdown-item span:first-child {
    min-width: 64px;
    padding: 10px;
    border-radius: 8px;
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    background-color: #245c3c;
}

/* Кнопки замовлення */

.order-button {
    display: block;
    width: 100%;
    max-width: 360px;
    min-height: 48px;
    margin: 24px auto 0;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #a94e0a;
    cursor: pointer;
}

.order-button:hover:not(:disabled) {
    background-color: #873e08;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hero-note {
    margin-top: 12px;
    font-size: 14px;
}

/* Галерея */

.gallery {
    background-color: #ffffff;
}

.carousel {
    max-width: 480px;
    margin: 0 auto;
}

.carousel-slide img {
    width: 100%;
    border-radius: 12px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.carousel-controls button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #cbd8ce;
    border-radius: 8px;
    color: #24332b;
    background-color: #eaf1eb;
}

.carousel-counter {
    white-space: nowrap;
}

/* Переваги */

.benefits .container>p {
    margin-bottom: 20px;
    text-align: center;
}

.benefits-list {
    display: grid;
    gap: 16px;
}

.benefits-item {
    padding: 20px;
    border: 1px solid #dce5de;
    border-radius: 12px;
    background-color: #ffffff;
}

.benefits-item h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

/* Комплектація */

.equipment {
    background-color: #ffffff;
}

.equipment-list {
    max-width: 600px;
    margin: 0 auto;
}

.equipment-list li {
    padding: 12px 0;
    border-bottom: 1px solid #dce5de;
}

/* Додаткові товари */

.extras .container>p {
    margin-bottom: 20px;
    text-align: center;
}

.extras-list {
    display: grid;
    gap: 20px;
}

.extras-item {
    padding: 20px;
    border: 1px solid #dce5de;
    border-radius: 12px;
    background-color: #ffffff;
}

.extras-item img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px;
    border-radius: 8px;
}

.extras-item h3 {
    margin-bottom: 8px;
}

.extras-item p {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #245c3c;
}

.extras-item label,
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #245c3c;
}

/* Доставка */

.delivery {
    background-color: #eaf1eb;
}

.delivery-list {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
    counter-reset: steps;
}

.delivery-list li {
    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff;
    counter-increment: steps;
}

.delivery-list h3 {
    margin-bottom: 8px;
}

.delivery-list h3::before {
    content: counter(steps) ". ";
    color: #245c3c;
}

.delivery .container>p+p {
    margin-top: 8px;
}

/* Форма */

.order {
    background-color: #ffffff;
}

.order .container>p {
    margin-bottom: 12px;
    text-align: center;
}

.order-form {
    display: grid;
    gap: 16px;
    max-width: 480px;
    margin: 24px auto 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #b9c9bd;
    border-radius: 8px;
    color: #24332b;
    background-color: #ffffff;
}

.form-field textarea {
    resize: vertical;
}

.form-consent {
    flex-wrap: wrap;
    font-size: 14px;
}

.order-form .order-button {
    max-width: none;
    margin-top: 8px;
}

.form-status:empty {
    display: none;
}

/* Підвал */

.footer {
    padding: 28px 0;
    text-align: center;
    color: #ffffff;
    background-color: #183d29;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer .logo {
    color: #ffffff;
}

/* Ширші екрани */

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    section {
        padding: 56px 0;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-title {
        font-size: 44px;
    }

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

    .benefits-list,
    .delivery-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .extras-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #ffffff;
}

.carousel-caption {
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
}

.equipment-subtitle {
    margin: 28px 0 12px;
    font-size: 22px;
    text-align: center;
}




/* Карусель відгуків */

.reviews {
    background-color: #f0f5f0;
}

.reviews-intro {
    margin: 0 auto 28px;
    text-align: center;
    color: #52665a;
}

.reviews-carousel {
    max-width: 100%;
    margin: 0 auto;
}

.reviews-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 6px 2px 18px;
}

.reviews-list::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc(100% - 4px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #dce5de;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.review-stars {
    margin-bottom: 12px;
    font-size: 22px;
    letter-spacing: 2px;
    color: #e6a321;
}

.review-card h3 {
    margin-bottom: 4px;
    font-size: 19px;
}

.review-date {
    margin-bottom: 16px;
    font-size: 13px;
    color: #78867b;
}

.review-text {
    flex-grow: 1;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
}

.review-product {
    padding-top: 12px;
    border-top: 1px solid #e5ebe6;
    font-size: 13px;
    color: #52665a;
}

.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
}

.reviews-controls button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #cbd8ce;
    border-radius: 8px;
    background-color: #ffffff;
    color: #245c3c;
    font-weight: 700;
}

.reviews-controls button:hover:not(:disabled) {
    background-color: #e0ebe2;
}

.reviews-counter {
    min-width: 42px;
    text-align: center;
    font-weight: 700;
}

.reviews-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 28px auto 0;
    padding: 14px 24px;
    border-radius: 10px;
    background-color: #245c3c;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.reviews-link:hover {
    background-color: #183d29;
}

@media (min-width: 650px) {
    .review-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (min-width: 1000px) {
    .review-card {
        flex-basis: calc((100% - 32px) / 3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-list {
        scroll-behavior: auto;
    }
}

/* Підсумок замовлення */

.order-summary {
    max-width: 480px;
    margin: 24px auto;
    padding: 22px;
    border: 1px solid #dce5de;
    border-radius: 14px;
    background-color: #f0f5f0;
}

.order-summary h3 {
    margin-bottom: 18px;
    font-size: 21px;
    color: #245c3c;
}

.summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.summary-row span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 700;
}

.summary-total {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #cbd8ce;
    font-size: 22px;
    color: #245c3c;
}

.summary-note {
    margin-top: 12px;
    font-size: 13px;
    color: #68766d;
}

/* Примітка про довжину спінінгів */

.equipment-note {
    max-width: 650px;
    margin: 24px auto;
    padding: 18px 20px;
    border-left: 4px solid #245c3c;
    border-radius: 8px;
    background-color: #eaf1eb;
    color: #24332b;
    font-size: 15px;
    line-height: 1.6;
}