/* anastasia-negri.de — стили сайта (спецификация §3, вариант C2). Без сборки. */

/* Montserrat (OFL), variable 300–700, подмножества из Google Fonts */
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-cyrillic-45ea393f.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-latin-ext-f143fb48.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-latin-c154477b.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 {
  --ink: #2E2E2E;
  --ink-2: #575757;
  --ink-3: #6B6B6B;
  --yellow: #FFC200;
  --blue: #478DB1;
  --blue-ink: #2F6E90;
  --mint: #EBF5F5;
  --line: #DDE7E7;
  --gray: #F2F2F2;
  --error: #B3261E;
  --white: #FFFFFF;
  --divider: #E6EEEE;
  --shadow: 0 18px 40px -20px rgba(46, 46, 46, .25);
  --wrap: 1120px;
  --gutter: 20px;
  --font: 'Montserrat', Arial, sans-serif;
}

/* База */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 20px; }
p, ul, ol, dl { margin: 0 0 1em; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 600; }

/* Фокус: 2px --ink со смещением на всех интерактивных элементах */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Типографика блоков */
.eyebrow { font-size: 15px; font-weight: 500; color: var(--blue-ink); margin: 0 0 12px; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); font-size: 14px; }
.rule { display: block; width: 64px; height: 3px; background: var(--yellow); margin: 0 0 24px; }
h1 + .rule, .section-title + .rule { margin-top: -4px; }

/* Списки с жёлтыми точками */
.dots { list-style: none; padding: 0; }
.dots li { position: relative; padding-left: 20px; margin: 0 0 .45em; }
.dots li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

/* Кнопки-пилюли */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #FFCD33; border-color: #FFCD33; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-dark:hover { background: #454545; border-color: #454545; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Секции */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-mint { background: var(--mint); }
.section-gray { background: var(--gray); }
.section-white { background: var(--white); }
.section-title { margin-bottom: 16px; }

/* Карточки */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 3vw, 36px); }
.card > :last-child { margin-bottom: 0; }
.card-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 10px; }
.card-title { font-size: 22px; margin-bottom: 10px; }
.card-raised { box-shadow: var(--shadow); }
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Мотив «узлы» */
.node-graph { display: block; pointer-events: none; }
.node-graph .ng-halo { fill: var(--white); opacity: .7; }
.node-graph .ng-lines line { stroke: var(--blue); stroke-width: 1.2; opacity: .55; }
.node-graph .ng-lines .ng-dashed { stroke-dasharray: 3 5; }
.node-graph .ng-node { fill: var(--yellow); }
.node-graph-small { width: 160px; height: 160px; }

/* Плашки и цены */
.note { display: inline-block; padding: 8px 14px; background: var(--mint); border-left: 3px solid var(--blue); font-size: 14px; font-weight: 500; color: var(--ink); }
.price { white-space: nowrap; }
.card .btn { margin-top: 8px; }

/* Hero */
.hero { position: relative; background: var(--mint); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 0 32px; }
.hero-text { padding: clamp(48px, 8vw, 96px) 0; position: relative; z-index: 2; }
.hero-text h1 { max-width: 13em; }
.hero-media { position: relative; align-self: stretch; min-height: 440px; display: flex; align-items: flex-end; justify-content: center; }
.hero-media .node-graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-media picture { position: relative; z-index: 1; display: block; width: min(100%, 420px); }
.hero-img { width: 100%; height: auto; }

/* Полоса фактов */
.facts { background: var(--white); border-bottom: 1px solid var(--divider); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-grid p { margin: 0; padding: 24px 28px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.facts-grid p:first-child { padding-left: 0; }
.facts-grid p + p { border-left: 1px solid var(--divider); }
.facts-grid strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--ink); }

.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); margin-top: 32px; }

/* Анонс «Über mich»: светлая карточка с тенью поверх портрета */
.about-teaser { padding: clamp(48px, 7vw, 80px) 0; background: var(--white); }
.about-teaser-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.about-teaser-card { position: relative; z-index: 2; margin-top: 56px; margin-right: -56px; padding: clamp(28px, 4vw, 46px); }
.about-teaser-photo img { width: 100%; height: auto; border-radius: 4px; }

/* Шаги */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; counter-reset: none; }
.step { position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 18px; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -20px; border-top: 1.5px dashed var(--blue); opacity: .55; }
.step-title { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }

/* Призыв к контакту */
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 18px; font-weight: 600; }
.cta-contacts a { color: var(--ink); }
.cta .node-graph-small { flex: 0 0 auto; width: 200px; height: 200px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 24px; }
  .hero-media { min-height: 0; padding-top: 8px; }
  .hero-media picture { width: min(80%, 360px); }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid p { padding: 16px 0; }
  .facts-grid p + p { border-left: 0; border-top: 1px solid var(--divider); }
  .about-teaser-inner { grid-template-columns: 1fr; }
  .about-teaser-photo { order: -1; }
  .about-teaser-card { margin: -48px 16px 0; }
  .step:not(:last-child)::after { display: none; }
  .cta .node-graph-small { display: none; }
}

/* Внутренние страницы */
.page-head { padding: clamp(40px, 6vw, 72px) 0; }
.page-head .note { margin-bottom: 20px; }
.prose { max-width: 42em; }
.prose p { color: var(--ink-2); }
.cards-3 { margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards-2 .card .muted:last-child { margin-bottom: 0; }
.format { margin: 24px 0 0; font-weight: 500; }

/* Прайс */
.prices { max-width: 42em; margin: 24px 0 28px; border-top: 1px solid var(--line); }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-row dt { font-weight: 600; }
.price-row dd { margin: 0; display: flex; gap: 20px; }
.price-duration { color: var(--ink-3); }
.price-row .price { font-weight: 600; font-size: 18px; }
.terms { max-width: 42em; color: var(--ink-2); }

/* Über mich */
.about-intro { background: var(--mint); padding: clamp(40px, 6vw, 72px) 0; }
.about-intro-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about-intro-photo img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow); }
.timeline { list-style: none; margin: 32px 0 16px; padding: 0; max-width: 52em; }
.timeline-item { position: relative; display: grid; grid-template-columns: 11em 1fr; gap: 4px 24px; padding: 0 0 20px 24px; border-left: 1.5px solid var(--blue); }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.timeline-period { font-weight: 600; white-space: nowrap; }
.timeline-text { color: var(--ink-2); }
@media (max-width: 900px) {
  .about-intro-inner { grid-template-columns: 1fr; }
  .about-intro-photo { max-width: 420px; }
  .timeline-item { grid-template-columns: 1fr; }
}

/* Хедер */
.site-header { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--divider); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; margin-right: auto; color: var(--ink-2); text-decoration: none; border-radius: 2px; }
.logo-svg { display: block; width: 96px; height: 46px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.nav-list, .lang-switch { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list { gap: 4px 24px; }
.nav-list a { display: inline-block; padding: 6px 0; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-bottom-color: var(--line); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--yellow); }
.lang-switch { gap: 6px; font-size: 13px; font-weight: 600; }
.lang-switch li + li::before { content: '|'; margin-right: 6px; color: var(--ink-3); font-weight: 400; }
.lang-switch a { color: var(--ink-3); text-decoration: none; padding: 4px 2px; }
.lang-switch a:hover { color: var(--ink); text-decoration: underline; }
.lang-current { color: var(--ink); }
.nav-cta { padding: 10px 18px; font-size: 14px; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: var(--ink); }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Мобильное меню: без JS панель раскрыта; .nav-collapsed ставит только site.js */
@media (max-width: 900px) {
  .js .nav-toggle:not([hidden]) { display: inline-flex; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0 6px; }
  .site-nav.nav-collapsed { display: none; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 10px 0; font-size: 17px; border-bottom: 1px solid var(--divider); }
  .nav-list a[aria-current="page"] { border-bottom: 2px solid var(--yellow); font-weight: 600; }
  .lang-switch { font-size: 15px; }
}

/* Футер */
.site-footer { margin-top: 0; background: var(--gray); color: var(--ink-2); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); padding-top: 48px; padding-bottom: 32px; }
.footer-name { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer-role { margin-bottom: 12px; }
.footer-member { color: var(--ink-3); font-size: 14px; }
.footer-heading { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer-contacts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.footer-contacts dt { color: var(--ink-3); font-size: 14px; }
.footer-contacts dd { margin: 0; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.site-footer a { color: var(--ink); }
.footer-crisis { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.crisis { margin: 0; padding: 14px 0 14px 18px; position: relative; font-size: 14px; line-height: 1.6; color: var(--ink); }
.crisis::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--yellow); }
.crisis a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.footer-bottom { padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: var(--ink-3); }
.footer-bottom p { margin: 0; }

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .footer-contacts { grid-template-columns: 1fr; gap: 0; }
  .footer-contacts dd { margin-bottom: 8px; }
}

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

/* Юридические страницы */
.legal { max-width: calc(46em + 2 * var(--gutter)); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 80px); }
.legal h2 { font-size: 20px; margin-top: 2em; }
.legal p { color: var(--ink-2); }

/* Контакт и форма */
.contact-crisis { background: var(--white); border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-direct a { color: var(--ink); }
.contact-direct .card-title { font-size: 17px; }
.contact-form { max-width: 40em; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  display: block; width: 100%; padding: 12px 14px; border: 1.5px solid #8A8A8A; border-radius: 4px;
  background: var(--white); color: var(--ink); font: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field [aria-invalid="true"], .field[aria-invalid="true"] input { border-color: var(--error); }
.field-hint { margin: 0 0 6px; font-size: 14px; color: var(--ink-3); }
.field-error { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--error); }
.req { color: var(--error); }
.choices { display: grid; gap: 8px; }
.choices-inline { grid-auto-flow: column; justify-content: start; gap: 8px 28px; }
.choice { display: flex; align-items: flex-start; gap: 10px; }
.choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.choice label { font-weight: 400; }
.field-consent .choice label { font-size: 14px; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0 0 20px; min-height: 65px; }
.notice { padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--mint); margin: 0 0 24px; }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
.notice-error { border-left-color: var(--error); background: #FBEFEE; }
.notice-error p:first-child { font-weight: 600; color: var(--error); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
