/* ==========================================================
   DishRoom — стилі лендингу (макет Figma 1440 px)
   ========================================================== */
:root {
  --green: #1b2b1d;
  --green-2: #24382a;
  --brown: #966946;
  --brown-dark: #7d5638;
  --gold: #a5731c;
  --sand: #e5d9cf;
  --sand-light: #f4eee8;
  --text: #1b2b1d;
  --muted: #6d7268;
  --radius-lg: clamp(20px, 2.1vw, 30px);
  --fs-text: clamp(14px, 1.46vw, 21px);
  --fs-title: clamp(17px, 1.53vw, 22px);
  --gutter: clamp(16px, 4vw, 60px);
  --font: 'Unbounded', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--font); font-weight: 400; color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
.center { text-align: center; }
.mt { margin-top: clamp(24px, 3vw, 40px); }
.muted { color: var(--muted); }

.container { width: 100%; max-width: calc(1210px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.container--form { max-width: calc(918px + var(--gutter) * 2); }
.section { position: relative; padding: clamp(36px, 4.5vw, 64px) 0; }
.title { font-size: var(--fs-title); font-weight: 600; text-align: center; margin: 0 0 clamp(22px, 3vw, 44px); line-height: 1.3; }

.rich { font-size: var(--fs-text); line-height: 1.72; }
.rich--justify { text-align: justify; hyphens: auto; }
.rich p { margin: 0; }
.rich p + p { margin-top: 1.72em; }
.rich strong, .rich b { font-weight: 600; }
.rich a { color: inherit; text-decoration: none; }
.rich a:hover { text-decoration: underline; }
.contacts-lines { font-size: var(--fs-text); margin: 1.5em 0 0; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font-family: inherit; font-weight: 600; line-height: 1.2; border-radius: var(--radius-lg); padding: .85em 1.6em; font-size: clamp(15px, 1.4vw, 20px);
  transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27, 43, 29, .25); }
.btn--dark { background: var(--green); color: #fff; }
.btn--dark:hover { background: var(--green-2); }
.btn--brown { background: var(--brown); color: #fff; }
.btn--brown:hover { background: var(--brown-dark); }
.btn--outline { background: transparent; color: var(--green); border: 2px solid var(--brown); }
.btn--sm { font-size: 13px; padding: .8em 1.4em; border-radius: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(27, 43, 29, .06); }
.header__bar { max-width: 1440px; margin: 0 auto; min-height: clamp(70px, 9vw, 129px); display: flex; align-items: center; padding: 0 clamp(16px, 7.3vw, 105px); }
.header__logo img { height: clamp(46px, 5.3vw, 76px); width: auto; }
.nav { flex: 1; display: flex; justify-content: space-between; margin-left: clamp(24px, 3.5vw, 50px); }
.nav__link { font-size: clamp(12px, 1.36vw, 19.5px); font-weight: 500; text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0; white-space: nowrap; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brown); transform: scaleX(0); transition: transform .25s; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__extra { display: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2.5px; background: var(--green); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Слайдер ---------- */
.hero { position: relative; width: 100%; aspect-ratio: 1440 / 839; max-height: 90vh; min-height: 420px; overflow: hidden; background: var(--green); }
.hero__track, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: right center; }
.hero__slide::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__slide--dark::before { background: linear-gradient(90deg, rgba(20, 38, 25, .78) 0%, rgba(20, 38, 25, .45) 40%, rgba(20, 38, 25, 0) 65%); }
.hero__slide--light::before { background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0) 65%); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(40px, 7vw, 100px) clamp(18px, 5.2vw, 75px) 0; max-width: 960px; }
.hero__title { margin: 0; font-size: clamp(26px, 4.3vw, 62px); font-weight: 800; text-transform: uppercase; line-height: 1.32; letter-spacing: .005em; }
.hero__kicker { display: block; color: var(--gold); }
.hero__slide--dark .hero__title, .hero__slide--dark .hero__sub { color: #fff; }
.hero__slide--light .hero__title, .hero__slide--light .hero__sub { color: var(--green); }
.hero__sub { font-size: clamp(14px, 1.95vw, 28px); font-weight: 500; line-height: 1.45; margin: clamp(18px, 2.6vw, 38px) 0 0; max-width: 34ch; }
.hero__btn { margin-top: 1.6em; align-self: flex-start; }
.hero__dots { position: absolute; z-index: 3; left: 50%; bottom: clamp(16px, 2.7vw, 38px); transform: translateX(-50%); display: flex; gap: clamp(8px, 2.1vw, 30px); }
.hero__dot { width: clamp(60px, 20vw, 289px); height: clamp(14px, 1.9vw, 26px); padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dot i { display: block; width: 100%; height: 100%; background: var(--green); position: relative; overflow: hidden; }
.hero__dot.is-active i::after { content: ''; position: absolute; inset: 0; background: var(--brown); transform-origin: left; animation: dotfill var(--interval, 6s) linear forwards; }
.hero.is-paused .hero__dot.is-active i::after { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); color: var(--green); font-size: 28px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .25s; }
.hero:hover .hero__arrow { opacity: 1; }
.hero__arrow--prev { left: 16px; } .hero__arrow--next { right: 16px; }

/* ---------- Послуги ---------- */
.services__cta { text-align: center; margin: clamp(14px, 1.5vw, 22px) 0 0; font-size: clamp(13px, 1.1vw, 16px); }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3.9vw, 56px) clamp(16px, 4.4vw, 64px); }
.service { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 27px); background: var(--brown); color: #fff; text-decoration: none; border-radius: var(--radius-lg);
  min-height: clamp(110px, 9.8vw, 141px); padding: clamp(16px, 2vw, 28px) clamp(18px, 2.8vw, 40px); transition: transform .2s, box-shadow .2s, background .2s; }
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(150, 105, 70, .35); background: #8c6141; }
.service__num { flex-shrink: 0; width: clamp(56px, 5.3vw, 76px); height: clamp(56px, 5.3vw, 76px); border-radius: 50%; background: #fff; color: var(--green);
  display: grid; place-items: center; font-weight: 800; font-size: clamp(28px, 3.2vw, 46px); line-height: 1; }
.service__body { display: flex; flex-direction: column; gap: 10px; }
.service__title { font-weight: 700; font-size: clamp(14px, 1.53vw, 22px); line-height: 1.25; }
.service__text { font-size: clamp(13px, 1.53vw, 22px); line-height: 1.15; font-weight: 300; }

/* ---------- Як ми працюємо ---------- */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 735px); gap: 40px; align-items: center; }
.steps-wrap.has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.steps-wrap.has-image .steps { margin-right: -40px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--brown); }
.steps li { border-bottom: 4px solid var(--brown); padding: clamp(18px, 2.4vw, 34px) 0; font-weight: 600; text-transform: uppercase; font-size: clamp(13px, 1.53vw, 22px); line-height: 1.3; counter-increment: step; }
.steps__img { position: relative; width: 100%; height: 100%; min-height: 260px; border-radius: var(--radius-lg); object-fit: cover; }

/* ---------- Для кого ---------- */
.section--audience { padding-bottom: clamp(36px, 5vw, 70px); }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 18px) clamp(10px, 1.2vw, 18px); position: relative; z-index: 2; max-width: 1199px; margin: 0 auto; }
.audience__card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 590 / 393; background: #ddd; }
.audience__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.audience__card:hover img { transform: scale(1.04); }
.audience__label { position: absolute; left: 50%; bottom: clamp(12px, 1.2vw, 18px); transform: translateX(-50%); background: #fff; border-radius: 30px;
  padding: .7em 1.2em; min-width: min(382px, 80%); text-align: center; font-weight: 600; font-size: clamp(13px, 1.53vw, 22px); white-space: nowrap; }
.audience__band { position: absolute; left: 0; right: 0; z-index: 0; background: var(--green); top: var(--band-top, 52%); bottom: var(--band-bottom, 22%); }

/* ---------- Контакти й форма ---------- */
.section--contacts { padding-bottom: clamp(50px, 6vw, 86px); }
.form-band { position: relative; margin-top: clamp(40px, 6vw, 86px); }
.form-band::before { content: ''; position: absolute; left: 0; right: 0; top: 26%; bottom: 36%; background: var(--brown); z-index: 0; }
.form-wrap { position: relative; z-index: 1; }
.lead-form { background: #fff; border: 1px solid #000; border-radius: var(--radius-lg); padding: clamp(24px, 2.8vw, 40px) clamp(16px, 5.4vw, 78px) clamp(28px, 3.3vw, 48px);
  display: flex; flex-direction: column; gap: clamp(12px, 1.2vw, 16px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: clamp(14px, 1.39vw, 20px); font-weight: 500; padding-left: 8px; }
.field input, .field textarea { border: 2px solid transparent; background: var(--sand); border-radius: 15px; height: clamp(48px, 3.9vw, 56px); padding: 0 20px;
  font: inherit; font-size: 15px; outline: none; width: 100%; transition: border-color .2s, background .2s; }
.field textarea { height: auto; padding: 14px 20px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brown); background: var(--sand-light); }
.field.has-error input { border-color: #c53a3a; }
.field__err { color: #c53a3a; font-size: 12px; padding-left: 10px; margin-top: -4px; }
.btn--form { align-self: center; width: min(563px, 100%); min-height: clamp(60px, 6.5vw, 94px); font-size: clamp(17px, 2.08vw, 30px); border-radius: var(--radius-lg); margin-top: clamp(16px, 2.6vw, 38px); }
.lead-form__consent { font-size: 11px; color: var(--muted); text-align: center; margin: 0; }
.lead-form__error { background: #fde8e8; color: #9b1c1c; padding: 12px 18px; border-radius: 14px; font-size: 14px; }
.lead-form__product { background: var(--sand-light); border-radius: 14px; padding: 12px 18px; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; }
.lead-form__product button { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-success { text-align: center; border: 1px solid #000; border-radius: var(--radius-lg); background: #fff; padding: clamp(36px, 5vw, 70px) 20px; }
.lead-success__icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 40px; display: grid; place-items: center; }
.lead-success__text { font-size: var(--fs-text); margin: 0 0 24px; }

/* ---------- 404 ---------- */
.section--inner { padding-top: clamp(40px, 5vw, 70px); min-height: 40vh; }
.notfound__code { font-size: clamp(90px, 15vw, 200px); font-weight: 800; color: var(--brown); line-height: 1; }

/* ---------- Підвал ---------- */
.footer { background: var(--green); color: var(--brown); position: relative; z-index: 2; }
.footer__inner { max-width: 1440px; margin: 0 auto; padding: clamp(40px, 7vw, 100px) clamp(20px, 6.7vw, 97px) clamp(30px, 3vw, 44px); display: grid;
  grid-template-columns: 1fr 1.35fr 1.4fr; gap: 30px; align-items: start; }
.footer__logo img { width: clamp(150px, 18.6vw, 268px); }
.footer__nav { display: flex; flex-direction: column; gap: clamp(14px, 2.4vw, 34px); padding-left: clamp(0px, 5.9vw, 85px); padding-top: 0; }
.footer__nav a, .footer__contacts { font-size: clamp(14px, 1.39vw, 20px); text-decoration: none; }
.footer__nav a:hover { color: #c39470; }
.footer__contacts { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 14px); padding-top: clamp(0px, 0.6vw, 8px); }
.footer__contacts > div:first-child { text-transform: uppercase; }
.footer__contacts a { text-decoration: none; } .footer__contacts a.u { text-decoration: underline; text-underline-offset: 3px; }
.footer__social { display: flex; gap: 12px; margin-top: 6px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: var(--brown); color: var(--green); display: grid; place-items: center; }
.footer__copy { text-align: center; font-size: 12px; opacity: .7; padding: 0 20px 24px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0; margin: 0; background: #fff; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 100px var(--gutter) 40px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; z-index: -1; }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 18px; padding: 14px 0; border-bottom: 1px solid #eee; }
  .nav__link::after { display: none; }
  .nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 24px; }
  .nav__phone { font-weight: 600; font-size: 17px; text-decoration: none; color: var(--brown); }
  .header__bar { position: relative; z-index: 2; background: #fff; }
  .services { grid-template-columns: 1fr; }
  .steps-wrap.has-image { grid-template-columns: 1fr; gap: 24px; }
  .steps-wrap.has-image .steps { margin-right: 0; }
  .steps__img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
  .footer__nav { padding-left: 0; }
}
@media (max-width: 700px) {
  .hero { aspect-ratio: auto; height: 560px; max-height: none; }
  .hero__img { object-position: 70% center; }
  .hero__slide--dark::before { background: linear-gradient(180deg, rgba(20, 38, 25, .85) 0%, rgba(20, 38, 25, .6) 55%, rgba(20, 38, 25, .2) 100%); }
  .hero__slide--light::before { background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .7) 55%, rgba(255, 255, 255, .15) 100%); }
  .hero__arrow { display: none; }
  .rich--justify { text-align: left; }
  .audience { grid-template-columns: 1fr; }
  .audience__band { top: 30%; bottom: 30%; }
  .form-band::before { top: 20%; bottom: 30%; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
