:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #151515;
  --text: #2b2a28;
  --muted: #6a655e;
  --line: #e3ddd3;
  --accent: #7a1f2b;
  --accent-dark: #5f1721;
  --dark: #141413;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  --header-h: 72px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography ---------- */

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h1 .eyebrow { margin-bottom: 22px; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.005em;
}

h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text);
  max-width: 34em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.cta-break { flex-basis: 100%; height: 0; margin-top: -12px; }

/* Phone reveal: number is plain HTML; masked only when JS is on */
.phone-mask { display: none; }
.phone-hint { font-weight: 500; opacity: .8; padding-left: 10px; margin-left: 2px; border-left: 1px solid currentColor; }
.js:not(.phone-open) .js-phone:not(.js-phone-direct) .phone-full { display: none; }
.js:not(.phone-open) .js-phone:not(.js-phone-direct) .phone-mask { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-word { width: 171px; height: 26px; }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav a:hover { color: var(--ink); border-color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang a {
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

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

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero .lead { margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.hero-note span, .hero-note a { display: inline-flex; align-items: center; gap: 8px; }
.hero-note a { text-underline-offset: 3px; }
.hero-note a:hover { color: var(--ink); }
.hero-note .icon { width: 16px; height: 16px; }
.star { color: #b8860b; font-size: 15px; line-height: 1; }

/* Visiting card */
.visit-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.4vw, 40px);
  text-align: center;
  box-shadow: 0 1px 1px rgba(21,21,21,.03), 0 18px 40px -18px rgba(21,21,21,.22);
}
.visit-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  pointer-events: none;
}
.visit-card .logo-full { width: min(300px, 86%); height: auto; margin-inline: auto; }
.visit-card .rule { width: 44px; height: 1px; background: var(--ink); margin: 26px auto 22px; border: 0; }
.vc-name { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.vc-role { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.vc-list { margin-top: 22px; display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.vc-list li { display: flex; align-items: center; justify-content: center; gap: 8px; }
.vc-list .icon { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Facts strip ---------- */

.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }

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

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin-top: 18px; font-size: 17px; color: var(--muted); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service { background: var(--surface); padding: 30px 28px 32px; transition: background-color .18s ease; }
.service:hover { background: #fcfbf9; }
.service-num { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--accent); line-height: 1; }
.service h3 { margin-top: 18px; }
.service p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Approach */
.approach { background: var(--surface); border-block: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #ecebe9; }
.portrait figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 16px; }
.portrait figcaption strong { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.portrait figcaption span { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.approach-text .section-head { margin-bottom: 28px; }
.approach-text p { font-size: 17px; }
.approach-text p + p { margin-top: 16px; }
.check-list { margin-top: 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-list .icon { margin-top: 3px; color: var(--accent); stroke-width: 2; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; margin-top: clamp(40px, 6vw, 64px); }
.step {
  position: relative;
  padding: 24px 24px 24px 76px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px; top: 22px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.step p { margin-top: 6px; font-size: 15px; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.value { padding-top: 20px; border-top: 1px solid var(--ink); }
.value p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--dark); color: #d9d5ce; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(48px, 7vw, 72px); }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; max-width: 34em; }
.cta-band .cta-row { margin-top: 0; }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item .ci-icon { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
.contact-item dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.contact-item dd a { text-decoration: none; }
.contact-item dd a:hover { color: var(--accent); }
.contact-item dd small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 0; border: 0; background: none;
  font: 600 14px/1.3 var(--sans); color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--accent-dark); }
.link-btn .icon { width: 15px; height: 15px; }
.contact-phone .js-phone { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.contact-phone .phone-hint { font-size: 14px; color: var(--accent); opacity: 1; border-left: 0; padding-left: 0; text-decoration: underline; text-underline-offset: 3px; }

.map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9e5dd;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  font-size: 18px; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 44em; }
.faq-list details p a { color: var(--accent); text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--dark); color: #a8a39b; font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 48px 32px; }
.footer-brand img { width: 220px; height: auto; filter: invert(1); opacity: .95; }
.footer-brand p { margin-top: 18px; max-width: 30em; }
.footer-col h3 { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: #d9d5ce; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-bottom a { color: inherit; text-underline-offset: 3px; }

/* Mobile action bar */
.action-bar { display: none; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound img { width: 96px; height: 96px; margin: 0 auto 28px; }
.notfound p { margin-top: 14px; color: var(--muted); }
.notfound .cta-row { justify-content: center; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 22px 20px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .hero-grid, .approach-grid, .contacts-grid { grid-template-columns: 1fr; }
  .visit-card { max-width: 460px; width: 100%; margin-inline: auto; }
  .portrait { max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 20px; }
  .map { min-height: 340px; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .header-actions .btn { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-word { width: 145px; height: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 24px 22px 26px; }
  .fact strong { font-size: 24px; }
  .fact { padding: 20px 16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .cta-break { display: none; }
  .cta-band .cta-row { width: 100%; }
  .faq-list summary { font-size: 17px; }
  .faq-list details p { padding-right: 0; }

  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.15fr 1.25fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(246, 243, 238, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .action-bar .btn { min-height: 50px; padding-inline: 8px; gap: 7px; font-size: 14px; }
  .action-bar .icon { width: 17px; height: 17px; }
}

@media (max-width: 380px) {
  .brand-word { width: 118px; height: 18px; }
  .lang a { min-width: 36px; padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .action-bar, .map, .cta-band { display: none; }
  .phone-mask { display: none !important; }
  .phone-full { display: inline !important; }
}
