/* ============================================================
   Кондитерская «Печенькино» — Концепция 1 «Тёплая пекарня»
   Кремовые поверхности, мягкие формы, карамельные акценты.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  /* Палитра (получена из логотипа) */
  --choco:        #602D0F;
  --brown:        #976336;
  --terra:        #BE692A;
  --terra-deep:   #A8581F;
  --caramel:      #EDB679;
  --beige:        #F4C998;
  --cream:        #FBE5BE;
  --cream-light:  #FDEDD2;
  --milk:         #FFF9E6;
  --olive:        #796336;

  /* Семантические */
  --bg:           var(--milk);
  --bg-warm:      var(--cream-light);
  --surface:      #FFFFFF;
  --ink:          var(--choco);
  --ink-soft:     #7A4A26;
  --ink-faint:    #9A6B43;
  --accent:       var(--terra);
  --line:         rgba(151, 99, 54, 0.22);

  --font-display: "Yeseva One", "Georgia", "Times New Roman", serif;
  --font-body:    "Nunito", "Verdana", "Tahoma", sans-serif;

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;

  --shadow-soft: 0 10px 30px -12px rgba(96, 45, 15, 0.18);
  --shadow-warm: 0 18px 44px -16px rgba(96, 45, 15, 0.28);

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* очень деликатный тёплый градиентный фон вместо текстур */
  background-image:
    radial-gradient(56rem 34rem at 85% -6rem, rgba(237, 182, 121, 0.20), transparent 62%),
    radial-gradient(46rem 30rem at -10% 38%, rgba(244, 201, 152, 0.22), transparent 60%);
  background-repeat: no-repeat;
  overflow-x: clip;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(190, 105, 42, 0.65);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--caramel);
  color: var(--choco);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--choco);
  color: var(--milk);
  border-radius: 999px;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.72em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--lg {
  padding: 0.85em 1.9em;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--terra);
  color: #FFFDF6;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--terra-deep);
  box-shadow: var(--shadow-warm);
}

.btn--outline {
  background: transparent;
  border-color: var(--terra);
  color: var(--choco);
}

.btn--outline:hover {
  background: rgba(190, 105, 42, 0.12);
}

.btn--ghost {
  padding: 0.55em 1.2em;
  border-color: var(--line);
  color: var(--choco);
  background: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  border-color: var(--terra);
  background: #FFFFFF;
}

.btn--cream {
  background: var(--milk);
  color: var(--choco);
}

.btn--cream:hover {
  background: #FFFFFF;
}

.btn--outline-cream {
  background: transparent;
  border-color: rgba(255, 249, 230, 0.75);
  color: var(--milk);
}

.btn--outline-cream:hover {
  background: rgba(255, 249, 230, 0.16);
  border-color: var(--milk);
}

/* ---------- Scallop (фестонный край, как у пирога) ---------- */
.scallop {
  height: 34px;
  background-image: radial-gradient(circle at 18px 34px, var(--bg) 16px, rgba(0, 0, 0, 0) 17px);
  background-size: 36px 34px;
  background-repeat: repeat-x;
  margin-top: clamp(28px, 5vw, 56px);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 230, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 14px -6px rgba(96, 45, 15, 0.35);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__link:hover {
  color: var(--accent);
  border-bottom-color: var(--caramel);
}

.nav__phone {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.burger__line {
  display: block;
  height: 2.4px;
  width: 100%;
  border-radius: 2px;
  background: var(--choco);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7.4px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7.4px) rotate(-45deg);
}

/* ============================================================
   HERO — «окно пекарни»: арка с логотипом
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(28px, 5vw, 56px);
  background: var(--cream-light);
}

.hero__arch {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 6vw, 72px) clamp(36px, 6vw, 60px);
  text-align: center;
  background: linear-gradient(180deg, #FFFAEC 0%, var(--cream-light) 50%, var(--cream) 115%);
  border: 1.5px solid var(--line);
  border-bottom: none;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}

/* мягкое «свечение» за логотипом — как тёплый свет печи */
.hero__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240, 153, 72, 0.28) 0%, rgba(240, 153, 72, 0) 68%);
  pointer-events: none;
}

.hero__logo {
  width: clamp(110px, 18vw, 150px);
  height: auto;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--milk);
  padding: 6px;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero__eyebrow {
  position: relative;
  margin: 22px 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
}

.hero__title {
  position: relative;
  font-size: clamp(2.05rem, 5.4vw, 3.55rem);
  margin-bottom: 0.45em;
}

.hero__accent {
  color: var(--terra);
  white-space: nowrap;
}

.hero__text {
  position: relative;
  max-width: 34em;
  margin-inline: auto;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--ink-soft);
}

.hero__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* ============================================================
   СЕКЦИИ — общее
   ============================================================ */
.section {
  padding-block: clamp(52px, 8vw, 96px) clamp(40px, 6vw, 72px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(30px, 4.5vw, 52px);
}

.section-head__eyebrow {
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.section-head__title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

.section-head__text {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ============================================================
   АССОРТИМЕНТ
   ============================================================ */
.section--assortment {
  padding-top: 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.cat-card {
  height: 100%;
}

.cat-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px 26px 26px 10px;   /* «булочка»: асимметрично мягкие углы */
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-card__link:hover {
  transform: translateY(-5px);
  border-color: var(--caramel);
  box-shadow: var(--shadow-warm);
}

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--cream), var(--beige));
  color: var(--brown);
}

.cat-card__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-card__icon circle {
  fill: currentColor;
  stroke: none;
}

.cat-card__title {
  font-size: 1.22rem;
  margin-bottom: 0.25em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.cat-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-faint);
}

.assortment-note {
  margin: 26px 0 0;
  padding: 14px 20px;
  border-left: 4px solid var(--caramel);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--cream-light);
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 720px;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.section--advantages {
  background: var(--bg-warm);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

.adv-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}

.adv-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--accent);
}

.adv-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.adv-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.35em;
}

.adv-card__text {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ============================================================
   НАШИ РАБОТЫ (фотозона)
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

.work-card__ph {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  border: 1.5px dashed rgba(151, 99, 54, 0.4);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card__ph:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.work-card__ph--1 { background: linear-gradient(150deg, var(--cream-light), var(--beige)); }
.work-card__ph--2 { background: linear-gradient(150deg, var(--beige), var(--caramel)); }
.work-card__ph--3 { background: linear-gradient(150deg, var(--cream), var(--cream-light)); }
.work-card__ph--4 { background: linear-gradient(150deg, var(--caramel), var(--beige)); }
.work-card__ph--5 { background: linear-gradient(150deg, var(--cream-light), var(--cream)); }
.work-card__ph--6 { background: linear-gradient(150deg, var(--beige), var(--cream)); }

/* мягкая «булочка»-заглушка внутри фотозоны */
.work-card__shape {
  width: 92px;
  height: 74px;
  border-radius: 46px 46px 40px 40px;
  background:
    radial-gradient(1.6rem 1.2rem at 50% 0%, rgba(255, 249, 230, 0.55), rgba(255, 249, 230, 0) 70%),
    linear-gradient(180deg, rgba(255, 249, 230, 0.75), rgba(244, 201, 152, 0.65));
  box-shadow:
    0 14px 26px -12px rgba(96, 45, 15, 0.35),
    inset 0 -6px 12px rgba(151, 99, 54, 0.18);
  position: relative;
}

.work-card__shape::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(151, 99, 54, 0.35);
}

.work-card__label {
  margin: 10px 4px 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ============================================================
   О КОНДИТЕРСКОЙ
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about__text p {
  max-width: 36em;
  color: var(--ink-soft);
}

.about__text .section-head__title {
  margin-bottom: 0.6em;
}

.about__audience {
  padding: 16px 20px;
  background: var(--cream-light);
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}

.about__card {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-warm);
}

.about__card-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.about__address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
  margin-bottom: 12px;
}

.about__address .icon {
  margin-top: 4px;
  color: var(--accent);
}

.about__hint {
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.about__btn {
  width: 100%;
}

/* ============================================================
   CTA — тёмный шоколадный блок
   ============================================================ */
.cta {
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(30rem 16rem at 12% -30%, rgba(240, 153, 72, 0.35), transparent 60%),
    radial-gradient(30rem 18rem at 92% 130%, rgba(237, 182, 121, 0.28), transparent 60%),
    var(--choco);
  color: var(--milk);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-warm);
}

.cta__title {
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  color: var(--cream);
  max-width: 18em;
  margin-inline: auto;
}

.cta__text {
  max-width: 36em;
  margin: 0 auto 26px;
  color: rgba(255, 249, 230, 0.85);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ============================================================
   КОНТАКТЫ + ФОРМА
   ============================================================ */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contacts__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contacts__phone:hover {
  color: var(--accent);
}

.contacts__phone .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent);
}

.contacts__note {
  margin: 10px 0 20px;
  color: var(--ink-soft);
}

.contacts__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.contacts__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--caramel);
}

.order-form {
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
}

.order-form__title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.order-form__hint {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.field__input {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--milk);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: rgba(154, 107, 67, 0.6);
}

.field__input:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 4px rgba(190, 105, 42, 0.14);
}

.field__input--area {
  resize: vertical;
  min-height: 84px;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--olive);
  min-height: 1.2em;
}

.form-status.is-error {
  color: var(--terra-deep);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--choco);
  color: rgba(255, 249, 230, 0.85);
  padding: clamp(36px, 5vw, 52px) 0 26px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 249, 230, 0.18);
}

.brand--footer {
  color: var(--milk);
}

.brand--footer .brand__name {
  font-size: 1.3rem;
}

.brand--footer .brand__logo {
  box-shadow: none;
  outline: 2px solid rgba(255, 249, 230, 0.35);
  outline-offset: 2px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__nav a {
  color: rgba(255, 249, 230, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--caramel);
}

.footer__phone {
  color: var(--caramel);
  font-weight: 800;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.footer__phone:hover {
  color: var(--milk);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 249, 230, 0.62);
}

.footer__bottom p {
  margin: 0;
}

/* ============================================================
   ДЕМО-ТОСТ
   ============================================================ */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 300;
  width: min(480px, calc(100vw - 32px));
  padding: 18px 46px 18px 22px;
  background: var(--choco);
  color: var(--milk);
  border-radius: var(--radius-m);
  border: 1px solid rgba(255, 249, 230, 0.25);
  box-shadow: var(--shadow-warm);
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.demo-toast:not([hidden]) {
  animation: toast-in 0.3s ease;
}

.demo-toast__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--caramel);
  font-size: 1.05rem;
}

.demo-toast__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.demo-toast__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 249, 230, 0.14);
  color: var(--milk);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.demo-toast__close:hover {
  background: rgba(255, 249, 230, 0.3);
}

/* ============================================================
   REVEAL-АНИМАЦИИ
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px var(--gutter) 24px;
    background: var(--milk);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    display: block;
    padding: 12px 6px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__link:hover {
    border-bottom-color: var(--caramel);
  }

  .nav__actions {
    padding-top: 14px;
  }

  .nav__phone {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .about,
  .contacts {
    grid-template-columns: 1fr;
  }

  .about__card {
    max-width: 480px;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 340px;
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta__actions .btn {
    width: 100%;
    max-width: 360px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .cat-card__link {
    padding: 18px 16px;
    border-radius: 20px 20px 10px 10px;
  }

  .cat-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
  }

  .cat-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .cat-card__title {
    font-size: 1.02rem;
  }

  .cat-card__text {
    font-size: 0.82rem;
  }

  .brand__name {
    font-size: 1.2rem;
  }

  .brand__logo {
    width: 44px;
    height: 44px;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}