@font-face {
  font-family: "Bergamasco";
  src: url("./public/assets/bergamasco-regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Raleway";
  src: url("./public/assets/raleway-medium.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

:root {
  --bg: #151412;
  --bg-alt: #27231f;
  --surface: #332d27;
  --text: #f2ece4;
  --text-soft: #c3bab0;
  --accent: #b59b7a;
  --line: #51473d;
  --line-soft: rgba(81, 71, 61, 0.72);
  --photo-line: rgba(242, 236, 228, 0.38);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.24);
  --radius: 22px;
  --container-max: 1700px;
  --container-gutter: 64px;
  --header-bar-height: 86px;
  --header-height: var(--header-bar-height);
  --section-fade-depth: clamp(170px, 18vw, 300px);
  --photo-fade-depth: clamp(190px, 20vw, 320px);
  --ease: cubic-bezier(0.22, 0.7, 0.22, 1);
}

* {
  box-sizing: border-box;
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overscroll-behavior-y: none;
  background: var(--bg) !important;
  scrollbar-color: var(--line) var(--bg);
  color-scheme: dark;
}

body {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  flex-direction: column;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  color: var(--text);
  background: var(--bg);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 18px;
  font-weight: 450;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg-gradient,
.bg-noise {
  position: fixed;
  z-index: -1;
  left: -12vw;
  right: -12vw;
  top: -160vh;
  bottom: -160vh;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.bg-gradient {
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(181, 155, 122, 0.08) 0, rgba(0, 0, 0, 0) 62%),
    radial-gradient(900px 520px at 85% -20%, rgba(104, 87, 70, 0.1) 0, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #151412 0%, #191612 60%, #151412 100%);
}

.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23f)' opacity='.035'/%3E%3C/svg%3E");
}

@supports (-webkit-touch-callout: none) {
  .bg-gradient,
  .bg-noise {
    top: -200vh;
    bottom: -200vh;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: calc(var(--header-height) + 10px);
  left: max(12px, var(--container-gutter));
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-160%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.skip-link.is-keyboard-focus:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* A restored touch focus must not leave the utility link over the page. The
   link is made visible by script only after a real Tab navigation event. */
.js-ready .skip-link:focus-visible:not(.is-keyboard-focus) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-160%);
}

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

main {
  position: relative;
  z-index: 10;
  width: 100%;
  flex: 1 1 0%;
}

.site-footer {
  position: relative;
  z-index: 10;
}

section[id]:not(#top) {
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.section {
  position: relative;
  --section-current: var(--bg);
  padding: 96px 0 104px;
  color: var(--text);
  background-color: var(--section-current);
  background-image: none;
}

/* Each chapter gets a full-width tonal field. */
#benefits,
#wedo,
#brand,
#key {
  --section-current: var(--bg-alt);
}

.manifesto,
#portfolio,
#materials,
#contacts {
  --section-current: var(--bg);
}

.section--paper,
.section--dark,
.section--clay {
  color: var(--text);
}

/* Inner pages use the same tonal rhythm as the homepage, independent of IDs. */
.section--dark { --section-current: var(--bg-alt); }
.section--paper { --section-current: var(--bg); }
.section--clay { --section-current: var(--surface); }

/*
 * Section joins are drawn inside the receiving section, so the fade knows
 * both real tones without painting over the content that ends the previous
 * section. The selector pairs intentionally cover only different surfaces;
 * equal-toned sections keep a clean, quiet edge.
 */
.section--dark + .section--paper { --section-fade-from: var(--bg-alt); }
.section--dark + .section--clay { --section-fade-from: var(--bg-alt); }
.section--paper + .section--dark { --section-fade-from: var(--bg); }
.section--paper + .section--clay { --section-fade-from: var(--bg); }
.section--clay + .section--dark { --section-fade-from: var(--surface); }
.section--clay + .section--paper { --section-fade-from: var(--surface); }

/* A full-bleed photo hero already ends in --bg; do not inherit the old
 * section--dark source tone just because the hero uses that semantic class. */
.page-hero--fullbleed + .section--paper,
.page-hero--fullbleed + .section--clay,
.page-hero--fullbleed + .section--dark { --section-fade-from: var(--bg); }

/* The hero owns its own photo-to-background fade. Do not add a second,
 * redundant join layer at the same boundary. */
.page-hero--fullbleed + .section--paper::before,
.page-hero--fullbleed + .section--clay::before,
.page-hero--fullbleed + .section--dark::before { display: none; }

.section--dark + .section--paper::before,
.section--dark + .section--clay::before,
.section--paper + .section--dark::before,
.section--paper + .section--clay::before,
.section--clay + .section--dark::before,
.section--clay + .section--paper::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: var(--section-fade-depth);
  pointer-events: none;
  content: "";
  background: linear-gradient(
    to bottom,
    var(--section-fade-from) 0%,
    color-mix(in srgb, var(--section-current) 20%, var(--section-fade-from)) 38%,
    var(--section-current) 100%
  );
}

/* The homepage portfolio ends directly before the full-bleed brand photograph.
 * The generic receiving-section wash must not climb back into the gallery: it
 * creates a false surface behind the final row and the "Показать ещё" button.
 * Keep this join on the portfolio tone and let the photo own its own reveal. */
#portfolio + #brand {
  --section-current: var(--bg);
  --section-fade-from: var(--bg);
  background-color: var(--bg);
}

#portfolio + #brand::before {
  display: none;
}

#portfolio + #brand .brand__image::before {
  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 78%, transparent) 16%,
      transparent 40%
    ),
    linear-gradient(
      90deg,
      rgba(51, 45, 39, 0.98) 0%,
      rgba(51, 45, 39, 0.95) 14%,
      rgba(51, 45, 39, 0.87) 28%,
      rgba(51, 45, 39, 0.68) 44%,
      rgba(51, 45, 39, 0.43) 61%,
      rgba(51, 45, 39, 0.2) 78%,
      rgba(51, 45, 39, 0) 100%
    );
}

/* Keep section content above the join wash. Without an explicit content
 * layer, the positioned fade can cover headings and the first row of a
 * gallery at a section boundary. Full-bleed photo heroes already manage
 * their own stacking order below. */
.section:not(.hero):not(.page-hero--fullbleed) > * {
  position: relative;
  z-index: 1;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-family: "Bergamasco", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: normal;
}

h2 {
  font-size: clamp(52px, 5.4vw, 94px);
}

p {
  margin: 0;
}

.section-label {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.section-heading,
.benefits__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.section-heading__intro,
.benefits__heading > p {
  max-width: 430px;
  padding-bottom: 4px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--small {
  min-height: 48px;
  padding: 10px 18px;
  font-size: 14px;
}

.button--light {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.button--light:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.button--outline-light {
  color: var(--text);
  background: transparent;
  border-color: var(--photo-line);
}

.button--outline-light:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.button--outline {
  color: var(--text);
  background: transparent;
  border-color: var(--photo-line);
}

.button--outline:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.button--ink {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.button--ink:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  border-bottom: 1px solid var(--accent);
  transition: color 200ms ease, border-color 200ms ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--text);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: var(--text);
  background-color: rgba(21, 20, 18, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.site-header.is-scrolled {
  background-color: rgba(21, 20, 18, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}

@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
  .site-header,
  .site-header.is-scrolled {
    background-color: rgba(21, 20, 18, 0.45);
  }
}

.header__inner {
  display: flex;
  min-height: var(--header-bar-height);
  align-items: center;
  gap: 28px;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-mark__logo {
  width: auto;
  height: 44px;
}

.site-header .brand-mark__logo--inverse,
.site-footer .brand-mark__logo--inverse {
  display: block;
}

.site-header .brand-mark__logo--dark,
.site-footer .brand-mark__logo--dark {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 32px);
  margin-left: auto;
}

.desktop-nav a,
.header__contact a {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 200ms ease;
}

.desktop-nav a:hover,
.header__contact a:hover,
.mobile-menu a:hover {
  color: var(--accent);
}

.header__contact {
  display: grid;
  width: 190px;
  min-width: 190px;
  flex: 0 0 190px;
  grid-template-rows: 18px 27px;
  align-content: center;
  gap: 2px;
  justify-items: start;
  margin-left: 0;
  text-align: left;
}

.header__contact a {
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.header__contact span {
  display: block;
  max-width: 100%;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.2;
}

.header__callback {
  flex: 0 0 auto;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: auto;
  min-width: 92px;
  height: 46px;
  margin-left: auto;
  padding: 0 14px;
  color: var(--text);
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: rgba(39, 35, 31, 0.62);
  border: 1px solid rgba(181, 155, 122, 0.58);
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 180ms ease;
}

.menu-toggle__label {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.menu-toggle__icon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.menu-toggle__icon i {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 99px;
  transition: transform 220ms ease, opacity 220ms ease, width 220ms ease;
}

.menu-toggle__icon i:nth-child(2) {
  width: 14px;
  margin-left: auto;
}

.menu-toggle:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.menu-toggle:active {
  transform: scale(0.97);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  padding: 20px var(--container-gutter) 28px;
  color: var(--text);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: calc(100svh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 18px;
  font-weight: 600;
  transition: color 200ms ease;
}

.mobile-menu__services {
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu__services summary {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}

.mobile-menu__services summary::-webkit-details-marker {
  display: none;
}

.mobile-menu__services summary::after {
  color: var(--accent);
  content: "＋";
  font-size: 18px;
  font-weight: 400;
}

.mobile-menu__services[open] summary::after {
  content: "－";
}

.mobile-menu__services-panel {
  display: grid;
  padding: 0 0 10px 18px;
}

.mobile-menu nav .mobile-menu__services-panel a {
  padding: 11px 0;
  color: var(--text-soft);
  border-bottom-color: rgba(81, 71, 61, 0.45);
  font-size: 15px;
  font-weight: 500;
}

.mobile-menu nav .mobile-menu__services-panel a:last-child {
  border-bottom: 0;
}

.mobile-menu__footer {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.mobile-menu__footer a {
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
}

.mobile-menu__footer span {
  color: var(--text-soft);
  font-size: 13px;
}

.mobile-menu.is-open {
  display: block;
}

.city-trigger {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  color: var(--accent);
  background: rgba(39, 35, 31, 0.52);
  border: 1px solid rgba(181, 155, 122, 0.46);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.city-trigger:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.city-trigger--mobile {
  display: none;
}

.city-switcher {
  position: relative;
  flex: 0 0 auto;
}

.city-switcher summary {
  display: grid;
  min-width: 112px;
  min-height: 42px;
  align-content: center;
  padding: 7px 34px 7px 14px;
  color: var(--text);
  background: rgba(39, 35, 31, 0.52);
  border: 1px solid rgba(181, 155, 122, 0.42);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.city-switcher summary::-webkit-details-marker {
  display: none;
}

.city-switcher summary::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  content: "";
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease;
}

.city-switcher[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.city-switcher summary span {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.city-switcher summary strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}

.city-switcher__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 180px;
  padding: 8px;
  background: rgba(39, 35, 31, .98);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.city-switcher__menu a {
  padding: 11px 12px;
  color: var(--text-soft);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.city-switcher__menu a:hover,
.city-switcher__menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(181, 155, 122, .13);
}

.city-switcher--mobile {
  display: none;
}

.city-switcher--mobile > span {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.city-switcher--mobile-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mobile-menu .city-switcher--mobile-options a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: var(--text-soft);
  background: rgba(39, 35, 31, .52);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
}

.city-switcher--mobile-options a[aria-current="page"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.city-choice-open {
  overflow: hidden;
}

.city-choice {
  width: min(680px, calc(100% - 36px));
  max-height: calc(100svh - 36px);
  padding: 0;
  overflow: visible;
  color: var(--text);
  background: transparent;
  border: 0;
}

.city-choice::backdrop {
  background: rgba(10, 9, 8, .76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.city-choice__surface {
  position: relative;
  padding: clamp(30px, 5vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0, rgba(181, 155, 122, .14), transparent 38%),
    var(--bg-alt);
  border: 1px solid rgba(181, 155, 122, .42);
  border-radius: 26px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .52);
}

.city-choice__surface::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .35;
  background-image: linear-gradient(rgba(181, 155, 122, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(181, 155, 122, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.city-choice__surface > * {
  position: relative;
  z-index: 1;
}

.city-choice__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: rgba(21, 20, 18, .55);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.city-choice__close span {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 17px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.city-choice__close span:last-child {
  transform: rotate(-45deg);
}

.city-choice .section-label {
  margin-bottom: 18px;
}

.city-choice h2 {
  max-width: 540px;
  padding-right: 34px;
  font-size: clamp(46px, 7vw, 72px);
}

.city-choice h2 + p {
  max-width: 520px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.5;
}

.city-choice__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.city-choice__option {
  display: grid;
  min-height: 112px;
  align-content: space-between;
  padding: 20px;
  color: var(--text);
  background: rgba(21, 20, 18, .42);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms var(--ease);
}

.city-choice__option:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.city-choice__option span {
  font-family: "Bergamasco", Georgia, serif;
  font-size: 34px;
  letter-spacing: -.025em;
  line-height: 1;
}

.city-choice__option small {
  color: var(--text-soft);
  font-size: 12px;
}

.city-choice__option:hover small {
  color: var(--bg);
}

.city-choice__later {
  margin-top: 22px;
  padding: 4px 0;
  color: var(--text-soft);
  background: transparent;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
}

.city-context {
  color: var(--text);
  background: var(--bg);
}

.city-context__inner {
  display: grid;
  grid-template-columns: minmax(180px, .36fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  padding-top: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.city-context .section-label {
  margin: 7px 0 0;
}

.city-context__copy {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(260px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.city-context h2 {
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: .98;
}

.city-context__copy p {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 960px);
  overflow: hidden;
  isolation: isolate;
  --join-rgb: 39, 35, 31;
  --photo-fade-depth: clamp(190px, 20vw, 320px);
  color: var(--text);
  background: var(--bg-alt);
}

.hero__media,
.hero__media img,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center;
}

.hero__veil {
  z-index: 1;
  background: linear-gradient(90deg, rgba(21, 20, 18, 0.9) 0%, rgba(21, 20, 18, 0.66) 34%, rgba(21, 20, 18, 0.2) 71%, rgba(21, 20, 18, 0.18) 100%);
}

.hero::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--photo-fade-depth);
  pointer-events: none;
  content: "";
  background: linear-gradient(
    to bottom,
    rgba(var(--join-rgb), 0) 0%,
    rgba(var(--join-rgb), 0.08) 18%,
    rgba(var(--join-rgb), 0.28) 40%,
    rgba(var(--join-rgb), 0.58) 62%,
    rgba(var(--join-rgb), 0.86) 80%,
    rgba(var(--join-rgb), 1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: min(100svh, 960px);
  grid-template-columns: minmax(0, 800px) 1fr;
  align-items: end;
  gap: 48px;
  padding-top: calc(var(--header-height) + 76px);
  padding-bottom: 64px;
}

.hero__copy {
  max-width: 800px;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(60px, 5.3vw, 88px);
}

.hero__support {
  max-width: 620px;
  margin-top: 24px;
  color: var(--text-soft);
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 450;
  line-height: 1.5;
}

.hero__support span,
.hero__support em {
  display: block;
}

.hero__support em {
  color: inherit;
  font-style: normal;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__contacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 660px);
  margin-top: 22px;
  overflow: hidden;
  background: rgba(21, 20, 18, 0.38);
  border: 1px solid rgba(242, 236, 228, 0.24);
  border-radius: 14px;
}

.hero-contact {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 650;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms var(--ease);
}

.hero-contact + .hero-contact {
  border-left: 1px solid rgba(242, 236, 228, 0.18);
}

.hero-contact:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}

.hero-contact:active {
  transform: translateY(0);
}

.hero-contact__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero__aside {
  align-self: end;
  justify-self: end;
  max-width: 250px;
  padding-bottom: 6px;
  color: var(--text-soft);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.5;
}

.hero-sequence > * {
  animation: hero-rise 680ms var(--ease) both;
}

.hero-sequence > :nth-child(1) { animation-delay: 80ms; }
.hero-sequence > :nth-child(2) { animation-delay: 150ms; }
.hero-sequence > :nth-child(3) { animation-delay: 250ms; }
.hero-sequence > :nth-child(4) { animation-delay: 330ms; }
.hero-sequence > :nth-child(5) { animation-delay: 430ms; }
.hero-sequence > :nth-child(6) { animation-delay: 520ms; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Benefits */
.benefits {
  padding-top: 92px;
}

.benefits-atelier {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 510px;
  margin-top: 20px;
  padding: 28px 32px 32px;
  overflow: hidden;
  border-top: 1px solid rgba(181, 155, 122, 0.26);
  border-bottom: 1px solid rgba(181, 155, 122, 0.26);
  background-image: linear-gradient(90deg, rgba(21, 20, 18, 0.96) 0%, rgba(21, 20, 18, 0.78) 48%, rgba(21, 20, 18, 0.9) 100%), url("./public/assets/portfolio/interior/884-DSC08555.jpg");
  background-position: center 42%;
  background-size: cover;
}

.benefits-atelier::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.15;
  background-image: linear-gradient(rgba(181, 155, 122, 0.24) 1px, transparent 1px), linear-gradient(90deg, rgba(181, 155, 122, 0.24) 1px, transparent 1px);
  background-size: 44px 44px;
}

.benefits-atelier::after {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(181, 155, 122, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.benefits-atelier__drawing {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 280px;
  place-items: center;
}

.benefits-atelier__drawing svg {
  width: min(100%, 700px);
  height: auto;
  overflow: visible;
  color: rgba(242, 236, 228, 0.84);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.benefits-atelier__drawing-line--fine {
  opacity: 0.34;
  stroke-width: 0.75;
}

.benefits-atelier__drawing-line--accent {
  color: var(--accent);
  opacity: 0.92;
  stroke-width: 1.4;
}

.benefits-atelier__drawing-point {
  fill: var(--accent);
  stroke: var(--bg-alt);
  stroke-width: 2;
}

.benefits-atelier__drawing-point--small {
  fill: transparent;
  stroke: var(--accent);
  stroke-width: 1.2;
}

.benefits-atelier__notes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(181, 155, 122, 0.3);
}

.benefit-note {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 9px;
  min-width: 0;
  min-height: 136px;
  padding: 0 0 10px;
}

.benefit-note__index {
  display: block;
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: 50px;
  letter-spacing: -0.05em;
  line-height: 0.72;
}

.benefit-note strong {
  display: block;
  color: var(--text);
  font-size: clamp(19px, 1.4vw, 24px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.benefit-note p {
  align-self: end;
  max-width: 250px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.38;
}

/* Manifesto */
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 12%;
  align-items: start;
}

.manifesto__body {
  max-width: 530px;
  padding-top: 66px;
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.manifesto__text {
  display: grid;
  gap: 22px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.58;
}

.manifesto__body .text-link {
  margin-top: 38px;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  display: block;
  min-height: 268px;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms var(--ease);
}

.service-card:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  width: 58%;
  min-height: 268px;
  flex-direction: column;
  padding: 27px 25px 23px;
}

.service-card h3 {
  max-width: 300px;
  margin: 0;
  color: inherit;
  font-size: clamp(21px, 1.75vw, 29px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.service-card p {
  max-width: 360px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.service-card__action {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.service-card__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.service-card__media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(51, 45, 39, 0.98) 0%, rgba(51, 45, 39, 0.95) 14%, rgba(51, 45, 39, 0.87) 28%, rgba(51, 45, 39, 0.68) 44%, rgba(51, 45, 39, 0.43) 61%, rgba(51, 45, 39, 0.2) 78%, rgba(51, 45, 39, 0) 100%);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), filter 300ms ease;
}

.service-card:hover .service-card__media img,
.service-card:focus-visible .service-card__media img {
  filter: saturate(1.06);
  transform: scale(1.045);
}

.service-card:hover .service-card__action {
  color: var(--text);
  border-color: var(--text);
}

.service-card--feature {
  grid-column: span 2;
  min-height: 330px;
  background: var(--surface);
}

.service-card--feature h3 {
  font-size: clamp(26px, 2.5vw, 42px);
}

.service-card--feature .service-card__content {
  width: 52%;
  min-height: 330px;
  padding: 31px 30px 27px;
}

/* Portfolio */
.portfolio-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.portfolio-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 16px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.portfolio-tabs button:hover,
.portfolio-tabs button[aria-selected="true"] {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 26px 0 20px;
  color: var(--text-soft);
  font-size: 14px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: clamp(210px, 18vw, 270px);
  gap: 14px;
  min-height: 514px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-grid.is-changing {
  opacity: 0.35;
  transform: translateY(6px);
}

.portfolio-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}

.portfolio-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.portfolio-card:nth-child(2) { grid-column: span 5; grid-row: span 1; }
.portfolio-card:nth-child(3) { grid-column: span 5; grid-row: span 1; }
.portfolio-card:nth-child(4) { grid-column: span 4; grid-row: span 1; }
.portfolio-card:nth-child(5) { grid-column: span 4; grid-row: span 1; }
.portfolio-card:nth-child(6) { grid-column: span 4; grid-row: span 1; }
.portfolio-card:nth-child(7) { grid-column: span 5; grid-row: span 1; }
.portfolio-card:nth-child(8) { grid-column: span 7; grid-row: span 1; }
.portfolio-card:nth-child(n + 9) { grid-column: span 4; grid-row: span 1; }

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 350ms ease;
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img {
  filter: saturate(1.05);
  transform: scale(1.035);
}

.portfolio-more {
  display: flex;
  margin: 24px auto 0;
}

/* The portfolio button should hand the page to the next visual chapter
 * without leaving the old section's full breathing room below it. */
#portfolio {
  padding-bottom: 56px;
}

.portfolio-more.is-hidden {
  display: none;
}

/* Brand */
.brand.section {
  padding: 0;
}

.brand__grid {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: clamp(560px, 42vw, 700px);
  margin-inline: 0;
  padding-inline: max(var(--container-gutter), calc((100vw - var(--container-max)) / 2));
  overflow: hidden;
  background: transparent;
}

.brand__copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: 56%;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding: 54px 48px 46px;
}

.brand__copy > p:not(.section-label) {
  max-width: 560px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.58;
}

.brand__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 440px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.brand__facts div {
  display: grid;
  gap: 5px;
}

.brand__facts strong {
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 0.95;
}

.brand__facts span {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.35;
}

.brand__image,
.materials__image,
.turnkey__image {
  margin: 0;
  /* Photo edges dissolve into the tonal fields instead of forming a hard cut. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.74) 5%, #000 15%, #000 90%, rgba(0, 0, 0, 0.74) 97%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.74) 5%, #000 15%, #000 90%, rgba(0, 0, 0, 0.74) 97%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.brand__image {
  z-index: 0;
  position: absolute;
  inset: 0;
  min-width: 0;
  overflow: hidden;
}

.brand__image::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(51, 45, 39, 0.94) 0%, rgba(51, 45, 39, 0.7) 14%, rgba(51, 45, 39, 0) 38%),
    linear-gradient(90deg, rgba(51, 45, 39, 0.98) 0%, rgba(51, 45, 39, 0.95) 14%, rgba(51, 45, 39, 0.87) 28%, rgba(51, 45, 39, 0.68) 44%, rgba(51, 45, 39, 0.43) 61%, rgba(51, 45, 39, 0.2) 78%, rgba(51, 45, 39, 0) 100%);
}

.brand__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transition: transform 700ms var(--ease), filter 300ms ease;
}

.brand__image:hover img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

/* Materials */
.materials.section {
  padding: 0;
}

.materials__grid {
  position: relative;
  display: grid;
  width: 100%;
  max-width: none;
  min-height: clamp(700px, 58vw, 860px);
  margin-inline: 0;
  padding: 76px max(var(--container-gutter), calc((100vw - var(--container-max)) / 2)) 90px;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 9%;
  align-items: start;
  overflow: hidden;
  background: transparent;
}

.materials__intro,
.materials__list {
  position: relative;
  z-index: 2;
}

.materials__intro > p:not(.section-label) {
  max-width: 480px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.55;
}

.materials__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.materials__image::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(21, 20, 18, 0.94) 0%,
      rgba(21, 20, 18, 0.82) 18%,
      rgba(21, 20, 18, 0.34) 40%,
      rgba(21, 20, 18, 0.48) 54%,
      rgba(21, 20, 18, 0.76) 73%,
      rgba(21, 20, 18, 0.94) 100%
    ),
    linear-gradient(0deg, rgba(21, 20, 18, 0.52), transparent 42%);
}

.materials__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  transform: translateY(var(--parallax-offset, 0));
}

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

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

.materials__list summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.materials__list summary::-webkit-details-marker {
  display: none;
}

.materials__list summary strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.icon-plus {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.icon-plus::before,
.icon-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 200ms ease;
}

.icon-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .icon-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.materials__list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 42px 24px 0;
  color: var(--text-soft);
  font-size: 16px;
  list-style: none;
}

.materials__list li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 1px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

/* Turnkey */
.turnkey.section {
  padding: 0;
}

.turnkey__grid {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: clamp(560px, 42vw, 700px);
  margin-inline: 0;
  padding-inline: max(var(--container-gutter), calc((100vw - var(--container-max)) / 2));
  overflow: hidden;
  background: transparent;
}

.turnkey__copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: 56%;
  min-height: inherit;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  padding: 54px 48px 46px;
}

.turnkey__image {
  z-index: 0;
  position: absolute;
  inset: 0;
  min-width: 0;
  overflow: hidden;
}

.turnkey__image::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(51, 45, 39, 0) 0%, rgba(51, 45, 39, 0.2) 22%, rgba(51, 45, 39, 0.43) 39%, rgba(51, 45, 39, 0.68) 56%, rgba(51, 45, 39, 0.87) 72%, rgba(51, 45, 39, 0.95) 86%, rgba(51, 45, 39, 0.98) 100%);
}

.turnkey__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  object-position: 32% center;
  transform: translateY(var(--parallax-offset, 0));
}

.turnkey__copy > p:not(.section-label) {
  max-width: 520px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.58;
}

.process-list {
  display: grid;
  gap: 0;
  max-width: 520px;
  margin: 38px 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.process-list li span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

/* Contacts */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 10%;
  align-items: start;
}

.contact__copy > p:not(.section-label) {
  max-width: 480px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 19px;
}

.contact__links {
  display: grid;
  gap: 9px;
  margin-top: 38px;
}

.contact__links a {
  width: fit-content;
  color: var(--text);
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.contact__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact__links span {
  color: var(--text-soft);
  font-size: 14px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-links a {
  padding: 9px 13px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.social-links a:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.contact-form__intro {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.contact-form__kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.contact-form__intro h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.contact-form__intro p:last-child {
  max-width: 620px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}

.contact-form__intro > p:not(.contact-form__kicker) {
  max-width: 690px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.contact-form input {
  min-height: 52px;
}

.contact-form textarea {
  min-height: 128px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(195, 186, 176, 0.68);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #1c1a17;
  border-color: var(--accent);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #a97968;
}

.consent-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.consent {
  position: relative;
  display: inline-flex !important;
  min-height: 22px;
  align-items: center;
  gap: 8px !important;
  padding: 0;
  color: var(--text-soft) !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 550 !important;
  line-height: 1.45;
  transition: color 200ms ease;
}

.consent:hover {
  color: var(--text) !important;
}

.consent:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.consent__box {
  position: relative;
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--text-soft);
  border-radius: 4px;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.consent__box::after {
  width: 9px;
  height: 5px;
  content: "";
  border-bottom: 2px solid var(--bg);
  border-left: 2px solid var(--bg);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 180ms ease;
}

.consent input:checked + .consent__box {
  background: var(--accent);
  border-color: var(--accent);
}

.consent input:checked + .consent__box::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.consent__with {
  color: var(--text-soft);
}

.consent-policy {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.consent-policy:hover {
  color: var(--text);
}

.form-status {
  min-height: 22px;
  color: var(--accent);
  font-size: 14px;
}

.form-status.is-error {
  color: #d69d8b;
}

/* Footer */
.site-footer {
  padding: 58px 0 24px;
  color: var(--text-soft);
  background: var(--bg-alt);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 8%;
  align-items: start;
}

.site-footer .brand-mark__logo {
  height: 52px;
}

.site-footer__nav,
.site-footer__legal {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.site-footer__nav a:hover,
.site-footer__bottom a:hover {
  color: var(--text);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 18px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  border: 0;
}

.lightbox::backdrop {
  background: rgba(10, 9, 8, 0.94);
  backdrop-filter: blur(16px);
}

.lightbox__inner {
  width: min(100%, 1720px);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 72px) 24px;
}

.lightbox__topbar,
.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lightbox__eyebrow {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lightbox__eyebrow span {
  margin-inline: 8px;
  color: var(--accent);
}

.lightbox__close,
.lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(51, 45, 39, .66);
  border: 1px solid rgba(181, 155, 122, .45);
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms var(--ease);
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox__close {
  gap: 12px;
  min-height: 44px;
  padding: 9px 14px 9px 17px;
  border-radius: 999px;
  font-size: 14px;
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.lightbox__stage {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(106px, 1fr) minmax(0, 1160px) minmax(106px, 1fr);
  gap: clamp(16px, 3vw, 50px);
  align-items: center;
}

.lightbox__figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: 12px;
  margin: 0;
  justify-items: center;
}

.lightbox__image-shell {
  display: grid;
  width: 100%;
  height: min(74vh, 720px);
  min-height: 0;
  place-items: center;
}

.lightbox__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lightbox__figure img.is-switching {
  opacity: 0.35;
  transform: translateX(10px);
}

.lightbox__nav {
  justify-self: center;
  gap: 10px;
  min-width: 108px;
  min-height: 52px;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 14px;
}

.lightbox__nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.lightbox__nav--prev:hover,
.lightbox__nav--prev:focus-visible { transform: translateX(-3px); }
.lightbox__nav--next:hover,
.lightbox__nav--next:focus-visible { transform: translateX(3px); }

.lightbox__figure figcaption {
  display: flex;
  width: min(100%, 860px);
  min-height: 1.4em;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.lightbox__caption {
  display: -webkit-box;
  max-width: min(100%, 64ch);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lightbox__status {
  color: #e0a18e;
}

.lightbox__counter {
  color: var(--accent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.lightbox__hint {
  color: var(--text-soft);
  font-size: 12px;
}

@media (max-width: 1500px) {
  :root { --container-gutter: 48px; }

  .header__inner { gap: 18px; }
  .brand-mark__logo { height: 40px; }
  .desktop-nav { gap: 16px; }
  .desktop-nav a,
  .desktop-nav__services summary { font-size: 14px; }
  .header__contact {
    width: 174px;
    min-width: 174px;
    flex-basis: 174px;
  }
  .header__contact a { font-size: 14px; }
  .header__callback { padding-inline: 15px; }
}

@media (max-width: 1320px) {
  .desktop-nav { display: none; }
  .city-trigger:not(.city-trigger--mobile),
  .city-switcher { display: none; }
  .city-trigger--mobile {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 18px;
  }
  .city-switcher--mobile {
    display: block;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
  }
  .header__contact { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .city-trigger:not(.city-trigger--mobile),
  .city-switcher { display: none; }
  .city-trigger--mobile {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 18px;
  }
  .city-switcher--mobile {
    display: block;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
  }
  .header__contact { margin-left: auto; }
  .menu-toggle { display: inline-flex; }

  .hero__content {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card--feature { grid-column: span 2; }
}

@media (max-width: 820px) {
  :root {
    --container-gutter: 24px;
    --header-bar-height: 74px;
  }

  body { font-size: 16px; }

  .section {
    padding: 64px 0 72px;
  }

  h2 { font-size: clamp(46px, 10vw, 72px); }

  .section-heading,
  .benefits__heading {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 24px;
  }

  .section-heading__intro,
  .benefits__heading > p {
    max-width: 600px;
    font-size: 16px;
  }

  .brand-mark__logo { height: 38px; }
  .header__contact { display: none; }
  .header__callback { display: none; }

  .site-header {
    background-color: rgba(21, 20, 18, 0.65);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
  .site-header.is-scrolled {
    background-color: rgba(21, 20, 18, 0.65);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  @supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
    .site-header,
    .site-header.is-scrolled {
      background-color: rgba(21, 20, 18, 0.45);
    }
  }
  .header__inner { min-height: var(--header-bar-height); }

  .hero,
  .hero__content { min-height: 780px; }

  .hero__media img { object-position: 62% center; }

  .hero__veil {
    background: linear-gradient(90deg, rgba(21, 20, 18, 0.92) 0%, rgba(21, 20, 18, 0.58) 68%, rgba(21, 20, 18, 0.3) 100%);
  }

  .hero__content {
    display: block;
    padding-top: calc(var(--header-height) + 82px);
    padding-bottom: 32px;
  }

  .hero h1 { max-width: 620px; font-size: clamp(58px, 11.5vw, 88px); }
  .hero__support { max-width: 620px; font-size: clamp(18px, 2.4vw, 22px); }
  .hero__aside { display: none; }

  .hero__contacts { width: min(100%, 560px); }

  .benefits-atelier {
    min-height: 0;
    margin-top: 18px;
    padding: 22px 18px 24px;
    background-image: linear-gradient(180deg, rgba(21, 20, 18, 0.94) 0%, rgba(21, 20, 18, 0.84) 100%), url("./public/assets/portfolio/interior/884-DSC08555.jpg");
    background-position: 58% center;
  }

  .benefits-atelier::after {
    top: 4%;
    width: min(92vw, 420px);
  }

  .benefits-atelier__drawing {
    min-height: 220px;
  }

  .benefits-atelier__drawing svg {
    width: 100%;
  }

  .benefits-atelier__notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 10px;
    padding-top: 18px;
  }

  .benefit-note {
    min-height: 142px;
    gap: 8px;
    padding: 14px 0 18px;
    border-bottom: 1px solid rgba(181, 155, 122, 0.2);
  }

  .benefit-note__index {
    font-size: 40px;
  }

  .benefit-note strong {
    font-size: 19px;
  }

  .benefit-note p {
    max-width: 240px;
    font-size: 13px;
    line-height: 1.35;
  }

  .manifesto__grid,
  .brand__grid,
  .materials__grid,
  .turnkey__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .manifesto__body { max-width: 680px; padding-top: 24px; padding-left: 24px; }
  .manifesto__text,
  .brand__copy > p:not(.section-label),
  .materials__intro > p:not(.section-label),
  .turnkey__copy > p:not(.section-label),
  .contact__copy > p:not(.section-label) { font-size: 17px; }

  .brand__image,
  .materials__image,
  .turnkey__image { max-width: 680px; }

  .brand__image { max-width: none; }
  .turnkey__image,
  .turnkey__copy { max-width: none; }

  .materials__image { max-width: none; }
  .turnkey__copy { max-width: 680px; }
  .contact__grid { gap: 32px; }

  .contact-form { max-width: 680px; padding: 24px; }

  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__legal { grid-column: 1 / -1; }

  .city-context__inner,
  .city-context__copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .city-context__inner {
    padding-top: 28px;
    padding-bottom: 30px;
  }
}

@media (max-width: 560px) {
  :root { --container-gutter: 18px; }

  .city-choice {
    width: 100%;
    max-width: none;
    max-height: calc(100svh - env(safe-area-inset-top));
    margin: auto 0 0;
  }

  .city-choice__surface {
    padding: 32px 20px calc(24px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .city-choice h2 {
    padding-right: 42px;
    font-size: clamp(44px, 13vw, 58px);
  }

  .city-choice h2 + p {
    margin-top: 16px;
    font-size: 15px;
  }

  .city-choice__options {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .city-choice__option {
    min-height: 82px;
    padding: 16px 18px;
  }

  .city-choice__option span {
    font-size: 31px;
  }

  .city-choice__later {
    margin-top: 18px;
  }

  .header__inner { gap: 16px; }
  .brand-mark__logo { height: clamp(26px, 7vw, 30px); }
  .menu-toggle { min-width: 86px; padding-inline: 12px; gap: 8px; }
  .menu-toggle__label { font-size: 12px; }

  .hero,
  .hero__content { min-height: 760px; }

  .hero__media img { object-position: 60% center; }
  .hero__content { padding-top: calc(var(--header-height) + 78px); }
  .hero__copy {
    display: flex;
    min-height: clamp(520px, calc(100svh - 286px), 576px);
    flex-direction: column;
  }
  .hero h1 { font-size: clamp(54px, 15.2vw, 76px); line-height: 0.91; }
  .hero__support { margin-top: 18px; font-size: 17px; line-height: 1.42; }

  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; }
  .hero__actions .button { width: 100%; min-height: 54px; padding-inline: 12px; font-size: 14px; }

  .hero__contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; border-radius: 12px; }
  .hero-contact { min-height: 48px; gap: 7px; padding: 8px 9px; font-size: 14px; }
  .hero-contact:nth-child(odd) { border-left: 0; }
  .hero-contact:nth-child(n + 3) { border-top: 1px solid rgba(242, 236, 228, 0.18); }
  .hero-contact__icon { width: 20px; height: 20px; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card--feature { grid-column: auto; }
  .service-card,
  .service-card--feature {
    display: grid;
    min-height: 392px;
    grid-template-columns: 1fr;
    grid-template-rows: 168px 1fr;
  }
  .service-card__media {
    position: relative;
    inset: auto;
    grid-row: 1;
  }
  .service-card__content {
    grid-row: 2;
    width: auto;
    min-height: 224px;
    padding: 22px 20px 20px;
  }
  .service-card--feature .service-card__content {
    width: auto;
    min-height: 224px;
    padding: 22px 20px 20px;
  }
  .service-card__media::before { background: linear-gradient(0deg, var(--surface) 0%, rgba(51, 45, 39, 0.22) 42%, transparent 100%); }
  .benefits-atelier {
    margin-top: 14px;
    padding: 14px 14px 10px;
  }
  .benefits-atelier__drawing {
    min-height: 166px;
  }
  .benefits-atelier__notes {
    gap: 0 12px;
    margin-top: 4px;
    padding-top: 12px;
  }
  .benefit-note {
    min-height: 132px;
    gap: 6px;
    padding: 13px 0 15px;
  }
  .benefit-note__index { font-size: 34px; }
  .benefit-note strong { font-size: 16px; }
  .benefit-note p { font-size: 15px; line-height: 1.42; }

  .portfolio-meta { display: grid; gap: 10px; }
  #portfolio { padding-bottom: 30px; }
  .portfolio-grid { grid-auto-rows: 170px; gap: 9px; min-height: 0; }
  .portfolio-card:nth-child(1) { grid-column: span 12; grid-row: span 2; }
  .portfolio-card:nth-child(2),
  .portfolio-card:nth-child(3) { grid-column: span 6; grid-row: span 1; }
  .portfolio-card:nth-child(4),
  .portfolio-card:nth-child(5),
  .portfolio-card:nth-child(6),
  .portfolio-card:nth-child(n + 7) { grid-column: span 6; grid-row: span 1; }

  .brand__facts { margin-top: 30px; }
  .brand__facts strong { font-size: 38px; }
  .brand__grid { min-height: 650px; }
  .brand__copy {
    width: 100%;
    min-height: 650px;
    justify-content: flex-end;
    padding: 30px 22px 28px;
  }
  .brand__image::before {
    background: linear-gradient(180deg, rgba(51, 45, 39, 0.96) 0%, rgba(51, 45, 39, 0.58) 16%, rgba(51, 45, 39, 0) 38%, rgba(51, 45, 39, 0) 56%, rgba(51, 45, 39, 0.98) 100%);
  }
  .brand__image img { object-position: 70% center; }
  .materials__grid {
    display: block;
    min-height: 980px;
    padding: 64px var(--container-gutter) 72px;
  }
  .materials__list { margin-top: 48px; }
  .materials__image::before {
    background: linear-gradient(
      180deg,
      rgba(21, 20, 18, 0.84) 0%,
      rgba(21, 20, 18, 0.38) 34%,
      rgba(21, 20, 18, 0.68) 66%,
      rgba(21, 20, 18, 0.96) 100%
    );
  }
  .materials__image img { object-position: 52% center; }
  .materials__list summary { min-height: 66px; }
  .materials__list summary strong { font-size: 19px; }
  .materials__list ul { font-size: 14px; }

  .turnkey__grid { min-height: 860px; }
  .turnkey__copy {
    width: 100%;
    min-height: 860px;
    margin-left: 0;
    justify-content: flex-end;
    padding: 250px 22px 28px;
  }
  .turnkey__image::before {
    background: linear-gradient(0deg, rgba(51, 45, 39, 0.98) 0%, rgba(51, 45, 39, 0.95) 46%, rgba(51, 45, 39, 0.54) 68%, rgba(51, 45, 39, 0.12) 88%, rgba(51, 45, 39, 0) 100%);
  }
  .turnkey__image img { object-position: 38% center; }
  .process-list { margin-top: 28px; }
  .process-list li { font-size: 15px; }

  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-form { padding: 20px; }

  .site-footer { padding-top: 44px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 26px; }
  .site-footer__legal { grid-column: auto; }
  .site-footer__bottom { display: grid; gap: 10px; margin-top: 34px; }

  .lightbox__inner {
    align-content: start;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 22px 20px 18px;
  }
  .lightbox__stage {
    position: relative;
    min-height: 0;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: start;
    align-items: start;
    gap: 12px;
  }
  .lightbox__figure {
    width: 100%;
    height: 100%;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    grid-row: 1;
    align-content: start;
  }
  .lightbox__image-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }
  .lightbox__figure img {
    width: auto;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
  }
  .lightbox__nav {
    position: static;
    z-index: 1;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    transform: none;
    background: rgba(51, 45, 39, .8);
  }
  .lightbox__nav span { display: inline; }
  .lightbox__nav--prev { grid-column: 1; grid-row: 2; justify-self: stretch; }
  .lightbox__nav--next { grid-column: 2; grid-row: 2; justify-self: stretch; }
  .lightbox__nav--prev:hover,
  .lightbox__nav--prev:focus-visible,
  .lightbox__nav--next:hover,
  .lightbox__nav--next:focus-visible { transform: none; }
  .lightbox__footer { gap: 12px; }
}

/* Generated inner-page components */
.desktop-nav__services { position: relative; }
.desktop-nav__services summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  white-space: nowrap;
}
.desktop-nav__services summary::-webkit-details-marker { display: none; }
.desktop-nav__services summary::after { display: inline-block; margin-left: 7px; color: var(--accent); content: "＋"; font-size: 13px; }
.desktop-nav__services[open] summary::after { content: "－"; }
.desktop-nav__panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 18px);
  left: 50%;
  display: grid;
  width: min(520px, 70vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  padding: 13px 18px;
  background: rgba(39, 35, 31, .98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}
.desktop-nav__panel a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; white-space: normal; }
.desktop-nav__panel a:nth-last-child(-n + 2) { border-bottom: 0; }

@media (max-width: 1500px) {
  .desktop-nav__services summary { font-size: 14px; }
}

.service-contact { padding-top: 96px; padding-bottom: 104px; }
.service-contact__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 9%; align-items: start; }
.service-contact__copy { padding-top: 10px; }
.service-contact__copy h2 { font-size: clamp(52px, 5.2vw, 94px); }
.service-contact__copy > p:not(.section-label) { max-width: 540px; margin-top: 26px; color: var(--text-soft); font-size: 18px; line-height: 1.55; }
.service-contact__direct { display: grid; gap: 4px; margin-top: 30px; }
.service-contact__direct a:first-child { font-size: clamp(24px, 2vw, 32px); font-weight: 650; }
.service-contact__direct a:nth-child(2) { color: var(--accent); font-size: clamp(17px, 1.45vw, 23px); font-weight: 600; overflow-wrap: anywhere; }
.service-contact__direct span { color: var(--text-soft); font-size: 14px; }
.service-contact__buttons { margin-top: 24px; max-width: 560px; }
.service-contact .contact-form { align-self: stretch; }
.contact-form button[disabled] { cursor: progress; opacity: .62; }
.form-status { min-height: 1.5em; margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.45; }
.form-status.is-error { color: #e0a18e; }
.form-status.is-success { color: #c3d0a4; }
.page-contact-button { font-size: 16px; }
.page-contact-button:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.portfolio-tabs { align-items: center; }
.portfolio-tabs button[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.portfolio-card picture { display: block; width: 100%; height: 100%; }
.portfolio-card picture img { display: block; }
.page-gallery-wrap { display: grid; gap: 0; }
.page-gallery__item.page-gallery__item--extra { display: none; }
.page-gallery__more { display: flex; margin: 24px auto 0; }
.lightbox__figure { touch-action: pan-y; }
.lightbox__figure img { min-height: 120px; }
.lightbox__figure [data-lightbox-status] { min-height: 1.4em; color: #e0a18e; font-size: 14px; }

@media (max-width: 1120px) {
  .desktop-nav__panel { display: none; }
}

@media (max-width: 820px) {
  .service-contact { padding-top: 72px; padding-bottom: 78px; }
  .service-contact__grid { grid-template-columns: 1fr; gap: 42px; }
  .service-contact__copy h2 { font-size: clamp(48px, 11vw, 72px); }
}

@media (max-width: 560px) {
  .page-contact-button { font-size: 15px; }
  .service-contact__copy > p:not(.section-label) { font-size: 16px; }
  .service-contact__direct a:first-child { font-size: 24px; }
  .service-contact__buttons { width: 100%; }
  .contact-form--page { border-radius: 18px; }
  .lightbox__inner { gap: 10px; padding: 16px 12px 14px; }
  .lightbox__topbar { gap: 12px; }
  .lightbox__eyebrow { font-size: 11px; }
  .lightbox__close { min-height: 42px; padding: 8px 11px 8px 14px; font-size: 13px; }
  .lightbox__stage { gap: 10px; }
  .lightbox__stage { align-items: start; }
  .lightbox__figure { align-content: start; }
  .lightbox__image-shell { max-height: none; }
  .lightbox__nav { min-height: 46px; padding: 9px 11px; font-size: 14px; }
  .lightbox__nav svg { width: 18px; height: 18px; }
  .lightbox__figure img { min-height: 0; }
  .lightbox__figure img { border-radius: 12px; }
  .lightbox__figure figcaption { font-size: 13px; line-height: 1.35; }
  .lightbox__caption { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: normal; }
  .lightbox__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .turnkey__image img { transform: none; }
}

/* Multi-page editorial system */
body:has(.page-hero) {
  background: var(--bg);
}

.page-hero {
  min-height: 760px;
  padding: calc(var(--header-height) + 58px) 0 88px;
}

.page-hero__grid {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(42px, 6vw, 100px);
  align-items: stretch;
}

.page-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 56px;
  color: var(--text-soft);
  font-size: 13px;
}

.breadcrumbs a:first-child {
  color: var(--accent);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(52px, 6.1vw, 92px);
  line-height: 0.94;
}

.page-hero__intro {
  max-width: 620px;
  margin-top: 30px;
  color: var(--text-soft);
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.5;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.page-hero__actions .button {
  min-width: 190px;
}

.page-hero__media {
  position: relative;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.page-hero__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(21, 20, 18, 0.04), rgba(21, 20, 18, 0.3));
}

.page-hero__picture,
.page-hero__picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero__picture img {
  object-fit: cover;
  object-position: center;
  transform: translateY(var(--parallax-offset, 0));
  transition: transform 700ms var(--ease);
}

.page-hero__media figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: rgba(242, 236, 228, 0.76);
  font-size: 13px;
}

.page-hero--fullbleed {
  position: relative;
  display: grid;
  min-height: min(820px, 100svh);
  align-items: end;
  padding: calc(var(--header-height) + 54px) 0 62px;
  overflow: hidden;
  isolation: isolate;
  --join-rgb: 21, 20, 18;
  --photo-fade-depth: clamp(190px, 20vw, 320px);
  --section-current: var(--bg);
  background: var(--bg);
}

.page-hero--fullbleed .page-hero__background,
.page-hero--fullbleed .page-hero__background picture,
.page-hero--fullbleed .page-hero__background img,
.page-hero--fullbleed .page-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero--fullbleed .page-hero__background { z-index: -3; }
.page-hero--fullbleed .page-hero__background img { display: block; object-fit: cover; object-position: center; }
.page-hero--fullbleed .page-hero__veil {
  z-index: -2;
  background: linear-gradient(90deg, rgba(15, 14, 12, 0.9) 0%, rgba(15, 14, 12, 0.68) 42%, rgba(15, 14, 12, 0.2) 100%);
}

.page-hero--fullbleed::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--photo-fade-depth);
  pointer-events: none;
  content: "";
  background: linear-gradient(
    to bottom,
    rgba(var(--join-rgb), 0) 0%,
    rgba(var(--join-rgb), 0.08) 18%,
    rgba(var(--join-rgb), 0.28) 40%,
    rgba(var(--join-rgb), 0.58) 62%,
    rgba(var(--join-rgb), 0.86) 80%,
    rgba(var(--join-rgb), 1) 100%
  );
}
.page-hero--fullbleed .page-hero__inner { position: relative; z-index: 1; }
.page-hero--fullbleed .page-hero__copy { max-width: 980px; }
.page-hero--fullbleed .page-hero__copy > * { position: relative; z-index: 1; }
.page-hero--fullbleed .breadcrumbs { margin-bottom: 28px; }
.page-hero--fullbleed h1 { max-width: 980px; }
.page-hero--fullbleed .page-hero__intro { max-width: 690px; margin-top: 24px; }
.page-hero--fullbleed .page-contact-buttons { max-width: 700px; }

.page-contact-buttons {
  display: grid;
  width: min(100%, 670px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  overflow: hidden;
  background: rgba(21, 20, 18, 0.62);
  border: 1px solid rgba(242, 236, 228, 0.26);
  border-radius: 15px;
}

.page-contact-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms var(--ease);
}

.page-contact-button + .page-contact-button {
  border-left: 1px solid rgba(242, 236, 228, 0.18);
}

.page-contact-button:hover {
  color: var(--bg);
  background: var(--text);
  transform: translateY(-2px);
}

.page-contact-button:active {
  transform: translateY(0);
}

.page-contact-button svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.page-contact-button svg[viewBox="0 0 43 42"] {
  width: 22px;
  height: 22px;
}

.editorial-section,
.page-work,
.page-process,
.related-section,
.project-story,
.project-gallery-section,
.company-facts,
.materials-detail,
.material-gallery,
.legal-contact {
  padding-top: 104px;
  padding-bottom: 112px;
}

.editorial-section__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 7%;
  align-items: end;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.editorial-section__heading h2 {
  max-width: 900px;
  font-size: clamp(44px, 4.7vw, 84px);
  line-height: 0.96;
}

.editorial-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-feature {
  min-height: 245px;
  padding: 26px 30px 30px 0;
}

.editorial-feature + .editorial-feature {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.editorial-feature > span,
.process-steps li > span {
  display: block;
  margin-bottom: 32px;
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

.editorial-feature h3 {
  max-width: 330px;
  margin: 0;
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.editorial-feature p {
  max-width: 350px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.feature-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-point {
  padding: 24px 28px 28px 0;
}

.feature-point + .feature-point {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.feature-point span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.feature-point h3 {
  max-width: 340px;
  margin: 0;
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(20px, 1.45vw, 26px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.feature-point p {
  max-width: 360px;
  margin: 13px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.content-composition {
  margin-top: 4px;
}

.composition-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.78fr);
  gap: 8%;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.composition-heading h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Bergamasco", Georgia, serif;
  font-size: clamp(44px, 4.7vw, 82px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.01;
}

.composition-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
}

.choice-grid,
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-bottom: 1px solid var(--line);
}

.choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-option,
.spec-item {
  position: relative;
  padding: 2px 28px 30px 0;
}

.choice-option + .choice-option,
.spec-item + .spec-item {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.composition-index {
  margin: 0 0 27px;
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: 29px;
  line-height: 1;
}

.choice-option h3,
.spec-item h3,
.thesis-note h3,
.estimate-factor h3,
.estimate-checklist h3 {
  margin: 0;
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(21px, 1.5vw, 28px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.choice-option > p:not(.composition-index),
.spec-item > p,
.thesis-note > p,
.estimate-factor > p {
  max-width: 420px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.52;
}

.choice-option__lead,
.spec-item__lead {
  color: var(--text) !important;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.36 !important;
}

.choice-option__note {
  margin-top: 26px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.composition-note {
  max-width: 760px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.composition-note strong {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.composition-note p {
  max-width: 690px;
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.content-composition--spec .spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-composition--thesis .composition-heading {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.composition-thesis {
  max-width: 960px;
  margin: 38px 0 0;
  color: var(--text);
  font-family: "Bergamasco", Georgia, serif;
  font-size: clamp(30px, 3vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.thesis-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.thesis-note {
  padding-right: 18px;
}

.thesis-note + .thesis-note {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.content-composition--comparison .comparison-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.comparison-table td {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.45;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  width: 25%;
  color: var(--text);
  font-weight: 650;
}

.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 8%;
  margin-top: 36px;
}

.estimate-factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid var(--line);
}

.estimate-factor {
  padding: 23px 16px 26px 0;
  border-bottom: 1px solid var(--line);
}

.estimate-factor:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.estimate-checklist {
  align-self: start;
  padding: 28px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.estimate-checklist ul {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.42;
  list-style: none;
}

.estimate-checklist li {
  position: relative;
  padding-left: 19px;
}

.estimate-checklist li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.content-composition--estimate > .button {
  margin-top: 30px;
}

.service-detail-section {
  padding-top: 86px;
  padding-bottom: 92px;
}

.service-detail-section + .service-detail-section {
  padding-top: 18px;
}

.direction-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 14px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.direction-link {
  display: flex;
  min-height: 74px;
  align-items: center;
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  transition: color 200ms ease, padding 200ms var(--ease);
}

.direction-link:hover,
.direction-link:focus-visible {
  padding-left: 12px;
  color: var(--accent);
}

.page-price { padding-top: 104px; padding-bottom: 112px; }
.page-faq { padding-top: 104px; padding-bottom: 112px; }
.page-faq__grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 10%; align-items: start; }
.page-faq__grid h2 { font-size: clamp(52px, 5vw, 88px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 22px; color: var(--text); font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon-plus { flex: 0 0 auto; }
.faq-list details p { max-width: 700px; padding: 0 50px 24px 0; color: var(--text-soft); font-size: 17px; line-height: 1.55; }

.page-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(210px, 20vw, 320px);
  gap: 14px;
}

.page-gallery__item {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.page-gallery__item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.page-gallery__item:nth-child(2) { grid-column: span 5; }
.page-gallery__item:nth-child(3) { grid-column: span 5; }
.page-gallery__item:nth-child(n + 4) { grid-column: span 4; }
.page-gallery[data-count="4"] .page-gallery__item { grid-column: span 6; grid-row: span 1; }
.page-gallery[data-count="5"] .page-gallery__item:nth-child(n + 4) { grid-column: span 6; }

.page-gallery__item picture,
.page-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
}

.page-gallery__item img {
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 300ms ease;
}

.page-gallery__item:hover img,
.page-gallery__item:focus-visible img {
  filter: saturate(1.06);
  transform: scale(1.035);
}

.page-work .text-link {
  margin-top: 28px;
}

.page-process__grid,
.project-story__grid,
.company-facts__grid,
.materials-detail__grid,
.legal-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 10%;
  align-items: start;
}

.page-process__grid h2,
.project-story__grid h2,
.company-facts__grid h2,
.materials-detail__grid h2,
.legal-contact__grid h2 {
  font-size: clamp(52px, 5vw, 90px);
}

.page-process__intro,
.project-story__body,
.materials-detail__intro,
.legal-contact__body {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
}

.project-story__body,
.legal-contact__body {
  display: grid;
  gap: 20px;
}

.process-steps {
  display: grid;
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.process-steps li > span {
  margin: 0;
  font-size: 26px;
}

.process-steps strong {
  font-size: 18px;
  font-weight: 600;
}

.process-steps li > div { padding: 19px 0; }
.process-steps li p { max-width: 640px; margin: 7px 0 0; color: var(--text-soft); font-size: 16px; line-height: 1.45; }

.related-links,
.project-index__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 14px;
  margin-bottom: 38px;
  border-top: 1px solid var(--line);
}

.related-link,
.project-link {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  transition: color 200ms ease, padding 200ms var(--ease);
}

.related-link:hover,
.project-link:hover {
  padding-right: 12px;
  color: var(--accent);
}

.related-link b,
.project-link b {
  color: var(--accent);
  font-size: 21px;
  font-weight: 400;
}

.portfolio-page-hero {
  padding: calc(var(--header-height) + 62px) 0 92px;
}

.portfolio-page-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 8%;
  align-items: end;
}

.portfolio-page-hero .breadcrumbs {
  margin-bottom: 48px;
}

.portfolio-page-hero h1 {
  max-width: 860px;
  font-size: clamp(72px, 8vw, 142px);
}

.portfolio-page-hero__row > p {
  max-width: 480px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.55;
}

.portfolio-page-hero + .portfolio {
  padding-top: 94px;
}

.project-index__links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-band__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  font-size: clamp(52px, 5.2vw, 94px);
}

.contact-page {
  padding: calc(var(--header-height) + 54px) 0 104px;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 9%;
  align-items: start;
}

.contact-page__copy {
  padding-top: 34px;
}

.contact-page h1 {
  font-size: clamp(66px, 6.4vw, 118px);
}

.contact-page__intro {
  max-width: 490px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.55;
}

.contact-page__details {
  display: grid;
  gap: 5px;
  margin-top: 42px;
}

.contact-page__details a:first-child {
  font-size: clamp(25px, 2vw, 33px);
  font-weight: 650;
}

.contact-page__details a:nth-child(2) {
  color: var(--accent);
  font-size: clamp(19px, 1.45vw, 25px);
  font-weight: 600;
}

.contact-page__details span {
  color: var(--text-soft);
  font-size: 14px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-links a {
  padding: 9px 14px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.social-links a:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.contact-form--page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 3vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.contact-form__intro h3 {
  margin: 8px 0 10px;
  font-size: clamp(25px, 2.3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.contact-form__intro > p:last-child {
  max-width: 690px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.consent--full {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}

.consent--full a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.company-facts__list strong {
  display: block;
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: clamp(60px, 6vw, 106px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.company-facts__list p {
  max-width: 150px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 15px;
}

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

.materials-detail__list details {
  border-bottom: 1px solid var(--line);
}

.materials-detail__list summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.materials-detail__list summary::-webkit-details-marker { display: none; }
.materials-detail__list summary strong { font-size: 22px; font-weight: 650; }
.materials-detail__list ul { display: grid; gap: 9px; margin: 0; padding: 0 0 24px; color: var(--text-soft); list-style: none; }
.materials-detail__list li::before { display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 1px; content: ""; background: var(--accent); border-radius: 50%; }

.legal-contact__links {
  display: grid;
  gap: 9px;
  margin-top: 30px;
}

.legal-contact__links a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-page {
  min-height: calc(100svh - var(--header-height));
  padding: calc(var(--header-height) + 62px) 0 112px;
}

.legal-page__inner {
  max-width: 1160px;
}

.legal-page h1 {
  max-width: 900px;
  font-size: clamp(68px, 7vw, 128px);
}

.legal-page__intro {
  max-width: 680px;
  margin-top: 30px;
  color: var(--text-soft);
  font-size: 19px;
}

.legal-page__body {
  max-width: 780px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.legal-page__body h2 {
  margin: 32px 0 10px;
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-page__body h2:first-child { margin-top: 0; }
.legal-page__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.noscript-note { margin-top: 34px; color: var(--text-soft); }
.noscript-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.noscript-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.site-footer--inner .site-footer__nav {
  display: grid;
  gap: 10px;
}

.site-footer--inner .site-footer__nav a:hover {
  color: var(--accent);
}

@media (max-width: 820px) {
  .page-hero,
  .portfolio-page-hero,
  .contact-page,
  .legal-page { padding-top: calc(var(--header-height) + 34px); }

  .page-hero { min-height: 0; padding-bottom: 64px; }
  .page-hero--fullbleed { min-height: min(760px, 100svh); padding-top: calc(var(--header-height) + 28px); padding-bottom: 38px; }
  .page-hero--fullbleed .page-hero__copy { max-width: 760px; }
  .page-hero--fullbleed .page-hero__background img { object-position: 62% center; }
  .page-hero--fullbleed .page-hero__veil { background: linear-gradient(90deg, rgba(15, 14, 12, .9) 0%, rgba(15, 14, 12, .56) 100%); }
  .page-hero--fullbleed .page-hero__copy > .breadcrumbs,
  .page-hero--fullbleed .page-hero__copy > h1,
  .page-hero--fullbleed .page-hero__copy > .page-hero__intro {
    transform: translateY(-36px);
  }
  .page-hero__grid,
  .contact-page__grid,
  .page-process__grid,
  .project-story__grid,
  .company-facts__grid,
  .materials-detail__grid,
  .legal-contact__grid { grid-template-columns: 1fr; gap: 46px; }
  .page-hero__grid { min-height: 0; }
  .page-hero__copy { justify-content: flex-start; }
  .breadcrumbs { margin-bottom: 36px; }
  .contact-page h1 { font-size: clamp(52px, 9vw, 92px); }
  .page-hero__media { min-height: 460px; }
  .page-contact-buttons { max-width: 650px; }
  .editorial-section,
  .page-work,
  .page-process,
  .related-section,
  .project-story,
  .project-gallery-section,
  .company-facts,
  .materials-detail,
  .material-gallery,
  .legal-contact { padding-top: 72px; padding-bottom: 78px; }
  .editorial-section__heading { grid-template-columns: 1fr; gap: 26px; }
  .service-detail-section { padding-top: 66px; padding-bottom: 72px; }
  .service-detail-section + .service-detail-section { padding-top: 8px; }
  .composition-heading,
  .content-composition--thesis .composition-heading,
  .estimate-layout { grid-template-columns: 1fr; gap: 22px; }
  .composition-heading { padding-bottom: 26px; }
  .composition-heading h2 { font-size: clamp(42px, 8vw, 68px); }
  .composition-heading > p { font-size: 17px; }
  .choice-grid,
  .spec-grid { grid-template-columns: 1fr !important; margin-top: 28px; }
  .choice-option,
  .spec-item { padding: 22px 0 26px; }
  .choice-option + .choice-option,
  .spec-item + .spec-item { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .thesis-notes { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
  .thesis-note,
  .thesis-note + .thesis-note { padding: 20px 0 22px; border-top: 1px solid var(--line); border-left: 0; }
  .estimate-layout { margin-top: 28px; }
  .estimate-factors { gap: 0; }
  .estimate-factor,
  .estimate-factor:nth-child(even) { padding: 21px 0 23px; border-left: 0; }
  .estimate-checklist { border-radius: 18px; }
  .feature-points { grid-template-columns: 1fr; }
  .feature-point,
  .feature-point + .feature-point { padding: 22px 0 26px; border-left: 0; }
  .feature-point + .feature-point { border-top: 1px solid var(--line); }
  .editorial-features { grid-template-columns: 1fr; }
  .editorial-feature { min-height: 0; padding: 23px 0 27px; }
  .editorial-feature + .editorial-feature { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .editorial-feature > span { margin-bottom: 20px; }
  .page-price,
  .page-faq { padding-top: 72px; padding-bottom: 78px; }
  .page-faq__grid { grid-template-columns: 1fr; gap: 34px; }
  .page-faq__grid h2 { font-size: clamp(46px, 12vw, 66px); }
  .page-gallery { grid-auto-rows: 250px; }
  .page-gallery__item:nth-child(1) { grid-column: span 7; }
  .page-gallery__item:nth-child(2) { grid-column: span 5; }
  .page-gallery__item:nth-child(n + 3) { grid-column: span 4; }
  .portfolio-page-hero__row { grid-template-columns: 1fr; gap: 32px; }
  .portfolio-page-hero h1 { font-size: clamp(64px, 14vw, 110px); }
  .project-index__links,
  .related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .contact-page__copy { padding-top: 0; }
  .contact-form--page { padding: 28px 22px; }
}

@media (max-width: 560px) {
  .page-hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .page-hero__actions .button { min-width: 0; padding-inline: 11px; font-size: 14px; }
  .page-hero__media { min-height: 340px; border-radius: 18px; }
  .page-hero--fullbleed { min-height: min(760px, 100svh); }
  .page-hero--fullbleed .breadcrumbs { margin-bottom: 20px; font-size: 12px; }
  .page-hero--fullbleed h1 { max-width: min(100%, 760px); font-size: clamp(46px, 9.4vw, 84px); line-height: .95; }
  .page-hero--fullbleed .page-hero__intro { margin-top: 18px; font-size: 17px; line-height: 1.42; }
  .page-hero--fullbleed .page-hero__background img { object-position: 64% center; }
  .page-hero--fullbleed .page-hero__copy > .breadcrumbs,
  .page-hero--fullbleed .page-hero__copy > h1,
  .page-hero--fullbleed .page-hero__copy > .page-hero__intro {
    transform: translateY(clamp(-84px, calc(100svh - 751px), -64px));
  }
  .page-hero--fullbleed.page-hero--long-title .page-hero__copy > .breadcrumbs,
  .page-hero--fullbleed.page-hero--long-title .page-hero__copy > h1,
  .page-hero--fullbleed.page-hero--long-title .page-hero__copy > .page-hero__intro {
    transform: translateY(-55px);
  }
  .page-hero--fullbleed.page-hero--medium-title .page-hero__copy > .breadcrumbs,
  .page-hero--fullbleed.page-hero--medium-title .page-hero__copy > h1,
  .page-hero--fullbleed.page-hero--medium-title .page-hero__copy > .page-hero__intro {
    transform: translateY(-95px);
  }
  .page-hero__media figcaption { right: 16px; bottom: 15px; left: 16px; font-size: 12px; }
  .page-contact-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-contact-button { min-height: 51px; font-size: 13px; }
  .page-contact-button:nth-child(odd) { border-left: 0; }
  .page-contact-button:nth-child(n + 3) { border-top: 1px solid rgba(242, 236, 228, 0.18); }
  .editorial-section__heading h2 { font-size: clamp(42px, 12vw, 62px); }
  .editorial-feature h3 { font-size: 21px; }
  .editorial-feature p { font-size: 15px; }
  .composition-heading h2 { font-size: clamp(38px, 11vw, 56px); }
  .composition-heading > p { font-size: 16px; line-height: 1.48; }
  .composition-index { margin-bottom: 19px; font-size: 25px; }
  .choice-option h3,
  .spec-item h3,
  .thesis-note h3,
  .estimate-factor h3,
  .estimate-checklist h3 { font-size: 21px; }
  .choice-option > p:not(.composition-index),
  .spec-item > p,
  .thesis-note > p,
  .estimate-factor > p { margin-top: 10px; font-size: 16px; line-height: 1.48; }
  .choice-option__lead,
  .spec-item__lead { font-size: 17px !important; }
  .composition-thesis { margin-top: 28px; font-size: clamp(27px, 8.1vw, 40px); line-height: 1.04; }
  .comparison-table-wrap { overflow-x: visible !important; }
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td { display: block; width: 100%; }
  .comparison-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .comparison-table tr { padding: 15px 0 17px; border-bottom: 1px solid var(--line); }
  .comparison-table td,
  .comparison-table th,
  .comparison-table td:first-child { width: auto; padding: 4px 0; border: 0; font-size: 15px; line-height: 1.42; }
  .comparison-table td::before { display: block; margin-bottom: 2px; color: var(--accent); content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
  .comparison-table td:first-child { color: var(--text); font-size: 17px; }
  .comparison-table td:first-child::before { display: none; }
  .estimate-checklist { padding: 24px 21px 25px; }
  .estimate-checklist ul { margin-top: 17px; font-size: 15px; }
  .estimate-factors { grid-template-columns: 1fr; }
  .estimate-factor { padding-top: 18px !important; padding-bottom: 20px !important; }
  .feature-points { margin-top: 28px; }
  .feature-point span { margin-bottom: 18px; font-size: 25px; }
  .feature-point h3 { font-size: 21px; }
  .feature-point p { font-size: 15px; }
  .direction-links { grid-template-columns: 1fr; }
  .page-gallery { grid-auto-rows: 180px; gap: 8px; }
  .page-gallery__item { border-radius: 12px; }
  .page-gallery__item:nth-child(1) { grid-column: span 12; grid-row: span 2; }
  .page-gallery__item:nth-child(2),
  .page-gallery__item:nth-child(n + 3) { grid-column: span 6; }
  .process-steps li { grid-template-columns: 48px 1fr; gap: 14px; min-height: 66px; }
  .process-steps strong { font-size: 16px; }
  .process-steps li p { font-size: 15px; }
  .related-links,
  .project-index__links { grid-template-columns: 1fr; }
  .related-link,
  .project-link { min-height: 68px; font-size: 15px; }
  .company-facts__list { gap: 18px; }
  .company-facts__list strong { font-size: 64px; }
  .materials-detail__list summary strong { font-size: 19px; }
  .legal-page__body { margin-top: 42px; font-size: 16px; }
}

.not-found {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(21, 20, 18, 0.94), rgba(21, 20, 18, 0.62)),
    url("./public/assets/hero-desktop.webp") center / cover;
}

.not-found__inner {
  padding-top: clamp(96px, 12vw, 180px);
  padding-bottom: clamp(96px, 12vw, 180px);
}

.not-found h1 {
  max-width: 840px;
  margin: 18px 0 28px;
  font-family: "Bergamasco", Georgia, serif;
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.not-found h1 em {
  color: var(--accent);
  font-style: normal;
}

.not-found p:not(.section-label) {
  max-width: 520px;
  margin: 0 0 34px;
  color: var(--text-soft);
  font-size: clamp(18px, 1.6vw, 24px);
}

@media (max-width: 560px) {
  .not-found {
    min-height: calc(100svh - var(--header-height));
    background-position: 62% center;
  }

  .not-found h1 { font-size: clamp(54px, 16vw, 80px); }
  .not-found .page-hero__actions { grid-template-columns: 1fr; }
}

/* Kitchen route — homepage visual grammar
   Image-led chapters, concrete copy, and the same quiet premium rhythm as the
   homepage. Section joins intentionally use the shared fade system above. */

.kitchen-page .site-header,
.kitchen-page .site-header.is-scrolled {
  border-bottom-color: transparent;
}

.kitchen-page .kitchen-home-section {
  position: relative;
  overflow: visible;
  padding: clamp(78px, 8vw, 116px) 0;
  isolation: isolate;
}

.kitchen-page .kitchen-home-section .section-heading {
  margin-bottom: clamp(34px, 4vw, 54px);
}

.kitchen-page .kitchen-home-section .section-heading h2,
.kitchen-page .kitchen-home-section h2 {
  max-width: 920px;
  font-size: clamp(48px, 5.2vw, 84px);
  line-height: .94;
}

.kitchen-page .kitchen-home-section h2 em {
  color: var(--accent);
  font-style: normal;
}

.kitchen-page .kitchen-home-section .section-label {
  margin-bottom: 18px;
}

.kitchen-page .page-hero--kitchen .page-hero__background img {
  object-position: center 58%;
}

/* A homepage-like visual introduction: one dominant photograph, one clear
   explanation, and a smaller supporting crop. */
.kitchen-overview__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
  grid-template-rows: minmax(260px, auto) minmax(180px, auto);
  gap: 14px;
  align-items: stretch;
}

.kitchen-overview__image {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
}

.kitchen-overview__image::after,
.kitchen-system-card figure::after,
.kitchen-process__intro figure::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(21, 20, 18, 0) 52%, rgba(21, 20, 18, .44) 100%);
}

.kitchen-overview__image picture,
.kitchen-overview__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.kitchen-overview__image img {
  object-fit: cover;
  object-position: center;
  transition: transform 700ms var(--ease), filter 300ms ease;
}

.kitchen-overview__image:hover img,
.kitchen-overview__image:focus-within img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.kitchen-overview__image--main {
  grid-row: 1 / span 2;
  min-height: 590px;
}

.kitchen-overview__image--main img {
  object-position: center 52%;
}

.kitchen-overview__image--inset {
  min-height: 218px;
}

.kitchen-overview__image--inset img {
  object-position: center 48%;
}

.kitchen-overview__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.6vw, 52px);
  color: var(--text);
  background: var(--surface);
  border-radius: var(--radius);
}

.kitchen-overview__kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.kitchen-overview__copy h3 {
  max-width: 510px;
  margin: 0;
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(24px, 2.15vw, 34px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.kitchen-overview__copy > p:not(.kitchen-overview__kicker) {
  max-width: 510px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.52;
}

.kitchen-overview__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.kitchen-overview__facts div {
  display: grid;
  gap: 7px;
}

.kitchen-overview__facts strong {
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: .9;
}

.kitchen-overview__facts span {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.24;
}

/* Like the homepage service cards, but with each tile answering a kitchen
   question through its photograph first. */
.kitchen-system-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.kitchen-system-card {
  position: relative;
  display: block;
  grid-column: span 5;
  min-width: 0;
  min-height: 354px;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 220ms ease, transform 220ms var(--ease);
}

.kitchen-system-card:first-child {
  grid-column: span 7;
}

.kitchen-system-card--wide {
  grid-column: span 12;
  min-height: 312px;
}

.kitchen-system-card:hover,
.kitchen-system-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.kitchen-system-card figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.kitchen-system-card figure::after {
  background: linear-gradient(90deg, rgba(21, 20, 18, .94) 0%, rgba(21, 20, 18, .78) 33%, rgba(21, 20, 18, .18) 72%, rgba(21, 20, 18, .02) 100%);
}

.kitchen-system-card--wide figure::after {
  background: linear-gradient(90deg, rgba(21, 20, 18, .94) 0%, rgba(21, 20, 18, .72) 28%, rgba(21, 20, 18, .12) 70%, rgba(21, 20, 18, .02) 100%);
}

.kitchen-system-card figure picture,
.kitchen-system-card figure img {
  display: block;
  width: 100%;
  height: 100%;
}

.kitchen-system-card figure img {
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 300ms ease;
}

.kitchen-system-card:hover figure img,
.kitchen-system-card:focus-visible figure img {
  filter: saturate(1.06);
  transform: scale(1.035);
}

.kitchen-system-card > div {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(66%, 480px);
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px 28px 26px;
}

.kitchen-system-card--wide > div {
  width: min(44%, 540px);
}

.kitchen-system-card > div > span {
  margin-bottom: auto;
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: 42px;
  line-height: .9;
}

.kitchen-system-card h3 {
  max-width: 430px;
  margin: 0;
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.kitchen-system-card p {
  max-width: 400px;
  margin: 13px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.45;
}

.kitchen-system-card b {
  display: inline-flex;
  margin-top: 20px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
  transition: color 200ms ease, border-color 200ms ease;
}

.kitchen-system-card:hover b,
.kitchen-system-card:focus-visible b {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The gallery is the visual proof, using the same asymmetrical cadence as the
   homepage portfolio and keeping the curated nine-image set intact. */
.kitchen-work .section-heading__intro {
  max-width: 500px;
}

.kitchen-work__gallery {
  margin: 0;
}

.kitchen-page #service-work .page-gallery {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 19vw, 292px);
  gap: 14px;
  min-height: 0;
}

.kitchen-page #service-work .page-gallery__item {
  min-width: 0;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
}

.kitchen-page #service-work .page-gallery__item:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.kitchen-page #service-work .page-gallery__item:nth-child(2),
.kitchen-page #service-work .page-gallery__item:nth-child(3) {
  grid-column: span 5;
  grid-row: span 1;
}

.kitchen-page #service-work .page-gallery__item:nth-child(n + 4) {
  grid-column: span 4;
  grid-row: span 1;
}

.kitchen-page #service-work .page-gallery__more {
  margin-top: 30px;
}

.kitchen-page #service-work .text-link {
  margin-top: 28px;
}

/* Materials are a visual section, not an accordion wall. */
.kitchen-materials__grid {
  display: grid;
  grid-template-columns: minmax(280px, .76fr) minmax(0, 1.24fr);
  grid-template-rows: auto auto;
  gap: 40px clamp(34px, 7vw, 112px);
  align-items: start;
}

.kitchen-materials__copy {
  position: relative;
  align-self: start;
  max-width: 540px;
}

.kitchen-materials__copy > p:not(.section-label) {
  max-width: 470px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
}

.kitchen-materials__copy .text-link {
  margin-top: 32px;
}

.kitchen-materials__image {
  position: relative;
  min-width: 0;
  height: clamp(430px, 42vw, 600px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.kitchen-materials__image picture,
.kitchen-materials__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.kitchen-materials__image img {
  object-fit: cover;
  object-position: center 54%;
  transition: transform 700ms var(--ease);
}

.kitchen-materials__image:hover img,
.kitchen-materials__image:focus-within img {
  transform: scale(1.025);
}

.kitchen-materials__list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kitchen-materials__list article {
  min-height: 164px;
  padding: 23px 24px 24px;
  background: var(--surface);
  border-radius: 14px;
}

.kitchen-materials__list span {
  display: block;
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
}

.kitchen-materials__list p {
  margin: 13px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.46;
}

/* A change of composition: one quiet image beside a compact process track. */
.kitchen-process__grid {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 7vw, 112px);
  align-items: start;
}

.kitchen-process__intro > p:not(.section-label) {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
}

.kitchen-process__intro figure {
  position: relative;
  height: clamp(260px, 23vw, 350px);
  margin: 38px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.kitchen-process__intro figure picture,
.kitchen-process__intro figure img {
  display: block;
  width: 100%;
  height: 100%;
}

.kitchen-process__intro figure img {
  object-fit: cover;
  object-position: center 48%;
}

.kitchen-process__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kitchen-step;
}

.kitchen-process__steps li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  min-height: 116px;
  padding: 22px 24px;
  background: var(--surface);
  border-radius: 14px;
}

.kitchen-process__steps li > span {
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: 35px;
  line-height: .9;
}

.kitchen-process__steps h3 {
  margin: 0;
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.kitchen-process__steps p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.45;
}

/* Practical information gets an equally strong composition: three short
   factors and one obvious next action. */
.kitchen-estimate__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr);
  gap: 7%;
  align-items: end;
  margin-bottom: 40px;
}

.kitchen-estimate__head > p {
  max-width: 470px;
  margin: 0 0 4px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
}

.kitchen-estimate__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kitchen-estimate__grid article {
  min-height: 188px;
  padding: 26px 26px 28px;
  background: var(--surface);
  border-radius: 14px;
}

.kitchen-estimate__grid strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.1;
}

.kitchen-estimate__grid p {
  max-width: 360px;
  margin: 15px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.48;
}

.kitchen-estimate__button {
  margin-top: 30px;
}

/* FAQ and related links finish the route without introducing another visual
   language. */
.kitchen-faq__grid {
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
  gap: clamp(34px, 9vw, 150px);
  align-items: start;
}

.kitchen-faq__grid > div:first-child > p:last-child {
  max-width: 440px;
  margin-top: 26px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.52;
}

.kitchen-page .kitchen-faq .faq-list {
  display: grid;
  gap: 10px;
  border-top: 0;
}

.kitchen-page .kitchen-faq .faq-list details {
  background: var(--surface);
  border: 0;
  border-radius: 14px;
}

.kitchen-page .kitchen-faq .faq-list summary {
  min-height: 68px;
  padding: 17px 21px;
  font-size: 17px;
}

.kitchen-page .kitchen-faq .faq-list details p {
  padding: 0 21px 21px;
  font-size: 15px;
}

.kitchen-page .related-strip {
  /* Keep the section tone aligned with the generic fade's final stop. */
  background-color: var(--section-current);
}

.kitchen-page .related-strip .section-heading {
  margin-bottom: 30px;
  padding-bottom: 0;
  border-bottom: 0;
}

.kitchen-page .related-strip .related-links {
  gap: 10px;
  margin-top: 0;
  border: 0;
}

.kitchen-page .related-strip .related-link {
  min-height: 68px;
  padding: 17px 20px;
  background: var(--surface);
  border: 0;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .kitchen-overview__stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .kitchen-overview__image--main {
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 1.15;
  }

  .kitchen-overview__image--inset {
    min-height: 0;
    aspect-ratio: 1.55;
  }

  .kitchen-overview__copy {
    min-height: 0;
  }

  .kitchen-system-card,
  .kitchen-system-card:first-child,
  .kitchen-system-card--wide {
    grid-column: span 12;
  }

  .kitchen-materials__grid,
  .kitchen-process__grid,
  .kitchen-faq__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .kitchen-materials__copy {
    position: static;
  }

  .kitchen-materials__image {
    grid-row: 2;
    height: auto;
    aspect-ratio: 1.2;
  }

  .kitchen-materials__list {
    grid-column: auto;
  }

  .kitchen-estimate__head {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* The inner pages deliberately inherit the accepted kitchen composition.
   Keep the same gallery cadence for projects and the materials page instead
   of falling back to the older generic page-gallery geometry. */
.kitchen-page #service-work .page-gallery,
.kitchen-page #project-work .page-gallery,
.kitchen-page #materials-work .page-gallery {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 19vw, 292px);
  gap: 14px;
  min-height: 0;
}

.kitchen-page #service-work .page-gallery__item,
.kitchen-page #project-work .page-gallery__item,
.kitchen-page #materials-work .page-gallery__item {
  min-width: 0;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
}

.kitchen-page #service-work .page-gallery__item:nth-child(1),
.kitchen-page #project-work .page-gallery__item:nth-child(1),
.kitchen-page #materials-work .page-gallery__item:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.kitchen-page #service-work .page-gallery__item:nth-child(2),
.kitchen-page #service-work .page-gallery__item:nth-child(3),
.kitchen-page #project-work .page-gallery__item:nth-child(2),
.kitchen-page #project-work .page-gallery__item:nth-child(3),
.kitchen-page #materials-work .page-gallery__item:nth-child(2),
.kitchen-page #materials-work .page-gallery__item:nth-child(3) {
  grid-column: span 5;
  grid-row: span 1;
}

.kitchen-page #service-work .page-gallery__item:nth-child(n + 4),
.kitchen-page #project-work .page-gallery__item:nth-child(n + 4),
.kitchen-page #materials-work .page-gallery__item:nth-child(n + 4) {
  grid-column: span 4;
  grid-row: span 1;
}

.kitchen-page #service-work .page-gallery__more,
.kitchen-page #project-work .page-gallery__more,
.kitchen-page #materials-work .page-gallery__more {
  margin-top: 30px;
}

.kitchen-page #service-work .text-link,
.kitchen-page #project-work .text-link,
.kitchen-page #materials-work .text-link {
  margin-top: 28px;
}

/* Four material frames should finish as a balanced pair, not a one-card row. */
.kitchen-page #materials-work .page-gallery__item:nth-child(4) {
  grid-column: span 6;
}

@media (max-width: 560px) {
  .kitchen-page #service-work .page-gallery,
  .kitchen-page #project-work .page-gallery,
  .kitchen-page #materials-work .page-gallery {
    grid-auto-rows: 158px;
    gap: 8px;
  }

  .kitchen-page #service-work .page-gallery__item,
  .kitchen-page #project-work .page-gallery__item,
  .kitchen-page #materials-work .page-gallery__item {
    border-radius: 9px;
  }

  .kitchen-page #service-work .page-gallery__item:nth-child(1),
  .kitchen-page #project-work .page-gallery__item:nth-child(1),
  .kitchen-page #materials-work .page-gallery__item:nth-child(1) {
    grid-column: span 12;
    grid-row: span 2;
  }

  .kitchen-page #service-work .page-gallery__item:nth-child(2),
  .kitchen-page #service-work .page-gallery__item:nth-child(3),
  .kitchen-page #service-work .page-gallery__item:nth-child(n + 4),
  .kitchen-page #project-work .page-gallery__item:nth-child(2),
  .kitchen-page #project-work .page-gallery__item:nth-child(3),
  .kitchen-page #project-work .page-gallery__item:nth-child(n + 4),
  .kitchen-page #materials-work .page-gallery__item:nth-child(2),
  .kitchen-page #materials-work .page-gallery__item:nth-child(3),
  .kitchen-page #materials-work .page-gallery__item:nth-child(n + 4) {
    grid-column: span 6;
    grid-row: span 1;
  }

  .kitchen-page #service-work .page-gallery__more,
  .kitchen-page #project-work .page-gallery__more,
  .kitchen-page #materials-work .page-gallery__more {
    margin-top: 22px;
  }

  .kitchen-page #service-work .text-link,
  .kitchen-page #project-work .text-link,
  .kitchen-page #materials-work .text-link {
    margin-top: 23px;
  }
}

@media (max-width: 560px) {
  .kitchen-page .kitchen-home-section {
    padding: 58px 0 64px;
  }

  .kitchen-page .kitchen-home-section .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .kitchen-page .kitchen-home-section .section-heading > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .kitchen-page .kitchen-home-section .section-heading h2,
  .kitchen-page .kitchen-home-section h2 {
    font-size: clamp(38px, 11.6vw, 58px);
    line-height: .93;
    overflow-wrap: anywhere;
  }

  .kitchen-page .kitchen-home-section .section-heading__intro {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.48;
  }

  .kitchen-overview__stage,
  .kitchen-system-grid,
  .kitchen-materials__list,
  .kitchen-estimate__grid {
    gap: 9px;
  }

  .kitchen-estimate__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kitchen-estimate__grid > * {
    min-width: 0;
  }

  .kitchen-overview__image--main {
    aspect-ratio: 1.04;
  }

  .kitchen-overview__copy {
    padding: 25px 22px 24px;
    border-radius: 12px;
  }

  .kitchen-overview__kicker {
    margin-bottom: 15px;
    font-size: 12px;
  }

  .kitchen-overview__copy h3 {
    font-size: 23px;
  }

  .kitchen-overview__copy > p:not(.kitchen-overview__kicker) {
    margin-top: 17px;
    font-size: 16px;
    line-height: 1.48;
  }

  .kitchen-overview__facts {
    gap: 9px;
    margin-top: 23px;
    padding-top: 16px;
  }

  .kitchen-overview__facts strong {
    font-size: 28px;
  }

  .kitchen-overview__facts span {
    font-size: 12px;
  }

  .kitchen-system-card,
  .kitchen-system-card--wide {
    min-height: 300px;
    border-radius: 12px;
  }

  .kitchen-system-card > div,
  .kitchen-system-card--wide > div {
    width: 80%;
    padding: 21px 20px 20px;
  }

  .kitchen-system-card > div > span {
    font-size: 34px;
  }

  .kitchen-system-card h3 {
    font-size: 22px;
  }

  .kitchen-system-card p {
    margin-top: 10px;
    font-size: 15px;
  }

  .kitchen-system-card b {
    margin-top: 15px;
    font-size: 14px;
  }

  .kitchen-page #service-work .page-gallery {
    grid-auto-rows: 158px;
    gap: 8px;
  }

  .kitchen-page #service-work .page-gallery__item {
    border-radius: 9px;
  }

  .kitchen-page #service-work .page-gallery__item:nth-child(1) {
    grid-column: span 12;
    grid-row: span 2;
  }

  .kitchen-page #service-work .page-gallery__item:nth-child(2),
  .kitchen-page #service-work .page-gallery__item:nth-child(3),
  .kitchen-page #service-work .page-gallery__item:nth-child(n + 4) {
    grid-column: span 6;
    grid-row: span 1;
  }

  .kitchen-page #service-work .page-gallery__more {
    margin-top: 22px;
  }

  .kitchen-page #service-work .text-link {
    margin-top: 23px;
  }

  .kitchen-materials__copy > p:not(.section-label),
  .kitchen-process__intro > p:not(.section-label),
  .kitchen-estimate__head > p {
    font-size: 16px;
    line-height: 1.5;
  }

  .kitchen-materials__copy .text-link {
    margin-top: 24px;
  }

  .kitchen-materials__image {
    aspect-ratio: 1.04;
  }

  .kitchen-materials__list {
    grid-template-columns: 1fr;
  }

  .kitchen-materials__list article {
    min-height: 0;
    padding: 20px 19px 21px;
    border-radius: 12px;
  }

  .kitchen-materials__list p {
    margin-top: 9px;
    font-size: 15px;
  }

  .kitchen-process__intro figure {
    height: auto;
    aspect-ratio: 1.18;
    margin-top: 26px;
    border-radius: 12px;
  }

  .kitchen-process__steps {
    gap: 8px;
  }

  .kitchen-process__steps li {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding: 18px 17px 19px;
    border-radius: 12px;
  }

  .kitchen-process__steps li > span {
    font-size: 30px;
  }

  .kitchen-process__steps h3 {
    font-size: 18px;
  }

  .kitchen-process__steps p {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.43;
  }

  .kitchen-estimate__head {
    margin-bottom: 26px;
  }

  .kitchen-estimate__grid article {
    min-height: 0;
    padding: 19px 19px 20px;
    border-radius: 12px;
  }

  .kitchen-estimate__grid strong {
    font-size: 18px;
  }

  .kitchen-estimate__grid p {
    margin-top: 10px;
    font-size: 15px;
  }

  .kitchen-estimate__button {
    width: 100%;
    margin-top: 22px;
  }

  .kitchen-faq__grid {
    gap: 25px;
  }

  .kitchen-page .kitchen-faq .faq-list summary {
    min-height: 60px;
    padding: 15px 16px;
    font-size: 16px;
  }

  .kitchen-page .kitchen-faq .faq-list details p {
    padding: 0 16px 17px;
    font-size: 14px;
  }

  .kitchen-page .related-strip .section-heading {
    margin-bottom: 22px;
  }

  .kitchen-page .related-strip .related-link {
    min-height: 57px;
    padding: 14px 16px;
    border-radius: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kitchen-page .kitchen-overview__image img,
  .kitchen-page .kitchen-system-card figure img,
  .kitchen-page .kitchen-materials__image img {
    transition: none;
  }

  .kitchen-page .kitchen-overview__image:hover img,
  .kitchen-page .kitchen-overview__image:focus-within img,
  .kitchen-page .kitchen-system-card:hover figure img,
  .kitchen-page .kitchen-system-card:focus-visible figure img,
  .kitchen-page .kitchen-materials__image:hover img,
  .kitchen-page .kitchen-materials__image:focus-within img {
    transform: none;
  }
}

/* Yandex reviews — shared moving proof strip */
.yandex-reviews {
  --section-current: var(--bg);
  overflow: hidden;
  padding: clamp(76px, 7vw, 112px) 0 clamp(68px, 6vw, 94px);
  background-color: var(--bg);
  background-image:
    radial-gradient(760px 360px at 12% 8%, rgba(181, 155, 122, 0.09), transparent 68%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 82%, var(--bg-alt) 100%);
}

.yandex-reviews__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(28px, 4vw, 68px);
  align-items: end;
}

.yandex-reviews__heading h2 {
  max-width: 840px;
  font-size: clamp(52px, 5.2vw, 88px);
}

.yandex-reviews__score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 10px;
  min-width: 156px;
  padding-bottom: 4px;
}

.yandex-reviews__score strong {
  color: var(--accent);
  font-family: "Bergamasco", Georgia, serif;
  font-size: clamp(54px, 4.6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: .8;
}

.yandex-reviews__score > span {
  padding-bottom: 3px;
  color: var(--text);
  font-size: 15px;
}

.yandex-reviews__actions {
  display: grid;
  gap: 10px;
  min-width: 184px;
}

.yandex-reviews__source-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 260ms var(--ease), background-color 260ms var(--ease), border-color 260ms var(--ease);
}

.yandex-reviews__source-link {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.yandex-reviews__source-link:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.yandex-reviews__source-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.yandex-reviews__marquee {
  width: 100%;
  margin-top: clamp(46px, 5vw, 72px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.yandex-reviews__track {
  display: flex;
  width: max-content;
  animation: yandex-reviews-marquee 72s linear infinite;
  will-change: transform;
}

.yandex-reviews__group {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding-right: 14px;
}

.yandex-review-card {
  display: flex;
  width: clamp(330px, 27vw, 440px);
  min-height: 264px;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 26px 27px 28px;
  background: color-mix(in srgb, var(--surface) 74%, var(--bg));
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  transition: border-color 320ms var(--ease), transform 320ms var(--ease);
}

.yandex-review-card__meta {
  display: flex;
  align-items: center;
  gap: 13px;
}

.yandex-review-card__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--bg);
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.yandex-review-card__meta > div {
  display: grid;
  gap: 2px;
}

.yandex-review-card__meta strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

.yandex-review-card__meta div span {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.3;
}

.yandex-review-card__stars {
  display: flex;
  gap: 3px;
  margin-top: 22px;
  color: var(--accent);
}

.yandex-review-card__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.yandex-review-card > p {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.yandex-reviews__note {
  margin-top: 24px;
}

.yandex-reviews__note p {
  max-width: 620px;
  color: rgba(195, 186, 176, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

.yandex-reviews__marquee:hover .yandex-reviews__track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .yandex-review-card:hover {
    border-color: rgba(181, 155, 122, 0.7);
    transform: translateY(-4px);
  }
}

@keyframes yandex-reviews-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1000px) {
  .yandex-reviews__heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .yandex-reviews__actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 190px);
  }
}

@media (max-width: 560px) {
  .yandex-reviews {
    padding: 64px 0 58px;
  }

  .yandex-reviews__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .yandex-reviews__heading h2 {
    font-size: clamp(42px, 12vw, 58px);
    overflow-wrap: anywhere;
  }

  .yandex-reviews__score {
    min-width: 0;
    justify-self: start;
  }

  .yandex-reviews__score strong {
    font-size: 58px;
  }

  .yandex-reviews__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .yandex-reviews__source-link {
    width: 100%;
  }

  .yandex-reviews__marquee {
    margin-top: 38px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  }

  .yandex-reviews__track {
    animation-duration: 88s;
  }

  .yandex-review-card {
    width: min(82vw, 330px);
    min-height: 286px;
    padding: 23px 22px 25px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yandex-reviews__marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-color: var(--accent) transparent;
  }

  .yandex-reviews__track {
    animation: none !important;
    transform: none !important;
  }

  .yandex-reviews__group[aria-hidden="true"] {
    display: none;
  }
}
