/* ===== Studio Mebli Darko — design system ===== */
:root {
  --dark: #171310;
  --dark-2: #211c17;
  --dark-3: #2b241e;
  --cream: #f6f2ec;
  --surface: #fffdf9;
  --accent: #bf3a28;
  --accent-hover: #d64b36;
  --accent-soft: rgba(191, 58, 40, 0.08);
  --text: #262019;
  --text-soft: #55493d;
  --text-on-dark: #ece5da;
  --muted-on-dark: #a89c8d;
  --muted: #8b8177;
  --line: rgba(38, 32, 25, 0.1);
  --line-on-dark: rgba(236, 229, 218, 0.14);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, 'Segoe UI', sans-serif;
  --shadow-card: 0 2px 6px rgba(23, 19, 16, 0.05), 0 16px 40px -18px rgba(23, 19, 16, 0.25);
  --shadow-card-hover: 0 4px 10px rgba(23, 19, 16, 0.07), 0 28px 56px -20px rgba(23, 19, 16, 0.35);
  --radius: 6px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; color: inherit; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 3rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  background: linear-gradient(rgba(23, 19, 16, 0.55), transparent);
}
.site-header.is-solid,
.site-header.is-sub {
  background: rgba(23, 19, 16, 0.96);
  box-shadow: 0 1px 0 var(--line-on-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid, .site-header.is-sub { background: rgba(23, 19, 16, 0.82); backdrop-filter: blur(12px); }
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.55rem 0.9rem;
  color: var(--text-on-dark); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { position: relative; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 2px; background: var(--accent);
}

.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 0.72em; }
.submenu {
  position: absolute; top: 100%; left: 0.4rem; min-width: 240px;
  background: var(--dark-2); border: 1px solid var(--line-on-dark); border-radius: var(--radius);
  padding: 0.5rem 0; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { text-transform: none; letter-spacing: 0.01em; font-size: 1rem; padding: 0.5rem 1.2rem; }
.submenu a:hover { background: rgba(255, 255, 255, 0.05); }

.header-cta { flex-shrink: 0; margin-left: 0.5rem; }
.site-nav .mobile-cta { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; padding: 0.6rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--text-on-dark);
  margin: 6px 0; transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.9rem; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: rgba(23, 19, 16, 0.2); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn--dark { background: var(--dark); color: var(--text-on-dark); }
.btn--dark:hover { background: var(--dark-3); color: #fff; transform: translateY(-2px); }
.btn--tel { background: var(--accent); color: #fff; padding: 0.7rem 1.4rem; }
.btn--tel:hover { background: var(--accent-hover); color: #fff; }
.btn--tel svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 92svh, 900px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--dark);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 19, 16, 0.35) 0%, rgba(23, 19, 16, 0.1) 40%, rgba(23, 19, 16, 0.78) 100%),
    linear-gradient(75deg, rgba(23, 19, 16, 0.72) 0%, rgba(23, 19, 16, 0.15) 55%, transparent 100%);
}
.hero__content { position: relative; padding: 9rem 0 5.5rem; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, 0.88); max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.overline {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero .overline, .on-dark .overline { color: #e8846f; }
.overline--line { display: inline-flex; align-items: center; gap: 0.8rem; }
.overline--line::before { content: ""; width: 42px; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--dark { background: var(--dark); color: var(--text-on-dark); }
.section--surface { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--muted-on-dark); }

/* ---------- trust strip ---------- */
.trust { background: var(--dark); color: var(--text-on-dark); border-top: 1px solid var(--line-on-dark); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.5rem 1.6rem; border-left: 1px solid var(--line-on-dark);
  font-size: 0.95rem; line-height: 1.4;
}
.trust__item:first-child { border-left: 0; }
.trust__item svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset: 1.6rem -1.6rem -1.6rem 1.6rem;
  border: 1px solid var(--accent); border-radius: var(--radius); z-index: -1; opacity: 0.5;
}
.about__body h2 { max-width: 16ch; }
.about__body p { color: var(--text-soft); }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2rem; margin-top: 2rem; }
.values li { display: flex; align-items: baseline; gap: 0.7rem; font-weight: 500; }
.values li::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; transform: rotate(45deg); }

/* ---------- offer grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--dark-2); color: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); color: #fff; }
.card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover img { transform: scale(1.06); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(23, 19, 16, 0) 42%, rgba(23, 19, 16, 0.86) 100%);
  transition: background 0.3s ease;
}
.card__label {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.card__title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.card__meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.04em; }
.card__arrow {
  flex-shrink: 0; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%;
  display: grid; place-items: center; font-size: 1.05rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.card:hover .card__arrow { background: var(--accent); border-color: var(--accent); transform: translateX(3px); }
.card--wide { aspect-ratio: 16 / 7; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem 1.6rem; counter-reset: step; }
.step { position: relative; padding-top: 1.4rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  display: block; margin-bottom: 0.6rem; opacity: 0.9;
}
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: var(--accent); }
.step h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.step p { font-size: 0.93rem; color: var(--muted-on-dark); margin: 0; }

/* ---------- materials ---------- */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; box-shadow: var(--shadow-card);
}
.panel h3 { margin-bottom: 1rem; }
.panel p { color: var(--text-soft); font-size: 0.97rem; }
.ticks li {
  position: relative; padding: 0.42rem 0 0.42rem 1.9rem; color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.95rem;
  width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-soft); background: var(--cream);
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery a {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 1 / 1; background: var(--dark-2);
}
.gallery a img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease;
}
.gallery a:hover img { transform: scale(1.07); }
.gallery a::after {
  content: "+"; position: absolute; right: 0.7rem; bottom: 0.7rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(23, 19, 16, 0.55); color: #fff; font-size: 1.25rem; line-height: 34px; text-align: center;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery a:hover::after { opacity: 1; transform: translateY(0); }

.gallery--masonry { display: block; columns: 4 260px; column-gap: 1rem; }
.gallery--masonry a { display: block; aspect-ratio: auto; margin-bottom: 1rem; break-inside: avoid; }
.gallery--masonry a img { height: auto; }

.section-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100svh; width: 100vw; height: 100svh;
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(15, 12, 10, 0.94); }
.lightbox img {
  max-width: min(92vw, 1500px); max-height: 86svh;
  width: auto; height: auto; margin: auto;
  border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__btn {
  position: fixed; z-index: 2; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.09); color: #fff; font-size: 1.5rem;
  display: grid; place-items: center; transition: background 0.2s ease;
}
.lightbox__btn:hover { background: var(--accent); }
.lightbox__close { top: 1.2rem; right: 1.2rem; font-size: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: fixed; bottom: 1.3rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; letter-spacing: 0.08em;
}

/* ---------- page hero (subpages) ---------- */
.page-hero {
  position: relative; background: var(--dark); color: #fff;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,19,16,0.9), rgba(23,19,16,0.45)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 0.2em; }
.page-hero__lead { color: rgba(255, 255, 255, 0.85); max-width: 62ch; font-size: 1.08rem; margin: 0; }
.breadcrumbs { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 1.6rem; }
.breadcrumbs a { color: rgba(255, 255, 255, 0.8); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { margin: 0 0.45rem; }

/* ---------- article / offer pages ---------- */
.article-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.article-body { font-size: 1.05rem; color: var(--text-soft); }
.article-body h2 { color: var(--text); font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; }
.article-body h2:first-child { margin-top: 0; }
.article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.4rem; }

.cta-box {
  background: var(--dark); color: var(--text-on-dark);
  border-radius: var(--radius); padding: 1.8rem 1.7rem;
}
.cta-box h3 { color: #fff; }
.cta-box p { color: var(--muted-on-dark); font-size: 0.95rem; }
.cta-box .btn { width: 100%; margin-top: 0.4rem; }
.cta-box__tel { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; margin: 0.4rem 0 0.9rem; }
.cta-box__tel:hover { color: var(--accent-hover); }

/* ---------- realizacje hub ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.cat-cards .card { aspect-ratio: 16 / 9; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-card);
}
.contact-card h2 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.7rem; }
.contact-card a.big, .contact-card p.big { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; color: var(--text); margin: 0; display: block; line-height: 1.25; }
.contact-card a.big:hover { color: var(--accent); }
.contact-card .sub { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); margin-top: 1.4rem; }
.map-wrap iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---------- big cta ---------- */
.big-cta { text-align: center; }
.big-cta h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.big-cta p { color: var(--muted-on-dark); max-width: 52ch; margin: 0 auto 2.2rem; }
.big-cta__tel {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem); color: #fff; margin-bottom: 1.6rem;
}
.big-cta__tel:hover { color: var(--accent-hover); }
.big-cta .hero__actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--muted-on-dark); border-top: 1px solid var(--line-on-dark); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-on-dark); margin-bottom: 1rem; }
.footer-grid img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-grid p { max-width: 38ch; }
.footer-grid ul li { margin-bottom: 0.45rem; }
.footer-grid a { color: var(--muted-on-dark); }
.footer-grid a:hover { color: #fff; }
.footer-social { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark); padding: 1.3rem 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between;
  font-size: 0.85rem; color: var(--muted);
}

/* ---------- reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
  .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
  .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
  .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
  .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
  .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; }
  .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.56s; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 99;
    background: var(--dark-2); border-top: 1px solid var(--line-on-dark);
    padding: 1rem 1.5rem 1.6rem; margin: 0;
    transform: translateY(-115%); transition: transform 0.35s ease;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--line-on-dark); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 0 1.2rem; min-width: 0;
  }
  .site-nav .mobile-cta { display: block; margin-top: 1.2rem; }
  .site-nav .mobile-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item { border-top: 1px solid var(--line-on-dark); }
  .trust__item:nth-child(-n+2) { border-top: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .materials { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__media::before { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .brand img { height: 40px; }
  .hero__content { padding: 7rem 0 3.5rem; }
  .cards, .cat-cards, .materials, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item { padding: 1.1rem 1rem; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.5rem 0 1.8rem; }
  .lightbox__prev, .lightbox__next { width: 44px; height: 44px; }
  .map-wrap iframe { height: 340px; }
}
