:root {
  --font-head: 'Unbounded', 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, sans-serif;
  --bg: #fbf7f3;
  --surface: #ffffff;
  --alt: #f3ebe3;
  --ink: #2b1a12;
  --text: #4a3a31;
  --muted: #86746a;
  --line: #e7dcd2;
  --accent: #c8702f;
  --accent-hover: #ad5d22;
  --accent-soft: #f6e2d1;
  --error: #c0392b;
  --ok: #2e8b57;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(59, 36, 24, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-head); letter-spacing: -.01em; }
h1 { font-size: clamp(27px, 3.9vw, 44px); font-weight: 600; line-height: 1.18; }
h2 { font-size: clamp(22px, 2.7vw, 31px); font-weight: 500; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 2px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 243, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.logo b { color: var(--accent); }
.logo--light { color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); }
.nav a:hover { color: var(--accent); }
.header__contacts { display: flex; flex-direction: column; line-height: 1.2; }
.header__phone { font-weight: 800; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header__hours { font-size: 12px; color: var(--muted); }
.messengers { display: flex; gap: 8px; }
.messenger { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; transition: transform .15s; }
.messenger:hover { transform: scale(1.08); }
.messenger svg { width: 20px; height: 20px; fill: currentColor; }
.messenger--wa { background: #25d366; }
.messenger--tg { background: #229ed9; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); content: ''; transition: .2s;
}
.burger span { top: 19px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* hero */
.hero { padding: 72px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; font-size: 14px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 18px; max-width: 560px; }
.hero__usp { list-style: none; padding: 0; margin: 20px 0 28px; }
.hero__usp li { position: relative; padding-left: 30px; margin-bottom: 8px; font-size: 17px; }
.hero__usp li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.hero__usp b { color: var(--ink); }
.hero__more { display: inline-block; margin-top: 12px; color: var(--accent-hover); font-weight: 700; text-decoration: none; }
.hero__more:hover { text-decoration: underline; }
.hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 24px 28px; margin: 48px 0 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.hero__facts b { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.hero__facts span { font-size: 14px; color: var(--muted); }
.hero__card { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center;
  border-radius: 28px; box-shadow: 0 30px 60px rgba(59, 36, 24, .22);
}
.hero__badge {
  position: absolute; left: -24px; bottom: 10%; padding: 14px 18px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.hero__badge b { font-family: var(--font-head); font-weight: 500; display: block; color: var(--accent); font-size: 18px; }
.hero__badge span { font-size: 14px; }

/* sections */
.section { padding: 80px 0; }
.section--alt { background: var(--alt); }
.section__lead { max-width: 640px; color: var(--muted); margin-bottom: 36px; font-size: 17px; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); margin-bottom: 16px; }
.card p { margin: 0; }

.brands { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.brands li {
  display: grid; place-items: center; height: 88px; padding: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.brands li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.brands img { display: block; max-width: 100%; max-height: 30px; width: auto; height: auto; }
.brands .brands--tall img { max-height: 46px; }
.brands__more { margin: 16px 0 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 36px 0 0; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  font-family: var(--font-head);
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800;
}
.steps b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.steps span { font-size: 15px; }

.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; background: var(--surface); border-radius: var(--radius); padding: 20px 32px 12px; border: 1px solid var(--line); }
.prices__group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-hover); margin: 16px 0 4px; }
.prices__group h3:first-child { margin-top: 0; }
.price { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.price:last-child { border-bottom: 0; }
.price b { color: var(--ink); white-space: nowrap; }
.prices__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* request */
.request { background: var(--ink); color: #e9ddd4; }
.request h2 { color: #fff; }
.request__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.request__text p { font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; display: grid; place-items: center; font-weight: 800; }

.form, .form-success { background: var(--surface); color: var(--text); padding: 32px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; padding: 0; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386746a' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field__error { display: block; color: var(--error); font-size: 13px; min-height: 0; margin-top: 4px; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600; background: var(--bg); transition: .15s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 4px 0 6px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.form .btn--block { margin-top: 14px; }
.form__status { margin: 12px 0 0; font-size: 14px; text-align: center; color: var(--error); }
.form__status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-success { text-align: center; padding: 48px 32px; }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 36px; display: grid; place-items: center; font-weight: 800; }
.form-success a { color: var(--accent); font-weight: 700; }

/* callback form */
.callback { max-width: 520px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.callback__title { font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.callback__row { display: flex; gap: 10px; }
.callback__row input {
  flex: 1; min-width: 0; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; color: var(--ink); background: var(--bg);
}
.callback__row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.callback__row input.is-invalid { border-color: var(--error); }
.callback__row .btn { white-space: nowrap; }
.consent--small { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.consent--small input { width: 16px; height: 16px; }
.callback__status { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--error); }
.callback__status:empty { display: none; }
.callback__status.is-ok { color: var(--ok); }

/* machine types */
.type { display: flex; flex-direction: column; padding: 0 0 24px; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.type:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.type > :not(.type__img) { margin-left: 24px; margin-right: 24px; }
.type__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; background: var(--alt); transition: transform .4s; }
.type:hover .type__img { transform: scale(1.04); }
.type p { flex: 1; }
.type__btn { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; }
.type__btn:hover { color: var(--accent-hover); text-decoration: underline; }

/* faults */
.faults { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fault {
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; transition: .15s;
}
.fault:hover { border-color: var(--accent); background: var(--accent-soft); }

/* why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.why__item { padding: 24px; border-radius: var(--radius); background: var(--alt); }
.why__item b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.why__item span { font-size: 15px; }

.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 22px 28px;
  border-radius: var(--radius); background: var(--surface); border: 1.5px dashed var(--accent);
}
.callout b { display: block; color: var(--ink); font-size: 18px; }

/* consult cta */
.cta {
  background: linear-gradient(90deg, rgba(29, 17, 11, .92) 0%, rgba(29, 17, 11, .75) 55%, rgba(29, 17, 11, .45) 100%), url(img/cta.jpg) center / cover;
  color: #e9ddd4;
}
.cta h2 { color: #fff; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta p { font-size: 17px; margin: 0; }
.callback--light { max-width: none; }

/* floating call button (mobile) */
.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 24px; text-decoration: none; place-items: center;
  box-shadow: 0 8px 24px rgba(200, 112, 47, .45); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 112, 47, .5); } 50% { box-shadow: 0 0 0 12px rgba(200, 112, 47, 0); } }

/* faq */
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 12px; margin: 0; }

/* footer */
.footer { background: #1d110b; color: #bfaea3; padding: 56px 0 24px; }
.footer h4 { color: #fff; font-size: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { margin: 0 0 6px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer .logo { margin-bottom: 12px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }

/* responsive */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .header__hours { display: none; }
}
@media (max-width: 1000px) {
  .header__contacts { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .faults, .why { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .request__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .messengers { margin-left: auto; }
  .fab { display: grid; }
  .nav {
    display: none; position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .hero { padding: 40px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { order: -1; width: 100%; }
  .hero__photo { aspect-ratio: 16 / 10; border-radius: 20px; }
  .hero__badge { left: 12px; bottom: 12px; padding: 8px 12px; }
  .hero__badge b { font-family: var(--font-head); font-weight: 500; font-size: 15px; }
  .hero__badge span { font-size: 12px; }
  .section { padding: 56px 0; }
  .prices { grid-template-columns: 1fr; padding: 8px 20px; }
  .prices__group + .prices__group { margin-top: 16px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--3, .steps, .form__row, .why { grid-template-columns: 1fr; }
  .callback__row { flex-direction: column; }
  .brands { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .brands li { height: 72px; }
  .callback { padding: 16px; }
  .form__row { gap: 0; }
  .form, .form-success { padding: 22px; }
  .hero__facts { gap: 20px; }
  .container { padding: 0 16px; }
}
