/* ==========================================================================
   Атанас Христов, психолог · Пловдив
   Палитра и шрифтове по брандбука на логото.
   ========================================================================== */

/* ---------- Шрифтове (self-hosted, само латиница + кирилица) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токени ---------- */
:root {
  --ivory: #F7F2E9;
  --ivory-light: #FBF8F2;
  --champagne: #E9DCC6;
  --beige: #D9C7A8;
  --brown: #2B1E17;
  --muted: #382B23;
  --gold: #B08D57;        /* само декоративно: линии, арки */
  --gold-text: #73562C;   /* злато за текст върху светло, AA */
  --gold-on-dark: #C9A66B;
  --error: #8C2F1B;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 11vw, 9rem);
  --bar-h: 0px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--gold-on-dark); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brown); color: var(--ivory);
  padding: .75rem 1.1rem; text-decoration: none; font-size: .96rem;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: .9rem;
}
.eyebrow::before {
  content: ""; width: 2.25rem; height: 1px; background: var(--gold); flex: none;
}

.lede { font-weight: 600;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.6rem);
  line-height: 1.45;
  color: var(--brown);
}

.muted { color: var(--muted); }
.mt-2 { margin-top: 1.9rem; }
.mt-3 { margin-top: 2.75rem; }
[data-reveal="2"] { --d: .15s; }
.small { font-size: .94rem; line-height: 1.65; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem;
  padding: .85rem 1.9rem;
  border: 1px solid var(--brown);
  border-radius: 0;
  background: transparent;
  color: var(--brown);
  font: 600 0.86rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: var(--brown); color: var(--ivory); }
.btn--solid { background: var(--brown); color: var(--ivory); }
.btn--solid:hover { background: #2A1D15; border-color: #2A1D15; }
.btn--small { min-height: 2.75rem; padding: .6rem 1.25rem; font-size: .8rem; }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Хедър ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 242 233 / .94);
  border-bottom: 1px solid rgb(156 122 69 / .5);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(247 242 233 / .82); backdrop-filter: blur(10px); }
}
.site-header__in {
  display: flex; align-items: center; justify-content: space-between; column-gap: 1rem;
}
.brand { padding-block: .7rem; }
.brand--footer { padding-block: 0; }
@media (min-width: 80rem) { .site-header__in { min-height: 5.5rem; } }
@media (max-width: 22.5rem) { .nav-toggle > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.brand { display: inline-flex; align-items: center; gap: clamp(.6rem, 2.4vw, 1rem); flex: 0 1 auto; min-width: 0; text-decoration: none; color: var(--brown); }
.brand__mark { height: clamp(1.6rem, 6.5vw, 2.7rem); width: auto; flex: none; }
.brand__ink { fill: var(--brown); }
.brand__gold { fill: #9C7A45; }
.brand__text { display: flex; flex-direction: column; gap: .3rem; padding-left: clamp(.6rem, 2.4vw, 1rem); border-left: 1px solid #9C7A45; min-width: 0; }
.brand__name {
  font-family: var(--serif); font-weight: 600; line-height: 1;
  font-size: clamp(.86rem, 3.6vw, 1.15rem);
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.brand__role {
  font-family: var(--sans); font-weight: 600; line-height: 1;
  font-size: clamp(.54rem, 2vw, .62rem);
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); white-space: nowrap;
}
.brand--footer { color: var(--ivory); }
.brand--footer .brand__mark { height: clamp(2.2rem, 10vw, 2.9rem); }
.brand--footer .brand__ink { fill: var(--ivory); }
.brand--footer .brand__gold { fill: var(--gold-on-dark); }
.brand--footer .brand__text { border-left-color: var(--gold-on-dark); }
.brand--footer .brand__name { font-size: clamp(1.1rem, 5.4vw, 1.5rem); }
.brand--footer .brand__role { color: var(--gold-on-dark); font-size: .7rem; }

/* Навигация: бутон „Меню“ с чертички на тесни екрани (работи и без JS) */
.nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: .5rem 0 .5rem .5rem; flex: none;
  color: var(--brown);
  font: 700 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.nav-check:focus-visible + .nav-toggle { outline: 2px solid var(--brown); outline-offset: 4px; }
.nav-toggle__bars { width: 1.5rem; height: 1rem; position: relative; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-check:checked + .nav-toggle .nav-toggle__bars { background-size: 0 2px; }
.nav-check:checked + .nav-toggle .nav-toggle__bars::before { transform: translateY(calc(.5rem - 1px)) rotate(45deg); }
.nav-check:checked + .nav-toggle .nav-toggle__bars::after { transform: translateY(calc(-.5rem + 1px)) rotate(-45deg); }

.nav { display: none; }
.nav-check:checked ~ .nav {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory);
  border-bottom: 1px solid var(--beige);
  box-shadow: 0 1.5rem 2rem -1.5rem rgb(47 33 26 / .35);
  padding: .25rem var(--gutter) 1.5rem;
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .95rem 0;
  font-size: .9rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgb(217 199 168 / .6);
}
.nav .btn { display: inline-flex; margin-top: 1.25rem; width: 100%; justify-content: center; border-bottom: 1px solid var(--brown); padding: .85rem 1.9rem; }

@media (min-width: 80rem) {
  .nav-check, .nav-toggle { display: none; }
  .nav, .nav-check:checked ~ .nav {
    display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem);
    position: static; padding: 0; border: 0; background: none; box-shadow: none;
  }
  .nav ul { display: flex; gap: clamp(1.1rem, 1.9vw, 2rem); }
  .nav a { white-space: nowrap; padding: .5rem 0; border: 0; font-size: .8rem; position: relative; }
  .nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease);
  }
  .nav ul a:hover::after, .nav ul a:focus-visible::after { transform: scaleX(1); }
  .nav .btn { margin: 0; width: auto; padding: .6rem 1.25rem; border: 1px solid var(--brown); }
}

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section--champagne { background: var(--champagne); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); letter-spacing: -.005em; }
.section h2 em { font-style: italic; }

/* Тънка арка между секциите: мотивът от логото */
.arch-rule {
  display: block; width: 3.25rem; height: 2rem; margin: 0 auto;
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(4rem, 9vw, 7.5rem); overflow: clip; }
.hero__grid { display: grid; gap: clamp(2rem, 7vw, 5rem); align-items: center; }
.hero__head > :last-child, .hero__body > :last-child { margin-bottom: 0; }
.hero h1 {
  font-size: clamp(3.1rem, 1.6rem + 7.4vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.012em;
}
.hero h1 span { display: block; }
.hero h1 .hero__role {
  font-family: var(--sans); font-size: 0.81rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 1.5rem;
}
.hero__sub { font-weight: 600;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); line-height: 1.35;
  margin: 1.75rem 0 1.5rem; max-width: 30rem;
}
.hero__intro { max-width: 33rem; color: var(--muted); margin-bottom: 2.25rem; }
.hero__facts {
  list-style: none; padding: 1.5rem 0 0; margin: 2.75rem 0 0;
  border-top: 1px solid var(--beige);
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  font-size: .88rem; letter-spacing: .04em; color: var(--muted);
}
.hero__facts li { display: flex; align-items: center; gap: .6rem; }
.hero__facts li::before { content: ""; width: .3rem; height: .3rem; border-radius: 50%; background: var(--gold); }

/* Арковидна рамка за портрета */
.portrait { position: relative; width: min(74%, 23rem); margin-inline: auto; margin-top: 1rem; }
.portrait__frame {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--beige);
}
.portrait__frame picture { display: block; width: 100%; height: 100%; }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.portrait::before {
  content: ""; position: absolute; inset: -1rem -1rem 2.5rem;
  border: 1px solid var(--gold); border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.placeholder {
  width: 100%; height: 100%;
  display: grid; place-content: center; gap: .6rem;
  padding: 2rem; text-align: center;
  color: var(--brown);
}
.placeholder__tag {
  font-size: .8rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--brown);
}
.placeholder__text { font-weight: 600; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; max-width: 14rem; margin-inline: auto; }

@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); row-gap: 0; }
  .hero__head { grid-column: 1; grid-row: 1; align-self: end; }
  .hero__head > .hero__sub { margin-bottom: 1.5rem; }
  .hero__body { grid-column: 1; grid-row: 2; align-self: start; }
  .portrait { grid-column: 2; grid-row: 1 / span 2; width: min(100%, 27rem); margin-top: 0; margin-right: 1rem; }
}

/* ---------- За мен ---------- */
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.about__text .lede { margin-bottom: 1.5rem; }
.cv { display: grid; gap: 2.75rem; }
.cv h3 {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-text); padding-bottom: .9rem; border-bottom: 1px solid var(--gold); margin-bottom: 0;
}
.cv ul { list-style: none; margin: 0; padding: 0; }
.cv li { padding: 1.35rem 0; border-bottom: 1px solid var(--beige); }
.cv__title { font-weight: 600; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; display: block; }
.cv__where { display: block; margin-top: .35rem; font-size: .96rem; color: var(--muted); }
.cv__badge {
  display: inline-block; margin-top: .7rem; padding: .25rem .7rem;
  border: 1px solid var(--gold); color: var(--gold-text);
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.about__photo { aspect-ratio: 3 / 2; background: linear-gradient(160deg, var(--champagne), var(--beige)); margin-top: 2.5rem; }
@media (min-width: 56rem) {
  .about__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
}

/* ---------- Услуги ---------- */
.topics { list-style: none; margin: 0; padding: 0; counter-reset: topic; border-top: 1px solid rgb(59 42 32 / .18); }
.topics li {
  counter-increment: topic;
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgb(59 42 32 / .18);
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15;
}
.topics li::before {
  content: counter(topic, decimal-leading-zero);
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  color: var(--gold-text); min-width: 1.6rem; transform: translateY(-.35em);
}
.services__note { max-width: 38rem; margin-top: 2.5rem; color: var(--muted); }
.services__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) {
  .services__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .services__grid .section__head { position: sticky; top: 7.5rem; margin-bottom: 0; }
  .topics { columns: 2; column-gap: 3.5rem; border-top: 0; }
  .topics li { break-inside: avoid; border-top: 1px solid rgb(59 42 32 / .18); border-bottom: 0; }
}

/* ---------- Формат и цена ---------- */
.format__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.formats { display: grid; gap: 1px; background: var(--beige); border: 1px solid var(--beige); }
.formats > div { background: var(--ivory); padding: 2rem 1.75rem; }
.formats h3 { font-size: 1.75rem; margin-bottom: .5rem; }
.formats p { color: var(--muted); font-size: 1rem; }
@media (min-width: 36rem) { .formats { grid-template-columns: 1fr 1fr; } }

.ledger { margin: 2.5rem 0 0; }
.ledger div { display: grid; grid-template-columns: 12.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--beige); }
.ledger div:first-child { border-top: 1px solid var(--beige); }
.ledger dt { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); padding-top: .3rem; }
.ledger dd { margin: 0; }
@media (max-width: 34rem) { .ledger div { grid-template-columns: 1fr; gap: .25rem; } }

.price {
  border: 1px solid var(--gold);
  border-radius: 999px 999px 0 0;
  padding: clamp(3.5rem, 9vw, 5rem) 2rem 2.75rem;
  text-align: center;
  max-width: 22rem; margin-inline: auto; width: 100%;
  background: var(--ivory-light);
}
.price__label { font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1rem; }
.price__num { font-weight: 600; font-family: var(--serif); font-size: clamp(4.5rem, 3rem + 6vw, 6.5rem); line-height: 1; margin: 0; }
.price__num span { font-size: .5em; vertical-align: .55em; margin-left: .1em; }
.price__unit { margin: .75rem 0 1.75rem; color: var(--muted); }
.price__note { font-size: .94rem; color: var(--muted); padding-top: 1.5rem; border-top: 1px solid var(--beige); margin-bottom: 1.75rem; }
@media (min-width: 56rem) {
  .format__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; }
}

/* ---------- Стъпки ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { padding: 2.25rem 0; border-top: 1px solid rgb(59 42 32 / .2); display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; }
.steps__n { font-weight: 600; font-family: var(--serif); font-style: italic; font-size: 3.5rem; line-height: .9; color: var(--gold-text); }
.steps h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: 1.02rem; }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; padding: 2.5rem 2.5rem 0 0; border-top: 1px solid rgb(59 42 32 / .25); }
  .steps li + li { padding-left: 2.5rem; border-left: 1px solid rgb(59 42 32 / .12); }
  .steps__n { font-size: 4.5rem; margin-bottom: 1rem; }
}

/* ---------- Контакти ---------- */
.contact__grid { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.contact address { font-style: normal; }
.contact__block { padding: 1.6rem 0; border-top: 1px solid var(--beige); }
.contact__block:last-of-type { border-bottom: 1px solid var(--beige); }
.contact__label { font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .6rem; }
.contact__value { font-weight: 600; font-family: var(--serif); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); line-height: 1.25; margin-bottom: .4rem; overflow-wrap: anywhere; }
.contact__value a { text-decoration: none; }
.contact__value a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
.contact__block .btn-row { margin-top: 1.1rem; }

.map {
  margin-top: 2rem;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--champagne), var(--beige));
  position: relative;
  display: grid; place-content: center; justify-items: center; gap: 1rem;
  padding: 1.5rem; text-align: center;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__pin { width: 2.25rem; height: 2.75rem; color: var(--brown); }
.map__note { font-size: .88rem; color: var(--brown); max-width: 22rem; margin: 0; }
.map .btn { background: var(--ivory); }
.map .btn:hover { background: var(--brown); }

/* ---------- Форма ---------- */
.form-card {
  background: var(--ivory-light);
  border: 1px solid var(--beige);
  padding: clamp(1.5rem, 5vw, 3rem);
}
.form-card h3 { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.3rem); margin-bottom: .75rem; }
.form-card > p { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }

.field { margin-bottom: 1.6rem; }
.field label, .field legend {
  display: block; padding: 0;
  font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: .5rem;
}
.field .opt { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field textarea {
  width: 100%;
  font: 500 1.0625rem/1.5 var(--sans);   /* 16px: без зуум в iOS */
  color: var(--brown);
  background: #fff;
  border: 1px solid #8A7663;
  border-radius: 0;
  padding: .85rem 1rem;
  min-height: 3.25rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--brown); outline-offset: 2px; border-color: var(--brown);
}
.field .hint { font-size: .9rem; line-height: 1.55; color: var(--muted); margin: .55rem 0 0; }

fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.choices { display: grid; gap: .6rem; }
@media (min-width: 30rem) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: .75rem;
  min-height: 3.25rem; padding: .7rem 1rem;
  border: 1px solid #8A7663; background: #fff;
  font-size: 1rem;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.choice span::before {
  content: ""; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  border: 1px solid var(--brown); flex: none;
  box-shadow: inset 0 0 0 .22rem #fff;
}
.choice input:checked + span { border-color: var(--brown); background: var(--ivory); box-shadow: inset 0 0 0 1px var(--brown); }
.choice input:checked + span::before { background: var(--brown); box-shadow: inset 0 0 0 .22rem var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.consent input {
  appearance: none; -webkit-appearance: none;
  width: 1.5rem; height: 1.5rem; margin: .1rem 0 0;
  border: 1px solid var(--brown); background: #fff; border-radius: 0;
  display: grid; place-content: center; cursor: pointer; flex: none;
}
.consent input::after {
  content: ""; width: .7rem; height: .4rem;
  border-left: 2px solid var(--ivory); border-bottom: 2px solid var(--ivory);
  transform: rotate(-45deg) translate(.05rem, -.05rem) scale(0);
  transition: transform .25s var(--ease);
}
.consent input:checked { background: var(--brown); }
.consent input:checked::after { transform: rotate(-45deg) translate(.05rem, -.05rem) scale(1); }
.consent label { font-size: .96rem; font-weight: 600; letter-spacing: 0; margin: 0; line-height: 1.6; }

.error {
  display: none;
  margin: .55rem 0 0;
  font-size: .92rem; font-weight: 500; line-height: 1.5;
  color: var(--error);
}
.error::before { content: "! "; font-weight: 700; }
.is-invalid .error { display: block; }
.is-invalid input[type="text"], .is-invalid textarea, .is-invalid .choice span, .is-invalid.consent-field .consent input {
  border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; }
.form-foot { font-size: .9rem; color: var(--muted); margin: 1.1rem 0 0; text-align: center; }

@media (min-width: 60rem) {
  .contact__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--ivory); padding-block: clamp(3.5rem, 8vw, 5.5rem) 2rem; }
.site-footer a { text-decoration-color: rgb(201 166 107 / .7); }
.site-footer a:hover { text-decoration-color: var(--gold-on-dark); }
.footer__grid { display: grid; gap: 2.75rem; }
.footer__brand p { margin-top: 1.25rem; color: var(--beige); font-size: .98rem; max-width: 22rem; }
.footer__h { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-on-dark); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .2rem; font-size: 1rem; }
.site-footer li a { display: inline-block; padding: .3rem 0; }
.footer__urgent {
  margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgb(201 166 107 / .35); border-bottom: 1px solid rgb(201 166 107 / .35);
  font-size: .94rem; color: var(--beige);
}
.footer__legal { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .88rem; color: var(--beige); }
.footer__legal p { margin: 0; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Фиксирана лента на мобилен ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--ivory);
  border-top: 1px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: transform .5s var(--ease), visibility .5s;
}
.cta-bar .btn { min-height: 3.5rem; border: 0; padding-inline: .5rem; letter-spacing: .12em; }
.cta-bar .btn + .btn { border-left: 1px solid var(--beige); }
.cta-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
@media (max-width: 61.99rem) {
  :root { --bar-h: calc(3.5rem + 1px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 62rem) { .cta-bar { display: none; } }

/* ---------- Вътрешни страници ---------- */
.page { padding-block: clamp(3rem, 8vw, 6rem) var(--section); }
.page h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); margin-bottom: 1.25rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); margin: 3rem 0 1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--gold-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--beige); }
.prose th { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.table-scroll { overflow-x: auto; }
.page--center { min-height: 62vh; display: grid; align-items: center; text-align: center; }
.page--center .prose { margin-inline: auto; }
.page--center .btn-row { justify-content: center; margin-top: 2.25rem; }
.page--center .arch-rule { margin-bottom: 2rem; width: 4.5rem; height: 3rem; }

/* ---------- Движение: бавно появяване, само ако не е ограничено ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].will-reveal {
    opacity: 0;
    translate: 0 1.25rem;
    transition: opacity 1.1s var(--ease), translate 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  [data-reveal].will-reveal.is-in { opacity: 1; translate: 0 0; }

  .portrait::before { animation: arch-in 1.8s var(--ease) both; }
  @keyframes arch-in {
    from { opacity: 0; transform: translateY(.75rem); }
    to { opacity: 1; transform: none; }
  }
}

@media print {
  .site-header, .cta-bar, .map, .form-card { display: none; }
  body { background: #fff; padding: 0; }
}

/* Центрирани страници (404, потвърждение) */
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 2.25rem; height: 1px; background: var(--gold); flex: none; }

/* Много тесни екрани: скриваме думата „Меню“, остава иконата */


/* ---------- Телефон: по-стегнато подреждане ---------- */
@media (max-width: 40rem) {
  :root { --section: 3.75rem; }
  body { line-height: 1.62; }
  .site-header { background: rgb(247 242 233 / .97); }
  .hero { padding-top: 2rem; }
  .hero h1 .hero__role { margin-bottom: 1rem; }
  .hero__sub { margin-top: 1.25rem; }
  .hero .btn-row { display: grid; grid-template-columns: 1fr; }
  .hero .btn-row .btn { width: 100%; justify-content: center; }
  .hero__facts { margin-top: 2rem; gap: .35rem 1.5rem; }
  .section__head { margin-bottom: 2rem; }
}
