@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --text: #24313a;
  --muted: #60717c;
  --line: #d8e1e5;
  --surface: #f4f8f9;
  --accent: #176b6f;
  --accent-dark: #0e4b4f;
  --max: 1120px;
}

/* Встраиваемая карта должна следовать ширине карточки, а не атрибутам iframe. */
body.contacts-page .contact-map-embed > iframe {
  display: block;
  width: 100% !important;
  height: 430px !important;
  border: 0;
}

@media (max-width: 680px) {
  body.contacts-page .contact-map-embed > iframe {
    height: 340px !important;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; font: 16px/1.6 Arial, sans-serif; }
a { color: var(--accent-dark); }
a:hover { color: #092f32; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .container, .site-footer-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { color: var(--text); font-weight: 700; text-decoration: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.main-nav a { text-decoration: none; }
main { min-height: 70vh; }
.hero, .section { padding: 56px 0; }
.hero { background: var(--surface); }
.hero-grid, .two-col, .contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
.eyebrow { margin: 0 0 12px; color: var(--accent-dark); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
h1, h2, h3 { line-height: 1.2; }
h1 { max-width: 760px; margin: 0 0 18px; font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { margin: 0 0 18px; font-size: 2rem; }
h3 { margin-top: 0; }
.lead { max-width: 720px; font-size: 1.18rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-block; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }
.button.secondary { background: #fff; color: var(--accent-dark); }
.placeholder { display: grid; min-height: 240px; place-items: center; padding: 24px; border: 2px dashed #9ab0b5; background: #fff; color: var(--muted); text-align: center; }
.facts, .cards, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.facts { margin-top: 28px; }
.card, .fact, .step, .notice { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fact strong { display: block; font-size: 1.25rem; }
.cards .card { display: flex; flex-direction: column; }
.cards .card a { margin-top: auto; }
.muted { color: var(--muted); }
.section.alt { background: var(--surface); }
.narrow { max-width: 780px; }
.breadcrumbs { padding-top: 24px; font-size: .9rem; color: var(--muted); }
.breadcrumbs a { margin-right: 8px; }
ul, ol { padding-left: 24px; }
li + li { margin-top: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--surface); }
details { padding: 16px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
form { max-width: 640px; }
label { display: block; margin-bottom: 6px; font-weight: 700; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #9ab0b5; border-radius: 5px; }
button { cursor: pointer; }
.site-footer { margin-top: 40px; padding: 32px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer-nav { display: grid; gap: 7px; }
@media (max-width: 760px) {
  .header-inner, .hero-grid, .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .facts, .cards, .steps { grid-template-columns: 1fr; }
  .hero, .section { padding: 38px 0; }
}

/* Главная страница — визуальная система Logopedia */
body.homepage {
  --milk: #faf8f4;
  --white: #fffdf9;
  --sand: #e7ded4;
  --sage-soft: #c9d2c2;
  --sage: #7f947b;
  --coral: #d77b5e;
  --apricot: #f0b07d;
  --wood: #c99562;
  --blue: #9aafc8;
  --graphite: #26343a;
  --muted-green: #65756d;
  --max-home: 1240px;
  color: var(--graphite);
  background: var(--milk);
  font-family: "Trebuchet MS", Arial, sans-serif;
  overflow-x: hidden;
}
body.homepage .container,
body.homepage .site-footer-inner,
body.homepage .header-inner { width: min(calc(100% - 64px), var(--max-home)); }
body.homepage a { color: inherit; }
body.homepage .site-header { position: relative; z-index: 10; border: 0; background: rgba(250, 248, 244, .92); }
body.homepage .header-inner { min-height: 94px; gap: 28px; }
body.homepage .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--graphite); }
body.homepage .brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px 14px 14px 4px; background: var(--coral); color: var(--white); font: 700 25px/1 Georgia, serif; transform: rotate(-5deg); }
body.homepage .brand-copy { display: grid; gap: 1px; }
body.homepage .brand-copy strong { font: 700 17px/1.15 Georgia, serif; letter-spacing: -.02em; }
body.homepage .brand-copy small { color: var(--muted-green); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
body.homepage .main-nav { gap: 28px; margin-left: auto; }
body.homepage .main-nav a { position: relative; padding: 8px 0; color: var(--muted-green); font-size: 14px; text-decoration: none; transition: color .2s ease; }
body.homepage .main-nav a:hover, body.homepage .main-nav a.active { color: var(--graphite); }
body.homepage .main-nav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--coral); content: ""; }
body.homepage .header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 17px; border: 1px solid var(--graphite); border-radius: 99px; color: var(--graphite); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease; }
body.homepage .header-cta:hover { background: var(--graphite); color: var(--white); }
body.homepage main { min-height: 0; }
body.homepage .hero { position: relative; overflow: hidden; padding: 50px 0 0; background: var(--milk); }
body.homepage .hero::before { position: absolute; top: 0; left: -160px; width: 370px; height: 370px; border-radius: 50%; background: rgba(201, 210, 194, .32); content: ""; }
body.homepage .hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, .85fr) minmax(490px, 1.15fr); gap: 68px; align-items: center; min-height: 566px; }
body.homepage .hero-grid.hero-grid--text-only { grid-template-columns: minmax(0, 1fr); min-height: 0; }
body.homepage .hero-copy { padding: 26px 0 60px; }
body.homepage .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--sage); font-size: 11px; letter-spacing: .14em; }
body.homepage .eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
body.homepage h1, body.homepage h2, body.homepage h3 { color: var(--graphite); font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
body.homepage h1 { max-width: 580px; margin: 0 0 23px; font-size: clamp(3.4rem, 5.6vw, 5.5rem); font-weight: 400; line-height: .98; }
body.homepage h1 em, body.homepage h2 em { color: var(--coral); font-style: italic; }
body.homepage .lead { max-width: 510px; margin: 0; color: var(--muted-green); font-size: 17px; line-height: 1.65; }
body.homepage .actions { align-items: center; margin-top: 30px; }
body.homepage .button { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 14px 20px; border: 1px solid var(--coral); border-radius: 8px 8px 8px 2px; background: var(--coral); box-shadow: 0 10px 18px rgba(215, 123, 94, .18); color: var(--white); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
body.homepage .button:hover { background: #c96b50; transform: translateY(-2px); }
body.homepage .button.secondary { border-color: transparent; background: transparent; box-shadow: none; color: var(--graphite); }
body.homepage .button.secondary:hover { background: rgba(231, 222, 212, .7); }
body.homepage .hero-note { display: flex; align-items: center; gap: 9px; margin: 30px 0 0; color: var(--sage); font-size: 12px; }
body.homepage .hero-note span { color: var(--coral); font-size: 18px; }
body.homepage .hero-visual { position: relative; min-height: 560px; }
body.homepage .hero-photo-wrap { position: absolute; top: 0; right: 0; width: min(100%, 690px); height: 525px; overflow: hidden; border-radius: 42% 12px 12px 12px; background: var(--sand); box-shadow: 0 22px 50px rgba(38, 52, 58, .11); }
body.homepage .hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.homepage .hero-photo-wrap::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(38,52,58,.13)); content: ""; pointer-events: none; }
body.homepage .hero-label { position: absolute; bottom: 72px; left: -31px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 14px 18px 14px 13px; border-radius: 13px; background: var(--white); box-shadow: 0 14px 35px rgba(38, 52, 58, .13); }
body.homepage .label-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage); font-weight: 700; }
body.homepage .hero-label strong, body.homepage .hero-label small { display: block; }
body.homepage .hero-label strong { font: 700 14px Georgia, serif; }
body.homepage .hero-label small { margin-top: 3px; color: var(--muted-green); font-size: 11px; }
body.homepage .hero-decor { position: absolute; z-index: 2; pointer-events: none; }
body.homepage .hero-bear { right: -61px; bottom: -16px; width: 150px; transform: rotate(7deg); filter: drop-shadow(0 13px 9px rgba(38,52,58,.14)); }
body.homepage .hero-rainbow { top: -38px; right: -38px; width: 112px; transform: rotate(8deg); filter: drop-shadow(0 12px 8px rgba(38,52,58,.13)); }
body.homepage .scribble { position: absolute; z-index: 2; color: var(--coral); font-size: 29px; }
body.homepage .scribble-one { top: 83px; left: -11px; }
body.homepage .scribble-two { right: 12px; bottom: 82px; color: var(--sage); font-size: 38px; }
body.homepage .hero-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 23px; min-height: 78px; border-top: 1px solid rgba(127, 148, 123, .28); color: var(--sage); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
body.homepage .hero-bottom i { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
body.homepage .section { padding: 112px 0; }
body.homepage .facts-section { padding: 27px 0; background: var(--white); }
body.homepage .facts { grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; }
body.homepage .fact { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 0 15px; align-items: center; min-height: 98px; padding: 18px 34px; border: 0; border-right: 1px solid var(--sand); border-radius: 0; background: transparent; }
body.homepage .fact:first-child { padding-left: 0; }
body.homepage .fact:last-child { border-right: 0; }
body.homepage .fact-number { grid-row: span 2; align-self: start; color: var(--coral); font: italic 18px Georgia, serif; }
body.homepage .fact strong { font: 400 25px Georgia, serif; }
body.homepage .fact > span:last-child { color: var(--muted-green); font-size: 12px; line-height: 1.35; }
body.homepage .services-section { background: var(--sand); }
body.homepage .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
body.homepage .section-heading .eyebrow { margin-bottom: 14px; }
body.homepage h2 { margin: 0; font-size: clamp(2.45rem, 4vw, 4rem); font-weight: 400; line-height: 1; }
body.homepage .section-heading > p { max-width: 300px; margin: 0 0 2px; color: var(--muted-green); font-size: 14px; line-height: 1.55; }
body.homepage .cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
body.homepage .card { position: relative; display: flex; min-height: 288px; flex-direction: column; padding: 26px 25px 23px; overflow: hidden; border: 0; border-radius: 16px 16px 16px 3px; background: var(--white); box-shadow: 0 12px 25px rgba(38, 52, 58, .06); }
body.homepage .card::after { position: absolute; right: -34px; bottom: -42px; width: 115px; height: 115px; border: 1px solid rgba(38, 52, 58, .13); border-radius: 50%; content: ""; }
body.homepage .card-coral { background: #f1d2c6; }
body.homepage .card-sage { background: var(--sage-soft); }
body.homepage .card-sand { background: #f2e9df; }
body.homepage .card-blue { background: #dce5ef; }
body.homepage .card-lime { background: #e6eddc; }
body.homepage .card-apricot { background: #f7d6bc; }
body.homepage .card-index { color: var(--muted-green); font: italic 14px Georgia, serif; }
body.homepage .card h3 { max-width: 220px; margin: 27px 0 12px; font-size: 24px; font-weight: 400; line-height: 1.04; }
body.homepage .card p { max-width: 270px; margin: 0; color: #53625d; font-size: 13px; line-height: 1.5; }
body.homepage .card a { z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 23px; color: var(--graphite); font-size: 12px; font-weight: 700; text-decoration: none; }
body.homepage .card a span, body.homepage .text-link span { color: var(--coral); font-size: 17px; }
body.homepage .services-action { margin-top: 26px; }
body.homepage .process-section { background: var(--sage); color: var(--white); }
body.homepage .process-section h2, body.homepage .process-section .eyebrow { color: var(--white); }
body.homepage .process-section .eyebrow { opacity: .75; }
body.homepage .process-copy { position: relative; min-height: 385px; }
body.homepage .section-intro { max-width: 335px; margin: 26px 0; color: rgba(255,253,249,.76); font-size: 15px; line-height: 1.65; }
body.homepage .text-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 13px; font-weight: 700; text-decoration: none; }
body.homepage .process-section .text-link { color: var(--white); }
body.homepage .process-section .text-link span { color: var(--apricot); }
body.homepage .process-decor { position: absolute; right: 15px; bottom: -57px; width: 172px; transform: rotate(10deg); filter: drop-shadow(0 16px 8px rgba(38,52,58,.16)); }
body.homepage .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
body.homepage .step { display: flex; gap: 18px; min-height: 153px; padding: 25px 0; border: 0; border-bottom: 1px solid rgba(255,253,249,.25); border-radius: 0; background: transparent; }
body.homepage .step:nth-last-child(-n+2) { border-bottom: 0; }
body.homepage .step > span { color: var(--apricot); font: italic 16px Georgia, serif; }
body.homepage .step h3 { margin: 0 0 8px; color: var(--white); font-size: 20px; font-weight: 400; }
body.homepage .step p { margin: 0; color: rgba(255,253,249,.72); font-size: 12px; line-height: 1.55; }
body.homepage .about-section { background: var(--white); }
body.homepage .about-section .two-col { grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: 110px; align-items: center; }
body.homepage .about-photo { position: relative; width: min(100%, 470px); }
body.homepage .about-photo::before { position: absolute; top: -24px; right: -23px; width: 105px; height: 105px; border-radius: 50%; background: var(--apricot); content: ""; opacity: .72; }
body.homepage .about-photo img { position: relative; width: 100%; height: 410px; object-fit: cover; object-position: 72% center; border-radius: 12px 12px 12px 43%; filter: saturate(.9); }
body.homepage .about-badge { position: absolute; right: -37px; bottom: 31px; z-index: 1; display: grid; width: 108px; height: 108px; place-content: center; border-radius: 50%; background: var(--coral); color: var(--white); text-align: center; font: 400 32px Georgia, serif; transform: rotate(8deg); }
body.homepage .about-badge small { display: block; max-width: 73px; margin: 1px auto 0; font: 11px/1.15 "Trebuchet MS", Arial, sans-serif; }
body.homepage .about-copy { position: relative; padding-bottom: 34px; }
body.homepage .about-copy h2 { margin-bottom: 25px; }
body.homepage .about-copy p:not(.eyebrow) { max-width: 470px; margin: 0 0 24px; color: var(--muted-green); font-size: 16px; line-height: 1.7; }
body.homepage .about-copy .text-link { color: var(--graphite); }
body.homepage .about-decor { position: absolute; right: -37px; bottom: -25px; width: 137px; opacity: .94; transform: rotate(-7deg); filter: drop-shadow(0 12px 8px rgba(38,52,58,.12)); }
body.homepage .reviews-section { padding-top: 95px; background: var(--milk); }
body.homepage .reviews-section,
body.homepage .reviews-section * { font-family: Roboto, Arial, sans-serif; }
body.homepage .review-mark { color: var(--coral); font: 90px/.6 Georgia, serif; }
body.homepage .review-card { display: flex; min-height: 142px; align-items: center; justify-content: space-between; gap: 30px; padding: 31px 38px; border: 1px dashed rgba(127,148,123,.65); border-radius: 15px 15px 15px 3px; background: rgba(255,253,249,.58); }
body.homepage .review-card p { max-width: 560px; margin: 0; color: var(--muted-green); font: italic 21px/1.35 Georgia, serif; }
body.homepage .review-card span { color: var(--sage); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
body.homepage .site-footer { margin-top: 0; padding: 67px 0 22px; border: 0; background: var(--graphite); color: var(--white); }
body.homepage .footer-grid { grid-template-columns: 1.4fr .7fr 1fr; gap: 60px; }
body.homepage .site-footer .brand { color: var(--white); }
body.homepage .site-footer .brand-copy small { color: var(--sage-soft); }
body.homepage .site-footer .brand-mark { background: var(--coral); }
body.homepage .footer-brand p, body.homepage .footer-contact p { color: rgba(255,253,249,.62); font-size: 13px; line-height: 1.65; }
body.homepage .footer-brand p { margin: 21px 0 0; }
body.homepage .footer-nav { display: grid; gap: 12px; align-content: start; }
body.homepage .footer-nav a { color: rgba(255,253,249,.82); font-size: 13px; text-decoration: none; }
body.homepage .footer-nav a:hover { color: var(--apricot); }
body.homepage .footer-contact { justify-self: end; }
body.homepage .footer-contact p { margin: 0 0 16px; }
body.homepage .footer-contact .text-link { color: var(--apricot); }
body.homepage .footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 17px; border-top: 1px solid rgba(255,253,249,.15); color: rgba(255,253,249,.4); font-size: 11px; }
body.homepage .footer-bottom span span { color: var(--coral); }
@media (max-width: 980px) {
  body.homepage .header-inner { flex-wrap: wrap; padding: 18px 0; }
  body.homepage .main-nav { order: 3; width: 100%; justify-content: space-between; margin-left: 0; }
  body.homepage .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  body.homepage .hero-copy { padding-bottom: 0; }
  body.homepage .hero-visual { min-height: 530px; }
  body.homepage .hero-photo-wrap { left: 0; width: calc(100% - 25px); }
  body.homepage .hero-bottom { margin-top: 16px; }
  body.homepage .about-section .two-col { gap: 55px; }
}
@media (max-width: 680px) {
  body.homepage .container, body.homepage .site-footer-inner, body.homepage .header-inner { width: min(calc(100% - 36px), var(--max-home)); }
  body.homepage .header-inner { min-height: 80px; }
  body.homepage .header-cta { display: none; }
  body.homepage .main-nav { gap: 13px; overflow-x: auto; justify-content: flex-start; }
  body.homepage .main-nav a { flex: 0 0 auto; font-size: 12px; }
  body.homepage .hero { padding-top: 25px; }
  body.homepage .hero-grid { min-height: 0; }
  body.homepage h1 { max-width: 100%; font-size: clamp(2.35rem, 10.5vw, 3.25rem); line-height: 1.02; overflow-wrap: break-word; }
  body.homepage .lead { font-size: 15px; }
  body.homepage .actions { align-items: stretch; flex-direction: column; }
  body.homepage .actions .button { justify-content: center; width: 100%; }
  body.homepage .hero-visual { min-height: 395px; margin-top: 8px; }
  body.homepage .hero-photo-wrap { height: 365px; border-radius: 37% 10px 10px 10px; }
  body.homepage .hero-label { bottom: 22px; left: 12px; }
  body.homepage .hero-bear { right: -37px; bottom: -23px; width: 112px; }
  body.homepage .hero-rainbow { top: -31px; right: -25px; width: 80px; }
  body.homepage .hero-bottom { gap: 11px; padding: 16px 0; overflow: hidden; font-size: 9px; white-space: nowrap; }
  body.homepage .hero-bottom i { flex: 0 0 auto; }
  body.homepage .section { padding: 76px 0; }
  body.homepage .facts { grid-template-columns: 1fr; }
  body.homepage .fact, body.homepage .fact:first-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--sand); }
  body.homepage .fact:last-child { border-bottom: 0; }
  body.homepage .section-heading { display: block; margin-bottom: 28px; }
  body.homepage .section-heading > p { margin-top: 20px; }
  body.homepage .cards { grid-template-columns: 1fr; }
  body.homepage .card { min-height: 245px; }
  body.homepage .process-section .two-col, body.homepage .about-section .two-col { grid-template-columns: 1fr; }
  body.homepage .process-copy { min-height: 245px; }
  body.homepage .process-decor { right: 0; bottom: -33px; width: 124px; }
  body.homepage .steps { grid-template-columns: 1fr; }
  body.homepage .step, body.homepage .step:nth-last-child(-n+2) { min-height: 0; border-bottom: 1px solid rgba(255,253,249,.25); }
  body.homepage .step:last-child { border-bottom: 0; }
  body.homepage .about-photo { width: calc(100% - 35px); }
  body.homepage .about-photo img { height: 315px; }
  body.homepage .about-badge { right: -28px; width: 88px; height: 88px; font-size: 26px; }
  body.homepage .about-decor { right: -15px; width: 108px; bottom: -31px; }
  body.homepage .review-card { display: block; padding: 26px; }
  body.homepage .review-card p { font-size: 18px; }
  body.homepage .review-card span { display: block; margin-top: 20px; }
  body.homepage .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  body.homepage .footer-contact { justify-self: start; }
  body.homepage .footer-bottom { gap: 10px; flex-direction: column; margin-top: 35px; }
}

/* Телефон: отдельная CTA на главной и пункт только мобильного меню. */
.mobile-call-link { display: none; }
body.homepage .button.secondary.hero-call-button {
  border-color: var(--graphite);
  background: var(--white);
  box-shadow: none;
  color: var(--graphite);
}
body.homepage .button.secondary.hero-call-button:hover {
  border-color: var(--coral);
  background: var(--white);
  color: var(--coral);
}
body.homepage .hero-call-button > span[aria-hidden="true"] { color: var(--graphite); }
@media (max-width: 680px) {
  body.homepage .main-nav .mobile-call-link,
  body.service-page .main-nav .mobile-call-link { display: block; }
  body.homepage .hero-call-button { justify-content: center; }
  body.homepage .hero-call-button > span[aria-hidden="true"] {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    line-height: 1;
  }
}

/* Единая модальная форма записи. */
body.lead-modal-is-open { position: fixed; width: 100%; overflow: hidden; }
.lead-modal[aria-hidden="true"] { display: none; }
.lead-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.lead-modal-backdrop { position: absolute; inset: 0; background: rgba(38, 52, 58, .72); }
.lead-modal-dialog { position: relative; z-index: 1; width: min(100%, 590px); padding: 28px 32px; border: 1px solid rgba(127, 148, 123, .28); border-radius: 16px 16px 16px 3px; background: var(--white, #fffdf9); box-shadow: 0 24px 60px rgba(38, 52, 58, .24); }
.lead-modal-dialog h2 { margin: 0 42px 8px 0; color: var(--graphite, #26343a); font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.08; letter-spacing: -.035em; }
.lead-modal-dialog .service-kicker { margin-bottom: 8px; }
.lead-modal-intro { max-width: 460px; margin: 0 0 16px; color: var(--muted-green, #53625d); font-size: 15px; line-height: 1.45; }
.lead-modal-close { position: absolute; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--coral, #d77b5e); color: #fff; font-size: 28px; line-height: 1; }
.lead-modal .lead-form { max-width: none; margin: 0; }
.lead-modal .lead-form > p { margin: 0 0 10px; }
.lead-modal .lead-form label { display: block; margin-bottom: 5px; color: var(--graphite, #26343a); font-size: 14px; font-weight: 700; line-height: 1.25; }
.lead-modal .lead-form input:not([type="checkbox"]),
.lead-modal .lead-form textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(127, 148, 123, .38); border-radius: 8px; background: #fff; color: var(--graphite, #26343a); font-size: 16px; line-height: 1.25; }
.lead-modal .lead-form input:not([type="checkbox"]) { min-height: 43px; }
.lead-modal .lead-form textarea { min-height: 82px; resize: vertical; }
.lead-modal .lead-form input:focus,
.lead-modal .lead-form textarea:focus { border-color: var(--coral, #d77b5e); outline: 2px solid rgba(215, 123, 94, .16); }
.lead-modal .lead-form .consent { margin-top: 12px; }
.lead-modal .lead-form .consent label { display: flex; align-items: flex-start; gap: 8px; color: var(--muted-green, #53625d); font-size: 13px; font-weight: 400; line-height: 1.45; }
.lead-modal .lead-form input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--coral, #d77b5e); }
.lead-modal .lead-form .button { min-height: 52px; margin-top: 3px; }
.lead-modal .form-feedback:empty,
.lead-modal .field-error:empty { display: none; }
.lead-modal .form-feedback,
.lead-modal .field-error { display: block; color: #a5432e; font-size: 12px; line-height: 1.35; }
.lead-modal .form-feedback { margin-bottom: 9px !important; font-weight: 700; }
@media (max-width: 680px) {
  .lead-modal { align-items: center; padding: 7px; }
  .lead-modal-dialog { width: 100%; padding: 12px 14px; }
  .lead-modal-close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 24px; }
  .lead-modal-dialog .service-kicker { margin: 0 36px 3px 0; font-size: 9px; line-height: 1.1; }
  .lead-modal-dialog h2 { margin: 0 36px 5px 0; font-size: 22px; line-height: 1.03; }
  .lead-modal-intro { margin-bottom: 8px; font-size: 12px; line-height: 1.3; }
  .lead-modal .lead-form > p { margin-bottom: 6px; }
  .lead-modal .lead-form label { margin-bottom: 3px; font-size: 12px; line-height: 1.15; }
  .lead-modal .lead-form input:not([type="checkbox"]),
  .lead-modal .lead-form textarea { padding: 7px 9px; font-size: 16px; }
  .lead-modal .lead-form input:not([type="checkbox"]) { min-height: 37px; }
  .lead-modal .lead-form textarea { min-height: 44px; height: 44px; resize: none; }
  .lead-modal .lead-form .consent { margin: 5px 0 6px; }
  .lead-modal .lead-form .consent span { display: none; }
  .lead-modal .lead-form .consent label { margin: 0; min-height: 17px; }
  .lead-modal .lead-form .button { min-height: 43px; margin-top: 0; padding: 9px 14px; font-size: 14px; }
  .lead-modal .form-feedback,
  .lead-modal .field-error { font-size: 10px; line-height: 1.2; }
}

/* Светлая корректировка главной страницы */
body.homepage h1,
body.homepage h2,
body.homepage h3 { font-weight: 600; }
body.homepage h1 { max-width: 620px; }
body.homepage .lead,
body.homepage .fact > span:last-child,
body.homepage .card p,
body.homepage .about-copy p:not(.eyebrow) { font-weight: 500; }
body.homepage .services-section { background: #f4f0eb; }
body.homepage .card-coral { background: #f3d8ce; }
body.homepage .card-sage { background: #dce8da; }
body.homepage .card-sand { background: #efe3d6; }
body.homepage .card-blue { background: #dbe7f1; }
body.homepage .card-lime { background: #e4eddc; }
body.homepage .card-apricot { background: #f5d9bd; }
body.homepage .process-section { background: #edf2ea; color: var(--graphite); }
body.homepage .process-section h2 { color: var(--graphite); }
body.homepage .process-copy { min-height: 380px; }
body.homepage .process-section ol { max-width: 560px; margin: 26px 0 25px; padding-left: 24px; }
body.homepage .process-section li { padding-left: 7px; color: var(--muted-green); font-size: 14px; line-height: 1.55; }
body.homepage .process-section li::marker { color: var(--coral); font-family: Georgia, serif; font-weight: 700; }
body.homepage .process-section .text-link { color: var(--graphite); }
body.homepage .process-section .text-link span { color: var(--coral); }
body.homepage .process-section .notice { align-self: center; padding: 34px; border: 1px solid rgba(127,148,123,.25); border-radius: 16px 16px 16px 3px; background: rgba(255,253,249,.82); box-shadow: 0 14px 30px rgba(38,52,58,.05); }
body.homepage .process-section .notice h3 { margin-bottom: 12px; font-size: 26px; }
body.homepage .process-section .notice p { margin: 0; color: var(--muted-green); font-size: 14px; line-height: 1.6; }
body.homepage .process-section .notice .button { margin-top: 23px; }
body.homepage .about-section { background: #fff; }
body.homepage .about-copy h2 { font-weight: 600; }
body.homepage .review-card { background: #fffdf9; }
body.homepage .review-card p { max-width: 780px; color: var(--muted-green); font-size: 16px; font-style: normal; line-height: 1.6; }
body.homepage .site-footer { border-top: 1px solid var(--sand); background: #f4f0eb; color: var(--graphite); }
body.homepage .site-footer .brand { color: var(--graphite); }
body.homepage .site-footer .brand-copy small { color: var(--muted-green); }
body.homepage .footer-brand p,
body.homepage .footer-contact p { color: var(--muted-green); }
body.homepage .footer-nav a { color: var(--graphite); }
body.homepage .footer-nav a:hover { color: var(--coral); }
body.homepage .footer-contact .text-link { color: var(--coral); }
body.homepage .footer-bottom { color: var(--muted-green); }
@media (max-width: 680px) {
  body.homepage .process-copy { min-height: 0; }
  body.homepage .process-section .notice { padding: 26px; }
}

/* Финальная типографика и ритм */
body.homepage,
body.homepage .brand-copy,
body.homepage .main-nav,
body.homepage .button,
body.homepage .card,
body.homepage .fact,
body.homepage .notice,
body.homepage .footer-grid { font-family: Roboto, Arial, sans-serif; }
body.homepage h1,
body.homepage h2,
body.homepage h3,
body.homepage .brand-copy strong,
body.homepage .fact strong { font-family: Roboto, Arial, sans-serif; letter-spacing: -.035em; }
body.homepage h1 { max-width: 540px; font-size: clamp(3.25rem, 5vw, 5rem); font-weight: 700; line-height: 1.02; }
body.homepage h2 { font-weight: 700; }
body.homepage h3 { font-weight: 700; }
body.homepage .main-nav { gap: 29px; }
body.homepage .main-nav a { font-size: 16px; font-weight: 500; }
body.homepage .lead { max-width: 560px; font-size: 18px; line-height: 1.62; }
body.homepage .hero { background: #faf8f4; }
body.homepage .hero::before { background: rgba(201, 210, 194, .2); }
body.homepage .hero-grid { grid-template-columns: minmax(0, .94fr) minmax(430px, 1fr); gap: 42px; min-height: 510px; }
body.homepage .hero-visual { min-height: 490px; }
body.homepage .hero-photo-wrap { width: min(100%, 610px); height: 465px; }
body.homepage .hero-bear { right: -45px; bottom: -21px; width: 132px; }
body.homepage .scribble-one { top: 74px; left: -6px; }
body.homepage .button { min-height: 58px; padding: 16px 25px; font-size: 16px; }
body.homepage .button.secondary { padding-right: 15px; padding-left: 15px; }
body.homepage .facts-section { padding: 25px 0; }
body.homepage .fact { display: block; min-height: 102px; padding: 22px 34px; }
body.homepage .fact:first-child { padding-left: 0; }
body.homepage .fact strong { display: block; margin-bottom: 8px; white-space: nowrap; font-size: 27px; font-weight: 700; }
body.homepage .fact > span:last-child { display: block; max-width: 260px; font-size: 15px; line-height: 1.45; }
body.homepage .card p { font-size: 15px; line-height: 1.52; }
body.homepage .card a { width: fit-content; justify-content: flex-start; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 14px; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
body.homepage .card a:hover { color: var(--coral); border-color: var(--coral); transform: translateX(3px); }
body.homepage .services-action .button.secondary { border: 1px solid var(--graphite); background: #fffdf9; box-shadow: none; }
body.homepage .services-action .button.secondary:hover { border-color: var(--coral); color: var(--coral); background: #fffdf9; }
body.homepage .text-link { padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 15px; }
body.homepage .about-copy p:not(.eyebrow) { font-size: 17px; }
body.homepage .process-section li { font-size: 17px; line-height: 1.6; }
body.homepage .footer-brand p,
body.homepage .footer-contact p,
body.homepage .footer-nav a { font-size: 15px; }
@media (max-width: 980px) {
  body.homepage .hero-grid { grid-template-columns: 1fr; }
  body.homepage .hero-visual { min-height: 495px; }
  body.homepage .hero-photo-wrap { width: calc(100% - 35px); }
}
@media (max-width: 680px) {
  body.homepage .main-nav { gap: 12px; flex-wrap: nowrap; overflow-x: auto; }
  body.homepage .main-nav a { font-size: 14px; }
  body.homepage h1 { max-width: 100%; font-size: clamp(2.35rem, 10.5vw, 3.25rem); }
  body.homepage .lead { font-size: 16px; }
  body.homepage .fact strong { font-size: 25px; }
  body.homepage .fact > span:last-child { max-width: 100%; font-size: 15px; }
  body.homepage .hero-visual { min-height: 395px; }
  body.homepage .hero-photo-wrap { width: calc(100% - 22px); height: 365px; }
  body.homepage .hero-bear { right: -28px; bottom: -22px; width: 110px; }
  body.homepage .button { min-height: 56px; font-size: 16px; }
}

/* Финальная композиция hero, услуг и футера */
body.homepage .hero { background: #fff; }
body.homepage .hero::before { background: rgba(201, 210, 194, .16); }
body.homepage .facts-section { background: #f4f0eb; }
body.homepage .services-section { background: #fff; }
body.homepage h1 { max-width: 590px; font-size: clamp(3rem, 4.45vw, 4.35rem); line-height: 1.04; letter-spacing: -.045em; }
body.homepage .services-section { position: relative; overflow: hidden; }
body.homepage .services-section .container { position: relative; z-index: 1; }
body.homepage .card { border-color: rgba(38,52,58,.1); box-shadow: 0 14px 28px rgba(38,52,58,.09); }
body.homepage .services-decor { position: absolute; right: -28px; bottom: -36px; z-index: 2; width: 178px; opacity: .96; transform: rotate(-8deg); filter: saturate(.9) drop-shadow(0 16px 10px rgba(38,52,58,.16)); pointer-events: none; }
body.homepage .site-footer { border-top: 0; background: #7f947b; color: #fffdf9; }
body.homepage .site-footer .brand { color: #fffdf9; }
body.homepage .site-footer .brand-copy small { color: rgba(255,253,249,.74); }
body.homepage .footer-brand p,
body.homepage .footer-contact p { color: rgba(255,253,249,.82); }
body.homepage .footer-nav a { color: #fffdf9; }
body.homepage .footer-nav a:hover { color: #f0b07d; }
body.homepage .footer-contact .text-link { color: #fffdf9; border-color: rgba(255,253,249,.7); }
@media (max-width: 680px) {
  body.homepage h1 { max-width: 100%; font-size: clamp(2.35rem, 10.5vw, 3.25rem); }
  body.homepage .services-decor { right: -22px; bottom: -18px; width: 124px; opacity: .96; }
}

/* Типовая страница услуги */
body.service-page {
  --milk: #faf8f4;
  --white: #fffdf9;
  --sand: #e7ded4;
  --sage-soft: #c9d2c2;
  --sage: #7f947b;
  --coral: #d77b5e;
  --apricot: #f0b07d;
  --graphite: #26343a;
  --muted-green: #65756d;
  --max-service: 1240px;
  margin: 0;
  color: var(--graphite);
  background: var(--milk);
  font-family: Roboto, Arial, sans-serif;
  overflow-x: hidden;
}
body.service-page .container,
body.service-page .site-footer-inner,
body.service-page .header-inner { width: min(calc(100% - 64px), var(--max-service)); }
body.service-page a { color: inherit; }
body.service-page .site-header { position: relative; z-index: 10; border: 0; background: rgba(250,248,244,.94); }
body.service-page .header-inner { min-height: 94px; gap: 28px; }
body.service-page .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--graphite); text-decoration: none; }
body.service-page .brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px 14px 14px 4px; background: var(--coral); color: var(--white); font: 700 25px/1 Georgia, serif; transform: rotate(-5deg); }
body.service-page .brand-copy { display: grid; gap: 1px; }
body.service-page .brand-copy strong { font: 700 17px/1.15 Roboto, Arial, sans-serif; letter-spacing: -.02em; }
body.service-page .brand-copy small { color: var(--muted-green); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
body.service-page .main-nav { gap: 29px; margin-left: auto; }
body.service-page .main-nav a { padding: 8px 0; color: var(--muted-green); font-size: 16px; font-weight: 500; text-decoration: none; }
body.service-page .main-nav a:hover { color: var(--graphite); }
body.service-page .breadcrumbs { padding-top: 25px; color: var(--muted-green); font-size: 13px; }
body.service-page .breadcrumbs a { text-decoration: none; }
body.service-page .breadcrumbs a:hover { color: var(--coral); }
body.service-page .breadcrumbs span { padding: 0 8px; color: var(--coral); }
body.service-page h1,
body.service-page h2,
body.service-page h3 { color: var(--graphite); font-family: Roboto, Arial, sans-serif; letter-spacing: -.035em; }
body.service-page h1,
body.service-page h2,
body.service-page h3,
body.service-page p,
body.service-page li,
body.service-page summary { text-wrap: pretty; }
/* Правило типовых страниц: основной текст внутри блоков — единый базовый кегль 17px. */
body.service-page .service-section p:not(.service-kicker),
body.service-page .service-section li,
body.service-page .service-section summary { font-size: 17px; }
body.service-page h1 { max-width: 540px; margin: 0 0 23px; font-size: clamp(3.2rem, 5vw, 5rem); font-weight: 700; line-height: 1.02; }
body.service-page h2 { margin: 0 0 22px; font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 700; line-height: 1.03; }
body.service-page h3 { margin: 0 0 12px; font-size: 23px; font-weight: 700; line-height: 1.12; }
body.service-page .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--sage); font-size: 11px; letter-spacing: .14em; }
body.service-page .eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
body.service-page .lead { max-width: 560px; margin: 0; color: var(--muted-green); font-size: 18px; line-height: 1.62; }
body.service-page .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
body.service-page .button { display: inline-flex; min-height: 58px; align-items: center; padding: 16px 25px; border: 1px solid var(--coral); border-radius: 8px 8px 8px 2px; background: var(--coral); box-shadow: 0 10px 18px rgba(215,123,94,.18); color: var(--white); font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
body.service-page .button:hover { background: #c96b50; transform: translateY(-2px); }
body.service-page .button.secondary { border-color: transparent; background: transparent; box-shadow: none; color: var(--graphite); }
body.service-page .button.secondary:hover { background: rgba(231,222,212,.7); }
body.service-page .service-hero { position: relative; overflow: hidden; padding: 47px 0 95px; background: #fff; }
body.service-page .service-hero::before { position: absolute; top: -120px; left: -170px; width: 410px; height: 410px; border-radius: 50%; background: rgba(201,210,194,.18); content: ""; }
body.service-page .service-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr); gap: 70px; align-items: center; }
body.service-page.services-index-page .service-hero-grid--text-only,
body.service-page .service-hero-grid.service-hero-grid--text-only { grid-template-columns: minmax(0, 1fr); gap: 0; }
body.service-page .service-hero-copy { padding: 55px 0 35px; }
body.service-page .service-hero-media { position: relative; min-height: 535px; }
body.service-page .service-photo-main { position: absolute; top: 0; right: 0; width: min(100%, 455px); height: 535px; overflow: hidden; border-radius: 42% 12px 12px 12px; background: var(--sand); box-shadow: 0 22px 50px rgba(38,52,58,.12); }
body.service-page .service-photo-main img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.service-page .service-photo-secondary { position: absolute; bottom: 24px; left: -55px; z-index: 2; width: 295px; height: 178px; overflow: hidden; border: 8px solid var(--white); border-radius: 15px 15px 15px 3px; background: var(--sand); box-shadow: 0 14px 30px rgba(38,52,58,.16); }
body.service-page .service-photo-secondary img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.service-page .service-spark { position: absolute; top: 75px; left: -15px; z-index: 3; color: var(--coral); font-size: 31px; }
body.service-page .service-section { padding: 98px 0; }
body.service-page .service-kicker { margin: 0 0 15px; color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
body.service-page .service-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center; }
body.service-page .service-two-col > div:first-child > p:last-child { max-width: 520px; margin: 0; color: var(--muted-green); font-size: 17px; line-height: 1.65; }
body.service-page .service-audience { background: #f4f0eb; }
body.service-page .service-list-card { padding: 27px 32px; border: 1px solid rgba(127,148,123,.24); border-radius: 16px 16px 16px 3px; background: var(--white); box-shadow: 0 14px 30px rgba(38,52,58,.05); }
body.service-page .service-list-card ul { margin: 0; padding: 0; list-style: none; }
body.service-page .service-list-card li { position: relative; padding: 13px 0 13px 27px; border-bottom: 1px solid var(--sand); color: var(--muted-green); font-size: 16px; line-height: 1.45; }
body.service-page .service-list-card li:last-child { border-bottom: 0; }
body.service-page .service-list-card li::before { position: absolute; top: 19px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); content: ""; }
body.service-page .service-included { background: var(--white); }
body.service-page .service-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 38px; }
body.service-page .service-section-number { color: var(--coral); font: italic 20px Georgia, serif; }
body.service-page .service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
body.service-page .service-card { min-height: 245px; padding: 27px 26px 24px; border: 1px solid rgba(38,52,58,.1); border-radius: 16px 16px 16px 3px; background: #f3d8ce; box-shadow: 0 14px 28px rgba(38,52,58,.08); }
body.service-page .service-card:nth-child(2) { background: #dce8da; }
body.service-page .service-card:nth-child(3) { background: #dbe7f1; }
body.service-page .service-card > span { display: block; margin-bottom: 29px; color: var(--muted-green); font: italic 14px Georgia, serif; }
body.service-page .service-card p { margin: 0; color: #53625d; font-size: 15px; line-height: 1.55; }
body.service-page .service-card a { display: inline-flex; margin-top: 25px; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: var(--graphite); font-size: 14px; font-weight: 700; text-decoration: none; }
body.service-page .service-card a:hover { color: var(--coral); }
body.service-page .service-process { position: relative; z-index: 2; overflow: visible; background: #edf2ea; }
body.service-page .service-process > .container { position: relative; }
body.service-page .service-process-decor { position: absolute; right: 0; bottom: -184px; z-index: 2; width: 160px; transform: rotate(8deg); filter: drop-shadow(0 16px 10px rgba(38,52,58,.16)); }
body.service-page .service-related { position: relative; z-index: 1; }
body.service-page .service-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
body.service-page .service-step { display: flex; gap: 19px; min-height: 145px; padding: 25px 0; border-bottom: 1px solid rgba(127,148,123,.35); }
body.service-page .service-step:nth-last-child(-n+2) { border-bottom: 0; }
body.service-page .service-step > span { color: var(--coral); font: italic 16px Georgia, serif; }
body.service-page .service-step h3 { margin-bottom: 8px; font-size: 20px; }
body.service-page .service-step p { margin: 0; color: var(--muted-green); font-size: 15px; line-height: 1.55; }
body.service-page .service-related { background: #fff; }
body.service-page .service-related > .container > h2 { margin-bottom: 38px; }
body.service-page .service-related .service-card { background: #f5eee6; }
body.service-page .service-related .service-card:nth-child(2) { background: #e8efe6; }
body.service-page .service-related .service-card:nth-child(3) { background: #f5d9bd; }
body.service-page .service-booking { background: #f4f0eb; }
body.service-page .service-booking-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 85px; align-items: center; }
body.service-page .service-booking-card { padding: 32px 36px; border: 1px solid rgba(127,148,123,.28); border-radius: 16px 16px 16px 3px; background: var(--white); box-shadow: 0 14px 30px rgba(38,52,58,.06); }
body.service-page .service-booking-card p { margin: 0; color: var(--muted-green); font-size: 17px; line-height: 1.55; }
body.service-page .service-booking-card .button { margin-top: 23px; }
body.service-page .service-faq { background: #fff; }
body.service-page .service-faq h2 { margin-bottom: 28px; }
body.service-page .service-faq details { padding: 20px 0; border-bottom: 1px solid var(--sand); }
body.service-page .service-faq summary { color: var(--graphite); font-size: 17px; font-weight: 700; }
body.service-page .service-faq details p { max-width: 760px; margin: 15px 0 0; color: var(--muted-green); font-size: 16px; line-height: 1.6; }
body.service-page .site-footer { margin-top: 0; padding: 67px 0 45px; border: 0; background: var(--sage); color: var(--white); }
body.service-page .footer-grid { grid-template-columns: 1.4fr .7fr 1fr; gap: 60px; }
body.service-page .site-footer .brand { color: var(--white); }
body.service-page .site-footer .brand-copy small { color: rgba(255,253,249,.74); }
body.service-page .footer-brand p, body.service-page .footer-contact p { color: rgba(255,253,249,.82); font-size: 15px; line-height: 1.65; }
body.service-page .footer-brand p { margin: 21px 0 0; }
body.service-page .footer-nav { display: grid; gap: 12px; align-content: start; }
body.service-page .footer-nav a { color: var(--white); font-size: 15px; text-decoration: none; }
body.service-page .footer-nav a:hover, body.service-page .footer-contact .text-link:hover { color: var(--apricot); }
body.service-page .footer-contact { justify-self: end; }
body.service-page .footer-contact p { margin: 0 0 16px; }
body.service-page .footer-contact .text-link { color: var(--white); border-color: rgba(255,253,249,.7); }
@media (max-width: 980px) {
  body.service-page .header-inner { flex-wrap: wrap; padding: 18px 0; }
  body.service-page .main-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  body.service-page .service-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  body.service-page .service-hero-copy { padding-bottom: 0; }
  body.service-page .service-hero-media { min-height: 520px; }
  body.service-page .service-photo-main { left: 0; width: calc(100% - 30px); }
  body.service-page .service-two-col, body.service-page .service-booking-inner { gap: 45px; }
}
@media (max-width: 680px) {
  body.service-page .container, body.service-page .site-footer-inner, body.service-page .header-inner { width: min(calc(100% - 36px), var(--max-service)); }
  body.service-page .header-inner { min-height: 80px; }
  body.service-page .main-nav { gap: 12px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  body.service-page .main-nav a { flex: 0 0 auto; font-size: 14px; }
  body.service-page .breadcrumbs { padding-top: 2px; padding-bottom: 18px; font-size: 12px; }
  body.service-page .service-hero { padding-top: 25px; }
  body.service-page h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  body.service-page .lead { font-size: 16px; }
  body.service-page .actions { align-items: stretch; flex-direction: column; }
  body.service-page .actions .button { justify-content: center; width: 100%; }
  body.service-page .service-hero-media { min-height: 420px; margin-top: 10px; }
  body.service-page .service-photo-main { width: calc(100% - 20px); height: 405px; border-radius: 37% 10px 10px 10px; }
  body.service-page .service-photo-secondary { bottom: 12px; left: 8px; width: 205px; height: 130px; border-width: 6px; }
  body.service-page .service-spark { top: 56px; left: -2px; }
  body.service-page .service-section { padding: 76px 0; }
  body.service-page .service-two-col, body.service-page .service-booking-inner { grid-template-columns: 1fr; gap: 30px; }
  body.service-page .service-cards, body.service-page .service-steps { grid-template-columns: 1fr; }
  body.service-page .service-heading-row { align-items: flex-start; margin-bottom: 28px; }
  body.service-page .service-card { min-height: 0; }
  body.service-page .service-step, body.service-page .service-step:nth-last-child(-n+2) { min-height: 0; border-bottom: 1px solid rgba(127,148,123,.35); }
  body.service-page .service-step:last-child { border-bottom: 0; }
  body.service-page .service-process-decor { right: 0; bottom: -96px; width: 112px; }
  body.service-page .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  body.service-page .footer-contact { justify-self: start; }
}

/* Общий компонент карточек услуг: используется на главной и типовых страницах. */
.shared-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card.shared-card { position: relative; display: flex; min-height: 288px; flex-direction: column; padding: 26px 25px 23px; overflow: hidden; border: 1px solid rgba(38,52,58,.1); border-radius: 16px 16px 16px 3px; background: #fffdf9; box-shadow: 0 14px 28px rgba(38,52,58,.09); }
.card.shared-card::after { position: absolute; right: -34px; bottom: -42px; width: 115px; height: 115px; border: 1px solid rgba(38,52,58,.13); border-radius: 50%; content: ""; }
.card.shared-card.card-coral { background: #f3d8ce; }
.card.shared-card.card-sage { background: #dce8da; }
.card.shared-card.card-sand { background: #efe3d6; }
.card.shared-card.card-blue { background: #dbe7f1; }
.card.shared-card.card-lime { background: #e4eddc; }
.card.shared-card.card-apricot { background: #f5d9bd; }
.card.shared-card h3 { max-width: 220px; margin: 27px 0 12px; color: #26343a; font-size: 24px; font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.card.shared-card p { max-width: 270px; margin: 0; color: #53625d; font-size: 15px; font-weight: 500; line-height: 1.52; }
.card.shared-card a { z-index: 1; display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: fit-content; margin-top: auto; padding-top: 23px; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: #26343a; font-size: 14px; font-weight: 700; text-decoration: none; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.card.shared-card a:hover { color: #d77b5e; border-color: #d77b5e; transform: translateX(3px); }
@media (max-width: 680px) {
  .shared-cards { grid-template-columns: 1fr; }
  .card.shared-card { min-height: 245px; }
}

/* Горизонтальная композиция hero для каталога услуг. */
body.services-index-page .service-hero { padding-bottom: 48px; }
body.services-index-page .service-hero-grid { grid-template-columns: minmax(0, 1.32fr) minmax(390px, .88fr); gap: 34px; }
body.services-index-page .service-hero-copy { padding-right: 0; }
body.services-index-page h1 { max-width: 700px; }
body.services-index-page .lead { max-width: 640px; }
body.services-index-page .service-hero-media { min-height: 456px; }
body.services-index-page .service-photo-main { top: 86px; width: min(100%, 520px); height: 370px; border-radius: 38% 12px 12px 12px; }
@media (max-width: 980px) {
  body.services-index-page .service-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  body.services-index-page .service-hero-copy { padding-right: 0; }
  body.services-index-page .service-hero-media { min-height: 420px; }
  body.services-index-page .service-photo-main { top: 0; width: calc(100% - 20px); height: 405px; }
}
@media (max-width: 680px) {
  body.services-index-page .service-hero-media { min-height: 330px; }
  body.services-index-page .service-photo-main { height: 315px; border-radius: 30% 10px 10px 10px; }
}

/* Контентная страница цен без hero. */
body.prices-page .prices-intro { background: #fff; padding: 82px 0 78px; }
body.prices-page .prices-intro > .container.narrow { max-width: none; }
body.prices-page .prices-intro h1 { width: min(900px, 100%); max-width: none; margin: 0 0 24px; text-align: left; }
body.prices-page .prices-table-section { background: #f4f0eb; }
body.prices-page .prices-heading-note { max-width: 260px; margin: 0 0 4px; color: var(--muted-green); font-size: 15px; line-height: 1.55; }
body.prices-page .prices-table-card { overflow: hidden; border: 1px solid rgba(127,148,123,.24); border-radius: 16px 16px 16px 3px; background: var(--white); box-shadow: 0 14px 30px rgba(38,52,58,.06); }
body.prices-page table { width: 100%; border-collapse: collapse; color: var(--graphite); }
body.prices-page caption { padding: 25px 28px 18px; color: var(--graphite); font: 700 23px/1.12 Roboto, Arial, sans-serif; letter-spacing: -.035em; text-align: left; }
body.prices-page th,
body.prices-page td { padding: 17px 28px; border-bottom: 1px solid rgba(231,222,212,.85); font-size: 17px; line-height: 1.45; text-align: left; }
body.prices-page th { background: #e8efe6; color: var(--muted-green); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
body.prices-page th:last-child,
body.prices-page td:last-child { width: 190px; color: var(--graphite); font-weight: 700; text-align: right; white-space: nowrap; }
body.prices-page td.price-cell { text-align: right; }
body.prices-page .price-old { margin-right: 10px; color: #65756d; font-size: 15px; font-weight: 500; text-decoration-color: #d77b5e; text-decoration-thickness: 1.5px; }
body.prices-page .price-current { color: #bd6247; font-weight: 800; }
body.prices-page tbody tr:last-child td { border-bottom: 0; }
body.prices-page tbody tr:hover td { background: rgba(244,240,235,.58); }
body.prices-page .prices-booking { background: #edf2ea; }
@media (max-width: 680px) {
  body.prices-page .prices-intro { padding: 64px 0 58px; }
  body.prices-page .prices-intro h1 { width: 100%; }
  body.prices-page .prices-heading-note { max-width: 100%; margin-top: -8px; }
  body.prices-page .prices-table-card { overflow: hidden; }
  body.prices-page table { min-width: 0; }
  body.prices-page thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  body.prices-page tbody { display: block; }
  body.prices-page tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(231,222,212,.85);
  }
  body.prices-page tbody tr:last-child { border-bottom: 0; }
  body.prices-page tbody td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 1.4;
  }
  body.prices-page tbody td:last-child {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    width: auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e8efe6;
    color: var(--graphite);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }
  body.prices-page .price-old { margin-right: 0; font-size: 12px; }
  body.prices-page .price-current { font-size: 15px; }
  body.prices-page tbody tr:hover td { background: transparent; }
  body.prices-page tbody tr:hover td:last-child { background: #e8efe6; }
}

/* Контентная страница вопросов без hero. */
body.faq-page .faq-intro { background: #fff; padding: 82px 0 70px; }
body.faq-page .faq-intro > .container.narrow { max-width: none; }
body.faq-page .faq-intro h1 { width: min(900px, 100%); max-width: none; margin: 0 0 24px; text-align: left; }
body.faq-page .service-faq { background: #fff; padding-top: 30px; }
body.faq-page .service-faq > .container { max-width: none; }
body.faq-page .service-faq details { max-width: 900px; }
body.faq-page .faq-booking { background: #edf2ea; }
/* У FAQ сокращён только межсекционный отступ — оформление вопросов не меняется. */
body.faq-page .faq-intro { padding-bottom: 36px; }
body.faq-page .service-faq { padding-top: 16px; }

/* Контентная страница политики конфиденциальности без hero. */
body.privacy-page .privacy-intro { background: #fff; padding: 82px 0 70px; }
body.privacy-page .privacy-intro > .container.narrow { max-width: none; }
body.privacy-page .privacy-intro h1 { width: min(900px, 100%); max-width: none; margin: 0; text-align: left; }
body.privacy-page .privacy-content { background: #fff; padding-top: 30px; }
body.privacy-page .privacy-content > .container.narrow { max-width: none; }
body.privacy-page .privacy-card { max-width: 900px; padding: 30px 32px; border: 1px solid rgba(127,148,123,.24); border-radius: 16px 16px 16px 3px; background: #f4f0eb; box-shadow: 0 14px 30px rgba(38,52,58,.05); }
body.privacy-page .privacy-card p { margin: 0; color: var(--muted-green); font-size: 17px; line-height: 1.6; }
body.privacy-page .privacy-card p + p { margin-top: 23px; }
body.privacy-page .privacy-card .text-link { color: var(--graphite); font-size: 15px; font-weight: 700; }
@media (max-width: 680px) {
  body.privacy-page .privacy-intro { padding: 64px 0 58px; }
  body.privacy-page .privacy-intro h1 { width: 100%; }
  body.privacy-page .privacy-card { padding: 24px; }
}

/* Контентная страница контактов с учебной схемой вместо карты. */
body.contacts-page .contacts-intro { background: #fff; }
body.contacts-page .contacts-copy address { margin: 0; color: var(--muted-green); font-style: normal; }
body.contacts-page .contacts-copy address p { margin: 0 0 15px; }
body.contacts-page .contacts-copy address p:first-child { color: var(--graphite); }
body.contacts-page .contacts-copy address a { color: var(--coral); font-weight: 700; }
body.contacts-page .contacts-copy > p:last-child { margin-top: 23px; }
body.contacts-page .contacts-copy .text-link { color: var(--graphite); font-size: 15px; }
body.contacts-page .contact-map-card { position: relative; min-height: 430px; overflow: hidden; border: 1px solid rgba(127,148,123,.24); border-radius: 16px 16px 16px 3px; background: #e8efe6; box-shadow: 0 14px 30px rgba(38,52,58,.07); }
body.contacts-page .contact-map-card::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,253,249,.26) 1px, transparent 1px), linear-gradient(90deg, rgba(255,253,249,.26) 1px, transparent 1px); background-size: 42px 42px; content: ""; }
body.contacts-page .map-caption { position: absolute; top: 25px; left: 28px; z-index: 2; color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
body.contacts-page .map-road { position: absolute; z-index: 1; display: block; background: rgba(255,253,249,.9); box-shadow: 0 0 0 1px rgba(127,148,123,.08); }
body.contacts-page .map-road-main { top: 54%; right: -12%; left: -10%; height: 66px; transform: rotate(-7deg); }
body.contacts-page .map-road-side { top: -10%; right: 27%; width: 60px; height: 125%; transform: rotate(18deg); }
body.contacts-page .map-block { position: absolute; z-index: 2; border: 1px solid rgba(127,148,123,.18); border-radius: 8px; background: #c9d2c2; }
body.contacts-page .map-block-one { top: 25%; left: 16%; width: 105px; height: 68px; transform: rotate(-8deg); }
body.contacts-page .map-block-two { top: 18%; right: 12%; width: 122px; height: 78px; transform: rotate(7deg); background: #f0d9c8; }
body.contacts-page .map-block-three { bottom: 17%; left: 19%; width: 155px; height: 75px; transform: rotate(6deg); background: #dbe7f1; }
body.contacts-page .map-pin { position: absolute; top: 48%; left: 52%; z-index: 4; width: 22px; height: 22px; border: 5px solid var(--white); border-radius: 50% 50% 50% 0; background: var(--coral); box-shadow: 0 8px 16px rgba(38,52,58,.18); transform: rotate(-45deg); }
body.contacts-page .map-label { position: absolute; right: 26px; bottom: 62px; z-index: 5; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(127,148,123,.24); border-radius: 10px 10px 10px 2px; background: rgba(255,253,249,.94); box-shadow: 0 10px 22px rgba(38,52,58,.08); }
body.contacts-page .map-label strong { color: var(--graphite); font-size: 15px; }
body.contacts-page .map-label span { color: var(--muted-green); font-size: 13px; }
body.contacts-page .contact-map-card > small { position: absolute; right: 26px; bottom: 23px; z-index: 5; color: var(--muted-green); font-size: 11px; }
body.contacts-page .contact-map-embed { min-height: 400px; padding: 0; background: #fff; }
body.contacts-page .contact-map-embed::before { display: none; }
body.contacts-page .contacts-booking { background: #f4f0eb; }
body.contacts-page .contacts-form-intro { max-width: 500px; margin: 0; color: var(--muted-green); font-size: 17px; line-height: 1.6; }
body.contacts-page form { max-width: none; margin: 0; }
body.contacts-page form p { margin: 0 0 17px; }
body.contacts-page form label { display: block; margin-bottom: 7px; color: var(--graphite); font-size: 14px; font-weight: 700; }
body.contacts-page form input:not([type="checkbox"]),
body.contacts-page form textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(127,148,123,.38); border-radius: 8px; background: #fff; color: var(--graphite); }
body.contacts-page form textarea { min-height: 120px; resize: vertical; }
body.contacts-page form input:focus,
body.contacts-page form textarea:focus { border-color: var(--coral); outline: 2px solid rgba(215,123,94,.16); }
body.contacts-page form .consent { margin-top: 21px; }
body.contacts-page form .consent label { display: flex; align-items: flex-start; gap: 8px; color: var(--muted-green); font-size: 13px; font-weight: 400; line-height: 1.5; }
body.contacts-page form input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--coral); }
body.contacts-page form .button { margin-top: 3px; }
@media (max-width: 680px) {
  body.faq-page .faq-intro,
  body.contacts-page .contacts-intro { padding-top: 64px; }
  body.faq-page .faq-intro { padding-bottom: 28px; }
  body.faq-page .service-faq { padding-top: 12px; }
  body.faq-page .faq-intro h1 { width: 100%; }
  body.contacts-page .contact-map-card { min-height: 340px; }
  body.contacts-page .map-label { right: 18px; bottom: 53px; }
  body.contacts-page .contact-map-card > small { right: 18px; bottom: 18px; }
}

/* Страница специалиста: hero переиспользует композицию каталога услуг. */
body.specialist-page .specialist-hero-note { max-width: 640px; margin: 21px 0 0; color: var(--muted-green); font-size: 17px; line-height: 1.6; }
body.specialist-page .specialist-hero .actions { margin-top: 28px; }
@media (min-width: 1200px) {
  body.specialist-page .specialist-hero .service-hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(500px, .9fr); column-gap: 44px; row-gap: 0; }
  body.specialist-page .specialist-hero .service-hero-copy { display: contents; }
  body.specialist-page .specialist-hero .service-hero-copy > .eyebrow { grid-column: 1; grid-row: 1; margin-top: 55px; }
  body.specialist-page .specialist-hero .service-hero-copy > h1 { grid-column: 1; grid-row: 2; }
  body.specialist-page .specialist-hero .service-hero-copy > .lead { grid-column: 1; grid-row: 3; }
  body.specialist-page .specialist-hero .service-hero-copy > .actions { grid-column: 1; grid-row: 4; margin-bottom: 35px; }
  body.specialist-page .specialist-hero .service-hero-media { grid-column: 2; grid-row: 3; align-self: stretch; min-height: 0; }
  body.specialist-page .specialist-hero .service-photo-main { top: 0; right: 0; bottom: 0; width: min(100%, 560px); height: auto; }
}
body.specialist-page .specialist-credentials { background: #f4f0eb; }
body.specialist-page .specialist-education-heading { margin-bottom: 36px; }
body.specialist-page .specialist-education-heading h2 { max-width: 820px; }
body.specialist-page .specialist-education-layout { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); gap: 48px; align-items: start; }
body.specialist-page .diploma-gallery { display: block; min-width: 0; margin: 0; }
body.specialist-page .diploma-preview { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 16px 16px 16px 3px; background: #fff; box-shadow: 0 16px 34px rgba(38,52,58,.1); cursor: zoom-in; text-align: left; }
body.specialist-page .diploma-preview img { display: block; width: 100%; aspect-ratio: 1.42; object-fit: cover; }
body.specialist-page .diploma-preview span { position: absolute; right: 16px; bottom: 16px; left: 16px; display: block; padding: 11px 13px; border: 1px solid rgba(255,255,255,.52); border-radius: 8px 8px 8px 2px; background: rgba(255,253,249,.9); color: var(--graphite); font-size: 13px; font-weight: 700; line-height: 1.3; }
body.specialist-page .diploma-preview:hover img { transform: scale(1.015); }
body.specialist-page .diploma-preview img { transition: transform .25s ease; }
body.specialist-page .diploma-thumbnails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
body.specialist-page .diploma-thumbnail { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(127,148,123,.24); border-radius: 8px 8px 8px 2px; background: #fff; color: var(--graphite); cursor: zoom-in; text-align: left; }
body.specialist-page .diploma-thumbnail img { display: block; width: 100%; aspect-ratio: 1.42; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
body.specialist-page .diploma-thumbnail span { display: block; min-height: 34px; padding: 6px 7px 7px; color: var(--muted-green); font-size: 11px; font-weight: 700; line-height: 1.15; }
body.specialist-page .diploma-thumbnail:hover img,
body.specialist-page .diploma-thumbnail.is-active img { opacity: 1; }
body.specialist-page .diploma-thumbnail.is-active { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(215,123,94,.12); }
body.specialist-page .specialist-education-copy { min-width: 0; padding: 8px 0 0; }
body.specialist-page .education-entry { padding: 0 0 22px; border-bottom: 1px solid rgba(127,148,123,.25); }
body.specialist-page .education-entry + .education-entry { padding-top: 23px; }
body.specialist-page .education-entry h3,
body.specialist-page .qualification-list h3 { margin: 0 0 8px; color: var(--graphite); font-size: clamp(1.45rem, 2.3vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
body.specialist-page .education-entry p { margin: 0; color: var(--muted-green); font-size: 18px; line-height: 1.5; }
body.specialist-page .qualification-list { padding-top: 28px; }
body.specialist-page .qualification-list h3 { margin-bottom: 17px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
body.specialist-page .qualification-list ul { margin: 0; padding: 0; list-style: none; }
body.specialist-page .qualification-list li { position: relative; padding: 13px 0 13px 24px; border-top: 1px solid rgba(127,148,123,.2); color: var(--muted-green); font-size: 17px; line-height: 1.5; }
body.specialist-page .qualification-list li::before { position: absolute; top: 23px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); content: ""; }
body.specialist-page .diploma-lightbox[hidden] { display: none; }
body.specialist-page .diploma-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
body.specialist-page .diploma-lightbox-backdrop { position: absolute; inset: 0; background: rgba(38,52,58,.72); }
body.specialist-page .diploma-lightbox-dialog { position: relative; z-index: 1; max-width: min(94vw, 1040px); max-height: 92vh; padding: 16px; border-radius: 14px 14px 14px 3px; background: #fffdf9; box-shadow: 0 24px 60px rgba(38,52,58,.24); }
body.specialist-page .diploma-lightbox-dialog img { display: block; max-width: 100%; max-height: calc(92vh - 32px); object-fit: contain; }
body.specialist-page .diploma-lightbox-close { position: absolute; top: -15px; right: -15px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--coral); color: #fff; cursor: pointer; font-size: 27px; line-height: 1; }
body.gallery-is-open { overflow: hidden; }
body.specialist-page .specialist-principles { background: #fff; }
/* Единый вертикальный список образования: каждый пункт оформлен одинаково. */
body.specialist-page .education-records { display: grid; gap: 14px; max-width: 1040px; }
body.specialist-page .education-record { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: center; min-height: 166px; padding: 16px 20px 16px 16px; border: 1px solid rgba(127,148,123,.22); border-radius: 14px 14px 14px 3px; background: #fff; box-shadow: 0 10px 24px rgba(38,52,58,.05); }
body.specialist-page .diploma-record-thumb { display: block; width: 180px; padding: 0; overflow: hidden; border: 1px solid rgba(127,148,123,.28); border-radius: 8px 8px 8px 2px; background: #fff; cursor: zoom-in; line-height: 0; }
body.specialist-page .diploma-record-thumb img { display: block; width: 100%; aspect-ratio: 1.42; object-fit: cover; transition: transform .25s ease; }
body.specialist-page .diploma-record-thumb:hover img { transform: scale(1.025); }
body.specialist-page .education-record-copy { min-width: 0; }
body.specialist-page .education-record-copy h3 { margin: 0 0 8px; color: var(--graphite); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
body.specialist-page .education-record-copy p { max-width: 760px; margin: 0; color: var(--muted-green); font-size: 17px; line-height: 1.5; }
@media (max-width: 980px) {
  body.specialist-page .specialist-education-layout { grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 28px; }
}

@media (max-width: 760px) {
  body.specialist-page .specialist-education-layout { grid-template-columns: 1fr; gap: 28px; }
  body.specialist-page .specialist-education-copy { padding-top: 0; }
}
@media (max-width: 680px) {
  body.specialist-page .specialist-hero-note { font-size: 16px; }
  body.specialist-page .diploma-thumbnails { gap: 8px; }
  body.specialist-page .diploma-thumbnail span { font-size: 10px; }
  body.specialist-page .education-entry p,
  body.specialist-page .qualification-list li { font-size: 16px; }
  body.specialist-page .diploma-lightbox { padding: 16px; }
  body.specialist-page .education-record { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  body.specialist-page .diploma-record-thumb { width: min(100%, 230px); }
  body.specialist-page .education-record-copy p { font-size: 16px; }
}

/* Отзывы на главной: четыре карточки в ряд и единая карусель. */
body.homepage .reviews-section { padding-top: 95px; background: var(--milk); }
body.homepage .reviews-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
body.homepage .reviews-intro .section-heading { margin-bottom: 0; }
body.homepage .reviews-intro .eyebrow { margin-bottom: 14px; }
body.homepage .reviews-rating { display: flex; align-items: center; gap: 12px; padding: 13px 17px; border: 1px solid rgba(127,148,123,.35); border-radius: 14px 14px 14px 3px; background: var(--white); box-shadow: 0 10px 25px rgba(38,52,58,.05); }
body.homepage .reviews-rating-score { color: var(--graphite); font-size: 25px; line-height: 1; }
body.homepage .reviews-stars,
body.homepage .review-stars { color: var(--coral); font-size: 17px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
body.homepage .reviews-rating-caption { color: var(--muted-green); font-size: 13px; }
body.homepage .reviews-avito-logo { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #fff; object-fit: contain; }
body.homepage .reviews-carousel { position: relative; display: block; }
body.homepage .reviews-viewport { min-width: 0; overflow: hidden; padding: 4px 0 16px; }
body.homepage .reviews-track { display: flex; gap: 16px; transition: transform .35s ease; will-change: transform; }
body.homepage .review-card { display: flex; flex: 0 0 calc((100% - 48px) / 4); min-height: 265px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px; padding: 22px; border: 1px solid rgba(127,148,123,.28); border-radius: 16px 16px 16px 3px; background: var(--white); box-shadow: 0 12px 28px rgba(38,52,58,.06); }
body.homepage .review-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body.homepage .review-author { display: flex; min-width: 0; align-items: center; gap: 10px; }
body.homepage .review-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(127,148,123,.28); border-radius: 50%; background: #fff; }
body.homepage .review-avatar img { width: 25px; height: 24px; object-fit: contain; }
body.homepage .review-author strong,
body.homepage .review-author small { display: block; }
body.homepage .review-author strong { color: var(--graphite); font-size: 15px; line-height: 1.2; }
body.homepage .review-author small { margin-top: 4px; color: var(--muted-green); font-size: 11px; line-height: 1.2; }
body.homepage .review-card p { max-width: none; margin: 0; color: var(--muted-green); font-family: Roboto, Arial, sans-serif; font-size: 16px; font-style: normal; line-height: 1.55; }
body.homepage .reviews-arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(127,148,123,.42); border-radius: 50%; background: var(--white); color: var(--graphite); font-size: 23px; line-height: 1; transform: translateY(-50%); transition: background .2s ease, color .2s ease, opacity .2s ease; }
body.homepage .reviews-arrow-prev { left: -52px; visibility: hidden; opacity: 0; pointer-events: none; }
body.homepage .reviews-arrow-next { right: -24px; }
body.homepage .reviews-arrow-prev:disabled { visibility: hidden; opacity: 0; pointer-events: none; }
body.homepage .reviews-carousel.is-shifted .reviews-arrow-prev { visibility: visible; opacity: 1; pointer-events: auto; }
body.homepage .reviews-arrow:hover:not(:disabled) { background: var(--coral); color: var(--white); }
body.homepage .reviews-arrow:disabled { cursor: default; opacity: .35; }
body.homepage .reviews-footer { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 5px; color: var(--muted-green); font-size: 13px; text-align: right; }
@media (max-width: 1179px) {
  body.homepage .review-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 760px) {
  body.homepage .reviews-intro { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 28px; }
  body.homepage .reviews-rating { width: 100%; }
  body.homepage .reviews-carousel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0; }
  body.homepage .reviews-viewport { grid-column: 1 / -1; grid-row: 1; }
  body.homepage .review-card { flex-basis: 100%; min-height: 235px; padding: 20px; }
  body.homepage .review-card .review-avatar,
  body.homepage .review-card .review-author > span,
  body.homepage .review-card .review-stars { margin-top: 0; }
  body.homepage .review-card .review-avatar { display: grid; }
  body.homepage .review-card .review-author > span { display: block; }
  body.homepage .review-card .review-stars { display: inline; }
  body.homepage .reviews-arrow { position: static; grid-row: 2; width: 36px; height: 36px; margin-top: 8px; font-size: 20px; transform: none; }
  body.homepage .reviews-arrow-prev { left: auto; grid-column: 1; justify-self: start; }
  body.homepage .reviews-arrow-next { right: auto; grid-column: 2; justify-self: end; }
  body.homepage .reviews-footer { align-items: flex-end; flex-direction: column; gap: 8px; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.homepage .reviews-track { transition: none; }
}

/* Кнопка мобильного меню скрыта на широких экранах. */
.menu-toggle { display: none; }

/* Финальная мобильная настройка: компактная шапка, более спокойная типографика
   и короткий переход от breadcrumbs к hero на внутренних страницах. */
@media (max-width: 680px) {
  body.homepage .header-inner,
  body.service-page .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: 64px;
    padding: 8px 0 7px;
    position: relative;
  }

  /* На мобильном ссылки складываются в раскрывающееся меню под бургером. */
  body.homepage .menu-toggle,
  body.service-page .menu-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 9px 8px;
    border: 1px solid rgba(127,148,123,.35);
    border-radius: 9px 9px 9px 2px;
    background: var(--white);
    color: var(--graphite);
    cursor: pointer;
  }

  body.homepage .menu-toggle span,
  body.service-page .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  body.homepage .header-inner .main-nav,
  body.service-page .header-inner .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 7px 0 0;
    padding: 5px 0 0;
    overflow: visible;
    border-top: 1px solid rgba(127,148,123,.18);
  }

  body.homepage .header-inner.is-menu-open .main-nav,
  body.service-page .header-inner.is-menu-open .main-nav {
    display: flex;
  }

  body.homepage .main-nav a,
  body.service-page .main-nav a {
    flex: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(127,148,123,.13);
    font-size: 18px;
    line-height: 1.1;
  }

  body.homepage .header-inner.is-menu-open .menu-toggle span:nth-child(1),
  body.service-page .header-inner.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.homepage .header-inner.is-menu-open .menu-toggle span:nth-child(2),
  body.service-page .header-inner.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.homepage .header-inner.is-menu-open .menu-toggle span:nth-child(3),
  body.service-page .header-inner.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.homepage .main-nav,
  body.service-page .main-nav {
    gap: 9px;
  }

  body.homepage .header-inner:not(.is-menu-open) .main-nav a,
  body.service-page .header-inner:not(.is-menu-open) .main-nav a {
    font-size: 12px;
  }

  body.homepage h1 {
    font-size: clamp(1.65rem, 7.35vw, 2.28rem);
  }

  body.homepage h2,
  body.service-page h2 {
    font-size: clamp(1.68rem, 7.7vw, 2.8rem);
  }

  body.service-page h1 {
    font-size: clamp(1.75rem, 7.7vw, 2.45rem);
  }

  body.service-page .service-hero {
    padding-top: 12px;
  }

  /* Мишка выступает из hero в область преимуществ и не обрезается фоном. */
  body.homepage .hero {
    z-index: 2;
    overflow: visible;
  }

  body.homepage .facts-section {
    position: relative;
    z-index: 1;
  }

  /* У всех трёх преимуществ одинаковое расстояние от края контейнера. */
  body.homepage .fact,
  body.homepage .fact:first-child {
    padding-right: 34px;
    padding-left: 34px;
  }

  /* Декор блока «Спокойно и по шагам» уходит ниже текста на всех услугах. */
  body.service-page .service-process-decor {
    top: calc(100% + 18px);
    bottom: auto;
  }
}

/* Hero: учитываем внутренние поля строки надзаголовка, чтобы интервалы были равны и визуально. */
@media (max-width: 680px) {
  body.homepage .hero {
    padding-top: 20px;
  }

  body.homepage .hero-copy {
    padding-top: 0;
  }

  body.service-page .service-hero {
    padding-top: 20px;
  }

  body.service-page .service-hero-copy {
    padding-top: 0;
  }

  body.service-page .prices-intro,
  body.service-page .faq-intro,
  body.service-page .contacts-intro {
    padding-top: 23px;
  }
}

/* Приоритет компактной формы над стилями отдельных страниц. */
body.homepage .lead-modal-dialog .service-kicker,
body.service-page .lead-modal-dialog .service-kicker { margin: 0 0 8px; font-size: 11px; line-height: 1.2; }
body.homepage .lead-modal-dialog h2,
body.service-page .lead-modal-dialog h2 { margin: 0 42px 8px 0; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.08; }
body.homepage .lead-modal-intro,
body.service-page .lead-modal-intro { margin: 0 0 16px; font-size: 15px; line-height: 1.45; }
body.homepage .lead-modal .lead-form > p,
body.service-page .lead-modal .lead-form > p { margin: 0 0 10px; }
body.homepage .lead-modal .lead-form label,
body.service-page .lead-modal .lead-form label { margin-bottom: 5px; font-size: 14px; line-height: 1.25; }
body.homepage .lead-modal .lead-form textarea,
body.service-page .lead-modal .lead-form textarea { min-height: 82px; }
body.homepage .lead-modal .lead-form .consent,
body.service-page .lead-modal .lead-form .consent { margin-top: 12px; }
body.homepage .lead-modal .lead-form .consent label,
body.service-page .lead-modal .lead-form .consent label { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; }
body.homepage .lead-modal .lead-form .button,
body.service-page .lead-modal .lead-form .button { min-height: 52px; margin-top: 3px; }
@media (max-width: 680px) {
  body.homepage .lead-modal,
  body.service-page .lead-modal { align-items: center; padding: 7px; }
  body.homepage .lead-modal-dialog,
  body.service-page .lead-modal-dialog { padding: 14px 16px; }
  body.homepage .lead-modal-dialog .service-kicker,
  body.service-page .lead-modal-dialog .service-kicker { margin: 0 36px 4px 0; font-size: 10px; line-height: 1.1; }
  body.homepage .lead-modal-dialog h2,
  body.service-page .lead-modal-dialog h2 { margin: 0 36px 6px 0; font-size: 25px; line-height: 1.03; }
  body.homepage .lead-modal-intro,
  body.service-page .lead-modal-intro { margin-bottom: 9px; font-size: 14px; line-height: 1.3; }
  body.homepage .lead-modal .lead-form > p,
  body.service-page .lead-modal .lead-form > p { margin-bottom: 7px; }
  body.homepage .lead-modal .lead-form label,
  body.service-page .lead-modal .lead-form label { margin-bottom: 4px; font-size: 14px; line-height: 1.15; }
  body.homepage .lead-modal .lead-form input:not([type="checkbox"]),
  body.service-page .lead-modal .lead-form input:not([type="checkbox"]) { min-height: 43px; }
  body.homepage .lead-modal .lead-form textarea,
  body.service-page .lead-modal .lead-form textarea { min-height: 51px; height: 51px; resize: none; }
  body.homepage .lead-modal .lead-form .consent,
  body.service-page .lead-modal .lead-form .consent { display: none; }
  body.homepage .lead-modal .lead-form .button,
  body.service-page .lead-modal .lead-form .button { min-height: 50px; margin-top: 0; padding: 11px 16px; font-size: 16px; }
}

/* Мобильная шапка и защита от горизонтального сдвига страницы. */
@media (max-width: 680px) {
  html { overflow-x: clip; overscroll-behavior-x: none; }
  body.homepage,
  body.service-page { width: 100%; overflow-x: clip; overscroll-behavior-x: none; }

  body.homepage .header-inner,
  body.service-page .header-inner {
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 62px;
  }

  body.homepage .brand,
  body.service-page .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 9px;
  }

  body.homepage .brand-mark,
  body.service-page .brand-mark {
    /* С учётом наклона видимый габарит 38px-плашки равен 41px бургеру. */
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px 11px 11px 3px;
    font-size: 21px;
  }

  body.homepage .brand-copy,
  body.service-page .brand-copy { min-width: 0; overflow: visible; }

  body.homepage .brand-copy strong,
  body.service-page .brand-copy strong {
    overflow: visible;
    font-size: clamp(13.835745px, 4.59095175vw, 16.351335px);
    line-height: 1.12;
    letter-spacing: -.035em;
    text-overflow: clip;
    white-space: normal;
  }

  body.homepage .brand-copy small,
  body.service-page .brand-copy small {
    overflow: hidden;
    font-size: 9px;
    letter-spacing: .12em;
    text-overflow: clip;
    white-space: nowrap;
  }

  body.homepage .menu-toggle,
  body.service-page .menu-toggle {
    display: flex;
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: 0;
    padding: 0;
  }

  body.homepage .menu-toggle span,
  body.service-page .menu-toggle span {
    width: 22px;
    flex: 0 0 2px;
  }

  /* Навигация раскрывается под шапкой, а не становится третьим элементом строки. */
  body.homepage .header-inner .main-nav,
  body.service-page .header-inner .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    width: auto;
    margin: 0;
    padding: 6px 18px 10px;
    background: rgba(250, 248, 244, .98);
    box-shadow: 0 12px 20px rgba(26, 39, 43, .12);
  }
}

/* Правая колонка контактов повторяет ширину и выравнивание карточки формы. */
@media (min-width: 681px) {
  body.contacts-page .contacts-intro .service-two-col {
    grid-template-columns: .9fr 1.1fr;
  }
}

/* На телефоне используется отдельный кадр hero по ширине кнопок. */
body.homepage .hero-photo-mobile { display: none; }
@media (max-width: 680px) {
  body.homepage .hero-photo-wrap { width: 100%; }
  body.homepage .hero-photo-desktop { display: none; }
  body.homepage .hero-photo-mobile { display: block; }
  body.homepage .scribble-one { display: none; }
  body.homepage .hero-visual { margin-top: -2px; }
  body.homepage .facts-section { margin-top: 15px; }
  body.homepage .process-section .notice { margin-top: 35px; }
  body.homepage .process-decor { bottom: -68px; }
}

/* Политика: заголовок и текстовая иерархия юридического документа. */
body.privacy-page .privacy-intro h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}
body.privacy-page .privacy-card h2 {
  margin: 42px 0 15px;
  color: var(--graphite);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
}
body.privacy-page .privacy-card h2:first-child { margin-top: 0; }
body.privacy-page .privacy-card p + h2,
body.privacy-page .privacy-card ul + h2 { margin-top: 42px; }
body.privacy-page .privacy-card p + p { margin-top: 14px; }
body.privacy-page .privacy-card ul {
  margin: 12px 0 22px;
  padding-left: 24px;
  color: var(--muted-green);
}
body.privacy-page .privacy-card li { margin: 7px 0; line-height: 1.55; }
body.privacy-page .privacy-card a { color: var(--coral); font-weight: 700; }
@media (max-width: 680px) {
  body.privacy-page .privacy-intro h1 {
    font-size: clamp(1.68rem, 7.7vw, 2.8rem);
  }
  body.privacy-page .privacy-card h2 {
    margin-top: 34px;
    font-size: 22px;
  }
}

/* Уведомление о cookie в общей визуальной системе сайта. */
.cookie-notice {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(640px, calc(100vw - 48px));
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(127, 148, 123, .38);
  border-radius: 18px 18px 18px 4px;
  background: #fffdf9;
  color: #26343a;
  box-shadow: 0 18px 48px rgba(38, 52, 58, .18);
  font: 14px/1.5 "Trebuchet MS", Arial, sans-serif;
}
.cookie-notice__text { margin: 0; }
.cookie-notice__text a {
  color: #0e4b4f;
  font-weight: 400;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cookie-notice__text a:hover { color: #092f32; }
.cookie-notice__dismiss {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid #d77b5e;
  border-radius: 999px;
  background: #d77b5e;
  color: #fffdf9;
  font: inherit;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cookie-notice__dismiss:hover { border-color: #bd6247; background: #bd6247; }
.cookie-notice__dismiss:focus-visible,
.cookie-notice__text a:focus-visible {
  outline: 3px solid #176b6f;
  outline-offset: 3px;
}
.cookie-notice__dismiss:active { transform: translateY(1px); }
@media (max-width: 680px) {
  .cookie-notice { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice__dismiss { transition: none; }
}

.cookie-notice[hidden] { display: none; }

/* Кликабельный телефон в общем футере сайта. */
.footer-brand .footer-phone,
.footer-brand .footer-max-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: #d77b5e;
  color: #fffdf9;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
body.homepage .hero-call-button .phone-icon,
.footer-brand .footer-phone .phone-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-brand .footer-phone:hover,
.footer-brand .footer-max-link:hover { background: #bd6247; color: #fffdf9; }
.footer-brand .footer-phone:focus-visible,
.footer-brand .footer-max-link:focus-visible { outline: 3px solid #176b6f; outline-offset: 3px; }
.footer-brand .footer-phone:active,
.footer-brand .footer-max-link:active { transform: translateY(1px); }
@media (min-width: 681px) {
  .footer-brand .footer-phone,
  .footer-brand .footer-max-link {
    gap: 6px;
    padding: 9px 13.5px;
    font-size: 16.5px;
  }
}
@media (max-width: 680px) {
  .footer-brand .footer-phone,
  .footer-brand .footer-max-link { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-brand .footer-phone,
  .footer-brand .footer-max-link { transition: none; }
}

/* Библиотека статей: левая колонка и типографика по образцу FAQ. */
body.speech-library-page .speech-library-intro { padding: 82px 0 38px; background: #fff; }
body.speech-library-page .speech-library-intro > .container,
body.speech-library-page .speech-article-list > .container,
body.speech-article-page .speech-article-header > .container,
body.speech-article-page .speech-article-content > .container { max-width: none; }
body.service-page.speech-library-page .speech-library-intro > .container,
body.service-page.speech-library-page .speech-article-list > .container,
body.service-page.speech-article-page .speech-article-header > .container,
body.service-page.speech-article-page .speech-article-content > .container {
  width: min(calc(100% - 64px), var(--max-service));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}
body.speech-library-page .speech-library-intro > .container,
body.speech-library-page .speech-article-list > .container,
body.speech-article-page .speech-article-header > .container { max-width: none; }
body.speech-library-page .speech-library-intro h1,
body.speech-article-page .speech-article-header h1 {
  width: min(900px, 100%);
  max-width: none;
  margin: 0 0 20px;
  color: var(--graphite);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
}
body.speech-library-page .speech-library-intro .lead { max-width: 760px; margin-left: 0; }
body.speech-library-page .speech-article-list { padding: 12px 0 88px; background: #fff; }
body.service-page.speech-library-page .speech-article-list-inner { max-width: 900px; margin: 0; border-top: 1px solid var(--sand); }
body.speech-library-page .speech-article-link {
  display: block;
  padding: 25px 0 27px;
  border-bottom: 1px solid var(--sand);
  color: var(--graphite);
  text-decoration: none;
}
body.speech-library-page .speech-article-link:hover .speech-article-title { color: var(--coral); }
body.speech-library-page .speech-article-kicker,
body.speech-article-page .speech-article-kicker {
  margin: 0 0 8px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.speech-library-page .speech-article-title {
  display: block;
  max-width: 820px;
  font: 700 clamp(1.25rem, 2.2vw, 1.55rem)/1.3 Roboto, Arial, sans-serif;
  transition: color .18s ease;
}
body.speech-article-page .speech-article-header { padding: 54px 0 22px; background: #fff; }
body.speech-article-page .speech-article-header h1 { margin-bottom: 18px; }
body.speech-article-page .speech-article-kicker,
body.speech-article-page .speech-article-header h1,
body.speech-article-page .speech-article-byline { max-width: 900px; margin-left: 0; }
body.speech-article-page .speech-article-byline {
  margin: 0;
  color: var(--muted-green);
  font-size: 14px;
}
body.speech-article-page .speech-article-byline a { color: var(--coral); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.speech-article-page .speech-article-content { padding: 10px 0 88px; background: #fff; }
body.service-page.speech-article-page .speech-article-body { max-width: 900px; margin: 0; color: var(--graphite); font-size: 17px; line-height: 1.75; }
body.speech-article-page .speech-article-body > :first-child { margin-top: 0; }
body.speech-article-page .speech-article-body p { max-width: 850px; margin: 0 0 20px; }
body.speech-article-page .speech-article-body h2 {
  margin: 46px 0 17px;
  color: var(--graphite);
  font: 400 clamp(1.45rem, 2.55vw, 2rem)/1.16 Roboto, Arial, sans-serif;
  scroll-margin-top: 24px;
}
body.speech-article-page .speech-article-body h3 {
  margin: 30px 0 12px;
  color: #6a885f;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}
body.speech-article-page .speech-article-body ul,
body.speech-article-page .speech-article-body ol {
  max-width: 850px;
  margin: 8px 0 26px;
  padding: 20px 26px 20px 48px;
  border-radius: 14px 14px 14px 3px;
  background: #f4f0eb;
  color: var(--muted-green);
}
body.speech-article-page .speech-article-body li { padding-left: 3px; }
body.speech-article-page .speech-article-body li + li { margin-top: 10px; }
body.speech-article-page .speech-article-body a { color: var(--coral); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.speech-article-page .speech-article-body strong { color: var(--graphite); }
body.speech-article-page .speech-article-body img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: 14px 14px 14px 3px; }
body.speech-article-page .speech-article-body figure { margin: 30px 0; }
body.speech-article-page .speech-article-body figcaption { margin-top: 9px; color: var(--muted-green); font-size: 14px; text-align: center; }
@media (max-width: 680px) {
  body.service-page.speech-library-page .speech-library-intro > .container,
  body.service-page.speech-library-page .speech-article-list > .container,
  body.service-page.speech-article-page .speech-article-header > .container,
  body.service-page.speech-article-page .speech-article-content > .container { width: min(calc(100% - 36px), var(--max-service)); }
  body.speech-library-page .speech-library-intro { padding: 42px 0 22px; }
  body.speech-library-page .speech-article-list { padding: 4px 0 54px; }
  body.speech-library-page .speech-article-link { padding: 21px 0 23px; }
  body.speech-library-page .speech-library-intro h1,
  body.speech-article-page .speech-article-header h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  body.speech-article-page .speech-article-header { padding: 30px 0 16px; }
  body.speech-article-page .speech-article-content { padding: 8px 0 58px; }
  body.speech-article-page .speech-article-body { font-size: 16px; line-height: 1.7; }
  body.speech-article-page .speech-article-body h2 { margin-top: 36px; font-size: 1.4rem; }
  body.speech-article-page .speech-article-body h3 { margin-top: 25px; font-size: 1.1rem; }
  body.speech-article-page .speech-article-body ul,
  body.speech-article-page .speech-article-body ol { padding: 17px 18px 17px 38px; }
}
@media (prefers-reduced-motion: reduce) {
  body.speech-library-page .speech-article-title { transition: none; }
}
