/* ═══════════════════════════════════════════════════════
   mtolmacheva-psycholog.ru — stylesheet v3
   Palette: sage green + warm sand + deep charcoal
   ═══════════════════════════════════════════════════════ */
:root {
  --c-accent:     #4A7C59;
  --c-accent-dk:  #3A6347;
  --c-accent-lt:  #EAF2EB;
  --c-sand:       #F7F2EB;
  --c-bg:         #FFFFFF;
  --c-text:       #1E1E1E;
  --c-text-2:     #555;
  --c-text-3:     #888;
  --c-border:     #E4E0D8;
  --c-card:       #FAFAF7;
  --ff-serif:  'Playfair Display', Georgia, serif;
  --ff-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --r-sm: .5rem; --r-md: 1rem; --r-lg: 1.5rem; --r-xl: 2rem; --r-full: 99rem;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.13);
  --transition: .2s ease;
  --container: 1120px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff-sans); font-size: 1rem; line-height: 1.65; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2.5rem); }

/* ── Typography ───────────────────────────────────── */
.section-title {
  font-family: var(--ff-serif); font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.2; color: var(--c-text); margin-bottom: 1rem;
}
.eyebrow {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--c-accent); margin-bottom: .6rem;
}
.text-center { text-align: center; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--c-sand); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--r-full);
  font-family: var(--ff-sans); font-size: .95rem; font-weight: 500;
  transition: var(--transition); white-space: nowrap; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dk); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dk); }
.btn-outline { border-color: var(--c-accent); color: var(--c-accent); }
.btn-outline:hover { background: var(--c-accent-lt); }
.btn-ghost { color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-sand); }
.btn-lg { padding: .9rem 2.25rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── TOPBAR ───────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border); transition: box-shadow var(--transition);
}
.topbar.scrolled { box-shadow: var(--shadow-md); }
.topbar .nav {
  min-height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
}
.topbar .brand {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: 1.15rem; letter-spacing: -.3px; color: var(--c-text);
}
.topbar .links { display: none; gap: 28px; }
.topbar .links a { color: var(--c-text-2); font-size: .92rem; font-weight: 500; transition: var(--transition); }
.topbar .links a:hover, .topbar .links a.active { color: var(--c-accent); }
.topbar .nav-cta { font-size: .85rem; padding: .55rem 1.25rem; }
@media (min-width: 768px) { .topbar .links { display: flex; } }
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer; padding: 4px 0;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--c-text); border-radius: 2px; transition: var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 767px) {
  .burger { display: flex; }
  .topbar .links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-border);
    flex-direction: column; padding: 1rem 1.5rem; gap: 10px; z-index: 99;
  }
  .topbar .links.open { display: flex; }
}

/* ── HERO (fills first screen) ────────────────────── */
.hero {
  min-height: calc(100svh - 68px);
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #FDFCFA 0%, var(--c-sand) 60%, #EAF0EA 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(74,124,89,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: 3rem;
}
.hero-content { max-width: 560px; }
.hero-title {
  font-family: var(--ff-serif); font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1; color: var(--c-text); margin-bottom: 1.2rem;
}
.hero-title span { display: block; }
.hero-subtitle { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--c-text-2); margin-bottom: .8rem; max-width: 440px; }
.hero-desc { font-size: clamp(.9rem, 1.4vw, 1rem); color: var(--c-text-3); line-height: 1.7; margin-bottom: 2rem; max-width: 460px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo-wrap { display: flex; justify-content: center; align-items: center; }
.hero-photo {
  width: clamp(240px, 40vw, 460px); aspect-ratio: 3/4;
  object-fit: cover; border-radius: 50% 50% var(--r-xl) var(--r-xl); box-shadow: var(--shadow-lg);
}

/* ── ABOUT ────────────────────────────────────────── */
.about-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-photo {
  width: 100%; max-width: 400px; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--r-xl) var(--r-xl) 50% 50%; box-shadow: var(--shadow-lg);
}
.about-text { color: var(--c-text-2); margin-bottom: 1.5rem; }
.about-text p + p { margin-top: .75rem; }
.cred-list { margin: 1.25rem 0; display: flex; flex-direction: column; gap: .5rem; }
.cred-item { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.cred-check { color: var(--c-accent); font-weight: 700; flex-shrink: 0; }
.principles { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 2rem; }
.principle-tag { padding: .4rem .9rem; background: var(--c-accent-lt); color: var(--c-accent-dk); border-radius: var(--r-full); font-size: .85rem; font-weight: 500; }

/* ── TOPICS ───────────────────────────────────────── */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.topic-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.75rem 1.5rem; transition: var(--transition); }
.topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.topic-icon { font-size: 2rem; margin-bottom: .75rem; }
.topic-title { font-weight: 600; margin-bottom: .4rem; }
.topic-desc { font-size: .9rem; color: var(--c-text-2); }

/* ── SERVICES (badge fix v3) ──────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.service-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card--featured { background: var(--c-accent); border-color: transparent; color: #fff; }
.service-card--featured .service-desc,
.service-card--featured .service-dur,
.service-card--featured .price-eur { color: rgba(255,255,255,.8); }

/* Image + badge wrapper */
.service-card-img { position: relative; min-height: 3rem; }
.service-card-img .service-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.service-badge {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  background: rgba(255,255,255,.25); color: #fff;
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; padding: .25rem .7rem; border-radius: var(--r-full);
  backdrop-filter: blur(4px);
}
.service-body { padding: 1.5rem; padding-top: 2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.service-title { font-weight: 600; font-size: 1.05rem; }
.service-desc { font-size: .9rem; color: var(--c-text-2); flex: 1; }
.service-dur { font-size: .85rem; color: var(--c-text-3); }
.service-price { display: flex; align-items: baseline; gap: .5rem; margin-top: .25rem; }
.price-rub { font-size: 1.4rem; font-weight: 700; }
.price-eur { font-size: .9rem; color: var(--c-text-3); }
.service-card--featured .price-rub { color: #fff; }
.service-card--featured .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.service-card--featured .btn-outline:hover { background: rgba(255,255,255,.15); }
.service-detail-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

/* ── PRICING (two-column) ─────────────────────────── */
.pricing-grid { max-width: 700px; margin: 2rem auto 0; }
.pricing-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px dashed var(--c-border);
  position: relative;
}
.pricing-cta {
  opacity: 0; transition: opacity .2s;
  flex-shrink: 0; margin-left: 1rem;
}
.pricing-row:hover .pricing-cta { opacity: 1; }
.pricing-info { flex: 1; }
.pricing-name { font-weight: 600; font-size: 1rem; margin-bottom: .15rem; }
.pricing-dur { font-size: .85rem; color: var(--c-text-3); }
.pricing-cost { text-align: right; white-space: nowrap; }
.pricing-cost strong { font-size: 1.2rem; color: var(--c-accent); }
.pricing-eur { font-size: .85rem; color: var(--c-text-3); margin-left: .4rem; }

/* ── COURSES / WEBINARS ───────────────────────────── */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.course-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--transition);
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.course-card--free { border-color: var(--c-accent); }
.course-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.course-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.course-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .25rem .7rem; border-radius: var(--r-full); display: inline-block; width: fit-content; }
.course-badge--free { background: var(--c-accent-lt); color: var(--c-accent); }
.course-title { font-weight: 600; font-size: 1.05rem; }
.course-desc { font-size: .9rem; color: var(--c-text-2); }
.course-bullets { list-style: disc; padding-left: 1.25rem; font-size: .9rem; color: var(--c-text-2); }
.course-bullets li { margin-bottom: .3rem; }
.course-price { display: flex; align-items: baseline; gap: .6rem; margin-top: auto; padding-top: .5rem; }
.price-free { font-size: 1.2rem; font-weight: 700; color: var(--c-accent); }
.price-old { font-size: .95rem; color: var(--c-text-3); text-decoration: line-through; }
.price-current { font-size: 1.3rem; font-weight: 700; color: var(--c-accent); }

/* ── VIDEO ────────────────────────────────────────── */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  max-width: 800px; margin: 2rem auto 0; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ── GALLERY ──────────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem; margin-top: 2rem;
}
.gallery-item { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: filter .3s ease; }
.gallery-warning { color: var(--c-text-3); font-size: .9rem; margin-top: 1rem; }
/* Blur spoiler */
.gallery-spoiler .spoiler-item img { filter: blur(18px) brightness(.85); }
.gallery-spoiler .spoiler-item.revealed img { filter: none; }
.spoiler-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15); color: #fff; font-size: .85rem; font-weight: 500;
  pointer-events: none; transition: opacity .3s;
}
.spoiler-item.revealed .spoiler-overlay { opacity: 0; }
.gallery-caption { padding: .5rem; font-size: .82rem; color: var(--c-text-2); text-align: center; }

/* ── REVIEWS ──────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.review-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.review-stars { color: #F5A623; font-size: 1rem; letter-spacing: .05em; }
.review-text { font-size: .95rem; color: var(--c-text-2); line-height: 1.7; flex: 1; }
.review-author { display: flex; flex-direction: column; gap: .1rem; border-top: 1px solid var(--c-border); padding-top: .75rem; }
.review-name { font-weight: 600; font-size: .95rem; }
.review-city { font-size: .85rem; color: var(--c-text-3); }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ── CONTACTS & FORM ──────────────────────────────── */
.contacts-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contacts-desc { color: var(--c-text-2); margin: 1rem 0 2rem; max-width: 380px; }
.contacts-list { display: flex; flex-direction: column; gap: .85rem; }
.contact-item { display: flex; align-items: center; gap: .75rem; font-size: 1rem; color: var(--c-text); transition: color var(--transition); }
.contact-item:hover { color: var(--c-accent); }
.contact-ico { font-size: 1.2rem; }
.form-wrap { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-title { font-family: var(--ff-serif); font-size: 1.4rem; margin-bottom: 1.5rem; }
.lead-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .88rem; font-weight: 500; color: var(--c-text-2); }
.form-group input, .form-group textarea {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--c-border);
  border-radius: var(--r-md); font-family: var(--ff-sans); font-size: .95rem;
  background: var(--c-bg); color: var(--c-text); transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--c-accent); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: .78rem; color: var(--c-text-3); text-align: center; margin-top: .25rem; }

/* Phone/Telegram toggle */
.contact-method-tabs { display: flex; gap: .5rem; }
.method-tab {
  flex: 1; padding: .6rem 1rem; border: 2px solid var(--c-border); border-radius: var(--r-md);
  font-size: .9rem; font-weight: 500; text-align: center; background: var(--c-bg);
  color: var(--c-text-2); cursor: pointer; transition: var(--transition);
}
.method-tab.active { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-accent-lt); }
.method-tab:hover { border-color: var(--c-accent); }

/* ── CTA Band ─────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dk)); color: #fff; text-align: center; }
.cta-band .section-title { color: #fff; }

/* ── Landing Page Cards ───────────────────────────── */
.lps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.lp-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--transition);
  color: var(--c-text); text-decoration: none;
}
.lp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.lp-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.lp-card-img.img-placeholder { font-size: 3rem; }
.lp-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.lp-card-title { font-weight: 600; font-size: 1rem; line-height: 1.4; }
.lp-card-desc { font-size: .88rem; color: var(--c-text-2); line-height: 1.5; flex: 1; }
.cta-band .cta-desc { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-band .btn-primary { background: #fff; color: var(--c-accent); }
.cta-band .btn-primary:hover { background: var(--c-sand); }
.cta-band input, .cta-band textarea {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: var(--r-md); padding: .75rem 1rem; font-size: 1rem; width: 100%;
}
.cta-band input::placeholder, .cta-band textarea::placeholder { color: rgba(255,255,255,.6); }
.cta-band .form-group { margin-bottom: .75rem; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 2rem auto 0; }
.faq-item { border-bottom: 1px solid var(--c-border); padding: 1rem 0; }
.faq-question { font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--c-accent); transition: transform .2s; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: .75rem 0; color: var(--c-text-2); line-height: 1.65; }
.faq-question::-webkit-details-marker { display: none; }

/* ── FOOTER ───────────────────────────────────────── */
.footer { background: #1a2a20; color: #c5d4c8; padding: 3rem 0 2rem; }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: .5rem; }
.footer a { color: #a8c0ad; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.footer-copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #7a9a7f; }

/* Social circles */
.footer-socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.social-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); font-size: 1.1rem;
  transition: var(--transition); line-height: 1;
}
.social-circle:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); transform: scale(1.1); }

/* ── THANK YOU ────────────────────────────────────── */
.thankyou { min-height: calc(100svh - 68px); display: flex; align-items: center; justify-content: center; background: var(--c-sand); }

/* ── PLACEHOLDERS ─────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, var(--c-accent-lt) 0%, #e8d5c4 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); font-size: 2rem; position: relative;
}
.service-placeholder { aspect-ratio: 16/10; width: 100%; }
.card-photo.img-placeholder { aspect-ratio: 16/10; width: 100%; font-size: 2.5rem; }

/* ── Ceny hero ────────────────────────────────────── */
.ceny-hero-section { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.ceny-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ceny-hero-text .section-title { margin-bottom: .75rem; }
.ceny-hero-text .lead { margin-bottom: 1.5rem; }
.ceny-hero-photo { width: clamp(180px, 22vw, 300px); aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.ceny-hero-photo.img-placeholder { width: clamp(180px, 22vw, 300px); aspect-ratio: 3/4; border-radius: var(--r-xl); font-size: 4rem; }
@media (max-width: 640px) {
  .ceny-hero-inner { grid-template-columns: 1fr; }
  .ceny-hero-photo-wrap { display: none; }
}

/* ── CARDS ────────────────────────────────────────── */
.lead { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--c-text-2); max-width: 680px; line-height: 1.7; margin-bottom: 1.5rem; }
.cards-grid { display: grid; gap: 24px; margin-top: 2rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.card-link { display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body h2, .card-body h3 { font-family: var(--ff-serif); margin-bottom: .5rem; }
.card-body h2 a, .card-body h3 a { color: var(--c-text); }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--c-accent); }
.card-title { font-size: 1.15rem; }
.card-excerpt { color: var(--c-text-2); font-size: .92rem; line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.card-tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem; border-radius: var(--r-sm); background: var(--c-accent-lt); color: var(--c-accent); margin-bottom: .75rem; }

/* ── Article ──────────────────────────────────────── */
.article-container { max-width: 780px; margin: 0 auto; }
.article-hero-img { width: 100%; aspect-ratio: 2/1; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 2rem; }
.article-title { font-family: var(--ff-serif); font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.2; margin-bottom: 1.5rem; }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 { font-family: var(--ff-serif); font-size: 1.4rem; margin: 2rem 0 .75rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: .4rem; }
.article-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }

/* ── Case ─────────────────────────────────────────── */
.case-detail { max-width: 880px; margin: 0 auto; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2rem 0; }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }

/* ── Topic ────────────────────────────────────────── */
.topic-img { width: 100%; max-width: 700px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-lg); margin: 2rem 0; }
.topic-body { font-size: 1.05rem; line-height: 1.75; margin-top: 1.5rem; }
.topic-body p { margin-bottom: 1rem; }

/* ══════════════════════════════════════════════════════
   BLOCK BUILDER STYLES
   ══════════════════════════════════════════════════════ */

/* Advantages */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.advantage-card { text-align: center; padding: 2rem 1.5rem; }
.advantage-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.advantage-card h3 { font-weight: 600; margin-bottom: .5rem; }
.advantage-card p { font-size: .9rem; color: var(--c-text-2); }

/* Columns */
.columns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.column-item img { border-radius: var(--r-md); margin-bottom: 1rem; }
.column-item h3 { font-weight: 600; margin-bottom: .4rem; }
.column-item p { font-size: .9rem; color: var(--c-text-2); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.team-card { text-align: center; }
.team-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: var(--shadow-md); }
.team-card h3 { font-weight: 600; }
.team-role { font-size: .9rem; color: var(--c-accent); margin-bottom: .5rem; }
.team-bio { font-size: .9rem; color: var(--c-text-2); }
.team-exp { font-size: .85rem; color: var(--c-text-3); margin-top: .25rem; }

/* Stages */
.stages-list { max-width: 700px; margin: 2rem auto 0; }
.stage-item { display: flex; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--c-border); }
.stage-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.stage-content h3 { font-weight: 600; margin-bottom: .25rem; }
.stage-content p { font-size: .9rem; color: var(--c-text-2); }

/* Tariffs */
.tariffs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.tariff-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 2rem 1.5rem; text-align: center; }
.tariff-card--featured { border-color: var(--c-accent); box-shadow: var(--shadow-md); }
.tariff-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.tariff-desc { font-size: .9rem; color: var(--c-text-2); margin-bottom: 1rem; }
.tariff-price { margin: 1rem 0; }
.tariff-price strong { font-size: 2rem; color: var(--c-accent); }

/* Partners */
.partners-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: center; margin-top: 2.5rem; }
.partner-logo { opacity: .7; transition: opacity .2s; }
.partner-logo:hover { opacity: 1; }
.partner-logo img { height: 48px; width: auto; }

/* Schedule */
.schedule-list { max-width: 700px; margin: 2rem auto 0; }
.schedule-row { display: flex; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--c-border); }
.schedule-time { flex-shrink: 0; font-weight: 600; color: var(--c-accent); min-width: 80px; }
.schedule-row h3 { font-weight: 600; margin-bottom: .2rem; }
.schedule-row p { font-size: .9rem; color: var(--c-text-2); }

/* Social links in blocks */
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.social-links .social-circle {
  width: auto; height: auto; padding: .6rem 1.2rem;
  border-radius: var(--r-full); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: .95rem;
}
.social-links .social-circle:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ── Spinner ──────────────────────────────────────── */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 3rem; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { width: clamp(160px, 44vw, 260px); height: clamp(160px, 44vw, 260px); aspect-ratio: 1/1; border-radius: 50%; max-height: 260px; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { margin-inline: auto; border-radius: 50%; max-width: 260px; aspect-ratio: 1/1; }
  .contacts-inner { grid-template-columns: 1fr; }
}
