/* Методи, формат, освіта, публікації */
.hero-hook {
  font-family: Unbounded, sans-serif;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy, #111c2e);
  margin: 14px 0 18px;
}
.hero-hook em { font-style: normal; color: var(--teal, #167d78); }

.methods, .formats, .edu, .media { padding-top: 90px; padding-bottom: 90px; }
.methods h2, .formats h2, .edu h2, .media h2 { margin: 12px 0 18px; color: var(--navy, #111c2e); }
.methods .section-lead { color: var(--muted, #596778); max-width: 760px; }

.method-grid, .format-grid { display: grid; gap: 18px; margin-top: 34px; }
.method-grid { grid-template-columns: repeat(3, 1fr); }
.format-grid { grid-template-columns: repeat(3, 1fr); }
.method-grid article, .format-grid article {
  padding: 26px;
  background: var(--white, #fff);
  border: 1px solid #dce1e3;
  border-radius: 14px;
  box-shadow: 0 10px 26px #111c2e0a;
}
.method-grid h3, .format-grid h3 {
  font-family: Unbounded, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--navy, #111c2e);
}
.method-grid p, .format-grid p { margin: 0; font-size: 15px; color: var(--muted, #596778); line-height: 1.65; }

.edu { background: var(--paper, #f7f8f6); }
.edu-grid { display: grid; gap: 28px; margin-top: 28px; max-width: 900px; }
.edu-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.edu-list li { font-size: 16px; line-height: 1.65; color: var(--text, #1a2636); }
.edu-list b { color: var(--navy, #111c2e); }
.edu-note { margin: 0; font-size: 15px; color: var(--muted, #596778); }

.media-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; max-width: 860px; }
.media-list li {
  padding: 20px 22px;
  background: var(--white, #fff);
  border: 1px solid #dce1e3;
  border-radius: 14px;
  display: grid;
  gap: 6px;
}
.media-list a { color: var(--teal, #167d78); font-weight: 600; }
.media-list span { font-size: 14px; color: var(--muted, #596778); }
.media-list .media-plain { font-weight: 600; color: var(--navy, #111c2e); font-size: 16px; }

.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; align-items: baseline; margin: 18px 0 0; }
.contact-lines a { font-family: Unbounded, sans-serif; font-size: 20px; color: var(--navy, #111c2e); }
.contact-lines a:hover { color: var(--teal, #167d78); }
.contact-lines span { color: var(--muted, #596778); font-size: 15px; }

@media (max-width: 900px) {
  .method-grid, .format-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .methods, .formats, .edu, .media { padding-top: 70px; padding-bottom: 70px; }
  .method-grid, .format-grid { grid-template-columns: 1fr !important; }
}

/* H1 героя: контрольовані переноси, без «драбинки» */
.hero h1 {
  font-size: clamp(29px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 14ch;
  margin: 10px 0 0;
}
.hero h1 .h1-name,
.hero h1 .h1-role,
.hero h1 .h1-geo { display: block; font-size: inherit; }
.hero h1 .h1-name { font-size: 1em; }
.hero h1 .h1-role { font-size: 0.84em; }
.hero h1 .h1-geo { font-size: 0.84em; color: var(--teal, #167d78); }
@media (max-width: 900px) { .hero h1 { max-width: none; font-size: clamp(27px, 7vw, 40px); } }

/* Контакти: адреса й канали */
.contact-address { margin: 10px 0 0; color: var(--muted, #596778); font-size: 15px; }
.contact-channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 26px; }
.contact-channels .chan {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--teal, #167d78);
  border-radius: 10px;
  color: var(--teal, #167d78);
  font-weight: 600;
  font-size: 15px;
}
.contact-channels .chan:hover { background: var(--teal, #167d78); color: #fff; }
@media (max-width: 480px) { .contact-channels .chan { flex: 1 1 100%; justify-content: center; } }

/* Головна: спільний ритм і повна ширина контенту на десктопі. */
@media (min-width: 901px) {
  .home-page main > section { scroll-margin-top: 106px; }
  .home-page :is(.about, .method, .methods, .formats, .pricing, .faq, .edu, .media, .contact) {
    padding-block: 56px;
  }
  .home-page :is(.work, .groups) { padding-block: 64px; }
  .home-page main h2 {
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.25;
    margin: 10px 0 20px;
    text-wrap: balance;
  }
  .home-page .eyebrow { margin: 0 0 12px; }
  .home-page .section-lead { max-width: 780px; margin: 0; }
  .home-page .hero {
    min-height: 0;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    padding-block: 40px;
  }
  .home-page .hero h1 { max-width: none; font-size: clamp(32px, 3vw, 43px); }
  .home-page .hero .lead { font-size: 17px; margin-block: 16px; }
  .home-page .hero .actions { margin-top: 24px; gap: 20px; flex-wrap: wrap; }
  .home-page .hero .result-chips { margin-top: 16px; }
  .home-page .portrait { height: 540px; }
  .home-page .trust-bar .shell { max-width: 1200px; }
  .home-page .trust-bar span { padding-block: 20px; }
  .home-page .quote-band { padding-block: 36px; }
  .home-page .quote-band blockquote { max-width: 1000px; font-size: 25px; line-height: 1.5; }
  .home-page .about { grid-template-columns: 1fr; gap: 8px; }
  .home-page .about-copy {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    column-gap: 40px;
    row-gap: 16px;
    padding-top: 0;
    align-items: start;
  }
  .home-page .about-copy > p { grid-column: 1; margin: 0; }
  .home-page .facts {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 4px;
    padding-top: 18px;
  }
  .home-page .photo-pulse {
    grid-column: 2;
    grid-row: 1 / 4;
    grid-template-columns: 1fr;
    margin: 0;
    gap: 16px;
  }
  .home-page .photo-pulse img { width: 100%; height: 230px; object-position: center 35%; }
  .home-page .about-copy > .source-link { grid-column: 2; margin: 0; }
  .home-page :is(.cards, .method-grid, .format-grid, .price-grid) { gap: 20px; margin-top: 28px; }
  .home-page .cards article { min-height: 0; padding: 26px; }
  .home-page .cards h3 { margin: 20px 0 12px; font-size: 20px; line-height: 1.4; }
  .home-page .cards article p { margin: 0; }
  .home-page .cards-six article b { margin-top: 20px; }
  .home-page .method { grid-template-columns: .8fr 1.2fr; gap: 40px; }
  .home-page .method-visual { height: 460px; overflow: hidden; }
  .home-page .steps { margin-block: 20px; gap: 16px 24px; }
  .home-page .steps p { margin: 0; }
  .home-page :is(.method-grid, .format-grid) article { padding: 24px; }
  .home-page .pricing { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 40px; }
  .home-page .pricing > :is(.eyebrow, h2, .section-lead, .price-grid) { grid-column: 1 / -1; }
  .home-page .price-grid { margin-bottom: 28px; }
  .home-page .price-terms { grid-column: 1; }
  .home-page .principles { grid-column: 2; margin: 0; }
  .home-page .principles ul { grid-template-columns: 1fr; gap: 12px; }
  .home-page .faq-list { max-width: none; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 16px 20px; }
  .home-page .edu-grid { max-width: none; gap: 20px; }
  .home-page .edu-list { grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
  .home-page .media-list { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .home-page .media-list li { align-content: start; gap: 12px; }
  .home-page .groups-inner { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .home-page .group-card { padding: 28px; }
  .home-page .group-card h3 { margin: 0 0 16px; }
  .home-page .group-card ul { padding-left: 20px; }
  .home-page .contact h2 {
    max-width: 900px;
    margin: 10px auto 20px;
    font-size: clamp(28px, 2.4vw, 34px);
  }
  .home-page .contact > p:not(.eyebrow) { max-width: 760px; margin: 0 auto 20px; }
  .home-page .contact .contact-lines { flex-direction: column; align-items: center; gap: 6px; }
  .home-page .contact-lines a { font-family: Manrope, sans-serif; font-size: 22px; font-weight: 600; text-decoration: none; }
  .home-page .contact-lines a:hover { text-decoration: underline; }
  .home-page .contact-channels { margin: 20px 0 16px; }
  .home-page .contact-channels .chan { text-decoration: none; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .home-page .hero { gap: 28px; }
}

/* Відгуки: CTA + QR (QR лише на десктопі — з телефона він не потрібен) */
.reviews { display: flex; align-items: center; gap: 48px; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.reviews .section-lead { margin-bottom: 28px; }
.reviews-text { max-width: 620px; }
.reviews-qr { margin: 0; text-align: center; flex: 0 0 auto; }
.reviews-qr img { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 8px; }
.reviews-qr figcaption { font-size: .85rem; opacity: .7; margin-top: 6px; }
@media (max-width: 760px) { .reviews { display: block; } .reviews-qr { display: none; } }

/* Відгуки з Google (вручну; без AggregateRating — self-serving розмітка заборонена) */
section.reviews-list { padding-top: 72px; }
section.reviews-list .review-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 18px 0; }
section.reviews-list .review-card { margin: 0; background: #fff; border-radius: 16px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(38,49,44,.06); max-width: 760px; }
section.reviews-list .review-card p { margin: 0 0 10px; }
section.reviews-list .review-stars { color: #f2b01e; font-size: 20px; letter-spacing: 2px; margin-bottom: 10px; }
section.reviews-list .review-author { margin: 14px 0 0; font-size: 14px; color: #6d786f; }
section.reviews-list + section.reviews { padding-top: 32px; }

.contact-channels .chan-main { background: var(--teal, #167d78); color: #fff; }
.method-visual.has-photo { background: #1b2a3a; padding: 0; }
.method-visual.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method-visual.has-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 28px 24px; background: linear-gradient(transparent, rgba(17,28,46,.75)); color: #fff; font-weight: 600; }
/* Відео Іри в блоці «Про мене» */
.photo-pulse.has-video { grid-template-columns: 1fr; justify-items: center; text-align: left; }
.about-video { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; height: auto; border-radius: 16px; background: #111c2e; object-fit: cover; box-shadow: 0 14px 34px rgba(17,28,46,.18); }

/* «Про мене»: текст ліворуч, відео праворуч */
.about-quote { margin: 4px 0 0; padding: 16px 20px; border-left: 3px solid var(--teal, #167d78); background: #eef5f4; border-radius: 0 12px 12px 0; }
.about-video-wrap { display: flex; justify-content: center; }
@media (min-width: 901px) {
  .home-page .about-copy { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .home-page .about-copy > :not(.about-video-wrap) { grid-column: 1; }
  .home-page .about-video-wrap { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
  .home-page .about-copy > .source-link { grid-column: 1; }
  .about-video { max-width: 320px; }
}
@media (max-width: 900px) { .about-video-wrap { margin-top: 18px; } }
.hero-test { margin: 14px 0 0; font-size: 15px; }
/* Форма заявки */
.lead-form { display: grid; gap: 12px; max-width: 560px; margin: 26px auto 8px; text-align: left; background: #fff; border: 1px solid #dce1e3; border-radius: 16px; padding: 22px; }
.lead-form .lead-title { margin: 0 0 4px; }
.lead-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy, #111c2e); }
.lead-form input, .lead-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 13px; border: 1px solid #cfd8db; border-radius: 10px; background: #fbfcfc; width: 100%; box-sizing: border-box; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid #167d7855; border-color: var(--teal, #167d78); }
.lead-form .lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form button { justify-self: start; }
.lead-status { margin: 0; font-weight: 600; min-height: 1px; }
.lead-status.is-ok { color: var(--teal, #167d78); }
.lead-status.is-err { color: #b4432f; }
.lead-form small { color: var(--muted, #596778); }
.contact-or { margin: 18px 0 0; color: var(--muted, #596778); }
.lead-form { max-width: none; margin: 26px 0 8px; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 26px 28px; }
.lead-form > :not(label:nth-of-type(1)):not(label:nth-of-type(2)) { grid-column: 1 / -1; }
@media (max-width: 700px) { .lead-form { grid-template-columns: 1fr; padding: 20px; } }
/* Смуга «Про мене говорять» */
.press-strip { padding: 22px 0; border-bottom: 1px solid #e3e8e9; }
.press-strip .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.press-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #596778); font-weight: 700; }
.press-strip a { display: inline-flex; align-items: center; opacity: .55; filter: grayscale(1); transition: opacity .2s, filter .2s; text-decoration: none; }
.press-strip a:hover { opacity: 1; filter: none; }
.press-strip img { height: 32px; width: auto; }
.press-word { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #111c2e; }
.press-word small { font-size: 14px; font-weight: 600; }
@media (max-width: 600px) { .press-strip .shell { gap: 14px 26px; } .press-label { width: 100%; text-align: center; } .press-strip img { height: 26px; } }
.press-strip a { opacity: .75; }
.press-strip a img { filter: grayscale(1) brightness(.35); }
.press-strip a:hover img { filter: none; }
.method-visual.has-photo img { object-position: center 18%; }

/* Головна: компактний список нових статей */
.home-posts { padding-block: 34px !important; }
.home-posts .eyebrow { margin-bottom: 10px; }
.home-posts-list { list-style: none; padding: 0; margin: 0 0 12px; columns: 3 280px; column-gap: 32px; }
.home-posts-list li { break-inside: avoid; margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
.home-posts-list a { color: var(--navy, #111c2e); text-decoration: none; border-bottom: 1px solid #d5dcdf; }
.home-posts-list a:hover { color: var(--teal, #167d78); border-color: currentColor; }

/* Порядок блоків головної (у HTML, за маркетинговою логікою): обіцянка+CTA → медіа → відгуки → з чим звертаються
   → як працює → хто я (відео) → ціни → FAQ → кабінет → форма. На мобільному другорядні блоки сховано. */
@media (max-width: 800px) {
  .home-page :is(.trust-bar, .quote-band, .methods, .formats, .edu, .media, .home-posts, .reviews) { display: none !important; }
}

/* Мобільна головна: стиснути довгі блоки */
@media (max-width: 800px) {
  .home-page .hero .result-chips { display: none; }
  .home-page .portrait { height: 380px !important; }
  .home-page .work .cards article { min-height: 0 !important; padding: 18px 20px !important; }
  .home-page .work .cards article p { display: none; }
  .home-page .work .cards h3 { margin: 8px 0 4px !important; font-size: 18px !important; }
  .home-page .pricing :is(.price-terms, .principles) { display: none; }
  .home-page .office-grid figure:has(img[src*="budivlia"]),
  .home-page .office-grid figure:has(img[src*="korydor"]),
  .home-page .office-grid figure:has(img[src*="dveri-211"]) { display: none; }
}

/* Hero: заголовок і гачок — чітка ієрархія */
.home-page .hero h1 { font-size: inherit; line-height: 1; margin: 6px 0 0; max-width: none; }
.home-page .hero h1 .h1-name { display: block; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.home-page .hero h1 .h1-role,
.home-page .hero h1 .h1-geo { display: inline; font-family: Manrope, system-ui, sans-serif; font-weight: 600; font-size: clamp(18px, 1.7vw, 23px); letter-spacing: 0; line-height: 1.35; }
.home-page .hero h1 .h1-role { color: var(--navy, #111c2e); }
.home-page .hero h1 .h1-geo { color: var(--teal, #167d78); }
.home-page .hero h1 .h1-role::before { content: ""; display: block; height: 12px; }
.home-page .hero-hook { margin: 22px 0 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--teal, #167d78); font-size: clamp(21px, 2vw, 27px); line-height: 1.25; }
@media (max-width: 800px) {
  .home-page .hero h1 .h1-name { font-size: 40px; }
  .home-page .hero h1 .h1-role, .home-page .hero h1 .h1-geo { font-size: 18px; }
  .home-page .hero-hook { font-size: 21px; margin-top: 18px; }
}
.home-page .hero-hook em { display: block; }

/* ===== Єдиний ритм головної: однакові відступи й ширина =====
   Блок: 72px зверху/знизу (мобільний 48). Контент: 1200px, бокові поля 24/16.
   Заголовок блоку: eyebrow → 10 → H2 → 16 → lead → 28 → контент. */
.home-page { --gap-section: 72px; --gap-head: 28px; }
@media (max-width: 800px) { .home-page { --gap-section: 48px; --gap-head: 22px; } }
.home-page .shell { width: min(1200px, calc(100% - 48px)) !important; max-width: 1200px; margin-inline: auto; }
@media (max-width: 800px) { .home-page .shell { width: calc(100% - 32px) !important; } }
.home-page main > section:not(.hero):not(.press-strip):not(.trust-bar):not(.quote-band) { padding-block: var(--gap-section) !important; margin-block: 0 !important; }
.home-page main > .hero { padding-block: 40px var(--gap-section) !important; }
.home-page main > .quote-band { padding-block: 40px !important; }
.home-page main > .press-strip { padding-block: 20px !important; }
.home-page main section .eyebrow { margin: 0 0 10px !important; }
.home-page main section h2 { margin: 0 0 16px !important; }
.home-page main section .section-lead { margin: 0 0 var(--gap-head) !important; }
.home-page main section :is(.cards, .price-grid, .office-grid, .review-cards, .faq-list, .media-list, .edu-list, .method-grid, .format-grid) { margin-top: var(--gap-head) !important; }
section.reviews-list .review-card { display: flex; flex-direction: column; }
section.reviews-list .review-text { position: relative; max-height: 8.5em; overflow: hidden; }
section.reviews-list .review-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(rgba(255,255,255,0), #fff); }
section.reviews-list .review-card.open .review-text { max-height: none; }
section.reviews-list .review-card.open .review-text::after, section.reviews-list .review-card.short .review-text::after, section.reviews-list .review-card.short .review-more { display: none; }
section.reviews-list .review-more { align-self: flex-start; margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
section.reviews-list .review-author { margin-top: auto; padding-top: 14px; }
