/* Д-р Татяна Аврамова — нов дизайн (2026). Самостоятелен стил, не зависи от css/style.css */
:root {
  --paper: #f4eee4;
  --paper-deep: #ebe2d3;
  --ink: #2f3a34;
  --ink-soft: #5d675f;
  --teal: #4f9485;
  --sage-deep: #3f6a5f;
  --sage-darker: #32574e;
  --line: rgba(47, 58, 52, .14);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; line-height: 1.15; }
.brand img { height: 50px; width: auto; }
.brand b { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .01em; }
.brand small { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; gap: 26px; align-items: center; font-size: 15px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); }
.site-nav .lang { font-weight: 600; letter-spacing: .06em; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font: 600 15px var(--sans); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-primary { background: var(--sage-deep); color: #fbf8f2; }
.btn-primary:hover { background: var(--sage-darker); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--teal); background: rgba(255,255,255,.7); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.site-header .btn { padding: 10px 20px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.9vw, 66px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 24px; }
h1 em { font-style: italic; color: var(--sage-deep); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 14px; }
h3 { font-weight: 600; font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.lede { font-size: 18.5px; color: var(--ink-soft); max-width: 34em; margin: 0 0 30px; }
.sub { color: var(--ink-soft); max-width: 38em; margin: 0 0 42px; }
.more { font-weight: 600; font-size: 15px; color: var(--sage-deep); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Home hero (частици) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 880px);
  display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(150,190,200,.22), transparent 70%),
    radial-gradient(45% 50% at 12% 62%, rgba(140,185,170,.2), transparent 70%),
    linear-gradient(180deg, #f7f2ea, var(--paper));
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-block: 140px 84px; }
.meta { font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; }
.meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 9px; vertical-align: middle; }
.stage { position: relative; aspect-ratio: 1; width: 118%; margin-right: -18%; justify-self: end; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; }
.stage.ready canvas { opacity: 1; }
.fallback { /* показва се само ако WebGL липсва */
  position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #cdc9a0, #6fa79a 55%, #7f9cc4 95%);
  opacity: .55; filter: blur(14px); transition: opacity 1.2s;
  animation: breathe 11s ease-in-out infinite;
}
.stage.ready .fallback { opacity: 0; }
@keyframes breathe { 0%,100% { transform: scale(.95); } 41% { transform: scale(1.03); } }
.motion-toggle {
  position: absolute; right: 24px; bottom: 20px; z-index: 3;
  font: 500 12.5px var(--sans); color: var(--ink-soft);
  background: rgba(255,255,255,.5); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px);
}
.motion-toggle:hover { color: var(--ink); border-color: var(--teal); }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: 168px 0 76px;
  background:
    radial-gradient(50% 80% at 85% 20%, rgba(150,190,200,.22), transparent 70%),
    radial-gradient(40% 60% at 5% 90%, rgba(140,185,170,.2), transparent 70%),
    linear-gradient(180deg, #f7f2ea, var(--paper));
}
.page-hero .wrap.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: start; }
.page-hero .lede { max-width: 40em; }
.portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 400px; justify-self: end; width: 100%; box-shadow: 0 30px 60px -30px rgba(47,58,52,.35); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; height: 100%; border: 1px solid var(--line); background: var(--paper-deep); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contact-lines { display: grid; gap: 4px; margin-top: 28px; font-size: 15px; color: var(--ink-soft); }
.contact-lines a { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--sage-deep); }
.contact-lines div + div { margin-top: 12px; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.band { background: var(--paper-deep); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.card { padding: 32px 34px 34px 0; border-right: 1px solid var(--line); margin-right: 34px; display: flex; flex-direction: column; }
.card:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.card .tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--teal); margin-bottom: 16px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card .more { margin-top: auto; padding-top: 8px; }
.card .fit { font-size: 14.5px; margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.card .fit b { color: var(--ink); font-weight: 600; }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts b { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--sage-deep); line-height: 1; }
.facts span { color: var(--ink-soft); font-size: 16px; }

.dash { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.dash li { padding-left: 30px; position: relative; }
.dash li::before { content: ""; position: absolute; left: 0; top: .82em; width: 16px; height: 1px; background: var(--sage-deep); }
.dash b { font-weight: 600; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--teal); }
.steps.cols { columns: 2; column-gap: 64px; border-top: 0; }
.steps.cols li { break-inside: avoid; border-top: 1px solid var(--line); border-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; background: rgba(255,255,255,.45); }

.closing { text-align: center; padding: 104px 0; background: linear-gradient(180deg, var(--paper), #e3ecec); }
.closing h2 { max-width: 17em; margin-inline: auto; }
.closing p { color: var(--ink-soft); margin: 0 auto 30px; max-width: 32em; }
.closing .cta { justify-content: center; }

/* ---------- Contact ---------- */
.panel { background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.hp { position: absolute; left: -9999px; }
label { font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid rgba(47,58,52,.22); background: #fffdf9;
  font: 16px var(--sans); color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(79,148,133,.18); }
.form .btn { justify-self: start; }
.form-status { font-size: 15px; padding: 12px 16px; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.ok { background: rgba(79,148,133,.14); color: var(--sage-darker); }
.form-status.err { background: rgba(176,74,58,.1); color: #8c3a2c; }
.info p { color: var(--ink-soft); }
.info b { color: var(--ink); font-weight: 600; }
.note { border-left: 2px solid var(--teal); padding: 2px 0 2px 18px; margin: 18px 0; color: var(--ink-soft); font-size: 16px; }
.urgent-light { border: 1px dashed rgba(47,58,52,.3); border-radius: 14px; padding: 14px 18px; font-size: 15px; margin: 22px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9ddd5; padding: 48px 0 40px; font-size: 14.5px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.site-footer .name { font-family: var(--serif); font-size: 22px; font-weight: 500; color: #fbf8f2; display: block; margin-bottom: 6px; }
.site-footer .copy { margin-top: 18px; opacity: .65; font-size: 13px; }
.urgent { border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 18px 22px; line-height: 1.55; }
.urgent strong { color: #fbf8f2; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: calc(100% - 4px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fbf8f2; border: 1px solid var(--line); border-radius: 18px; padding: 10px 18px 18px;
    box-shadow: 0 24px 50px -20px rgba(47,58,52,.35);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav .btn { margin-top: 16px; }
  .brand img { height: 42px; }
  .brand b { font-size: 20px; }
  .brand small { font-size: 10px; letter-spacing: .1em; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 100px 64px; gap: 0; }
  .stage { order: -1; width: min(86%, 420px); margin: 0 auto -4%; justify-self: center; }
  .page-hero { padding: 128px 0 56px; }
  .page-hero .wrap.two, .two-col, .site-footer .wrap { grid-template-columns: 1fr; gap: 40px; }
  .portrait { justify-self: start; max-width: 320px; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
  .steps.cols { columns: 1; }
  section { padding: 64px 0; }
  .closing { padding: 72px 0; }
  .panel { padding: 24px; }
  .motion-toggle { right: 16px; bottom: 12px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .brand small { display: none; }
  .facts li { grid-template-columns: 84px 1fr; }
  .contact-lines a { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fallback { animation: none; }
  .stage canvas, .btn { transition: none; }
}
