/* =========================================================
   Нестандарт — кастомная мебель
   Palette is taken from the logo: ink, linen, brass, navy, spruce
   ========================================================= */

:root {
  --ink: #121211;
  --ink-2: #1B1A18;
  --ink-3: #262522;
  --linen: #ECE7DF;
  --paper: #F5F2EC;
  --brass: #BC9259;
  --brass-deep: #8A6532;
  --navy: #13294B;
  --spruce: #1C6B56;

  --text: #171715;
  --muted: #5E594F;
  --muted-light: #A39D92;
  --line: rgba(23, 23, 21, .16);
  --line-light: rgba(236, 231, 223, .14);

  --font-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-logo: 'Cormorant SC', Georgia, 'Times New Roman', serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;

  --ease: cubic-bezier(.22, .7, .18, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.js body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; }

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

section[id], footer[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.logo-serif {
  font-family: var(--font-logo);
  font-weight: 600;
  fill: var(--brass);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.btn--brass:hover { background: var(--paper); border-color: var(--paper); }

.link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}

.link:hover { background-size: 40% 1px; }

/* ---------- Intro ---------- */

.intro { display: none; }

.js .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity .8s var(--ease-io), visibility .8s;
}

.intro.is-done { opacity: 0; visibility: hidden; }

.intro__logo {
  width: min(70vw, 400px, 58vh);
  height: auto;
  overflow: visible;
  transition: transform 1.1s var(--ease-io), opacity .9s var(--ease-io);
}

.intro.is-leaving .intro__logo { transform: scale(.72); opacity: 0; }

.intro .il-ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro .il-part { opacity: 0; transform: translateY(14px); transform-box: fill-box; }
.intro .il-arc { opacity: 0; transform: rotate(-12deg); transform-box: fill-box; transform-origin: 50% 160%; }
.intro .il-word path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.intro .il-year { opacity: 0; }

.intro.is-playing .il-ring { animation: draw 1.1s var(--ease-io) forwards; }
.intro.is-playing .il-part { animation: rise .8s var(--ease) var(--d) forwards; }
.intro.is-playing .il-arc { animation: arc-in 1.2s var(--ease) .45s forwards; }
.intro.is-playing .il-word path { animation: draw .5s var(--ease-io) calc(.75s + var(--i) * .07s) forwards; }
.intro.is-playing .il-year { animation: fade .7s ease 1.5s forwards; }

@keyframes draw {
  from { stroke-dashoffset: 1; opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes arc-in { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Header (always visible) ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--paper);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}

.header.is-solid {
  background: rgba(18, 18, 17, .9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-light);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark { width: 40px; height: 41px; display: block; }

.logo__word {
  display: block;
  width: 128px;
  height: auto;
  aspect-ratio: 754 / 132;
  color: var(--brass);
}

.logo__sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-logo);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.nav {
  display: flex;
  gap: clamp(18px, 2.2vw, 32px);
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .82;
  transition: opacity .3s;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(245, 242, 236, .35);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}

.header__tg svg { width: 16px; height: 16px; }
.header__tg:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}

.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Compact mobile menu panel */
.menu {
  position: absolute;
  top: calc(var(--header-h) + 6px);
  right: var(--gutter);
  width: min(300px, calc(100vw - var(--gutter) * 2));
  padding: 8px;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.96);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility .45s;
}

.menu.is-open { opacity: 1; visibility: visible; transform: none; }

.menu__nav a {
  display: block;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), color .3s;
}

.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .03s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .06s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .09s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .15s; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: .18s; }
.menu__nav a:hover { color: var(--brass); }

.menu__contacts {
  display: flex;
  gap: 18px;
  padding: 14px 12px 8px;
}

.menu__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-light);
  text-decoration: none;
}

.menu__contacts svg { width: 18px; height: 18px; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 10, 9, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}

.menu-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav, .header__tg { display: none; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js .hero__bg { transform: scale(1.1); transition: transform 2.6s var(--ease); }
.js .is-ready .hero__bg { transform: none; }

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 11, .6) 0%, rgba(12, 12, 11, .25) 38%, rgba(12, 12, 11, .8) 100%),
    linear-gradient(90deg, rgba(12, 12, 11, .8) 0%, rgba(12, 12, 11, .45) 55%, rgba(12, 12, 11, .15) 100%);
}

.hero__inner {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 28px;
}

.hero__lead {
  align-self: start;
  justify-self: end;
  max-width: 290px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 242, 236, .78);
}

.hero__title {
  margin: 0 0 clamp(36px, 7vh, 80px);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.6vw, 9.6rem);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .05em;
}

.hero__title .line > span { display: inline-block; }

.hero__title .line--accent {
  padding-left: clamp(0px, 12vw, 220px);
  color: var(--brass);
  font-style: italic;
}

.js .hero__title .line > span {
  transform: translateY(108%);
  transition: transform 1.3s var(--ease);
}

.js .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.js .is-ready .hero__title .line > span { transform: none; }

.hero__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 242, 236, .2);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 242, 236, .75);
  text-decoration: none;
}

.hero__scroll svg { width: 18px; height: 18px; }

.hero__kinds {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(245, 242, 236, .6);
}

.js .hero__lead,
.js .hero__bottom {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease) .5s, transform 1.2s var(--ease) .5s;
}

.js .is-ready .hero__lead,
.js .is-ready .hero__bottom { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .hero__kinds { display: none; }
}

@media (max-width: 760px) {
  .hero__lead { justify-self: start; max-width: 260px; font-size: 13px; }
  .hero__title { font-size: clamp(2.6rem, 12.2vw, 4.4rem); line-height: .9; }
  .hero__title .line--accent { padding-left: 0; }
  /* No big "book now" buttons on mobile: CTA becomes a quiet text link */
  .hero__cta {
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    font-size: 12px;
  }
  .hero__cta:hover { background: none; color: inherit; }
  .hero__scroll { font-size: 12px; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

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

.reveal-mask { overflow: hidden; }
.reveal-mask > span { display: inline-block; }

.js .reveal-mask > span {
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
}

.js .reveal-mask.is-in > span { transform: none; }

/* The clip sits on the image, not on the observed box:
   a fully clipped box never counts as visible for IntersectionObserver */
.reveal-img { overflow: hidden; }

.js .reveal-img img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.15);
  transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease);
}

.js .reveal-img.is-in img {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* "Заглушка" caption on placeholder images.
   Delete the <span class="ph-note"> once a real photo is in place. */
.ph-note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 2px;
  background: rgba(18, 18, 17, .74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.ph-note b {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}

.js .reveal-img .ph-note {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s var(--ease) .8s, transform .8s var(--ease) .8s;
}

.js .reveal-img.is-in .ph-note { opacity: 1; transform: none; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 11vw, 150px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.section-title > span { padding-bottom: .04em; }

.section-note {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-note { text-align: left; }
}

/* ---------- About ---------- */

.about { padding-top: clamp(90px, 12vw, 160px); }

.about__text {
  max-width: 1080px;
  margin: 0 0 clamp(56px, 8vw, 110px);
  font-size: clamp(1.15rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.about__text strong { font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(250px, auto);
}

.stat,
.stat-cta,
.stat-photo {
  position: relative;
  margin: 0 -1px -1px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--linen);
}

.stat--a { grid-area: 1 / 1; }
.stat--b { grid-area: 1 / 3; }
.stat--c { grid-area: 2 / 2; }
.stat-cta { grid-area: 1 / 4; }
.stat-photo { grid-area: 2 / 4; }

.stat__label {
  max-width: 22ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.stat__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 7vw, 6.6rem);
  font-weight: 500;
  line-height: .8;
  font-variant-numeric: tabular-nums;
}

.stat__num i { font-style: normal; color: var(--brass); }

.stat-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
}

.stat-cta p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(245, 242, 236, .82); }
.stat-cta .link { align-self: flex-start; color: var(--brass); }

.stat-photo { background: var(--ink); }

.stat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(190px, auto); }
  .stat--a { grid-area: 1 / 1; }
  .stat--b { grid-area: 1 / 2; }
  .stat--c { grid-area: 2 / 1; }
  .stat-photo { grid-area: 2 / 2; }
  .stat-cta { grid-area: 3 / 1 / 4 / 3; }
}

@media (max-width: 480px) {
  .stat { padding: 16px; }
  .stat__num { font-size: 3.6rem; }
}

/* ---------- Services ---------- */

.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1fr) minmax(0, 1.5fr) 150px 130px;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}

.service::before {
  content: '';
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--paper);
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.service:hover::before { opacity: 1; }

.service__icon {
  width: 40px;
  height: 40px;
  color: var(--brass-deep);
}

.service__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
  transition: transform .6s var(--ease);
}

.service:hover .service__name { transform: translateX(10px); }

.service__desc {
  max-width: 46ch;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.service__price {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.service__link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.service__link svg {
  width: 16px;
  height: 16px;
  transition: transform .5s var(--ease);
}

.service:hover .service__link svg { transform: translate(3px, -3px); }

/* Make the whole row clickable */
.service__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

@media (max-width: 900px) {
  .service {
    grid-template-columns: 36px 1fr auto;
    grid-template-areas:
      'icon name price'
      'icon desc desc'
      'icon link link';
    gap: 8px 16px;
    align-items: start;
    padding: 22px 0;
  }
  .service__icon { grid-area: icon; width: 32px; height: 32px; margin-top: 2px; }
  .service__name { grid-area: name; }
  .service__price { grid-area: price; align-self: center; font-size: 14px; }
  .service__desc { grid-area: desc; font-size: 14px; }
  .service__link { grid-area: link; justify-self: start; margin-top: 6px; font-size: 12px; }
}

/* ---------- Projects ---------- */

/* Visible "these are examples" note; delete with the markup once real projects are in */
.demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 12px 16px;
  border-left: 2px solid var(--brass);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.demo-note b {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px);
  align-items: start;
}

.project--1 { grid-column: 1 / 4; }
.project--2 { grid-column: 4 / 9; }
.project--3 { grid-column: 9 / 13; margin-top: clamp(0px, 6vw, 96px); }
.project--4 { grid-column: 1 / 6; }
.project--5 { grid-column: 6 / 9; margin-top: clamp(0px, 6vw, 96px); }
.project--6 { grid-column: 9 / 13; }

.project__media {
  position: relative;
  aspect-ratio: 4 / 5;
}

.project--2 .project__media,
.project--6 .project__media { aspect-ratio: 1 / 1; }
.project--3 .project__media,
.project--4 .project__media { aspect-ratio: 4 / 3; }

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project:hover .project__media img {
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}

.project__title {
  margin: 18px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.project__desc {
  max-width: 42ch;
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.project__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

@media (max-width: 900px) {
  .projects__grid { grid-template-columns: 1fr 1fr; }
  .project--1, .project--2, .project--3,
  .project--4, .project--5, .project--6 { grid-column: auto; margin-top: 0; }
  .project--2 .project__media, .project--6 .project__media,
  .project--3 .project__media, .project--4 .project__media { aspect-ratio: 4 / 5; }
}

@media (max-width: 560px) {
  .projects__grid { grid-template-columns: 1fr; }
  .project__media,
  .project--2 .project__media, .project--6 .project__media,
  .project--3 .project__media, .project--4 .project__media { aspect-ratio: 4 / 3; }
}

/* ---------- Process ---------- */

.process { background: var(--paper); }

.steps {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Track + progress line that fills while scrolling the section */
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.steps::after {
  height: 2px;
  top: -.5px;
  background: var(--brass);
  transform: scaleX(var(--p));
  transform-origin: left;
}

.step {
  position: relative;
  padding-top: 34px;
}

.step::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: var(--paper);
  transition: background-color .4s, border-color .4s;
}

.step.is-passed::before { background: var(--brass); border-color: var(--brass); }

.step__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--brass-deep);
}

.step__title {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.step__text {
  max-width: 30ch;
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--muted);
}

.step__time {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 36px; padding-left: 34px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .steps::after { width: 2px; left: 4.5px; transform: scaleY(var(--p)); transform-origin: top; }
  .step { padding-top: 0; }
  .step::before { top: 6px; left: -34px; }
}

/* ---------- Calculator ---------- */

.calc {
  background: var(--ink);
  color: var(--paper);
}

.calc .section-head { border-color: var(--line-light); }
.calc .section-note { color: var(--muted-light); }

.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}

.calc-group {
  min-width: 0;
  margin: 0 0 38px;
  padding: 0;
  border: 0;
}

.calc-group[hidden] { display: none; }

.calc-group__title {
  display: block;
  margin-bottom: 14px;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* Shared "option" control: hidden native input + styled box */
.opt { position: relative; display: block; cursor: pointer; }

.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.opt__box {
  display: flex;
  height: 100%;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

.opt:hover .opt__box { border-color: rgba(236, 231, 223, .4); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Type tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tiles .opt__box {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
}

.tiles svg { width: 30px; height: 30px; color: var(--brass); transition: color .35s; }

.tiles input:checked + .opt__box { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.tiles input:checked + .opt__box svg { color: var(--brass-deep); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chips .opt__box {
  padding: 10px 16px;
  font-size: 14.5px;
}

.chips input:checked + .opt__box { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Cards (facades, hardware) */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cards .opt__box {
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}

.cards input:checked + .opt__box { border-color: var(--brass); background: rgba(188, 146, 89, .1); }

.swatch {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
}

.opt__radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(236, 231, 223, .45);
  transition: border-width .3s var(--ease), border-color .3s;
}

.cards input:checked + .opt__box .opt__radio { border: 5px solid var(--brass); }

.opt__text { display: grid; gap: 3px; min-width: 0; }
.opt__name { font-size: 15px; font-weight: 500; }
.opt__note { font-size: 13px; line-height: 1.4; color: var(--muted-light); }
.opt__k { font-size: 12px; color: var(--brass); letter-spacing: .04em; }

/* Checkboxes */
.checks { display: grid; gap: 8px; }

.checks .opt__box {
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
}

.check {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(236, 231, 223, .45);
  border-radius: 2px;
  transition: background-color .3s, border-color .3s;
}

.check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease);
}

.checks input:checked + .opt__box { border-color: rgba(188, 146, 89, .6); }
.checks input:checked + .opt__box .check { background: var(--brass); border-color: var(--brass); }
.checks input:checked + .opt__box .check::after { transform: rotate(45deg) scale(1); }

.checks .opt__name { flex: 1; font-size: 14.5px; }
.checks .opt__price { font-size: 13px; color: var(--muted-light); white-space: nowrap; }

/* Range slider */
.range { display: grid; gap: 10px; }

.range__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

.range__input {
  --fill: 50%;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.range__input::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--brass) var(--fill), var(--line-light) var(--fill));
}

.range__input::-moz-range-track { height: 2px; background: var(--line-light); }
.range__input::-moz-range-progress { height: 2px; background: var(--brass); }

.range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  border: 6px solid var(--brass);
  background: var(--paper);
  transition: transform .25s var(--ease);
}

.range__input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 5px solid var(--brass);
  background: var(--paper);
}

.range__input:active::-webkit-slider-thumb { transform: scale(1.15); }

.range__scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-light);
}

/* Result panel */
.calc__result {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
}

.calc__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
}

.calc__lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
  color: rgba(245, 242, 236, .78);
}

.calc__lines li span:last-child { white-space: nowrap; color: var(--paper); font-variant-numeric: tabular-nums; }

.calc__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 22px 0 20px;
}

.calc__total span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.calc__total strong {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.calc__send { width: 100%; }

.calc__hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted-light);
}

.calc__peek { display: none; }

@media (max-width: 1000px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__result { position: static; scroll-margin-top: calc(var(--header-h) + 16px); }

  .calc__peek {
    position: sticky;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(38, 37, 34, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-light);
    border-radius: 2px;
    text-decoration: none;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  }
  .calc__peek span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
  .calc__peek b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--brass); font-variant-numeric: tabular-nums; }
}

@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .calc__result { padding: 16px; }
  /* No big full-width buttons on mobile */
  .calc__send { width: auto; padding: 12px 16px; font-size: 12px; }
}

/* ---------- Sketch (live drawing in the calculator) ---------- */

.sketch {
  --front: #B8946C;
  --carcass: #3A3732;
  --grid: rgba(236, 231, 223, .045);
  position: relative;
  height: 250px;
  margin-bottom: 20px;
  padding: 18px 18px 46px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: center;
}

.sketch::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 1px;
  background: rgba(236, 231, 223, .3);
}

.sk-body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: width .7s var(--ease);
}

.sk-row { position: relative; display: flex; gap: 3px; min-height: 0; }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sk-gap { position: relative; flex: 1; }

/* Front panel (door / drawer) */
.sk-mod {
  position: relative;
  flex: 1;
  border-radius: 1px;
  background-color: var(--front);
  transition: background-color .6s var(--ease), filter .6s;
}

/* Handles */
.sk-mod::after {
  content: '';
  position: absolute;
  display: none;
  background: rgba(20, 20, 18, .45);
}

.sk-h-top::after,
.sk-h-bottom::after { display: block; left: 30%; right: 30%; height: 2px; }
.sk-h-top::after { top: 6px; }
.sk-h-bottom::after { bottom: 6px; }

.sk-h-left::after,
.sk-h-right::after { display: block; top: 42%; width: 2px; height: 16%; }
.sk-h-left::after { left: 5px; }
.sk-h-right::after { right: 5px; }

.sk-side { filter: brightness(.72); }

.sk-drawers {
  background-image:
    linear-gradient(rgba(20, 20, 18, .3), rgba(20, 20, 18, .3)),
    linear-gradient(rgba(20, 20, 18, .3), rgba(20, 20, 18, .3));
  background-size: 100% 2px, 100% 2px;
  background-position: 0 33%, 0 66%;
  background-repeat: no-repeat;
}

.sk-mirror {
  background-image: linear-gradient(135deg, rgba(240, 244, 245, .95) 0%, rgba(160, 170, 174, .9) 55%, rgba(205, 211, 214, .95) 100%);
  background-size: calc(100% - 8px) calc(100% - 8px);
  background-position: center;
  background-repeat: no-repeat;
}

.sk-slats {
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 2px, transparent 2px 7px);
}

.sk-rail { height: 3px; flex: none; background: var(--carcass); }
.sk-top { height: 6px; flex: none; background: #8C877E; transition: background-color .5s; }
.sk-top--stone { background: #E6E1D8; }
.sk-plinth { height: 6px; flex: none; background: var(--carcass); }

/* Open shelving section */
.sk-open {
  position: relative;
  flex: 1;
  border: 3px solid var(--front);
  border-radius: 1px;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(25% - 3px), var(--front) calc(25% - 3px) 25%);
  transition: border-color .6s var(--ease);
}

.sk-open--rod {
  background-image:
    linear-gradient(var(--front), var(--front)),
    repeating-linear-gradient(90deg, rgba(236, 231, 223, .28) 0 7px, transparent 7px 11px);
  background-size: 100% 3px, 84% 50%;
  background-position: 0 16%, 50% 24%;
  background-repeat: no-repeat;
}

.sk-open--shoes {
  background-image: repeating-linear-gradient(170deg, transparent 0 calc(18% - 3px), var(--front) calc(18% - 3px) 18%);
}

/* Hallway niche with hooks and bench */
.sk-niche { position: relative; border-bottom: 0; }

.sk-hooks {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 22%;
  height: 6px;
  background: radial-gradient(circle, var(--brass) 0 3px, transparent 3.5px) 0 0 / 22px 6px repeat-x;
}

.sk-bench {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 26%;
  border-top: 7px solid #CDBFA8;
  background: var(--front);
  transition: background-color .6s var(--ease);
}

/* Kids room pieces */
.sk-area { position: relative; }

.sk-bed {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  height: 14%;
  background: var(--front);
  border-top: 6px solid #EDE6DA;
  transition: background-color .6s var(--ease);
}

.sk-bed::before,
.sk-bed::after {
  content: '';
  position: absolute;
  top: 0;
  width: 4px;
  height: 480%;
  background: var(--carcass);
}

.sk-bed::before { left: 0; }
.sk-bed::after { right: 0; }

.sk-ladder {
  position: absolute;
  right: 6%;
  top: 34%;
  bottom: 0;
  width: 18px;
  border-left: 2px solid var(--carcass);
  border-right: 2px solid var(--carcass);
  background: repeating-linear-gradient(180deg, transparent 0 12px, var(--carcass) 12px 14px);
}

.sk-shelves {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 14%;
  height: 34%;
  border: 3px solid var(--front);
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(33% - 3px), var(--front) calc(33% - 3px) 33%);
}

.sk-desk {
  position: absolute;
  left: 6%;
  width: 62%;
  top: 60%;
  height: 5px;
  background: #E6E1D8;
}

.sk-desk-unit {
  position: absolute;
  left: 46%;
  width: 22%;
  top: calc(60% + 5px);
  bottom: 0;
  background-color: var(--front);
  background-image: linear-gradient(rgba(20, 20, 18, .3), rgba(20, 20, 18, .3));
  background-size: 100% 2px;
  background-position: 0 50%;
  background-repeat: no-repeat;
  transition: background-color .6s var(--ease);
}

.sk-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid var(--brass);
}

/* Lighting glow */
.sk-light {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 210, 154, .6), rgba(247, 210, 154, 0));
  opacity: 0;
  transition: opacity .6s var(--ease);
}

.sketch.has-light .sk-light { opacity: 1; }

/* Dimension line under the drawing */
.sk-dim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  height: 12px;
  border-left: 1px solid rgba(236, 231, 223, .5);
  border-right: 1px solid rgba(236, 231, 223, .5);
}

.sk-dim::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(236, 231, 223, .5);
}

.sk-dim span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 8px;
  background: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* ---------- Reviews ---------- */

.reviews__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.review__text {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.55;
}

.review__text::before {
  content: '“';
  display: block;
  height: .55em;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--brass);
}

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.review__author b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.review:nth-child(2) .review__avatar { background: var(--spruce); }
.review:nth-child(3) .review__avatar { background: var(--brass-deep); }

/* Mobile: swipeable row, moved only by the user */
@media (max-width: 900px) {
  .reviews__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 360px);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reviews__list::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }
}

/* ---------- FAQ ---------- */

.faq { padding-top: 0; }
#faq { scroll-margin-top: calc(var(--header-h) + 40px); }

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.section-head--side { border: 0; margin: 0; padding: 0; }

.faq__list { border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }

.qa__q { margin: 0; }

.qa__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.qa__icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.qa__icon::before,
.qa__icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -.75px;
  background: currentColor;
  transition: transform .5s var(--ease);
}

.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon::after { transform: rotate(0); }

.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}

.qa__a > div { overflow: hidden; }

.qa__a p {
  max-width: 60ch;
  margin: 0;
  padding: 0 40px 24px 0;
  color: var(--muted);
}

.qa.is-open .qa__a { grid-template-rows: 1fr; }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer {
  padding-top: clamp(80px, 11vw, 150px);
  background: var(--ink);
  color: var(--paper);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line-light);
}

.footer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 7rem);
  line-height: .86;
  text-transform: uppercase;
}

.footer__intro p {
  max-width: 380px;
  margin: 0 0 24px;
  font-size: 15px;
  color: rgba(245, 242, 236, .75);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 36px 0;
}

.footer__grid dt {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.footer__grid dd { margin: 0; font-size: 15px; }
.footer__grid a { text-decoration: none; transition: color .3s; }
.footer__grid a:hover { color: var(--brass); }

.footer__word {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 754 / 132;
  margin-top: clamp(24px, 4vw, 48px);
  color: var(--brass);
}

.footer__legal {
  max-width: 72ch;
  margin: 0;
  padding-top: 24px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 28px;
  font-size: 13px;
  color: var(--muted-light);
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; gap: 18px; }
  .footer__bottom { flex-direction: column; gap: 4px; }
  .footer__intro .btn { padding: 11px 16px; font-size: 12px; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .5s;
}

.toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
