:root {
  --paper: #f7f2e8;
  --surface: #fffcf7;
  --ink: #2d302c;
  --green: #284a3a;
  --green-dark: #1e382c;
  --wine: #7a3f47;
  --sage: #e7ebdd;
  --line: #cec7b8;
  --shadow: 0 24px 70px rgba(45, 48, 44, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.review-banner {
  padding: 8px 20px;
  color: #fff;
  background: var(--wine);
  text-align: center;
  font-size: 14px;
  letter-spacing: .02em;
}
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(247, 242, 232, .94); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 32px; }
.identity { display: grid; margin-right: auto; text-decoration: none; line-height: 1.25; }
.identity strong { font-family: var(--serif); font-size: 20px; }
.identity span { font-size: 13px; color: #62665f; }
nav { display: flex; gap: 28px; }
nav a, .text-link { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.button, button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font: 700 15px/1.25 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}
.button:hover, button:hover { background: var(--green-dark); transform: translateY(-1px); }
.button.secondary { color: var(--green); background: transparent; }
.button.secondary:hover { color: #fff; background: var(--green); }
.button.unavailable { border-color: #777b74; color: #575b55; background: transparent; cursor: not-allowed; }
.hero { padding: clamp(48px, 6vw, 82px) 0 clamp(58px, 7vw, 94px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); grid-template-areas: "copy portrait" "copy offer"; column-gap: clamp(34px, 6vw, 80px); row-gap: 34px; align-items: start; }
.hero-copy { grid-area: copy; }
.hero-grid.without-portrait { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); grid-template-areas: "copy offer"; }
.eyebrow, .section-number { margin: 0 0 18px; color: var(--wine); font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-free-kicker { width: fit-content; display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 14px 8px 8px; border: 1px solid #bfc9b8; border-radius: 999px; color: var(--green-dark); background: #eef2e8; font-size: 14px; font-weight: 800; }
.hero-free-kicker span { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--green); font-size: 13px; white-space: nowrap; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 780px; font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(34px, 4.5vw, 56px); }
.lead { max-width: 740px; margin: 28px 0 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.58; }
.hero-side { grid-area: offer; padding: 27px; border-top: 3px solid var(--wine); background: var(--surface); box-shadow: var(--shadow); }
.intro-offer { max-width: 650px; display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; margin: 0 0 25px; padding: 18px; border: 1px solid #bfc9b8; border-radius: 10px; background: #eef2e8; }
.intro-offer .free-badge { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font: 700 23px/1 var(--serif); white-space: nowrap; box-shadow: 0 10px 26px rgba(40,74,58,.18); }
.intro-offer strong { display: block; color: var(--green-dark); font-family: var(--serif); font-size: 24px; font-weight: 700; }
.intro-offer div span { display: block; margin-top: 5px; color: #575b55; font-size: 14px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.text-link { display: inline-block; color: var(--green); font-weight: 700; }
.format-line { margin: 25px 0 0; color: #565a54; font-size: 15px; font-weight: 700; }
.trust-list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.trust-list li { position: relative; padding-left: 24px; color: #4f544d; font-size: 15px; }
.trust-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wine); font-weight: 800; }
.teacher-fact { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: #62665f; font: 400 15px/1.5 var(--serif); }
.portrait { grid-area: portrait; position: relative; margin: 0; }
.portrait::before { content: ""; position: absolute; inset: -18px 18px 76px -18px; z-index: -1; border: 1px solid var(--wine); }
.portrait-placeholder, .portrait img { width: 100%; aspect-ratio: 4 / 5; display: block; border-radius: 3px; }
.portrait img { height: auto; aspect-ratio: auto; }
.portrait-placeholder {
  display: grid;
  place-content: center;
  padding: 32px;
  color: #646861;
  background: var(--sage);
  text-align: center;
  border: 1px solid #c8cebd;
}
.portrait-placeholder span:first-child { font: 32px/1 var(--serif); color: var(--green); }
.portrait-placeholder small { max-width: 220px; margin-top: 16px; font-size: 14px; }
.portrait figcaption { display: grid; padding: 19px 4px 0; line-height: 1.35; }
.portrait figcaption strong { font: 22px/1.3 var(--serif); }
.portrait figcaption span { color: #646861; font-size: 14px; }
.students-section { padding: clamp(62px, 7vw, 92px) 0; border-top: 1px solid var(--line); background: var(--surface); }
.students-heading h2 { max-width: 690px; }
.student-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.student-card { min-height: 230px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.student-card:last-child { background: var(--sage); border-color: #c8cebd; }
.student-grades { margin: 0 0 auto; color: var(--wine); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.student-card h3 { margin: 34px 0 14px; font: 400 27px/1.2 var(--serif); }
.student-card p:last-child { margin: 0; color: #5c6059; }
.parents-section, .about-section, .reviews-section, .prices-section, .contact-section { padding: clamp(62px, 7vw, 96px) 0; }
.parents-section { border-top: 1px solid var(--line); background: var(--green); color: #fff; }
.parents-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(44px, 8vw, 110px); align-items: start; }
.parents-section .section-number { color: #e0b7bb; }
.parents-heading h2 { max-width: 540px; }
.parents-heading > p:last-child { max-width: 540px; margin: 28px 0 0; color: #d9e2dc; font-size: 18px; }
.parent-points { display: grid; border-top: 1px solid rgba(255,255,255,.3); }
.parent-point { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.parent-point > span { color: #e0b7bb; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.parent-point h3 { margin: 0 0 7px; font: 400 25px/1.22 var(--serif); }
.parent-point p { margin: 0; color: #d9e2dc; font-size: 16px; }
.about-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(44px, 9vw, 120px); }
.about-copy { max-width: 720px; }
.about-copy p { margin: 0 0 1em; font-size: clamp(18px, 2vw, 21px); }
.about-copy .about-highlight { width: fit-content; margin: 8px 0 28px; padding: 14px 18px; border-left: 3px solid var(--green); color: var(--green-dark); background: var(--sage); font-size: clamp(17px, 1.8vw, 20px); }
.about-copy .about-highlight strong { font-weight: 800; }
.method-block { margin-top: clamp(38px, 5vw, 58px); }
.method-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: clamp(30px, 7vw, 90px); align-items: end; margin-bottom: 28px; padding-top: 30px; border-top: 1px solid var(--line); }
.method-label { margin: 0 0 10px; color: var(--wine); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.method-heading h3 { max-width: 620px; margin: 0; font: 400 clamp(27px, 3.2vw, 40px)/1.15 var(--serif); }
.method-heading > p { max-width: 520px; margin: 0; color: #5c6059; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; counter-reset: steps; list-style: none; }
.method-steps li { min-height: 250px; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--green); background: var(--surface); }
.method-steps li:last-child { background: var(--sage); border-color: #c8cebd; border-top-color: var(--wine); }
.method-steps li::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 34px; color: var(--wine); font: 800 12px/1 var(--sans); }
.method-steps h4 { margin: 0 0 14px; font: 400 23px/1.23 var(--serif); }
.method-steps p { margin: 0; color: #5c6059; font-size: 15px; line-height: 1.55; }
.reviews-section { border-block: 1px solid var(--line); background: var(--surface); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.section-heading-row > p { max-width: 430px; margin: 0; color: #5c6059; }
.empty-review {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  max-width: 760px;
  margin-top: 48px;
  padding: 27px 30px;
  border-left: 3px solid var(--wine);
  background: var(--paper);
}
.empty-review .quote-mark { color: var(--wine); font: 54px/.8 var(--serif); }
.empty-review strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.empty-review p { margin: 0; color: #5c6059; }
.profi-proof { display: grid; grid-template-columns: 1.4fr .6fr .6fr auto; gap: 24px; align-items: center; margin-top: 42px; padding: 22px 24px; border: 1px solid #d8dfdd; border-radius: 14px; color: #173f43; background: #f4fbfa; box-shadow: 0 16px 40px rgba(27,69,71,.08); }
.profi-wordmark { font-size: 21px; font-weight: 900; letter-spacing: -.04em; }
.profi-wordmark span { color: #db553a; }
.profi-stat { display: grid; line-height: 1.05; }
.profi-stat strong { font: 700 29px/1 var(--serif); }
.profi-stat small { margin-top: 5px; color: #647476; font-size: 12px; }
.profi-badge { padding: 8px 12px; border-radius: 999px; color: #1e5b40; background: #dcf2e3; font-size: 13px; font-weight: 800; white-space: nowrap; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 22px; margin-top: 24px; }
.review-source-note { margin-top: 18px; color: #68706a; font-size: 13px; }
.review-card { position: relative; display: flex; min-height: 360px; flex-direction: column; overflow: hidden; padding: 28px; border: 1px solid #d8d2c5; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(45,48,44,.08); }
.review-card::after { content: "“"; position: absolute; right: 18px; bottom: -28px; color: rgba(122,63,71,.08); font: 150px/1 var(--serif); }
.review-card-head { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #ebe6dc; }
.review-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
.review-card-head > div { display: grid; line-height: 1.3; }
.review-card-head strong { font-size: 15px; }
.review-card-head div span { color: #71766f; font-size: 12px; }
.review-stars { color: #c37a22; font-size: 14px; letter-spacing: 1px; }
.review-card blockquote { position: relative; z-index: 1; margin: 24px 0 0; font: 400 18px/1.65 var(--serif); }
.review-card footer { position: relative; z-index: 1; margin-top: auto; padding-top: 24px; color: #62665f; font-size: 13px; }
.more-reviews { margin-top: 24px; }
.more-reviews > summary { width: fit-content; min-height: 48px; display: flex; align-items: center; padding: 11px 18px; border: 1px solid var(--green); border-radius: 7px; color: var(--green); font-weight: 700; cursor: pointer; list-style: none; }
.more-reviews > summary::-webkit-details-marker { display: none; }
.more-reviews > summary::after { content: "+"; margin-left: 12px; font: 24px/1 var(--serif); }
.more-reviews[open] > summary::after { content: "−"; }
.more-reviews .when-open { display: none; }
.more-reviews[open] .when-closed { display: none; }
.more-reviews[open] .when-open { display: inline; }
.more-reviews > .review-grid { margin-top: 24px; }
.sample-note { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; margin-top: 42px; padding: 16px 20px; border-left: 3px solid var(--wine); background: var(--paper); }
.sample-note strong { font: 400 20px/1.3 var(--serif); }
.sample-note span { max-width: 690px; color: #5c6059; font-size: 14px; }
.message-example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.message-example { position: relative; overflow: hidden; border: 1px solid #c8d0c6; border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(45, 48, 44, .09); }
.demo-label { padding: 8px 14px; color: #fff; background: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.message-appbar { display: flex; align-items: center; gap: 11px; padding: 14px 15px; border-bottom: 1px solid #d8ded6; background: #fff; }
.message-appbar > div { display: grid; min-width: 0; line-height: 1.32; }
.message-appbar strong { font-size: 14px; }
.message-appbar div span { overflow: hidden; color: #6d726b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.message-menu { margin-left: auto; color: #747a72; font-size: 16px; letter-spacing: 2px; }
.message-avatar { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font: 700 15px/1 var(--sans); }
.chat-surface { min-height: 310px; display: flex; flex-direction: column; align-items: flex-end; padding: 18px 15px 22px; background-color: #e9eee7; background-image: radial-gradient(rgba(40,74,58,.055) 1px, transparent 1px); background-size: 16px 16px; }
.chat-date { align-self: center; margin-bottom: 18px; padding: 4px 10px; border-radius: 999px; color: #667067; background: rgba(255,255,255,.78); font-size: 11px; }
.message-bubble { position: relative; max-width: 94%; padding: 16px 17px 10px; border-radius: 16px 16px 4px 16px; background: #fff; box-shadow: 0 8px 24px rgba(45, 48, 44, .08); }
.message-bubble::after { content: ""; position: absolute; right: -6px; bottom: 0; border: 7px solid transparent; border-bottom-color: #fff; transform: rotate(45deg); }
.message-bubble p { margin: 0; font-size: 15px; line-height: 1.55; }
.message-meta { display: block; margin-top: 8px; color: #7b827a; font-size: 10px; text-align: right; }
.message-meta span { color: #4e806a; letter-spacing: -2px; }
.message-example footer { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; color: #6e736c; background: #fff; font-size: 11px; line-height: 1.35; }
.message-example:nth-child(2) .message-avatar { background: #3f6781; }
.message-example:nth-child(2) .chat-surface { background-color: #e7edf0; background-image: radial-gradient(rgba(63,103,129,.055) 1px, transparent 1px); }
.message-example:nth-child(3) .message-avatar { background: var(--wine); }
.prices-section { background: var(--green); color: #fff; }
.prices-section .section-number { color: #e0b7bb; }
.prices-section .section-heading-row > p { color: #d5ded7; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.free-price-note { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 42px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.07); }
.free-price-note strong { display: flex; align-items: center; gap: 14px; font: 700 24px/1.25 var(--serif); }
.free-price-note strong b { flex: 0 0 auto; min-width: max-content; padding: 7px 11px; border-radius: 7px; color: var(--green); background: #fff; font: 800 22px/1 var(--sans); white-space: nowrap; }
.free-price-note span { color: #d8e2db; }
.price-card { display: flex; min-height: 340px; flex-direction: column; padding: clamp(28px, 4vw, 42px); border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.045); }
.price-card h3 { margin: 0; font: 400 31px/1.2 var(--serif); }
.price-value { margin: 22px 0 0; font: 400 clamp(35px, 4vw, 52px)/1.1 var(--serif); }
.price-duration { margin: 4px 0 0; color: #ced9d2; font-size: 14px; }
.price-description { max-width: 420px; margin: 30px 0; color: #e5ebe7; }
.price-card .button { align-self: flex-start; margin-top: auto; border-color: #fff; background: #fff; color: var(--green); }
.price-card .button:hover { background: var(--paper); }
.price-card .button.unavailable { border-color: rgba(255,255,255,.48); color: #e4ebe7; background: transparent; }
.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 9vw, 120px); }
.contact-main h2 { max-width: 570px; }
.contact-lead { max-width: 620px; margin: 28px 0; font-size: clamp(18px, 2vw, 21px); }
.contact-status { max-width: 620px; margin-top: 24px; padding: 15px 18px; color: #5b373c; background: #f1dfe0; border-left: 3px solid var(--wine); font-size: 14px; }
.phone-readable { margin: 20px 0 0; font: 400 24px/1.3 var(--serif); }
.faq-list h3 { margin: 0 0 20px; font: 400 27px/1.2 var(--serif); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--wine); font: 27px/1 var(--serif); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 34px 20px 0; color: #5c6059; }
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner > div { display: grid; }
.footer-inner strong { font-family: var(--serif); font-size: 19px; }
.footer-inner span { color: #656961; font-size: 13px; }
.footer-inner a { font-weight: 700; text-underline-offset: 5px; }
.mobile-contact-bar { display: none; }
.mobile-contact-bar.single { grid-template-columns: 1fr; }

@media (max-width: 820px) {
  nav { display: none; }
  .header-inner { min-height: 72px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "portrait" "offer"; }
  .hero-grid.without-portrait { grid-template-columns: 1fr; grid-template-areas: "copy" "offer"; }
  .hero-side { max-width: 680px; }
  .hero-copy { max-width: 720px; }
  .portrait { width: min(100%, 460px); margin-inline: auto; }
  .parents-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .method-heading { grid-template-columns: 1fr; align-items: start; }
  .student-grid { grid-template-columns: 1fr; }
  .student-card { min-height: 0; }
  .section-heading-row { display: grid; gap: 24px; }
  .review-grid { grid-template-columns: 1fr; }
  .profi-proof { grid-template-columns: 1fr 1fr; }
  .profi-wordmark { grid-column: 1 / -1; }
  .message-example-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, 1160px); }
  .site-header .button { min-width: 48px; padding-inline: 14px; font-size: 0; }
  .site-header .button::after { content: "Связаться"; font-size: 14px; }
  .identity strong { font-size: 18px; }
  .identity span { display: none; }
  h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero { padding-top: 48px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .portrait::before { inset: -10px 10px 72px -10px; }
  .price-grid, .method-steps { grid-template-columns: 1fr; }
  .method-block { padding: 28px 22px; }
  .method-steps { row-gap: 12px; }
  .method-steps li { min-height: 0; }
  .free-price-note { align-items: flex-start; flex-direction: column; gap: 5px; }
  .intro-offer { grid-template-columns: 62px 1fr; padding: 15px; }
  .intro-offer .free-badge { width: 62px; height: 62px; font-size: 19px; }
  .intro-offer strong { font-size: 21px; }
  .profi-proof { gap: 16px; padding: 19px; }
  .profi-badge { justify-self: start; }
  .review-card-head { grid-template-columns: 44px 1fr; }
  .review-stars { grid-column: 2; }
  .price-card { min-height: 310px; }
  .empty-review { grid-template-columns: 1fr; padding: 23px; }
  .empty-review .quote-mark { height: 24px; }
  .sample-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .footer-inner { align-items: start; }
  body.has-mobile-contact { padding-bottom: 82px; }
  .mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255,252,247,.96);
    transform: translateY(110%);
    transition: transform 200ms ease;
  }
  .mobile-contact-bar.is-visible { transform: translateY(0); }
  .mobile-contact-bar .button { min-height: 48px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
