/* ==========================================================================
   ГК Такт — Раменское. Концепция «Мастерская ремесленника».
   Кремовая крафт-бумага, серифная типографика, терракота и охра.
   ========================================================================== */

:root {
  --bg:             #F9F6EE;
  --text-primary:   #3E2E23;
  --text-secondary: #4A4A4A;
  --accent:         #CC7357;
  --accent-alt:     #B78C5C;

  --paper:      #FFFDF7;
  --paper-dark: #F1EBDD;
  --line:       #E1D7C4;
  --line-soft:  #EBE3D4;
  --ink-muted:  #8A7B6D;
  --accent-dark:#B15C42;
  --success:    #4E7C4A;

  --ff-display: 'Literata', 'Georgia', 'Times New Roman', serif;
  --ff-body:    'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ff-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --radius:   2px;
  --radius-lg: 4px;
  --shadow:      0 1px 0 var(--line), 0 12px 30px -22px rgba(62, 46, 35, .45);
  --shadow-lift: 0 1px 0 var(--line), 0 26px 50px -26px rgba(62, 46, 35, .5);

  --wrap: 1200px;
  --sp:   clamp(56px, 8vw, 110px);
}

/* ── База ─────────────────────────────────────────────────────────────── */
html { overflow-x: clip; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(183, 140, 92, .06) 1px, transparent 1px),
    radial-gradient(rgba(62, 46, 35, .04) 1px, transparent 1px);
  background-size: 22px 22px, 34px 34px;
  background-position: 0 0, 11px 17px;
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.12;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p  { color: var(--text-secondary); }

a { color: var(--accent-dark); text-decoration-color: rgba(204, 115, 87, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: var(--sp); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--ink {
  background: var(--text-primary);
  color: var(--paper);
}
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: rgba(249, 246, 238, .78); }

/* ── Подпись концепции: «бирка мастерской» ───────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-alt);
  padding: 6px 14px 6px 10px;
  border: 1px dashed var(--accent-alt);
  border-radius: var(--radius);
  background: rgba(183, 140, 92, .06);
}
.tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
}
.section--ink .tag { color: #E3C79A; border-color: rgba(227, 199, 154, .55); background: rgba(227, 199, 154, .07); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .tag { margin-bottom: 18px; }
.section-head p { margin-top: 14px; font-size: 1.06rem; }

.lead { font-size: 1.15rem; color: var(--text-secondary); }

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.btn-craft,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .98rem;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-craft {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(204, 115, 87, .95);
}
.btn-craft:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn-ghost:hover { background: var(--text-primary); color: var(--bg); transform: translateY(-2px); }
.section--ink .btn-ghost { color: var(--paper); border-color: rgba(249, 246, 238, .55); }
.section--ink .btn-ghost:hover { background: var(--paper); color: var(--text-primary); }
.btn-craft:active, .btn-ghost:active { transform: translateY(0); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
}
.link-arrow i { transition: transform .18s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ── Шапка ────────────────────────────────────────────────────────────── */
.topline {
  background: var(--text-primary);
  color: rgba(249, 246, 238, .8);
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 38px;
  flex-wrap: wrap;
}
.topline a { color: #E3C79A; text-decoration: none; }
.topline a:hover { color: #fff; }
.topline .dot { color: var(--accent); }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(249, 246, 238, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header.is-stuck { box-shadow: 0 10px 30px -24px rgba(62, 46, 35, .6); }
.header .wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 5px; }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1.5px solid var(--text-primary);
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text-primary);
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(183, 140, 92, .16) 5px 6px);
  flex: none;
}
.brand__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__cta { display: none; }
.nav a {
  position: relative;
  padding: 9px 7px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--accent-dark); }

.header__phone {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent-dark); }
.header__cta { padding: 12px 20px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ── Hero главной ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 26px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 14px);
  opacity: .5;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin: 20px 0 0; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .1em;
  background: rgba(204, 115, 87, .22);
}
.hero__lead { margin-top: 22px; font-size: 1.14rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.hero__facts b {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 600;
  color: var(--accent-dark);
}
.hero__facts span {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Карточка-бланк заявки — «наряд-заказ мастерской» */
.order-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-lift);
}
.order-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius);
  pointer-events: none;
}
.order-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.order-card h2 { font-size: 1.55rem; margin: 0; }
.order-card__note { margin-top: 8px; font-size: .95rem; color: var(--ink-muted); }
.order-card__seal {
  flex: none;
  width: 74px; height: 74px;
  display: grid; place-items: center;
  text-align: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: var(--ff-mono);
  font-size: 9.5px;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  background: rgba(204, 115, 87, .05);
}

/* ── Формы ────────────────────────────────────────────────────────────── */
.field { margin-top: 16px; }
.field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 7px;
}
.form-control,
.f-input,
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .18s ease, background .18s ease;
}
.form-control:focus,
.f-input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-actions { margin-top: 22px; }
.form-actions .btn-craft { width: 100%; }
.form-consent {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.form-consent a { color: var(--accent-dark); }
.field-error { display: block; margin-top: 6px; font-size: 12.5px; color: var(--accent-dark); }
.form-note { margin-top: 14px; font-size: .92rem; }
.form-note.is-ok  { color: var(--success); }
.form-note.is-err { color: var(--accent-dark); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

/* ── Карточки услуг ───────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card-craft {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card-craft:hover {
  transform: translateY(-4px);
  border-color: var(--accent-alt);
  box-shadow: var(--shadow-lift);
}
.card-craft__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-dark);
  border-bottom: 1px solid var(--line);
}
.card-craft__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.card-craft:hover .card-craft__media img { transform: scale(1.04); }
.card-craft__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-craft__body h3 { margin: 0 0 10px; font-size: 1.3rem; }
.card-craft__body p { margin: 0; font-size: .96rem; }
.card-craft__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
}
.price {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--accent-dark);
}
.card-craft__more {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.card-craft:hover .card-craft__more { color: var(--accent); }

.badge-corner {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--text-primary);
  color: var(--paper);
  padding: 5px 10px;
  border-radius: var(--radius);
}
.badge-corner--accent { background: var(--accent); }

/* ── Направления (иконки категорий) ───────────────────────────────────── */
.dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.dir {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.dir:hover { border-color: var(--accent); transform: translateY(-3px); }
.dir__icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--accent-alt);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 1.2rem;
  background: rgba(183, 140, 92, .07);
}
.dir h3 { font-size: 1.2rem; margin: 0 0 6px; }
.dir p { margin: 0; font-size: .92rem; }

/* ── Процесс ──────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step__n {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.2rem; margin: 0 0 8px; }
.step p { margin: 0; font-size: .95rem; }
.section--ink .step { border-top-color: rgba(249, 246, 238, .22); }
.section--ink .step__n { color: #E3C79A; }

/* ── Портфолио ────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters a {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .18s ease;
}
.filters a:hover { border-color: var(--accent-alt); color: var(--text-primary); }
.filters a.is-active { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg); }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-dark);
}
.gallery figcaption { margin-top: 8px; font-size: .88rem; color: var(--ink-muted); }

/* ── Отзывы ───────────────────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
}
.review::before {
  content: "„";
  position: absolute;
  top: 6px; right: 20px;
  font-family: var(--ff-display);
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(183, 140, 92, .22);
}
.review p { margin: 0 0 20px; font-size: .98rem; }
.review__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.review__ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: var(--paper-dark);
  font-family: var(--ff-display);
  color: var(--accent-dark);
  font-weight: 600;
  flex: none;
}
.review__name { font-weight: 600; color: var(--text-primary); font-size: .96rem; }
.review__date { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-muted); }

/* ── Блог ─────────────────────────────────────────────────────────────── */
.post-card__date {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: block;
}
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 40px 0 14px; }
.prose h3 { margin: 30px 0 12px; }
.prose p  { margin: 0 0 18px; font-size: 1.05rem; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 20px; color: var(--text-secondary); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text-primary); }
.prose blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  border-radius: var(--radius);
}
.prose img { border-radius: var(--radius-lg); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px;
  padding: 10px 14px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--ff-mono);
  font-size: 13px;
}
.pagination .is-current { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }

/* ── Page hero (внутренние) ───────────────────────────────────────────── */
.page-hero {
  padding-block: clamp(40px, 5vw, 68px) clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(241, 235, 221, .75), transparent);
}
.page-hero h1 { margin: 16px 0 0; max-width: 20ch; }
.page-hero p { margin: 16px 0 0; max-width: 62ch; font-size: 1.08rem; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--line); }

/* ── Характеристики ───────────────────────────────────────────────────── */
.specs { border-top: 1px solid var(--line); }
.specs__row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.specs__row dt {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
  font-weight: 400;
}
.specs__row dd { margin: 0; color: var(--text-primary); }

/* ── Контакты ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.contact-list i { color: var(--accent); width: 22px; text-align: center; margin-top: 4px; }
.contact-list b {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
  margin-bottom: 2px;
}
.contact-list a { color: var(--text-primary); text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { color: var(--accent-dark); }
.map-embed {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: var(--paper-dark);
  display: grid;
  place-items: center;
}
.map-embed iframe { width: 100%; min-height: 380px; border: 0; display: block; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  background: var(--paper);
  transition: all .18s ease;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer .socials a { background: transparent; border-color: rgba(249, 246, 238, .25); color: var(--paper); }
.footer .socials a:hover { background: var(--accent); border-color: var(--accent); }

/* ── CTA-полоса ───────────────────────────────────────────────────────── */
.cta {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}
.cta__form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta__form .f-input { flex: 1 1 180px; background: rgba(249, 246, 238, .06); border-color: rgba(249, 246, 238, .3); color: var(--paper); }
.cta__form .f-input::placeholder { color: rgba(249, 246, 238, .45); }
.cta__form .f-input:focus { background: rgba(249, 246, 238, .12); border-color: var(--accent); }
.cta__form .btn-craft { flex: 1 1 100%; }

/* ── Подвал ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--text-primary);
  color: rgba(249, 246, 238, .72);
  padding-block: 64px 28px;
}
.footer a { color: rgba(249, 246, 238, .72); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E3C79A;
  font-weight: 400;
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer .brand__mark { border-color: rgba(249, 246, 238, .6); color: var(--paper); }
.footer .brand__name { color: var(--paper); }
.footer p { color: rgba(249, 246, 238, .6); font-size: .95rem; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(249, 246, 238, .14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  font-family: var(--ff-mono);
  color: rgba(249, 246, 238, .5);
}

/* ── Cookie-баннер ────────────────────────────────────────────────────── */
.cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 90;
  max-width: 720px;
  margin-inline: auto;
  display: none;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.cookie.is-open { display: flex; }
.cookie p { margin: 0; font-size: .92rem; line-height: 1.55; }
.cookie .btn-craft { flex: none; padding: 12px 22px; }

/* ── Модальное окно заявки ────────────────────────────────────────────── */
.modal-craft {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(62, 46, 35, .55);
  backdrop-filter: blur(3px);
}
.modal-craft.is-open { display: flex; }
.modal-craft__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-lift);
}
.modal-craft__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
}
.modal-craft__close:hover { border-color: var(--accent); color: var(--accent); }
.modal-craft h2 { font-size: 1.6rem; margin: 0 0 8px; }

/* ── Тосты ────────────────────────────────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; }
.toast {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--text-primary);
  color: var(--paper);
  font-size: .94rem;
  box-shadow: var(--shadow-lift);
  border-left: 3px solid var(--success);
  max-width: 380px;
}
.toast.is-err { border-left-color: var(--accent); }

/* ── Мелочи ───────────────────────────────────────────────────────────── */
.divider-stitch {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  border: 0;
  margin-block: var(--sp) 0;
}
.mono { font-family: var(--ff-mono); }
.text-muted-craft { color: var(--ink-muted); }
.mt-craft { margin-top: 40px; }
.center { text-align: center; }
.stack-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .burger { display: grid; place-items: center; }
  .header .wrap { min-height: 66px; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 90px 22px 30px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 70;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav__cta { display: block; margin-top: 22px; }
  .nav__cta .btn-craft { width: 100%; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 65;
    background: rgba(62, 46, 35, .5);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .specs__row { grid-template-columns: 1fr; gap: 4px; }
  .cookie { flex-direction: column; align-items: flex-start; }
  .cookie .btn-craft { width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topline .wrap { justify-content: center; text-align: center; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .order-card { padding: 24px 20px; }
  .order-card__seal { display: none; }
  .toasts { left: 16px; right: 16px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
