:root {
  --brand: #0b3259;
  --brand-dark: #071e36;
  --accent: #097c83;
  --accent-dark: #065e64;
  --ink: #102033;
  --muted: #5a6570;
  --paper: #eef4f6;
  --white: #fff;
  --line: #d5e0e4;
  --sans: Rubik, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, #fff 0%, transparent 55%),
    #e7f1f3;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 720px; }
.skip {
  position: absolute; left: 12px; top: -48px; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 80;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 50, 89, .08);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 56px; width: auto; max-width: none; display: block; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { font-size: 15px; color: #243140; padding: 8px 10px; }
.main-nav a:hover, .main-nav a.is-active { color: var(--brand); }
.main-nav a.is-active { font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.nav-contact { display: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-inline { display: flex; gap: 8px; align-items: center; }
.lang-inline a {
  display: block; width: 30px; height: 20px; padding: 0; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}
.lang-inline a svg { width: 30px; height: 20px; display: block; }
.lang-inline a.is-current { box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--brand); }
.lang-inline a:hover { transform: translateY(-1px); }
.header-contact {
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  padding: 9px 14px; border-radius: 8px;
  box-shadow: 0 8px 16px rgba(9, 124, 131, .32);
}
.header-contact:hover { background: var(--accent-dark); }
.menu-toggle {
  display: none; position: relative; width: 42px; height: 42px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; margin: 0; background: var(--brand);
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.menu-toggle[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); }
.menu-toggle[aria-expanded="true"] span { background: #fff; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.hero {
  background:
    radial-gradient(700px 320px at 78% 18%, rgba(14, 140, 147, .38), transparent 60%),
    linear-gradient(165deg, #14607a 0%, #0b3259 58%, #061828 100%);
  color: #fff;
  padding: 54px 0 64px;
  overflow: hidden;
}
.hero-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: center; }
.hero-copy { max-width: 640px; }
.scene { height: 460px; perspective: 1200px; }
.scene-rig {
  position: relative; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-8deg);
  transition: transform .18s linear;
}
.scene-floor {
  position: absolute; left: 6%; right: 4%; bottom: 28px; height: 120px;
  background: radial-gradient(closest-side, rgba(255,255,255,.28), rgba(255,255,255,0) 72%);
  transform: rotateX(72deg) translateZ(-20px);
}
.stand { position: absolute; width: 220px; margin: 0; transform-style: preserve-3d; }
.stand-a { left: 8px; bottom: 54px; transform: rotateY(-26deg) rotateX(8deg) translateZ(10px); }
.stand-b { right: 6px; bottom: 28px; transform: rotateY(20deg) rotateX(7deg) translateZ(46px); }
.stand-face {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 12px 10px;
  box-shadow: 0 22px 36px rgba(6, 24, 40, .28), 10px 14px 0 rgba(6, 24, 40, .16);
}
.stand-face svg, .stand-face img { width: 100%; border-radius: 12px; }
.stand-face img { height: 210px; object-fit: cover; }
.stand-face figcaption { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.kicker, .eyebrow, .section-no {
  color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 10px;
}
.hero .kicker { color: #b7e6e8; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.hero h1 { color: #fff; max-width: 14ch; }
.lede, .lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.hero .lede, .hero .note { color: #d7e6ec; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; background: var(--accent); color: #fff;
  border: 0; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: 0 8px 16px rgba(9, 124, 131, .32);
}
.btn:hover { background: var(--accent-dark); }
.btn-line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); box-shadow: none; }
.btn-line:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-ink { background: var(--brand); color: #fff; box-shadow: 0 8px 16px rgba(11, 50, 89, .28); }
.btn-ink:hover { background: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand); box-shadow: 0 8px 16px rgba(0, 0, 0, .12); }
.btn-light:hover { background: #fff; color: var(--brand-dark); }
.note, .medical-note, .world-note { color: var(--muted); font-size: 14.5px; }

.lift { margin-top: 8px; position: relative; z-index: 2; padding-bottom: 20px; }
#ayrim { scroll-margin-top: 90px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo { perspective: 1400px; }
.choice {
  background: #fff; border: 0; padding: 18px; border-radius: 18px;
  display: grid; grid-template-columns: 148px 1fr; gap: 16px; align-items: start;
  box-shadow: 0 10px 28px rgba(11, 50, 89, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.choice:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11, 50, 89, .12); }
.choice svg, .choice-photo { width: 100%; border-radius: 12px; }
.choice-photo { height: 168px; object-fit: cover; }
.choice h2 { font-size: 22px; }
.panel h2, .section-title, .prose h2, .form-card h2, .contact-copy h2, .cta-band h2 {
  font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.choice p, .board span, .steps p { color: var(--muted); margin: 0; }
.choice .kicker { margin-bottom: 6px; }
.choice-ortez { border-top: 4px solid var(--accent); }
.choice:not(.choice-ortez) { border-top: 4px solid var(--brand); }
.text-link { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 600; }
.text-link:hover { color: var(--accent-dark); }

.panel { padding: 64px 0; }
.panel-tint { background: var(--paper); }
.panel .lede { margin-bottom: 10px; }
.more { margin: 18px 0 0; }
.more .btn { margin-top: 4px; }
.choice .btn, .callout .btn { margin-top: 14px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0 0; padding: 0; perspective: 1200px; }
.steps li {
  background: #fff; border: 0; border-radius: 16px; padding: 16px;
  box-shadow: 0 8px 22px rgba(11, 50, 89, .08);
}
.steps span { display: block; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.boards > div { display: flex; flex-direction: column; }
.boards .photo-grid { flex: 1; }
.boards .more { margin-top: auto; padding-top: 18px; }
.section-intro { color: var(--muted); }
.board { list-style: none; margin: 16px 0 0; padding: 0; }
.board li { padding: 12px 0; border-top: 1px solid var(--line); }
.board strong { display: block; margin-bottom: 2px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.photo-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 24px rgba(11, 50, 89, .08);
}
.photo-card img, .plate-photo, .gallery img, .stack-thumb, .page-hero-photo { object-fit: cover; }
.photo-card img { width: 100%; height: 150px; }
.photo-card div { padding: 12px 14px 14px; }
.photo-card h3 { margin: 0 0 4px; font-size: 17px; }
.photo-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.photo-card:not(:has(img)) { display: flex; align-items: center; min-height: 148px; }
.pos-top { object-position: center 62%; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 200px; border-radius: 14px; }
.gallery figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.plate-photo { width: 100%; height: 320px; border-radius: 14px; }
.stack-item.has-photo { grid-template-columns: 112px 1fr; }
.stack-body { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; min-width: 0; }
.stack-thumb { width: 112px; height: 84px; border-radius: 10px; }
.shot {
  display: block; width: 100%; margin: 0; padding: 0; border: 0;
  background: transparent; cursor: zoom-in; text-align: inherit;
}
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stack-item .shot { width: 112px; }
.lightbox {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  margin: auto; padding: 16px 16px 12px; border: 0; border-radius: 16px;
  background: #071e36; color: #fff;
}
.lightbox::backdrop { background: rgba(6, 24, 40, .82); }
.lightbox img {
  width: auto; max-width: 100%; max-height: calc(100vh - 140px);
  height: auto; margin: 0 auto; object-fit: contain; border-radius: 12px; background: #0b3259;
}
.lightbox-cap { margin: 10px 0 0; color: #d5e4ea; font-size: 15px; text-align: center; }
.lightbox-close {
  display: block; margin: 0 0 10px auto; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 8px; background: #fff; color: var(--brand);
  font-weight: 600; cursor: pointer;
}
.page-hero-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: center; }
.page-hero-photo { width: 100%; height: 240px; border-radius: 14px; }
.photo-credits { flex-basis: 100%; margin: 0 0 8px; font-size: 12.5px; line-height: 1.55; }
.photo-credits a { color: var(--brand); }

.facts-line { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; }
.pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pills li { background: #fff; border: 0; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 18px rgba(11, 50, 89, .08); }
.pills strong { display: block; color: var(--brand); }
.pills span { color: var(--muted); font-size: 14px; }

.page-hero {
  background:
    radial-gradient(640px 220px at 90% 0%, rgba(14, 140, 147, .38), transparent 60%),
    linear-gradient(160deg, #0e4a6e, #061828);
  color: #fff; padding: 28px 0 48px;
}
.page-hero .container {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 26px 28px 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}
.page-hero h1 { color: #fff; max-width: 18ch; margin: 8px 0; }
.page-hero .lead { color: #d5e4ea; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: #d5e4ea; }
.crumbs a { color: #fff; font-weight: 600; }

.band { padding: 48px 0; }
main > .band:nth-child(even) { background: var(--paper); }
.split, .contact-layout, .plate-pair, .pair, .value-grid, .job-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start;
}
.plate-pair { grid-template-columns: 1fr; gap: 16px; }
.about-wide { margin: 28px 0 0; }
.about-wide-photo {
  width: 100%; height: 500px; object-fit: cover; object-position: center 52%;
  border-radius: 14px; background: #f4f8f9;
}
.about-wide figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.job-grid, .value-grid, .part-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.job-grid { grid-template-columns: 1fr 1fr; }
.prose { max-width: 68ch; }
.prose p, .part-card p, .value-card p, .job-card p, .stack-item p, .timeline p { color: var(--muted); }
.callout, .notice, .soon-card, .form-card, .part-card, .value-card, .job-card, .type-card {
  background: #fff; border: 0; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(11, 50, 89, .08);
}
.callout, .notice { border-left: 4px solid var(--accent); background: #f3fafb; margin-top: 18px; }
.callout strong, .notice strong { display: block; margin-bottom: 6px; }
.plate-card svg, .choice svg { width: 100%; }
.plate-card figcaption, .legend { color: var(--muted); font-size: 14.5px; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; }
.legend li { display: flex; gap: 8px; margin-top: 6px; }
.legend span, .index-no, .stack-item b, .timeline-item b { color: var(--brand); font-weight: 700; }
.index-no { display: block; margin-bottom: 6px; font-size: 13px; }
.stack, .timeline { margin-top: 8px; }
.stack-item, .timeline-item, .row, .step, .contact-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.stack-item { grid-template-columns: 48px 1fr auto; align-items: center; }
.timeline-item { grid-template-columns: 48px 1fr; }
.contact-row { grid-template-columns: 120px 1fr; }
.part-grid { margin-top: 16px; }
.part-card h3, .value-card h3, .stack-item h3, .timeline h3 { margin: 0 0 6px; font-size: 18px; }
.medical-note { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }

.branches {
  scroll-margin-top: 88px;
  background:
    radial-gradient(700px 280px at 80% 0%, rgba(14, 140, 147, .32), transparent 55%),
    var(--brand);
  color: #fff;
  padding: 64px 0 56px;
}
.branches h2 { color: #fff; text-align: center; margin-bottom: 8px; }
.branches-lead { text-align: center; color: #d7e6ec; max-width: 46ch; margin: 0 auto 28px; }
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.branch-card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 18px 16px 16px;
  text-align: center;
  box-shadow: 0 16px 32px rgba(6, 24, 40, .18);
}
.branch-card h3 {
  margin: 0 0 4px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
}
.branch-phone { display: block; font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.branch-address { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.branch-phone:hover { color: var(--accent-dark); }
.branch-map { height: 190px; border-radius: 12px; overflow: hidden; background: #e4eef0; }
.branch-map iframe { width: 100%; height: 100%; border: 0; }
.branch-dir { width: 100%; margin-top: 12px; }
.contact-layout-single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.contact-layout-single .contact-copy:empty { display: none; }

.cta-band { background: var(--accent); color: #fff; }
.cta-band-inner {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 36px 0;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { margin: 6px 0 0; max-width: 52ch; }
.cta-band .btn { flex: none; }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 36px 0 16px; }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 24px; }
.footer-col, .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand .brand-logo { height: 44px; }
.footer-col h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 4px; color: var(--brand); }
.footer-brand p, .footer-col a, .footer-col span, .footer-bottom { color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 22px; padding-top: 14px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.powered { margin-left: 8px; color: var(--brand); font-weight: 600; }
.powered:hover { color: var(--accent); }

.form-card p { color: var(--muted); margin: 0; }
.form-card .btn { margin-top: 16px; }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field span { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; padding: 10px 12px; border-radius: 8px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.banner { padding: 10px 12px; margin: 12px 0; }
.banner-ok { background: #e7f3ea; color: #1d4a28; }
.banner-err { background: #fff1ec; color: #7a341f; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 1100px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand { min-width: 0; }
  .brand-logo { height: 48px; }
  .menu-toggle { display: block; margin: 0; justify-self: end; }
  .header-tools { grid-column: 1 / -1; margin: 0; }
  .header-tools .header-contact { display: none; }
  .lang-inline {
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 7px 8px;
    background: #e7f2f4;
    border-radius: 12px;
  }
  .lang-inline a { width: 34px; height: 22px; border-radius: 4px; }
  .lang-inline a svg { width: 34px; height: 22px; }
  .lang-inline a:hover { transform: none; }
  .main-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 18px 36px rgba(11, 50, 89, .16);
    flex-direction: column; gap: 2px; padding: 8px; margin: 0;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 13px 12px; border-bottom: 0; border-radius: 10px; box-shadow: none; font-size: 16px;
  }
  .main-nav a.is-active { background: #e7f2f4; box-shadow: none; }
  .main-nav .nav-contact {
    display: block; margin-top: 4px; background: var(--accent); color: #fff;
    text-align: center; font-weight: 600;
  }
  .main-nav .nav-contact.is-active { color: #fff; background: var(--accent-dark); }
  .duo, .boards, .facts-line, .steps, .split, .contact-layout, .branch-grid, .plate-pair, .pair,
  .value-grid, .part-grid, .job-grid, .footer-main, .choice {
    grid-template-columns: 1fr;
  }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { display: block; padding: 28px 0; }
  .cta-band .btn { margin-top: 14px; }
  .hero { padding: 36px 0 28px; }
  .hero-layout { grid-template-columns: 1fr; }
  .scene { height: 360px; }
  .stand { width: 168px; }
  .stand-a { left: 6%; }
  .stand-b { right: 4%; }
  .stand-face img { height: 140px; }
  .choice-photo { height: 210px; }
  .page-hero-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .stack-item, .stack-item.has-photo { grid-template-columns: 1fr; }
  .stack-thumb { width: 100%; height: 180px; }
  .stack-item .shot { width: 100%; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .lift { margin-top: 12px; }
  .choice:hover { transform: none; }
  .stack-item, .timeline-item, .row, .step, .contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps, .photo-grid, .gallery { grid-template-columns: 1fr; }
  .about-wide-photo { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-toggle span { transition: none; }
}
