/* ============================================================
   DOBROLAD v6 — українська тематика, підсилена:
   пшеничне тло, глибокий синій + медовий жовтий, орнаменти
   вишиванки. Лейаут: десктоп — оффер-картка, мобільний — все
   на першому екрані. Вся сторінка — вузька центрована колонка.
   Підключати ПІСЛЯ styles.css + landing.css.
   ============================================================ */

:root {
  --bg: #FBF7EE;
  --bg-card: #FFFFFF;
  --bg-soft: #F3ECDC;
  --ink: #171B26;
  --ink-soft: #2E3442;
  --ink-mute: #6E6A5E;
  --line: #E2D9C4;
  --line-soft: #ECE5D2;
  --accent: #1B4FA0;
  --accent-hover: #143C7C;
  --accent-soft: #E8EFFA;
  --cta: #1B4FA0;
  --cta-hover: #143C7C;
  --gold: #D9A514;
  --red: #B3271E;
  --shadow-sm: none;
  --shadow-md: 0 1px 0 rgba(23,27,38,.05);
  --shadow-lg: 0 12px 30px rgba(23,27,38,.08);
  --font-sans: 'Roboto', BlinkMacSystemFont, -apple-system, Arial, 'Segoe UI', Helvetica, sans-serif;
  --font-display: 'Unbounded', 'Roboto', sans-serif;
}

/* Уся сторінка — вузька центрована колонка (~780px) на світлому тлі */
body { background: var(--bg); font-family: var(--font-sans); }
html, body { overflow-x: clip; }
.page-frame { max-width: 780px; margin: 0 auto; }

.v4-shell, .v4-wrap { max-width: 100%; margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .v4-shell, .v4-wrap { padding: 0 16px; } }

/* Секції з фоном — охайні скруглені блоки */
.v4-section.bg-soft { border-radius: 16px; margin: 0 20px; padding: 40px 24px; }
@media (max-width: 640px) { .v4-section.bg-soft { margin: 0 10px; padding: 30px 14px; } }
.v4-section.bg-soft .v4-wrap { padding: 0; }

/* Топбар і стрічка — на всю ширину екрана */
.v5-ribbon, .v4-topbar { margin: 0 calc(50% - 50vw); }

/* Sticky CTA — по ширині колонки */
.sticky-cta-inner { max-width: 780px; }

/* Ледь помітний фон "хрестикової вишивки" */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg stroke='%231B4FA0' stroke-width='1' opacity='.05'%3E%3Cpath d='M8 8l4 4M12 8l-4 4'/%3E%3C/g%3E%3Cg stroke='%23D9A514' stroke-width='1' opacity='.06'%3E%3Cpath d='M26 26l4 4M30 26l-4 4'/%3E%3C/g%3E%3C/svg%3E");
}

/* Типографіка */
h1, h2, h3, h4, .order-form-title, .offer-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h3, h4 { font-weight: 500; }
p { color: var(--ink-soft); }

/* Кнопки */
.btn {
  border-radius: 8px;
  text-transform: none;
  letter-spacing: .01em;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); transform: none; box-shadow: inset 0 -3px 0 var(--gold); }
.btn-lg { padding: 17px 36px; font-size: 15.5px; }

/* Синьо-жовта стрічка */
.v5-ribbon { height: 4px; background: linear-gradient(180deg, #1B4FA0 0%, #1B4FA0 50%, #D9A514 50%, #D9A514 100%); }

/* Орнамент-роздільник */
.v5-ornament {
  height: 14px;
  margin: 0 auto;
  max-width: 280px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M7 1L13 7L7 13L1 7Z' fill='none' stroke='%231B4FA0' stroke-width='1.4'/%3E%3Cpath d='M21 1L27 7L21 13L15 7Z' fill='none' stroke='%23D9A514' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: .85;
}
.v5-ornament.mt { margin-top: 26px; }

/* Багата орнаментна стрічка (під шапкою і над футером) */
.v6-band {
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M11 2L20 11L11 20L2 11Z' fill='none' stroke='%231B4FA0' stroke-width='1.6'/%3E%3Cpath d='M11 7L15 11L11 15L7 11Z' fill='%23D9A514'/%3E%3Cpath d='M33 2L42 11L33 20L24 11Z' fill='none' stroke='%23D9A514' stroke-width='1.6'/%3E%3Cpath d='M33 7L37 11L33 15L29 11Z' fill='%231B4FA0'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  margin: 6px 20px 0;
}
@media (max-width: 640px) { .v6-band { margin: 4px 16px 0; } }

/* Шапка */
.v4-topbar { text-align: center; font-size: 12.5px; letter-spacing: .03em; color: #fff; background: var(--ink); border-bottom: none; padding: 8px 14px; }
.v4-topbar strong { color: var(--gold); }
.v4-brandbar { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.v4-brand { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.v4-brand .dot { color: var(--gold); }
.v4-phone { font-size: 14px; font-weight: 700; color: var(--accent); }

/* Бейдж "працюємо для українських домівок" */
.v6-ua-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 12px auto 0; max-width: 480px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #C9D9F2; border-radius: 999px; padding: 7px 16px;
}
.v6-ua-badge svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

/* HERO */
.v4-title { text-align: center; padding: 26px 20px 4px; }
.v4-title h1 { font-size: clamp(1.55rem, 4vw, 2.4rem); line-height: 1.18; }
.v4-title .sub { color: var(--ink-soft); font-size: 1.02rem; margin-top: 8px; }
.v4-rating { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.v4-rating .stars { color: var(--gold); letter-spacing: 2px; }

/* Оффер: фото навпроти галочок, ціна під фото, таймер+кнопка праворуч */
.v4-offer {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-areas:
    "photo usps"
    "prices deal";
  column-gap: 30px;
  row-gap: 16px;
  align-items: center;
  padding: 22px 20px 30px;
}
.v4-photo { grid-area: photo; }
.v4-usps { grid-area: usps; align-self: center; }
.v4-prices { grid-area: prices; }
.v4-deal { grid-area: deal; align-self: start; }
.v4-photo { position: relative; }
.v4-photo img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--gold); }
.v4-badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--ink); font-family: var(--font-sans); font-weight: 800; font-size: 13.5px; letter-spacing: .04em; padding: 7px 13px; border-radius: 7px; z-index: 2; }

.v4-usps { display: grid; gap: 12px; margin-bottom: 0; }
.v4-usps li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.45; }
.v4-usps svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.v4-prices { border-top: 2px solid var(--gold); padding-top: 12px; margin-bottom: 0; text-align: center; }
.v4-price-old { font-size: 15px; color: var(--ink-mute); }
.v4-price-now { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 2px; }
.v4-price-now .num { font-size: 37px; font-weight: 800; font-family: var(--font-sans); color: var(--ink); letter-spacing: -0.02em; }
.v4-price-now .save { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 6px; }

.v4-timer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.v4-timer .lbl { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .02em; }
.v4-timer .cells { display: flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; }
.v4-timer .c { font-size: 20px; font-weight: 800; color: #fff; background: var(--accent); min-width: 34px; text-align: center; border-radius: 7px; padding: 4px 5px; }
.v4-timer .sep { font-weight: 800; color: var(--ink-mute); }
.v4-cta-note { text-align: center; }

.v4-cta-note { font-size: 12.5px; color: var(--ink-mute); margin-top: 10px; }

/* Мобільний: усе на першому екрані */
@media (max-width: 760px) {
  .v4-title { padding: 12px 16px 2px; }
  .v4-title h1 { font-size: 1.32rem; }
  .v4-title .sub { display: none; }
  .v4-rating { margin-top: 4px; font-size: 12.5px; }
  .v4-offer { grid-template-columns: 1fr; grid-template-areas: "photo" "usps" "prices" "deal"; row-gap: 10px; padding: 12px 16px 20px; }
  .v4-photo img { max-height: 32dvh; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold); }
  .v4-usps { gap: 6px; }
  .v4-usps li { font-size: 13.5px; }
  .v4-usps li:nth-child(n+3) { display: none; }
  .v4-prices { padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-align: left; }
  .v4-price-now .num { font-size: 29px; }
  .v4-timer { margin-bottom: 12px; justify-content: space-between; }
}

/* Секції */
.v4-section { padding: 46px 0; }
.v4-head { text-align: center; margin-bottom: 28px; }
.v4-head h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 8px; }
.v4-head p { color: var(--ink-soft); max-width: 540px; margin: 0 auto; }

/* Заголовки секцій з орнаментними "вусами" */
.v4-head h2 { display: inline-flex; align-items: center; gap: 14px; }
.v4-head h2::before, .v4-head h2::after {
  content: ''; width: 28px; height: 12px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Cpath d='M6 1L11 6L6 11L1 6Z' fill='none' stroke='%23D9A514' stroke-width='1.5'/%3E%3Cpath d='M20 1L25 6L20 11L15 6Z' fill='none' stroke='%231B4FA0' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
@media (max-width: 480px) { .v4-head h2::before, .v4-head h2::after { display: none; } }

.v4-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-bottom: 34px; }
.v4-ab:last-child { margin-bottom: 0; }
.v4-ab.rev .img { order: 2; }
.v4-ab .img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.v4-ab h3 { font-size: 19px; margin-bottom: 8px; }
.v4-ab p { font-size: 15px; line-height: 1.65; }
@media (max-width: 640px) {
  .v4-ab, .v4-ab.rev { grid-template-columns: 1fr; gap: 12px; }
  .v4-ab.rev .img { order: 0; }
}

/* Характеристики */
.v4-chars { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.v4-char { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.v4-char:last-child { border-bottom: none; }
.v4-char .k { color: var(--ink-soft); }
.v4-char .v { font-weight: 600; color: var(--ink); text-align: right; }

/* Відгуки */
.v4-revnum { text-align: center; margin-bottom: 24px; }
.v4-revnum .num { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: var(--accent); line-height: 1; }
.v4-revnum p { color: var(--ink-soft); margin-top: 6px; }
.v4-review { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 20px 22px; margin-bottom: 12px; }
.v4-review:nth-child(even) { border-left-color: var(--gold); }
.v4-review .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }
.v4-review .txt { font-size: 15.5px; color: var(--ink); line-height: 1.65; margin-bottom: 10px; }
.v4-review .who { font-size: 13px; color: var(--ink-mute); }
.v4-review .who b { color: var(--ink); font-weight: 600; }

/* Кроки: номери у вишиваних ромбах */
.v4-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border: none; }
.v4-step { border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; text-align: center; background: #fff; }
.v4-step .n {
  width: 40px; height: 40px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: transparent; font-size: 17px;
  transform: rotate(45deg); border-radius: 8px; position: relative;
}
.v4-step .n::after {
  content: attr(data-n); position: absolute; transform: rotate(-45deg);
  font-family: var(--font-sans); font-weight: 800; color: #fff;
}
.v4-step h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.v4-step p { font-size: 13px; }
@media (max-width: 640px) { .v4-steps { grid-template-columns: 1fr 1fr; } }

/* Форма: рушник-рамка зверху та знизу */
.v4-formcard { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 44px 28px; text-align: center; position: relative; }
.v4-formcard::before, .v4-formcard::after {
  content: ''; display: block; position: absolute; left: 0; right: 0; height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M5 1L9 5L5 9L1 5Z' fill='%23D9A514'/%3E%3Cpath d='M15 1L19 5L15 9L11 5Z' fill='%231B4FA0'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}
.v4-formcard::before { top: 12px; }
.v4-formcard::after { bottom: 12px; }
.v4-formcard .order-form { box-shadow: none; border: none; padding: 0; }
.v4-formcard .form-row input { border-radius: 8px; background: var(--bg); }
.v4-formcard .form-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.v4-form-prices { margin-bottom: 16px; }
.v4-form-prices .old { font-size: 15px; color: var(--ink-mute); text-decoration: line-through; margin-right: 10px; }
.v4-form-prices .new { font-size: 31px; font-weight: 800; font-family: var(--font-sans); color: var(--ink); }

/* Sticky CTA */
.sticky-cta .btn { border-radius: 8px; }

/* Футер */
.v4-footer { background: var(--ink); border-top: 4px solid var(--gold); color: #C9CDD8; padding: 34px 0 28px; margin-top: 52px; font-size: 13.5px; }
.v4-footer .v4-wrap { display: grid; gap: 14px; text-align: center; }
.v4-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.v4-footer-links a { color: #E8EAF0; font-weight: 500; }
.v4-footer-links a:hover { color: var(--gold); }
.v4-footer-fop { color: #8A8FA0; line-height: 1.6; }
