/* WHITE STONE GMBH — editorial-serif
   Вапняк, північний сланець, одна пісковиково-латунна риска.
   Шрифт: Newsreader. Сітка й порядок секцій свої. */

:root {
  --bg: #f3f0e8;
  --bg-alt: #e6e2d8;
  --bg-deep: #2c3338;
  --ink: #2a3036;
  --ink-soft: #5c656c;
  --ink-invert: #f3f0e8;
  --accent: #6e5430;
  --accent-soft: #efe4d2;
  --line: #d4cfc3;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-display: -0.02em;
  --container: 1120px;
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: 0 0 0 transparent;
}

h1, h2 { font-weight: 500; }
h3 { font-weight: 500; }

.brand-name {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.mark__w,
.mark__s {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: miter;
  stroke-linecap: square;
}

.mark__w { stroke: var(--ink); }
.mark__s { stroke: var(--accent); }

.sec-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head .lede { margin-top: 0.9rem; }

.frame {
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

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

figcaption {
  margin-top: 0.65rem;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section--deep .eyebrow { color: var(--accent-soft); }

.section--deep figcaption {
  color: color-mix(in srgb, var(--ink-invert) 72%, transparent);
}

/* --- Hero --- */
.hero__hello {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.hero h1 { max-width: 14ch; }

.hero__top {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero__quote {
  margin: 0;
  padding-left: 1.15rem;
  border-left: 1px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.35;
}

.hero__quote footer {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hero__follow {
  max-width: 42rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.hero__follow .eyebrow { margin-bottom: 0.75rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__plate { margin-top: clamp(2rem, 5vw, 4rem); }

.hero__plate img { aspect-ratio: 16 / 9; }

/* --- Register --- */
.sheet__switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.sheet__tab {
  position: relative;
  padding: 0.75rem 0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
}

.sheet__tab input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.sheet__tab:has(input:checked) {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--accent);
}

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

.sheet:has(input[value="home"]:checked) .sheet__card:not([data-lane="home"]),
.sheet:has(input[value="trade"]:checked) .sheet__card:not([data-lane="trade"]),
.sheet:has(input[value="care"]:checked) .sheet__card:not([data-lane="care"]),
.sheet:has(input[value="counsel"]:checked) .sheet__card:not([data-lane="counsel"]) {
  display: none;
}

.sheet__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.sheet__card {
  background: var(--bg);
  padding: 1.35rem 1.2rem 1.5rem;
}

.sheet__idx {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.sheet__card h3 { margin-bottom: 0.55rem; }

.sheet__card p:last-child { color: var(--ink-soft); }

/* --- Stone --- */
.stone__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.stone__grid h2 { margin: 0.4rem 0 1rem; }

.stone__grid img { aspect-ratio: 3 / 4; }

/* --- Path --- */
.path__intro {
  display: grid;
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.path__intro .sec-head { margin-bottom: 0; }

.path__intro img { aspect-ratio: 1; }

.path__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.path__list li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.path__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--accent);
}

.path__list h3 { margin-bottom: 0.45rem; }

/* --- Firm --- */
.firm__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.firm__grid h2 { margin: 0.4rem 0 1rem; }

.firm__grid img { aspect-ratio: 4 / 3; }

.facts {
  margin-top: 1.75rem;
}

.facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- Coast --- */
.coast__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.coast h2 { margin: 0.35rem 0 1rem; }

.coast__index {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.coast__index article {
  padding: 1.15rem 0;
  border-top: 1px solid color-mix(in srgb, var(--ink-invert) 28%, transparent);
}

.coast__index h3 { margin-bottom: 0.4rem; }

.frame--invert {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink-invert) 35%, transparent);
}

.coast img { aspect-ratio: 16 / 9; }

/* --- Ledger --- */
.year article {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.year article:last-child { border-bottom: 1px solid var(--line); }

/* --- Desk --- */
.desk__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.desk h2 { margin: 0.35rem 0 1rem; }

.desk__address {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--accent);
  font-style: normal;
}

.desk__address p + p { margin-top: 0.85rem; }

.desk__address a { overflow-wrap: anywhere; }

.desk__form {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.form-grid { display: grid; gap: 1rem; }

.field select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.desk__form .btn { margin-top: 1.15rem; }

/* --- Footer --- */
.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__grid .brand-name { margin-bottom: 0.75rem; }

.footer__grid a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__grid nav {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer__grid nav a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .hero__top { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }

  .sheet__grid { grid-template-columns: 1fr 1fr; }

  .stone__grid { grid-template-columns: 0.82fr 1.18fr; }

  .path__intro { grid-template-columns: 1.15fr 0.85fr; }

  .path__list { grid-template-columns: 1fr 1fr; }
  .path__list li { padding-right: 1.5rem; }
  .path__list li:nth-child(odd) { padding-right: 1.75rem; }

  .firm__grid { grid-template-columns: 0.9fr 1.1fr; }

  .coast__index { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
  .coast__index article { padding-right: 1rem; }

  .year article {
    grid-template-columns: 9rem 1fr;
    gap: 1rem 2rem;
    align-items: baseline;
  }

  .desk__grid { grid-template-columns: 0.85fr 1.15fr; }

  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--wide { grid-column: 1 / -1; }

  .footer__grid { grid-template-columns: 1.2fr 1.1fr 0.7fr; }
}

@media (min-width: 1100px) {
  .coast__grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
  .sheet__grid { grid-template-columns: 1fr 1fr 1fr 1fr; }

  .path__list { grid-template-columns: repeat(4, 1fr); }
  .path__list li {
    border-top: none;
    border-left: 1px solid var(--line);
    padding: 0 1.35rem 0.25rem;
  }
  .path__list li:first-child {
    border-left: none;
    padding-left: 0;
  }
}

@media (min-width: 1440px) {
  :root { --container: 1180px; }
  .hero h1 { max-width: 12ch; }
}
