/* Астропсихология — редизайн 2026. Палитра и типографика из макета page/Астропсихология.dc.html */

:root {
  --bg: #FAF7F2;
  --bg2: #F5F0E8;
  --card: #FFFDFA;
  --ink: #231F1B;
  --ink-soft: #4A433C;
  --muted: #544C44;
  --muted2: #6A625A;
  --gray: #8B8177;
  --tag: #9A8FA0;
  --line: #E7DFD4;
  --line2: #EFE8DE;
  --line-in: #DDD3C6;
  --accent: #6E4F76;
  --accent-soft: #E0D2E3;
  --accent-line: #D8C9DB;
  --dark: #231F1B;
  --dark-line: #3B3530;
  --serif: "PT Serif", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: var(--ink); }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: #E8DCEA; }
img { max-width: 100%; display: block; }

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.logo-title { font-family: var(--display); font-size: 23px; letter-spacing: .02em; color: var(--ink); }
.logo-sub { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); }
.main-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; font-size: 14px; }
.main-nav a { color: var(--ink-soft); }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.nav-cta { padding: 10px 20px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent) !important; font-size: 13px; letter-spacing: .04em; }
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- buttons ---------- */
.btn-dark { display: inline-block; padding: 15px 30px; background: var(--dark); color: var(--bg); border-radius: 999px; font-size: 15px; border: none; cursor: pointer; }
.btn-dark:hover { background: var(--accent); color: var(--bg); }
.btn-ghost { display: inline-block; padding: 15px 30px; border: 1px solid var(--line-in); border-radius: 999px; color: var(--ink-soft); font-size: 15px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { display: inline-block; padding: 13px 26px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 15px; text-align: center; }
.btn-outline:hover { background: var(--accent); color: var(--bg); }

/* ---------- misc ---------- */
.kicker { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--tag); }
.tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tag); }
.link-under { font-size: 14px; border-bottom: 1px solid var(--accent-line); padding-bottom: 2px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 40px; }

.ph-holder { background: repeating-linear-gradient(135deg, #EFE7DB 0 9px, #F7F2EA 9px 18px); border: 1px solid #E3D9CB; border-radius: 3px; display: flex; align-items: flex-end; justify-content: center; padding: 18px; }
.ph-holder span { font: 11px ui-monospace, SFMono-Regular, monospace; letter-spacing: .1em; color: #8A7F72; }
.img-holder { border: 1px solid #E3D9CB; border-radius: 3px; overflow: hidden; background: var(--bg2); display: flex; align-items: center; justify-content: center; padding: 0; }
.img-holder img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero { padding: 88px 28px 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto; }
.hero .kicker { margin-bottom: 26px; }
.hero h1 { font-size: 60px; line-height: 1.06; margin: 0 0 26px; letter-spacing: -.01em; }
.hero-lead { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0 0 34px; max-width: 30em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats .num { font-family: var(--display); font-size: 32px; }
.hero-stats .lbl { font-size: 13px; color: var(--gray); }
.hero-img { height: 520px; }
.hero-img.img-holder { background: none; border: none; border-radius: 0; overflow: visible; }
.hero-img.img-holder img { object-fit: contain; padding: 0; height: 100%; }

/* ---------- quote band ---------- */
.quote-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.quote-band .container { padding-top: 26px; padding-bottom: 26px; font-family: var(--display); font-size: 22px; font-style: italic; color: var(--muted); text-align: center; }

/* ---------- services grid ---------- */
.section { padding-top: 80px; padding-bottom: 80px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); min-height: 240px; transition: border-color .15s, transform .15s; }
.svc-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.svc-card .svc-title { font-family: var(--display); font-size: 27px; line-height: 1.15; }
.svc-card .svc-short { font-size: 15px; line-height: 1.6; color: var(--muted2); flex: 1; }
.svc-card .svc-meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line2); padding-top: 14px; }
.svc-card .svc-price { font-size: 16px; }
.svc-card .svc-dur { font-size: 13px; color: var(--gray); }

/* ---------- steps ---------- */
.steps-band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-band .container { padding-top: 74px; padding-bottom: 74px; }
.steps-band h2 { font-size: 40px; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--display); font-size: 44px; color: #C3B2C7; line-height: 1; }
.step .t { font-size: 18px; }
.step .d { font-size: 15px; line-height: 1.6; color: var(--muted2); }

/* ---------- about teaser ---------- */
.about-teaser { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-teaser .kicker { margin-bottom: 20px; }
.about-teaser h2 { font-size: 40px; margin-bottom: 22px; line-height: 1.15; }
.about-teaser p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.about-img { height: 400px; }

/* ---------- reviews dark band ---------- */
.reviews-band { background: var(--dark); color: var(--bg2); }
.reviews-band .container { padding-top: 74px; padding-bottom: 74px; }
.reviews-band h2 { font-size: 40px; }
.reviews-band .link-under { color: #C3B2C7; border-color: #57504A; }
.reviews-band .link-under:hover { color: var(--bg2); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rev-card { border: 1px solid var(--dark-line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.rev-card .rev-text { font-size: 16px; line-height: 1.7; color: #E4DCD2; flex: 1; }
.rev-card .rev-who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--dark-line); padding-top: 16px; }
.rev-ava { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; flex: none; background: repeating-linear-gradient(135deg, #3B3530 0 5px, #463F39 5px 10px); }
.rev-ava img { width: 100%; height: 100%; object-fit: cover; }
.rev-name { font-size: 15px; }
.rev-city { font-size: 13px; color: #9A9188; }

/* ---------- articles ---------- */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.art-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.art-card:hover { color: var(--ink); }
.art-card:hover .art-title { color: var(--accent); }
.art-cover { height: 190px; }
.art-tags { display: flex; gap: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--tag); }
.art-tags .dim { color: #C6BDB2; }
.art-title { font-family: var(--display); font-size: 25px; line-height: 1.2; transition: color .15s; }
.art-excerpt { font-size: 15px; line-height: 1.6; color: var(--muted2); }

/* ---------- page headers ---------- */
.page-head { padding-top: 64px; }
.page-head .kicker { margin-bottom: 18px; }
.page-head h1 { font-size: 52px; margin-bottom: 18px; }
.page-lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 34em; margin: 0 0 44px; }

/* ---------- catalog list ---------- */
.cat-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 90px; }
.cat-row { display: grid; grid-template-columns: 1.6fr 2fr .8fr .8fr; gap: 28px; padding: 30px 8px; border-bottom: 1px solid var(--line); color: var(--ink); align-items: start; }
.cat-row:hover { background: var(--bg2); color: var(--ink); }
.cat-row .tag { margin-bottom: 8px; }
.cat-row .cat-title { font-family: var(--display); font-size: 29px; line-height: 1.15; }
.cat-row .cat-short { font-size: 16px; line-height: 1.65; color: var(--muted2); }
.cat-row .cat-dur { font-size: 14px; color: var(--gray); }
.cat-row .cat-price { text-align: right; font-size: 18px; }

/* ---------- service page ---------- */
.svc-page { padding-top: 40px; padding-bottom: 90px; }
.back-link { font-size: 14px; color: var(--gray); }
.svc-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; margin-top: 30px; align-items: start; }
.svc-layout h1 { font-size: 50px; line-height: 1.08; margin: 0 0 22px; }
.svc-layout .kicker { margin-bottom: 16px; }
.svc-intro { font-size: 19px; line-height: 1.65; color: var(--muted); margin: 0 0 34px; }
.svc-layout h2 { font-size: 28px; margin: 0 0 16px; }
.svc-bullets { margin: 0 0 34px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc-bullets li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); padding-left: 20px; border-left: 2px solid var(--accent-soft); }
.svc-needs { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 34px; }
.svc-note { background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 26px; font-size: 16px; line-height: 1.7; color: var(--muted); }

.order-box { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 30px; }
.order-form { display: flex; flex-direction: column; gap: 14px; }
.order-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line2); padding-bottom: 16px; }
.order-price { font-family: var(--display); font-size: 34px; line-height: 1; }
.order-dur { font-size: 13px; color: var(--gray); }
.order-mark { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--tag); text-align: right; }
.order-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--gray); }
.order-form input, .order-form textarea { padding: 11px 13px; border: 1px solid var(--line-in); border-radius: 3px; background: var(--bg); font-size: 15px; }
.order-form textarea { resize: vertical; }
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--accent); }
.order-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-form .btn-dark { margin-top: 6px; padding: 15px; width: 100%; }
.order-fine { font-size: 12px; line-height: 1.55; color: var(--gray); text-align: center; }
.order-error { background: #F7E8E4; border: 1px solid #E0BFB4; color: #7A3B2E; border-radius: 3px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.order-done { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; text-align: center; }
.order-done .big { font-family: var(--display); font-size: 32px; }
.order-done .txt { font-size: 16px; line-height: 1.65; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ---------- article page ---------- */
.article-page { padding-top: 40px; padding-bottom: 90px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; margin-top: 30px; align-items: start; }
.article-body { max-width: 34em; }
.article-meta { display: flex; gap: 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--tag); margin-bottom: 18px; }
.article-meta .dim { color: #C6BDB2; }
.article-body h1 { font-size: 46px; line-height: 1.1; margin: 0 0 24px; }
.article-body .lead { font-size: 20px; line-height: 1.6; color: var(--muted); margin: 0 0 34px; font-style: italic; }
.article-cover { height: 340px; margin-bottom: 40px; }
.article-body h2 { font-size: 32px; line-height: 1.2; margin: 38px 0 16px; }
.article-body p { font-size: 18px; line-height: 1.75; color: #3E3831; margin: 0 0 20px; }
.article-body .art-quote, .article-body blockquote { font-family: var(--display); font-size: 26px; line-height: 1.4; color: var(--accent); border-left: 2px solid var(--accent-soft); padding-left: 22px; margin: 30px 0; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { font-size: 18px; line-height: 1.75; color: #3E3831; margin-bottom: 8px; }
.article-body a { border-bottom: 1px solid var(--accent-line); }
.article-cta { margin-top: 48px; background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.article-cta .big { font-family: var(--display); font-size: 28px; }
.article-cta .txt { font-size: 16px; line-height: 1.65; color: var(--muted); }
.article-cta .btn-dark { align-self: flex-start; padding: 13px 26px; }
.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.aside-head { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tag); margin-bottom: 14px; }
.toc { display: flex; flex-direction: column; gap: 10px; }
.toc div { font-size: 15px; line-height: 1.4; color: var(--muted2); border-left: 2px solid var(--line); padding-left: 12px; }
.aside-links { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.aside-links a { font-size: 16px; line-height: 1.4; color: var(--ink); }
.aside-links a:hover { color: var(--accent); }

/* ---------- about page ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 70px; }
.about-hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 24px; }
.about-hero p { font-size: 18px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.about-portrait { height: 520px; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 44px; padding-bottom: 90px; }
.about-cols .h { font-family: var(--display); font-size: 26px; margin-bottom: 12px; }
.about-cols .d { font-size: 16px; line-height: 1.7; color: var(--muted2); }

/* ---------- reviews page ---------- */
.reviews-cols { columns: 3; column-gap: 24px; padding-bottom: 90px; }
.review-item { break-inside: avoid; margin-bottom: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review-item .rev-text { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.review-item .rev-who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line2); padding-top: 16px; }
.review-item .rev-ava { background: repeating-linear-gradient(135deg, #EFE7DB 0 5px, #F7F2EA 5px 10px); border: 1px solid #E3D9CB; }
.review-item .rev-city { color: var(--gray); }

/* ---------- contacts / faq ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; padding-bottom: 90px; }
.contact-layout h1 { font-size: 52px; margin: 0 0 36px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 22px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 19px; line-height: 1.4; }
.faq-sign { font-size: 20px; color: var(--tag); flex: none; }
.faq-item[open] .faq-sign .plus { display: none; }
.faq-item:not([open]) .faq-sign .minus { display: none; }
.faq-a { font-size: 17px; line-height: 1.7; color: var(--muted2); padding-bottom: 22px; max-width: 38em; }
.contact-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 32px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.contact-box .big { font-family: var(--display); font-size: 30px; line-height: 1.15; }
.contact-box .txt { font-size: 16px; line-height: 1.7; color: var(--muted); }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-links .tg { padding: 14px; background: var(--dark); color: var(--bg); border-radius: 999px; text-align: center; font-size: 15px; }
.contact-links .tg:hover { background: var(--accent); }
.contact-links .oth { padding: 14px; border: 1px solid var(--line-in); border-radius: 999px; text-align: center; font-size: 15px; color: var(--ink-soft); }
.contact-links .oth:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 120px 28px; }
.nf h1 { font-size: 60px; margin-bottom: 16px; }
.nf p { color: var(--muted); font-size: 17px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #B9B0A6; margin-top: auto; }
.footer-grid { padding-top: 60px; padding-bottom: 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--display); font-size: 24px; color: var(--bg2); margin-bottom: 14px; }
.footer-note { font-size: 15px; line-height: 1.7; max-width: 26em; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #7E766D; }
.footer-col a { color: #B9B0A6; font-size: 15px; }
.footer-col a:hover { color: var(--bg2); }
.footer-bottom { padding-bottom: 40px; font-size: 13px; color: #7E766D; border-top: 1px solid var(--dark-line); padding-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 40px; }
  .hero h1 { font-size: 44px; }
  .hero-img { height: 380px; }
  .svc-grid, .rev-grid, .art-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-teaser, .about-hero, .svc-layout, .article-layout, .contact-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .order-box { position: static; }
  .contact-box { position: static; }
  .reviews-cols { columns: 2; }
  .about-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-row { grid-template-columns: 1fr; gap: 10px; }
  .cat-row .cat-price { text-align: left; }
  .page-head h1 { font-size: 40px; }
  .svc-layout h1, .article-body h1, .about-hero h1, .contact-layout h1 { font-size: 38px; }
}

@media (max-width: 720px) {
  .svc-grid, .rev-grid, .art-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .reviews-cols { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head h2, .steps-band h2, .reviews-band h2 { font-size: 32px; }

  .nav-toggle { display: block; }
  .main-nav { display: none; }
  body.nav-open .main-nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 28px 24px; gap: 16px; align-items: flex-start; font-size: 16px; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
