/* =========================================
   ЧОХОЛ ДЛЯ ПІДВІСНОГО КРІСЛА-КОКОНА
   css/styles.css
   Колірна гама: темно-оливковий фон,
   золотий акцент, кремовий текст
   ========================================= */

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

:root {
    --bg:           #0F1A0E;
    --card-bg:      #1A2B18;
    --card-border:  #2A3D28;
    --accent:       #D4A017;
    --accent-dark:  #8B6914;
    --accent-glow:  rgba(212,160,23,0.20);
    --text:         #F5F0E8;
    --text-muted:   #A8B89E;
    --text-dark:    #7A9070;
    --white:        #ffffff;
    --green-deep:   #243520;
}

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

/* ---- WRAPPER ---- */
.main_wrapper {
    max-width: 480px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* =========================================
   1. ВЕРХНЯ ПЛАШКА — РЕЙТИНГ
   ========================================= */
.title_block {
    background: linear-gradient(135deg, #1A2B18, #243520);
    border-bottom: 2px solid var(--accent-dark);
    padding: 10px 16px;
}

.reyt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

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

.reyt-block {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reyt-block b {
    font-size: 17px;
    font-weight: 900;
    color: var(--accent);
}

.stars-img {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 1px;
}

.reyt-desc {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.HowManyBought {
    text-align: right;
    font-size: 12px;
}

.HowManyBought p {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.bought-label {
    color: var(--text-muted);
    font-weight: 400;
}

.BoughtTimes {
    color: var(--accent);
    font-weight: 800;
}

.BoughtLast {
    color: var(--text-muted);
    font-size: 11px;
}

.BoughtLast .spanminutes {
    color: var(--accent);
    font-weight: 700;
}

/* =========================================
   2. ГОЛОВНИЙ БАНЕР
   ========================================= */
.hero-img {
    width: 100%;
}

.hero-img img {
    width: 100%;
    display: block;
}

/* =========================================
   3. БЛОК ПЕРЕВАГ
   ========================================= */
.benefits_list {
    display: flex;
    justify-content: space-around;
    background: var(--card-bg);
    border-top: 2px solid var(--card-border);
    border-bottom: 2px solid var(--card-border);
    padding: 12px 8px;
    gap: 4px;
}

.benefit_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.benefit-icon {
    font-size: 20px;
    line-height: 1;
}

/* =========================================
   4. БЛОК ЦІНИ
   ========================================= */
.metr_count {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #1A2B18, #0F1A0E);
    border-bottom: 1px solid var(--card-border);
}

.metr_new_count,
.metr_old_count {
    text-align: center;
}

.metr_text_count {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.metr_text_count span {
    background: var(--accent-dark);
    color: var(--white);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
}

.metr_new_count .metr_value {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.metr_old_count .metr_value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: line-through;
    line-height: 1;
}

/* =========================================
   5. КНОПКА CTA
   ========================================= */
.button {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 17px 20px;
    background: linear-gradient(135deg, #D4A017, #B8860B);
    color: #0F1A0E;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    box-shadow: 0 6px 24px rgba(212,160,23,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(212,160,23,0.55);
    color: #0F1A0E;
    text-decoration: none;
}

.button:active {
    transform: translateY(0);
}

/* Ефект flare */
.flare {
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-20deg);
    animation: flare-anim 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes flare-anim {
    0%   { left: -75%; opacity: 0; }
    20%  { opacity: 1; }
    50%  { left: 125%; opacity: 0; }
    100% { left: 125%; opacity: 0; }
}

/* =========================================
   6. ЗАЛИШОК ТОВАРУ
   ========================================= */
.products_count {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-top: 12px;
    padding: 0 16px;
}

.products_count .remained {
    color: var(--accent);
    font-weight: 900;
}

.text_small {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 20px;
}

.text_small .spanminutes {
    color: var(--accent);
}

/* =========================================
   7. КОНТЕНТ-БЛОКИ
   ========================================= */
.content-block {
    padding: 0 16px;
    margin-bottom: 4px;
}

.title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    padding: 20px 0 10px;
    font-family: 'Montserrat Alternates', sans-serif;
}

/* White card (темна версія) */
.white-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: 'Montserrat Alternates', sans-serif;
    line-height: 1.4;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.white-card p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

.white-card p strong {
    color: var(--accent);
}

/* =========================================
   8. ФОТО БЛОК
   ========================================= */
.photo-card {
    width: 100%;
    margin-bottom: 4px;
}

.photo-card img {
    width: 100%;
    display: block;
}

/* =========================================
   9. ВІДЕО БЛОК
   ========================================= */
.video-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-video {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #000;
}

.video-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 0 16px 10px;
}

/* =========================================
   10. СПИСОК ПЕРЕВАГ
   ========================================= */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

.features-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.features-list li strong {
    color: var(--accent);
}

/* =========================================
   11. КРОКИ-ІНСТРУКЦІЯ
   ========================================= */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

.steps-list li:last-child {
    border-bottom: none;
}

.step-num {
    min-width: 28px;
    height: 28px;
    width: 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0F1A0E;
    font-weight: 900;
    font-size: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.steps-list strong {
    color: var(--accent);
}

/* =========================================
   12. ТАБЛИЦЯ ХАРАКТЕРИСТИК
   ========================================= */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.specs-table tr {
    border-bottom: 1px solid var(--card-border);
}

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

.specs-table td {
    padding: 9px 6px;
    vertical-align: middle;
    color: var(--text);
}

.specs-table td:first-child {
    color: var(--text-muted);
    width: 45%;
    font-size: 12px;
}

.specs-table td strong {
    color: var(--text);
}

/* =========================================
   13. ВІДГУКИ
   ========================================= */
.review-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0F1A0E;
    font-weight: 900;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-info {
    flex: 1;
}

.review-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

.review-info small {
    font-size: 11px;
    color: var(--text-muted);
}

.review-stars {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 1px;
}

.review-message p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.65;
}

.review-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* =========================================
   14. ЯК ЗАМОВИТИ
   ========================================= */
.order-step {
    padding: 0 16px 16px;
}

.order-step .title {
    margin-bottom: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px;
}

.step-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

.step-content b {
    display: block;
    font-size: 15px;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 4px;
}

.step-content p {
    margin: 0;
    color: var(--text-muted);
}

.order-color {
    color: var(--accent);
    font-weight: 700;
}

/* =========================================
   15. ФІНАЛЬНИЙ БЛОК / OFFER SECTION
   ========================================= */
.offer_section {
    background: linear-gradient(180deg, #1A2B18 0%, #0F1A0E 100%);
    padding-bottom: 30px;
    border-top: 2px solid var(--accent-dark);
}

/* =========================================
   16. ТАЙМЕР
   ========================================= */
.timer_block {
    background: var(--card-bg);
    border: 2px solid var(--accent-dark);
    border-radius: 16px;
    margin: 16px;
    padding: 14px;
    text-align: center;
}

.timer_block > p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.timer_item {
    text-align: center;
    min-width: 56px;
    background: #0F1A0E;
    border-radius: 10px;
    padding: 6px 8px;
    border: 1px solid var(--card-border);
}

.timer_item .count {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.timer_item .text {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
}

.timer_sep {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 14px;
}

/* =========================================
   17. ФОРМА
   ========================================= */
.form-header {
    text-align: center;
    padding: 16px 16px 10px;
}

.form-header strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Montserrat Alternates', sans-serif;
}

.form-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.order_form {
    padding: 0 16px;
}

.field {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 12px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 50px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.field::placeholder {
    color: var(--text-dark);
}

.field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Телефонне поле */
.phone-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.phone-prefix {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.phone-input {
    padding-left: 60px !important;
    margin-bottom: 0 !important;
}

/* Кнопка форми */
.form-button {
    margin: 4px 0 0 0;
    width: 100%;
}

/* =========================================
   18. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 20px 16px 10px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links {
    margin-bottom: 6px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-sep {
    margin: 0 6px;
    color: var(--card-border);
}

/* =========================================
   19. STICKY BOTTOM
   ========================================= */
.fixed-message {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to top, #0F1A0E 60%, transparent);
    padding: 12px 16px 18px;
    display: none;
}

.fixed-message .button {
    width: 100%;
    margin: 0;
    box-shadow: 0 8px 32px rgba(212,160,23,0.5);
}

/* =========================================
   RESPONSIVE: max-width 480px
   ========================================= */
@media (max-width: 480px) {
    .reyt-block b  { font-size: 15px; }
    .stars-img     { font-size: 12px; }
    .timer_item    { min-width: 48px; }
    .timer_item .count { font-size: 1.7rem; }
    .timer_sep     { font-size: 1.5rem; }
}
