/* =========================================================
   DocMind — docmind.asia
   Design concept: «Свет в темноте» — тёмно-синий фон, тёплый
   персиковый акцент, светлые «плавающие» карточки. Первая
   тёмная тема в серии психиатрических сайтов.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  --bg:         #10152B;   /* глубокий тёмно-синий фон всей страницы */
  --bg-2:       #171D3A;   /* чуть светлее — альтернирующие секции */
  --card:       #F6F4EE;   /* тёплая светлая карточка на тёмном фоне */
  --card-2:     #FFFFFF;
  --ink:        #ECEEF7;   /* светлый текст на тёмном фоне */
  --ink-card:   #23263A;   /* тёмный текст внутри светлых карточек */
  --steel:      #A7ACC4;   /* приглушённый текст на тёмном */
  --steel-dim:  #6E7396;
  --steel-card: #5B5F73;   /* приглушённый текст на светлой карточке */
  --peach:      #F2A65A;   /* основной тёплый акцент */
  --peach-dark: #D98A3D;
  --peri:       #8C9EFF;   /* вторичный холодный акцент */
  --peri-dark:  #6B7EEA;
  --line:       rgba(236,238,247,0.12);
  --line-strong:rgba(236,238,247,0.2);
  --line-card:  rgba(35,38,58,0.12);

  --display: 'Figtree', 'Segoe UI', sans-serif;
  --body:    'Work Sans', 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1160px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--display); font-weight:700; letter-spacing:-0.01em; margin:0; color:var(--ink); }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.svc-grid > *, .addr-grid > *, .process > *, .trust-grid > *, .team > *, .footer-grid > *, .stats-row > *{ min-width:0; }

::selection{ background:var(--peach); color:#1A1206; }
:focus-visible{ outline:2px solid var(--peach); outline-offset:2px; }

/* ---------- kicker / eyebrow label — non-flex so text always wraps correctly ---------- */
.kicker{
  font-family:var(--body);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.09em;
  text-transform:uppercase;
  color:var(--peach);
  position:relative;
  padding-left:24px;
  display:block;
}
.kicker::before{
  content:"";
  position:absolute;
  left:0; top:0.5em;
  width:15px; height:15px;
  border-radius:50%;
  border:2px solid var(--peri);
}
.card-context .kicker{ color:var(--peach-dark); }
.card-context .kicker::before{ border-color:var(--peri-dark); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--display);
  font-size:15px;
  font-weight:700;
  padding:14px 27px;
  border-radius:999px;
  border:1.5px solid transparent;
  transition:transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space:normal;
}
.btn-primary{
  background:var(--peach);
  color:#231506;
  box-shadow:0 14px 28px -12px rgba(242,166,90,0.4);
}
.btn-primary:hover{ background:#FFB876; transform:translateY(-1px); }
.btn-ghost{
  border-color:var(--line-strong);
  color:var(--ink);
  background:transparent;
}
.btn-ghost:hover{ border-color:var(--peach); color:var(--peach); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- top bar ---------- */
.topbar{
  background:#0A0E20;
  color:#9DA3C4;
  font-family:var(--body);
  font-size:13px;
}
.topbar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:38px;
  gap:16px;
  flex-wrap:wrap;
  padding-top:7px; padding-bottom:7px;
}
.topbar a{ color:var(--peach); font-weight:700; }
.topbar-left{ display:flex; gap:20px; flex-wrap:wrap; }
.topbar-left span, .topbar-left a{ display:inline-block; }

/* ---------- header / nav ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(16,21,43,0.9);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  min-height:76px;
  padding:10px 0;
  gap:16px;
  flex-wrap:wrap;
}
.logo{
  font-family:var(--display);
  font-weight:700;
  font-size:21px;
  color:var(--ink);
  display:flex; align-items:center; gap:10px;
  min-width:0;
  white-space:nowrap;
}
@media (max-width:560px){ .logo{ font-size:17px; } }
.logo .mark{
  width:38px; height:38px;
  background:linear-gradient(150deg, var(--peach), var(--peri));
  color:#1A1206;
  flex:none;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--display);
  font-weight:800;
  font-size:17px;
  border-radius:12px;
}
.logo b{ color:var(--peach); }
.logo-text{ display:flex; flex-direction:column; min-width:0; }
.logo-text small{ font-family:var(--body); font-size:10.5px; letter-spacing:0.07em; color:var(--steel-dim); text-transform:uppercase; font-weight:600; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:560px){ .logo-text small{ display:none; } }

.navlinks{ display:flex; align-items:center; gap:26px; }
.navlinks a{
  font-family:var(--body);
  font-size:14.5px;
  font-weight:600;
  color:var(--steel);
  position:relative;
  padding:6px 0;
}
.navlinks a:hover{ color:var(--ink); }
.navlinks a.current{ color:var(--peach); }

.nav-cta{ display:flex; align-items:center; gap:14px; flex:none; }
.nav-phone{ font-family:var(--display); font-weight:600; font-size:15px; color:var(--ink); white-space:nowrap; }

.burger{ display:none; background:var(--bg-2); border:1px solid var(--line-strong); color:var(--ink); width:44px; height:44px; border-radius:var(--radius-sm); align-items:center; justify-content:center; flex:none; }

@media (max-width:960px){
  .navlinks{ display:none; }
  .burger{ display:flex; }
  .nav-phone{ display:none; }
}

.mobilemenu{
  display:none;
  flex-direction:column;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.mobilemenu.open{ display:flex; }
.mobilemenu a{
  padding:16px 24px;
  font-size:14.5px;
  font-weight:600;
  border-top:1px solid var(--line);
  color:var(--ink);
}
.mobilemenu .btn{ margin:16px 24px; }

/* ---------- hero ---------- */
.hero{
  position:relative;
  padding:72px 0 64px;
  overflow:hidden;
  background:
    radial-gradient(ellipse 780px 460px at 90% -10%, rgba(242,166,90,0.1), transparent 60%),
    radial-gradient(ellipse 620px 420px at 4% 108%, rgba(140,158,255,0.1), transparent 60%),
    var(--bg);
}
.hero-inner{ position:relative; display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center; }
.hero-inner > div{ min-width:0; }
@media (max-width:960px){ .hero-inner{ grid-template-columns:1fr; } }

.hero h1{
  font-size:clamp(30px, 4.4vw, 50px);
  line-height:1.18;
  margin:18px 0 20px;
  font-weight:700;
}
.hero h1 .accent{ color:var(--peach); }
.hero p.lead{ font-size:17px; color:var(--steel); max-width:52ch; margin-bottom:30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:34px; }

.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line-strong); }
.stats-row div{ padding:14px 16px 0; border-left:1px solid var(--line); }
.stats-row div:first-child{ border-left:none; padding-left:0; }
.stats-row b{ display:block; font-family:var(--display); font-weight:700; font-size:23px; color:var(--ink); }
.stats-row span{ font-size:11.5px; text-transform:uppercase; letter-spacing:0.03em; color:var(--steel-dim); font-weight:600; }
@media (max-width:560px){
  .stats-row{ grid-template-columns:1fr 1fr; row-gap:16px; }
  .stats-row div:nth-child(3){ border-left:none; padding-left:0; }
}

/* hero note card — light floating card on dark background */
.note-card{
  background:var(--card);
  color:var(--ink-card);
  border-radius:var(--radius);
  box-shadow:0 34px 64px -26px rgba(0,0,0,0.5);
  overflow:hidden;
}
.note-card-top{ background:var(--ink-card); padding:22px 26px; color:#fff; }
.note-card-top .eyebrow{ font-size:12px; font-weight:700; letter-spacing:0.05em; color:var(--peach); text-transform:uppercase; }
.note-card-top h3{ font-size:20px; color:#fff; margin-top:8px; font-weight:700; }
.note-card-body{ padding:18px 26px; }
.note-row{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line-card); font-size:14px; gap:12px; }
.note-row:last-of-type{ border-bottom:none; }
.note-row span:first-child{ color:var(--steel-card); font-size:12.5px; flex:none; font-weight:600; }
.note-row span:last-child{ font-weight:700; text-align:right; }
.note-card-foot{ padding:16px 26px 22px; display:flex; align-items:center; gap:14px; border-top:1px solid var(--line-card); }
.note-card-foot .badge{
  font-family:var(--display); font-weight:700; font-size:12px;
  background:var(--peach); color:#231506;
  padding:7px 15px; border-radius:999px; flex:none;
}
.note-card-foot p{ font-size:11.5px; color:var(--steel-card); }

/* ---------- section shell ---------- */
section{ padding:76px 0; }
section.tint{ background:var(--bg-2); }
.section-head{ max-width:640px; margin-bottom:46px; }
.section-head h2{ font-size:clamp(26px,3.4vw,38px); margin-top:14px; line-height:1.2; }
.section-head p{ margin-top:16px; font-size:15.5px; color:var(--steel); }

/* ---------- services ---------- */
.svc-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.svc-tab{
  font-family:var(--body); font-size:13.5px; font-weight:600;
  padding:9px 18px; border:1px solid var(--line-strong); border-radius:999px; color:var(--steel);
  background:transparent;
}
.svc-tab.active, .svc-tab:hover{ background:var(--peach); color:#231506; border-color:var(--peach); }

.svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:900px){ .svc-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:620px){ .svc-grid{ grid-template-columns:1fr;} }

.svc-card{ background:var(--card); color:var(--ink-card); border-radius:var(--radius-sm); padding:22px 22px 20px; position:relative; transition:transform .2s ease; }
.svc-card:hover{ transform:translateY(-3px); }
.svc-card .case{ font-size:11.5px; font-weight:700; letter-spacing:0.03em; color:var(--peri-dark); text-transform:uppercase; }
.svc-card h4{ font-family:var(--display); font-size:16.5px; margin:10px 0 8px; font-weight:700; color:var(--ink-card); }
.svc-card p{ font-size:13.5px; color:var(--steel-card); line-height:1.6; min-height:56px; }
.svc-card .meta{ display:flex; justify-content:space-between; align-items:center; margin-top:14px; padding-top:14px; border-top:1px dashed var(--line-card); font-size:12.5px; gap:10px; }
.svc-card .meta .price{ color:var(--ink-card); font-weight:700; }
.svc-card .meta .fmt{ text-transform:uppercase; white-space:normal; text-align:right; font-size:11px; font-weight:700; letter-spacing:0.02em; }
.fmt-primary{ color:var(--peach-dark); }
.fmt-repeat{ color:var(--peri-dark); }
.fmt-doc{ color:#946A2E; }

.svc-note{
  margin-top:26px; padding:16px 20px; background:var(--bg-2); border:1px solid var(--line-strong); border-radius:var(--radius-sm);
  font-size:13.5px; color:var(--steel);
}

/* ---------- process ---------- */
.process{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:900px){ .process{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .process{ grid-template-columns:1fr;} }
.process-step{ background:var(--card); color:var(--ink-card); border-radius:var(--radius); padding:26px 22px; }
.process-step .num{ font-family:var(--display); font-weight:800; font-size:22px; color:var(--peach-dark); }
.process-step h4{ font-family:var(--display); font-size:16px; margin:12px 0 8px; font-weight:700; color:var(--ink-card); }
.process-step p{ font-size:13.5px; color:var(--steel-card); }

/* ---------- trust ---------- */
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
@media (max-width:900px){ .trust-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .trust-grid{ grid-template-columns:1fr;} }
.trust-item .n{ font-size:26px; }
.trust-item h4{ font-family:var(--display); font-size:16px; margin:10px 0 8px; font-weight:700; }
.trust-item p{ font-size:13.5px; color:var(--steel); }

/* ---------- team ---------- */
.team{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:820px){ .team{ grid-template-columns:1fr; max-width:420px; margin:0 auto; } }
.team-card{ background:var(--card); color:var(--ink-card); border-radius:var(--radius); overflow:hidden; }
.team-photo{ position:relative; aspect-ratio:4/5; overflow:hidden; background:#E7E2D5; }
.team-photo img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
.team-photo .tag{ position:absolute; bottom:0; left:0; right:0; background:linear-gradient(0deg, rgba(35,38,58,0.85), transparent); padding:22px 16px 12px; font-size:11px; font-weight:700; color:#FFD9AC; text-transform:uppercase; letter-spacing:0.04em; }
.team-info{ padding:16px 18px 20px; }
.team-info h4{ font-family:var(--display); font-size:16px; color:var(--ink-card); margin-bottom:4px; font-weight:700; }
.team-info span{ font-size:12.5px; color:var(--steel-card); }

/* ---------- clinic / address card ---------- */
.clinic-card{ background:var(--card); color:var(--ink-card); border-radius:var(--radius); padding:30px; display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.clinic-card > *{ min-width:0; }
@media (max-width:700px){ .clinic-card{ grid-template-columns:1fr; } }
.clinic-card .line{ display:flex; gap:10px; font-size:14.5px; margin-bottom:12px; color:var(--ink-card); }
.clinic-card .line b{ font-size:11.5px; color:var(--steel-card); min-width:84px; font-weight:700; text-transform:uppercase; flex:none; }

/* ---------- contact form ---------- */
.contact-form{ background:var(--card); color:var(--ink-card); border-radius:var(--radius); padding:32px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field label{ display:block; font-size:12.5px; font-weight:700; color:var(--steel-card); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; background:#fff; border:1px solid var(--line-card); color:var(--ink-card);
  padding:12px 14px; border-radius:var(--radius-sm); font-family:var(--body); font-size:14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--peach-dark); outline:none; }
.field textarea{ resize:vertical; min-height:100px; }
.consent{ display:flex; gap:10px; align-items:flex-start; font-size:12.5px; color:var(--steel-card); margin:18px 0 22px; }
.consent a{ color:var(--peach-dark); text-decoration:underline; }
.consent input{ margin-top:3px; flex:none; }
.form-note{ font-size:11.5px; color:var(--steel-card); margin-top:14px; }
.form-success{ display:none; background:var(--ink-card); color:#fff; padding:16px 18px; border-radius:var(--radius-sm); font-size:14px; margin-top:16px; }
.form-success.show{ display:block; }

.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:52px; align-items:flex-start; }
.contact-grid > *{ min-width:0; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.card-context{ min-width:0; }

/* ---------- FAQ ---------- */
.faq{ max-width:800px; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 0; background:none; border:none; color:var(--ink); font-family:var(--display); font-weight:700; font-size:16.5px; text-align:left; }
.faq-q > span:first-child{ flex:1 1 auto; min-width:0; }
.faq-q .plus{ font-size:22px; color:var(--peach); transition:transform .2s ease; flex:none; font-weight:400; }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a{ max-height:320px; }
.faq-a p{ padding-bottom:20px; font-size:14.5px; color:var(--steel); max-width:64ch; }

/* ---------- CTA band ---------- */
.cta-band{ background:linear-gradient(120deg, var(--peach), var(--peri)); color:#231506; padding:56px 0; }
.cta-inner{ display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.cta-inner h3{ color:#231506; font-size:clamp(22px,3vw,30px); max-width:560px; font-weight:700; }
.cta-band .btn-primary{ background:#231506; color:#fff; box-shadow:none; }
.cta-band .btn-primary:hover{ background:#3A2A10; }

/* ---------- footer ---------- */
footer.site{ background:#0A0E20; color:#8B90AC; padding:56px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:42px; border-bottom:1px solid rgba(236,238,247,0.1); }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h5{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:#666B8A; margin-bottom:16px; }
.footer-grid li{ margin-bottom:10px; font-size:14px; }
.footer-grid a:hover{ color:var(--peach); }
.footer-about p{ font-size:13.5px; color:#767BA0; max-width:34ch; margin-top:14px; }
.footer-crisis{ font-size:12.5px; color:#767BA0; max-width:60ch; margin-top:18px; line-height:1.7; padding:14px 16px; background:rgba(236,238,247,0.04); border-radius:var(--radius-sm); border-left:3px solid var(--peach); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:20px 0; font-size:11.5px; color:#565B78; flex-wrap:wrap; gap:10px; }
.footer-bottom a:hover{ color:var(--peach); }

/* ---------- cookie banner ---------- */
.cookie-banner{
  position:fixed; left:20px; right:20px; bottom:20px; z-index:200;
  max-width:560px; margin:0 auto;
  background:var(--card); color:var(--ink-card); border-radius:var(--radius);
  padding:20px 22px; box-shadow:0 20px 50px rgba(0,0,0,0.4);
  display:none; gap:16px; flex-direction:column;
}
.cookie-banner.show{ display:flex; }
.cookie-banner p{ font-size:13px; color:var(--steel-card); line-height:1.6; }
.cookie-banner a{ color:var(--peach-dark); text-decoration:underline; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cookie-actions .btn{ padding:10px 18px; font-size:12.5px; }

/* ---------- page hero (inner pages) ---------- */
.pagehead{ padding:48px 0 36px; background:var(--bg-2); border-bottom:1px solid var(--line); }
.crumbs{ font-size:12px; font-weight:600; color:var(--steel-dim); margin-bottom:16px; }
.crumbs a:hover{ color:var(--peach); }
.pagehead h1{ font-size:clamp(26px,3.8vw,42px); }
.pagehead p{ margin-top:14px; color:var(--steel); max-width:60ch; font-size:15px; }

/* ---------- legal pages ---------- */
.legal{ max-width:800px; }
.legal h2{ color:var(--ink); font-size:20px; margin:36px 0 14px; font-family:var(--display); font-weight:700; }
.legal h2:first-child{ margin-top:0; }
.legal p, .legal li{ font-size:14.5px; color:var(--steel); line-height:1.8; margin-bottom:12px; }
.legal ul, .legal ol{ padding-left:22px; margin-bottom:16px; }
.legal ul li{ list-style:disc; }
.legal ol li{ list-style:decimal; }
.legal .updated{ font-size:12.5px; color:var(--steel-dim); margin-bottom:36px; font-weight:600; }

/* ---------- 404 ---------- */
.err-wrap{ min-height:66vh; display:flex; align-items:center; padding:70px 0; background:var(--bg-2); }
.err-inner{ text-align:center; margin:0 auto; }
.err-code{ font-family:var(--display); font-weight:800; font-size:clamp(84px,15vw,160px); color:var(--peach); line-height:1; }
.err-inner h1{ font-size:clamp(22px,3.4vw,30px); margin:14px 0 14px; }
.err-inner p{ color:var(--steel); max-width:52ch; margin:0 auto 32px; font-size:15px; }
.err-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------- misc ---------- */
.skip-link{ position:absolute; left:-999px; top:0; background:var(--peach); color:#231506; padding:10px 16px; z-index:999; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; top:0; }
.badge-row{ display:flex; gap:22px; flex-wrap:wrap; align-items:center; margin-top:20px; }
.badge-row span{ font-size:13px; font-weight:600; color:var(--steel); position:relative; padding-left:24px; display:inline-block; }
.badge-row span::before{ content:"✓"; color:var(--peach); position:absolute; left:0; top:0; font-weight:700; }
.card-context .badge-row span{ color:var(--steel-card); }
.card-context .badge-row span::before{ color:var(--peach-dark); }
