:root {
  --navy: #1a2744;
  --navy-2: #243552;
  --ink: #1c2333;
  --muted: #5a6473;
  --line: #d5dbe3;
  --paper: #f6f3ed;
  --white: #fffcf8;
  --accent: #2c6a78;
  --mint: #9fd0d8;
  --shadow: 0 24px 50px rgba(26, 39, 68, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

html:not([lang="en"]) .lang-en,
html:not([lang="ru"]) .lang-ru,
html:not([lang="uk"]) .lang-uk,
html:not([lang="de"]) .lang-de,
html:not([lang="fr"]) .lang-fr,
html:not([lang="pl"]) .lang-pl,
html:not([lang="zh"]) .lang-zh,
html:not([lang="ja"]) .lang-ja,
html:not([lang="ko"]) .lang-ko {
  display: none !important;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--navy); }

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

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}

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

.mark-btn {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  color: inherit;
}

.mark-btn:hover .mark {
  filter: brightness(1.08);
}

.mark {
  width: 38px;
  height: 38px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background: var(--white);
}

.lang { max-width: 340px; }

.lang button,
.lang a {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
}

.lang button[aria-pressed="true"],
.lang a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

.hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 56px max(24px, calc(50vw - 590px)) 56px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(rgba(22, 18, 14, 0.40), rgba(22, 18, 14, 0.40)),
    url("bg-atelier.png") center / cover no-repeat;
}

.hero .kicker,
.hero h1,
.hero .hero-lede {
  text-shadow: 0 1px 2px rgba(22, 18, 14, 0.35), 0 6px 18px rgba(22, 18, 14, 0.28);
}

.hero .kicker {
  color: var(--mint);
}

.hero h1 {
  color: var(--white);
}

.hero .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.hero .btn-primary:hover {
  background: var(--mint);
  color: var(--navy);
}

html[data-look="scheme"] .hero {
  background:
    linear-gradient(180deg, rgba(44, 36, 28, 0.18) 0%, rgba(44, 36, 28, 0.68) 100%),
    url("bg-warm.png") center 42% / cover no-repeat;
}

html[data-look="chip"] .hero {
  background:
    linear-gradient(180deg, rgba(36, 48, 44, 0.22) 0%, rgba(36, 48, 44, 0.72) 100%),
    url("bg-cloister.png") center / cover no-repeat;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--navy);
  font-weight: 680;
  max-width: 16ch;
}

.hero-lede {
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: #d7e4ea;
  max-width: 42ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-icon {
  width: 48px;
  padding: 0;
}

.btn-icon svg {
  width: 26px;
  height: 26px;
}

.portrait {
  position: relative;
  margin: 0 0 0 auto;
  width: 204px;
  height: 204px;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.band {
  background: var(--navy);
  color: #d7e4ea;
  margin-top: 14px;
  padding: 18px 0;
  border-top: 3px solid var(--mint);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chips span { color: var(--mint); }

main section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

main section:first-child {
  border-top: 0;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--navy);
  font-weight: 650;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2 { margin: 0; }

.section-intro,
.section-head .lede-s {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 42ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steps .card {
  min-height: 0;
}

.services-grid {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 30px 28px;
  min-height: 220px;
}

.services-grid .card {
  border: 0;
  min-height: 280px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card p + p {
  margin-top: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card .eyebrow {
  color: var(--accent);
}

.lede-s {
  margin: 0;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 34px 30px;
}

.detail.span {
  grid-column: 1 / -1;
}

.detail.bare {
  background: transparent;
  border: 0;
  padding: 0;
}

.shift {
  display: grid;
  gap: 8px;
}

.shift-cols,
.shift-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  align-items: center;
}

.shift-cols {
  padding: 0 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.shift-now-h,
.shift-next-h {
  text-align: center;
}

.shift-row {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 22px;
}

.shift-kind {
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.shift-now,
.shift-next {
  text-align: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.shift-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.note-break {
  margin-top: 12px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.detail h3 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

.detail p {
  margin: 0;
  color: var(--muted);
}

.detail p + p { margin-top: 12px; }

.reg-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}

.reg-tiles-next {
  grid-template-columns: 1fr 1fr;
}

.reg {
  display: block;
  background: var(--paper);
  padding: 16px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e4ddd4;
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 3px 0 #d0c8bc,
    0 10px 18px rgba(26, 39, 68, 0.14);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.reg:hover,
.reg:focus-visible {
  background: #fff;
  border-color: #e4ddd4;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 0 #c4bbb0,
    0 14px 24px rgba(26, 39, 68, 0.18);
}

.reg:hover b,
.reg:focus-visible b {
  color: var(--accent);
}

.reg b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 680;
}

.reg span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.timebox {
  background: var(--paper);
  padding: 24px 26px;
}

.timebox h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.timebox div {
  color: var(--muted);
  font-size: 15px;
}

.timebox b { color: var(--navy); }

.timebox div + div { margin-top: 6px; }

.year {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.35;
}

.check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkitem {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 24px;
}

.checkitem b {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 6px;
}

.checkitem span {
  color: var(--muted);
  font-size: 15px;
}

.note {
  margin: 22px 0 0;
  color: var(--muted);
  white-space: normal;
}

.now-next {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 0;
  font-size: 15px;
}

.now-next th,
.now-next td {
  text-align: left;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}

.now-next thead th {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.now-next tbody th {
  color: var(--navy);
  font-weight: 700;
  width: 5.5rem;
}

.now-next td:last-child {
  color: var(--ink);
  font-weight: 600;
}

.note-box {
  grid-column: 1 / -1;
  background: var(--white);
  color: inherit;
  padding: 32px 36px 30px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
}

.note-box h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.note-box p {
  margin: 0;
  color: var(--muted);
}

.note-box .eyebrow {
  color: var(--accent);
}

.note-box ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.note-box li + li { margin-top: 8px; }

.about {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.about-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 42rem;
}

.about h2 {
  margin: 0 0 16px;
}

.about p { margin: 0; color: var(--muted); }

.about .follow { margin-top: 14px; }

.facts {
  display: grid;
  gap: 18px;
}

.facts span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts a, .facts b {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

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

.site-foot {
  background: var(--navy);
  color: #d7e4ea;
  padding: 72px 0 64px;
}

.foot {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.site-foot .foot-legal {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  max-width: 72ch;
  color: #9bb0b8;
  font-size: 13px;
  line-height: 1.5;
}

.site-foot .kicker {
  color: var(--mint);
  margin-bottom: 12px;
}

.site-foot .foot-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-foot p {
  margin: 0;
  color: #d7e4ea;
  font-size: 16px;
}

.site-foot .facts span {
  color: var(--mint);
}

.site-foot .facts a,
.site-foot .facts b {
  color: #fff;
}

.site-foot a:hover {
  color: var(--mint);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover { background: var(--accent); color: #fff; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  transform: translateX(-50%) translateY(8px);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  white-space: nowrap;
}

.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .hero, .foot, .grid, .detail-grid, .section-head, .timeline, .check, .reg-tiles, .reg-tiles-next {
    grid-template-columns: 1fr;
  }
  .about { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 22px; }
  .portrait { width: 136px; height: 136px; margin-left: 0; }
  .nav a:not(.keep) { display: none; }
  .hero { padding: 40px 24px 40px; min-height: 42vh; }
  h1 { max-width: 18ch; }
  .year { padding: 4px 0 12px; }
  .services-grid .card { min-height: 0; }
  .note { white-space: normal; }
  .grid.steps { grid-template-columns: 1fr 1fr; }
  .shift-cols { display: none; }
  .shift-row {
    grid-template-columns: 6.5rem 1fr;
    grid-template-areas:
      "kind now"
      "kind arrow"
      "kind next";
  }
  .shift-kind { grid-area: kind; }
  .shift-now { grid-area: now; text-align: left; }
  .shift-arrow { grid-area: arrow; text-align: left; }
  .shift-next { grid-area: next; text-align: left; }
}

.layout-portrait .hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 28px 0 64px;
}

.layout-portrait .hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.95;
  max-width: none;
}

.layout-portrait .lede {
  margin: 18px 0 0;
  font-size: 20px;
  color: var(--navy-2);
  max-width: 38ch;
}

.layout-portrait .hero .portrait {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  justify-self: end;
}

.layout-portrait .about {
  display: block;
}

.layout-portrait .about-copy {
  max-width: 72ch;
}

@media (max-width: 860px) {
  .layout-portrait .hero { grid-template-columns: 1fr; }
  .layout-portrait .hero .portrait { width: 200px; justify-self: start; }
}
