/* ====== Кольори і базові налаштування ====== */
:root {
  --bg: #0e0e11;
  --bg-alt: #141418;
  --card: #1b1b21;
  --card-hover: #22222a;
  --line: #2c2c35;
  --text: #f4efe6;
  --muted: #b3ada3;
  --gold: #d8b06a;
  --gold-2: #f0cf8e;
  --gold-dark: #a8823e;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;            /* крупніший текст — легше читати */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin: 0 auto; }
.container--narrow { width: min(860px, 100% - 40px); }
.gold { color: var(--gold); }

/* ====== Кнопки ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: 14px 26px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, var(--gold-dark));
  color: #1a1408;
  box-shadow: 0 8px 24px rgba(216,176,106,.25);
}
.btn--gold:hover { box-shadow: 0 12px 30px rgba(216,176,106,.4); }
.btn--ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 10px 20px; font-size: 16px; }
.btn--lg { padding: 18px 32px; font-size: 19px; }
.btn--block { width: 100%; }

/* ====== Шапка ====== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,17,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { color: var(--gold); font-size: 28px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 21px; letter-spacing: .08em; }
.logo__text small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 16px; }
.nav a:hover { color: var(--gold); }
.header__contacts { display: flex; flex-direction: column; text-align: right; }
.header__phone { text-decoration: none; font-weight: 800; font-size: 19px; white-space: nowrap; }
.header__phone:hover { color: var(--gold); }
.header__hours { color: var(--muted); font-size: 13px; }

/* ====== Головний екран ====== */
.hero { position: relative; overflow: hidden; padding: 110px 0 120px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(216,176,106,.22), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 60%, rgba(240,207,142,.10), transparent 70%),
    linear-gradient(180deg, #121216 0%, var(--bg) 100%);
}
/* «стеля зі світловими лініями» — декоративна графіка */
.hero__bg::after {
  content: ''; position: absolute; right: -5%; top: 10%; width: 55%; height: 70%;
  border: 2px solid rgba(240,207,142,.35); border-radius: 24px;
  box-shadow: 0 0 40px rgba(240,207,142,.25), inset 0 0 40px rgba(240,207,142,.12);
  transform: perspective(900px) rotateX(55deg) rotateZ(-8deg);
  background:
    linear-gradient(90deg, transparent 32%, rgba(255,226,170,.75) 32.5%, transparent 33.3%),
    linear-gradient(90deg, transparent 66%, rgba(255,226,170,.75) 66.5%, transparent 67.3%);
  filter: drop-shadow(0 0 12px rgba(255,220,150,.45));
}
.hero__inner { position: relative; }
.hero__text { max-width: 640px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -.02em; }
.hero__lead { font-size: 20px; color: var(--muted); max-width: 560px; }
.hero__lead b { color: var(--text); }
.hero__price {
  display: inline-block; margin: 6px 0 28px; padding: 10px 18px;
  border: 1px solid var(--gold-dark); border-radius: 12px; color: var(--muted);
}
.hero__price b { color: var(--gold); font-size: 24px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 32px; color: var(--muted); }
.hero__facts b { display: block; color: var(--text); font-size: 26px; }

/* ====== Секції ====== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(30px, 4vw, 42px); text-align: center; font-weight: 800; }
.section__title--left { text-align: left; }
.section__sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 44px; }
.section__title + .benefits, .section__title + .steps, .section__title + .reviews, .section__title + .faq { margin-top: 44px; }

/* ====== Переваги ====== */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.benefit__icon { font-size: 38px; margin-bottom: 14px; }
.benefit h3 { font-size: 21px; }
.benefit p { color: var(--muted); margin: 0; font-size: 17px; }

/* ====== Види стель ====== */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.type {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s; text-align: left; color: inherit; font: inherit; padding: 0;
}
.type:hover { transform: translateY(-4px); border-color: var(--gold-dark); background: var(--card-hover); }
.type__pic { height: 150px; position: relative; }
.type__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.type h3 { font-size: 20px; margin-bottom: 6px; }
.type p { color: var(--muted); font-size: 16px; flex: 1; }
.type__price { font-weight: 800; color: var(--gold); font-size: 20px; }
.type__price small { color: var(--muted); font-weight: 500; font-size: 15px; }
.type__tag {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #1a1408;
  font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}

/* «Картинки» стель, намальовані градієнтами (замінити на фото) */
.pic { background: #222; }
.pic--matte   { background: linear-gradient(160deg, #f1ede6, #cfc9bf); }
.pic--gloss   { background: linear-gradient(120deg, #1c1c22 0%, #3a3a46 40%, #f5f2ea 48%, #3a3a46 56%, #15151a 100%); }
.pic--satin   { background: linear-gradient(150deg, #e9e2d4, #bfb39c 60%, #e9e2d4); }
.pic--shadow  { background: linear-gradient(#f0ece4,#f0ece4) padding-box; box-shadow: inset 0 0 0 10px #111; }
.pic--lines   { background:
    linear-gradient(90deg, transparent 30%, #fff4d6 30.5%, transparent 31.5%),
    linear-gradient(90deg, transparent 68%, #fff4d6 68.5%, transparent 69.5%),
    linear-gradient(#26262c, #18181c); filter: drop-shadow(0 0 6px #fff4d6); }
.pic--float   { background: linear-gradient(#ecE7dd, #ece7dd) ; box-shadow: inset 0 0 0 6px #1a1a1f, inset 0 0 0 9px #ffd98a, inset 0 0 30px 12px rgba(255,217,138,.6); }
.pic--cornice { background: linear-gradient(90deg, #ece7dd 82%, #0d0d10 82%, #0d0d10 88%, #6b5a45 88%); }
.pic--niche   { background: linear-gradient(90deg, #ece7dd 80%, #2a2a30 80%); }
.pic--attic   { background: linear-gradient(135deg, #ece7dd 50%, #d3ccbf 50%); }
.pic--twocolor{ background: radial-gradient(ellipse 60% 45% at 50% 50%, #1f1f25 98%, #ece7dd 100%); }
.pic--multi   { background: radial-gradient(ellipse 45% 35% at 50% 50%, #ece7dd 96%, #ffd98a 98%, #c9c2b5 100%); }
.pic--track   { background:
    linear-gradient(#0d0d10,#0d0d10) center 40% / 80% 8px no-repeat,
    linear-gradient(#0d0d10,#0d0d10) center 62% / 80% 8px no-repeat,
    #ece7dd; }
.pic--photo   { background: linear-gradient(180deg, #8ec5ff, #cfe7ff 60%, #ffffff); }
.pic--stars   { background:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, #fff, transparent),
    radial-gradient(2px 2px at 80% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 35% 75%, #fff, transparent),
    radial-gradient(2px 2px at 50% 45%, #ffe9b0, transparent),
    radial-gradient(1px 1px at 10% 85%, #fff, transparent),
    radial-gradient(1px 1px at 90% 15%, #fff, transparent),
    linear-gradient(#0b1030, #1b1640); }

/* ====== Калькулятор ====== */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.field { margin-bottom: 28px; }
.field__label { display: block; font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.field__hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.stepper input {
  width: 110px; text-align: center; background: transparent; border: 0; color: var(--text);
  font: inherit; font-size: 24px; font-weight: 800; padding: 10px 0; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
  width: 60px; height: 60px; border: 0; background: var(--card); color: var(--gold);
  font-size: 30px; cursor: pointer; font-weight: 700;
}
.stepper__btn:hover { background: var(--card-hover); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 2px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 12px; padding: 12px 16px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--gold-dark); }
.chip.is-active { border-color: var(--gold); background: rgba(216,176,106,.12); color: var(--gold-2); }
.check { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; cursor: pointer; font-size: 17px; }
.check input { width: 24px; height: 24px; accent-color: var(--gold); }
.calc__result {
  position: sticky; top: 100px;
  background: linear-gradient(160deg, #1f1d1a, var(--card)); border: 1px solid var(--gold-dark);
  border-radius: 22px; padding: 34px; box-shadow: var(--shadow);
}
.calc__label { color: var(--muted); margin: 0; }
.calc__sum { font-size: 48px; font-weight: 800; color: var(--gold); margin: 4px 0 12px; line-height: 1.1; }
.calc__note { color: var(--muted); font-size: 15px; }
.calc__messengers { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }
.calc__messengers .messengers { justify-content: center; margin-top: 10px; }

/* ====== Месенджери ====== */
.messengers { display: flex; gap: 10px; flex-wrap: wrap; }
.msg {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px; color: #fff;
}
.msg--viber { background: #7360f2; }
.msg--telegram { background: #229ed9; }
.msg--whatsapp { background: #25d366; color: #062b14; }
.msg:hover { filter: brightness(1.1); }

/* ====== Фотозвіти ====== */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4/3; border: 1px solid var(--line); padding: 0; font: inherit; color: inherit;
}
.work .pic { position: absolute; inset: 0; transition: transform .4s; }
.work:hover .pic { transform: scale(1.05); }
.work__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.work__cap b { display: block; font-size: 18px; }
.work__cap span { color: #d9d3c8; font-size: 15px; }

/* ====== Як працюємо ====== */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step__num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(216,176,106,.12); color: var(--gold); font-weight: 800; font-size: 24px; margin-bottom: 14px;
  border: 1px solid var(--gold-dark);
}
.step p { color: var(--muted); margin: 0; font-size: 17px; }

/* ====== Відгуки ====== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.review__stars { color: var(--gold); letter-spacing: 3px; font-size: 20px; }
.review p { color: #ddd6ca; font-size: 17px; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-dark); color: #1a1408; font-weight: 800; }
.review__who small { display: block; color: var(--muted); }

/* ====== FAQ ====== */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 19px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ====== Заявка ====== */
.order { background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(216,176,106,.12), transparent 70%), var(--bg-alt); }
.order__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.order__text p { color: var(--muted); font-size: 19px; }
.order__list { list-style: none; padding: 0; font-size: 19px; }
.order__list li { margin-bottom: 8px; }
.order__form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px; position: relative; box-shadow: var(--shadow); }
.input {
  width: 100%; padding: 16px 18px; margin-bottom: 18px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 19px;
}
.input:focus { outline: none; border-color: var(--gold); }
.input.is-error { border-color: #e5675b; }
.order__err { color: #f08a7f; margin: -8px 0 14px; font-size: 15px; }
.order__small { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 0; }
.order__ok {
  position: absolute; inset: 0; border-radius: 22px; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px;
}
.order__ok[hidden] { display: none; }
.order__ok-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--gold); color: #1a1408; display: grid; place-items: center; font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.order__ok p { color: var(--muted); }

/* ====== Підвал ====== */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.footer__phone { font-size: 21px; font-weight: 800; text-decoration: none; }
.footer__muted { color: var(--muted); font-size: 15px; margin-top: 10px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ====== Збільшене фото ====== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox__img { width: min(1000px, 100%); aspect-ratio: 4/3; max-height: 80vh; border-radius: 14px; }
.lightbox__cap { margin-top: 16px; font-size: 18px; }
.lightbox__close { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: #fff; font-size: 48px; cursor: pointer; }

/* ====== Нижня панель на телефоні ====== */
.mobilebar { display: none; }

/* ====== Адаптація під планшет і телефон ====== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__contacts { margin-left: auto; }
  .benefits, .steps { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: 76px; }
  .header__inner { min-height: 64px; gap: 12px; }
  .header__cta, .header__hours { display: none; }
  .header__phone { font-size: 16px; }
  .logo__text b { font-size: 18px; }
  .hero { padding: 60px 0 70px; }
  .hero__bg::after { width: 90%; right: -30%; top: 2%; opacity: .45; }
  .hero__buttons .btn { width: 100%; }
  .hero__facts { gap: 20px; }
  .section { padding: 64px 0; }
  .benefits, .steps, .works, .reviews, .calc, .order__inner, .footer__inner { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .calc__sum { font-size: 40px; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px;
    background: rgba(14,14,17,.95); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  }
  .mobilebar__btn {
    display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: 12px;
    text-decoration: none; font-weight: 800; border: 2px solid var(--gold-dark); color: var(--gold-2);
  }
  .mobilebar__btn--call { background: var(--gold); color: #1a1408; border-color: var(--gold); }
}

/* ====== Пропозиція для перших клієнтів ====== */
[hidden] { display: none !important; }
.first-client {
  margin-top: 44px; display: flex; align-items: center; gap: 30px;
  background: linear-gradient(135deg, rgba(216,176,106,.14), var(--card) 60%);
  border: 1px solid var(--gold-dark); border-radius: 22px; padding: 34px 40px;
}
.first-client__badge {
  flex: none; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-dark)); color: #1a1408;
  font-size: 34px; font-weight: 800; box-shadow: 0 10px 30px rgba(216,176,106,.3);
}
.first-client__text { flex: 1; }
.first-client__text h3 { font-size: 24px; }
.first-client__text p { color: var(--muted); margin: 0; }
.first-client__text b { color: var(--gold-2); }
@media (max-width: 760px) {
  .first-client { flex-direction: column; text-align: center; padding: 28px 22px; }
  .first-client .btn { width: 100%; }
}

/* ====== Логотип DANTE DESIGN ====== */
.logo__mark { flex: none; filter: drop-shadow(0 0 6px rgba(216,176,106,.25)); }
.logo__line { filter: drop-shadow(0 0 2px #ffe3a3); }
.logo__text b { font-weight: 800; letter-spacing: .22em; font-size: 22px; }
.logo__text em { font-style: normal; font-weight: 600; font-size: 10.5px; letter-spacing: .62em; color: var(--gold); margin-top: 4px; }
.logo__text small { margin-top: 5px; }
@media (max-width: 760px) {
  .logo__mark { width: 36px; height: 36px; }
  .logo__text b { font-size: 18px; }
  .logo__text small { display: none; }
}

/* Пастка для спам-ботів — прихована від людей */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order__err a { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* Дуже вузькі екрани: телефон є в нижній панелі «Подзвонити» */
@media (max-width: 340px) {
  .header__contacts { display: none; }
}

/* Плашка «Powered by Netlify» (безкоштовний тариф, висота 64px внизу екрана):
   піднімаємо кнопки над нею, щоб вона не закривала «Подзвонити». */
@media (max-width: 760px) {
  body:has(#nl-badge-frame) { padding-bottom: 140px; }
  body:has(#nl-badge-frame) .mobilebar { padding-bottom: 66px; }
}
