/* =========================================================================
   lek. dent. Aleksandr Naumchik / Stomatolog
   Concept: "Crisp Clinical Calm" / slate-teal + warm sand accent line,
   Newsreader (display) + Schibsted Grotesk (body). Personal brand.
   ========================================================================= */

:root {
  --canvas: #fbfcfc;
  --canvas-2: #eef3f3;
  --ink: #16252a;
  --muted: #516066;
  --primary: #2d5560;
  --primary-deep: #1d3a42;
  --accent: #d8a566;
  --accent-soft: #f0e3cf;
  --line: #dde6e6;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(22, 37, 42, .05), 0 6px 18px rgba(22, 37, 42, .05);
  --shadow-md: 0 18px 50px -20px rgba(29, 58, 66, .35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.66;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em;
}

p { margin: 0 0 1.1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }

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

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

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

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--primary);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .92rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--primary-deep); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--primary-deep);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--primary); background: #fff; }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 252, 252, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -24px rgba(22, 37, 42, .5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .brand-mark {
  font-size: .72rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  border-left: 2px solid var(--accent);
  padding-left: .55rem;
  position: relative;
  top: -1px;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-block: .3rem;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-cta { display: inline-flex; align-items: center; gap: .9rem; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-toggle button {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .42rem .7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.lang-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(45, 85, 96, .07), transparent 60%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas) 60%, var(--canvas-2) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero-copy { max-width: 34rem; }
.hero h1 {
  font-size: clamp(2.3rem, 1.7rem + 3.2vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin-bottom: .7rem;
}
.hero h1 .accent { color: var(--primary); font-style: italic; }
.hero-greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  color: var(--primary-deep);
  margin-bottom: 1.4rem;
}
.hero-copy p.intro { font-size: 1.08rem; max-width: 32rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}
.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
}
.hero-meta .meta-item { display: flex; flex-direction: column; gap: .15rem; }
.hero-meta .meta-k {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--primary);
}
.hero-meta .meta-v { font-size: .98rem; color: var(--ink); font-weight: 500; }

/* hero media */
.hero-media { position: relative; }
.hero-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--canvas-2);
  aspect-ratio: 711 / 707;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  border-radius: inherit;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-sm);
  max-width: 15rem;
}
.hero-badge .hb-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  display: block;
}
.hero-badge .hb-role {
  font-size: .85rem;
  color: var(--muted);
}
.hero-accent-line {
  position: absolute;
  top: -22px; right: 8%;
  width: 2px; height: 120px;
  background: linear-gradient(180deg, transparent, var(--accent));
  opacity: .8;
}

/* ---- generic section heads ---- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem); }
.section-head p { font-size: 1.06rem; max-width: 40rem; }
.section-head.center p { margin-inline: auto; }

/* ---- about / approach split ---- */
.about { background: var(--canvas); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-aside {
  position: sticky;
  top: 100px;
  border-left: 2px solid var(--accent);
  padding-left: 1.6rem;
}
.about-aside .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.about-aside .sig { font-size: .92rem; color: var(--muted); }
.about-body p { font-size: 1.06rem; color: var(--muted); max-width: 38rem; }
.about-body p + p { margin-top: 1.1rem; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.value {
  background: var(--canvas-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.value .v-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  margin-bottom: .9rem;
}
.value .v-icon svg { width: 20px; height: 20px; }
.value h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.value p { font-size: .94rem; margin: 0; }

/* ---- services ---- */
.services { background: var(--canvas-2); }
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.service {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.service .s-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 1.6rem;
  padding-top: .1rem;
}
.service h3 { font-size: 1.16rem; margin-bottom: .35rem; }
.service p { font-size: .94rem; margin: 0; }

.services-note {
  margin-top: 2rem;
  font-size: .92rem;
  color: var(--muted);
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  max-width: 44rem;
  background: var(--canvas);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.services-note svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: .1rem; }

/* ---- visit / practical info ---- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.info-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.info-row {
  display: flex;
  gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row .ir-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--canvas-2);
  color: var(--primary);
  display: grid; place-items: center;
  flex: none;
}
.info-row .ir-icon svg { width: 20px; height: 20px; }
.info-row .ir-k {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--primary);
  margin-bottom: .2rem;
}
.info-row .ir-v { font-size: 1.04rem; color: var(--ink); font-weight: 500; }
.info-row .ir-v a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.info-row .ir-v a:hover { color: var(--primary-deep); }
.info-row .ir-sub { font-size: .9rem; color: var(--muted); margin-top: .15rem; }

.info-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--canvas-2);
  min-height: 340px;
  height: 100%;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---- contact / form ---- */
.contact { background: var(--primary-deep); color: #eaf1f1; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--accent); }
.contact .eyebrow::before { background: var(--accent); }
.contact .section-head p { color: #c4d4d5; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-aside p { color: #c4d4d5; }
.contact-aside .ca-line {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 1.02rem;
}
.contact-aside .ca-line:first-of-type { border-top: 0; }
.contact-aside .ca-line svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.contact-aside .ca-line a { color: #fff; }
.contact-aside .ca-line a:hover { color: var(--accent-soft); }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.form-note {
  font-size: .82rem;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: .6rem .85rem;
  margin-bottom: 1.4rem;
  display: flex; gap: .55rem; align-items: flex-start;
}
.form-note svg { width: 17px; height: 17px; color: var(--primary); flex: none; margin-top: .1rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: .8rem .95rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 85, 96, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-ok {
  margin-top: 1rem;
  background: var(--canvas-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .92rem;
  color: var(--ink);
}

/* ---- footer ---- */
.site-footer {
  background: var(--ink);
  color: #b9c6c8;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand .fb-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: .5rem;
}
.footer-brand p { color: #9aabad; max-width: 26rem; font-size: .95rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a, .footer-col span { color: #b9c6c8; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-disclaimer {
  margin-top: 2rem;
  font-size: .82rem;
  color: #8b9c9e;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.6rem;
  font-size: .82rem;
  color: #8b9c9e;
}
.footer-bottom a { color: #b9c6c8; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================================
   REVEAL CONTRACT / gated on .js so content is visible without JS.
   ========================================================================= */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
html.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .service:hover { transform: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { max-width: 30rem; margin-inline: auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: .9rem 0; }
  .nav-links a::after { display: none; }
  .header-cta { margin-top: .8rem; justify-content: space-between; }
  .value-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 300px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-badge { left: 0; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
