/* ==========================================================
   Gryphon School — стили сайта
   ========================================================== */

:root {
  --red: #ae152d;
  --red-dark: #8a0f22;
  --red-deep: #4a0812;
  --red-soft: #fbeef0;
  --gold: #d9a441;
  --gold-soft: #fff6e3;
  --ink: #1d1416;
  --text: #4a3f42;
  --muted: #7d7174;
  --line: #eadfe1;
  --bg: #ffffff;
  --bg-alt: #faf6f4;
  --green: #1f9d55;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(74, 8, 18, .08);
  --shadow-lg: 0 24px 60px rgba(74, 8, 18, .16);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center-flex { justify-content: center; }
.center-btn { display: flex; justify-content: center; margin-top: 40px; }
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--red-deep); color: #f3dfe2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 0; }

/* ---------- Типографика ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light, .section--dark .eyebrow { color: var(--gold); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.section--dark .section-head p { color: #e2c3c8; }
.accent { color: var(--red); }
.section--dark .accent { color: var(--gold); }
.h-big { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.prose h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.prose p { font-size: 17px; }
.prose a:not(.btn) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--red); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
a:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; text-decoration: none !important; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(174, 21, 45, .3); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--red); }
.btn--outline { border-color: var(--red); color: var(--red) !important; }
.btn--outline:hover { background: var(--red); color: #fff !important; }
.btn--gold { background: var(--gold); color: var(--red-deep); }
.btn--gold:hover { background: #e7b553; transform: translateY(-2px); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1fb857; }
.btn--block { width: 100%; }

/* ---------- Топбар ---------- */
.topbar { background: var(--red); color: #fff; font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar__contacts { display: flex; gap: 24px; align-items: center; }
.topbar__contacts > * { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.topbar svg { width: 16px; height: 16px; flex: none; }
.topbar__social { display: flex; gap: 16px; }
.topbar__social a { display: inline-flex; opacity: .9; }
.topbar__social a:hover { opacity: 1; }
.topbar__hours { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; opacity: .92; white-space: nowrap; }

/* Иконки справа в шапке */
.header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hicon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); transition: background .2s, color .2s, transform .2s; }
.hicon svg { width: 22px; height: 22px; }
.hicon:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.hicon--insta:hover { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.hicon--wa { display: none; }
.nav__extra { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(27,10,14,.45); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(74,8,18,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { height: 54px; width: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 12px; border-radius: 10px; white-space: nowrap; transition: color .2s, background .2s; }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__link:hover { background: var(--red-soft); }
.nav__cta { margin-left: 6px; padding: 12px 18px; }
.sub { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 300px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; display: grid; gap: 2px; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item:nth-child(2) .sub { grid-template-columns: 1fr 1fr; min-width: 560px; }
.sub a { display: block; padding: 11px 14px; border-radius: 12px; transition: background .2s; }
.sub a b { display: block; font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.sub a span { font-size: 13px; color: var(--muted); }
.sub a:hover, .sub a[aria-current] { background: var(--red-soft); }
.sub a:hover b, .sub a[aria-current] b { color: var(--red); }
@media (min-width: 1241px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-sub:hover .nav__link svg { transform: rotate(180deg); }
}
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--red-soft); position: relative; flex: none; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 50%; width: 22px; height: 2px; background: var(--red); border-radius: 2px; transform: translateX(-50%); transition: transform .3s, background .3s; }
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ""; left: 0; transform: none; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero главной ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--red-deep) url("../img/hero.jpg") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 600px at 85% 20%, rgba(217,164,65,.18), transparent 60%), linear-gradient(105deg, rgba(58,5,14,.95) 0%, rgba(110,10,28,.86) 45%, rgba(174,21,45,.45) 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 100px 20px 130px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: 14px; font-weight: 500; margin-bottom: 26px; }
.hero__badge b { background: var(--gold); color: var(--red-deep); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 19px; color: #f2d9dd; max-width: 580px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 28px; }
.hero__fact { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #f2d9dd; }
.hero__fact svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.12); color: var(--gold); flex: none; }
.hero__fact strong { display: block; color: #fff; font-family: var(--font-head); font-size: 15px; }
.hero__card { position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 26px; padding: 34px; box-shadow: var(--shadow-lg); }
.hero__card h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.hero__card > p { color: #f2d9dd; font-size: 15px; }
.hero__card .form-note { color: #e2c3c8; }
.hero__card .form-note a { color: #fff; }
.hero__ribbon { position: absolute; top: -16px; right: 24px; background: var(--gold); color: var(--red-deep); font-family: var(--font-head); font-weight: 800; font-size: 13px; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }

/* ---------- Hero внутренних страниц ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; background: var(--red-deep); isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(48,4,12,.94) 0%, rgba(100,10,26,.84) 50%, rgba(174,21,45,.35) 100%); }
.page-hero__inner { padding: 56px 20px 80px; max-width: var(--container); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; max-width: 820px; margin-bottom: 18px; }
.page-hero__lead { font-size: 19px; color: #f2d9dd; max-width: 680px; margin-bottom: 32px; }
.page-hero .hero__actions { margin-bottom: 36px; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__facts li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 14px; color: #f2d9dd; }
.page-hero__facts svg { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: rgba(217,164,65,.18); color: var(--gold); flex: none; }
.page-hero__facts b { color: #fff; font-family: var(--font-head); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #e2c3c8; margin-bottom: 28px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs--dark { color: var(--muted); }
.breadcrumbs--dark a:hover { color: var(--red); }

/* ---------- Формы ---------- */
.form { display: grid; gap: 12px; }
.form-input, .form-select { width: 100%; padding: 15px 18px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ae152d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(174,21,45,.12); }
.form-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.form-note a { text-decoration: underline; }
.form-status { display: none; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.form-status.is-success { display: block; background: #e7f7ee; color: #146c3c; }
.form-status.is-error { display: block; background: #fdecee; color: var(--red-dark); }
.form-status a { text-decoration: underline; }

/* ---------- Логотипы экзаменов ---------- */
.partners { padding: 34px 0; border-bottom: 1px solid var(--line); background: #fff; }
.partners__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.partners__label { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.partners__logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; flex: 1; justify-content: space-around; }
.partners__logos img { height: 38px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.partners__logos img:hover { filter: none; opacity: 1; }

/* ---------- Анонсы ---------- */
.highlights { margin-top: -64px; position: relative; z-index: 2; }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hl { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--red); transition: transform .25s; }
.hl:hover { transform: translateY(-4px); }
.hl__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.hl__icon svg { width: 24px; height: 24px; }
.hl h3 { font-size: 17px; margin: 0; }
.hl p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.hl__link { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--red); }
.hl__link::after { content: " →"; }
.hl--gold { border-top-color: var(--gold); }
.hl--gold .hl__icon { background: var(--gold-soft); color: #b07d1c; }

/* ---------- Программы ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.program { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program__img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.program:hover .program__img img { transform: scale(1.06); }
.program__tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.program__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.program__body h3 { font-size: 20px; margin-bottom: 8px; }
.program__body p { font-size: 15px; flex: 1; }
.program__meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.program__meta b { color: var(--ink); font-family: var(--font-head); }

/* ---------- Страны ---------- */
.country-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.country-card { position: relative; border-radius: 22px; overflow: hidden; min-height: 380px; display: flex; color: #fff; background: var(--red-deep); box-shadow: var(--shadow); isolation: isolate; transition: transform .3s, box-shadow .3s; }
.country-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.country-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.country-card:hover .country-card__img { transform: scale(1.07); }
.country-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(40,4,10,.95) 10%, rgba(40,4,10,.35) 60%, rgba(40,4,10,.05)); }
.country-card__body { margin-top: auto; padding: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #f2d9dd; }
.country-card__body b { font-family: var(--font-head); font-size: 22px; color: #fff; }
.country-card__flag { width: 40px; height: 28px; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.3); margin-bottom: 6px; }
.country-card__flag img { width: 100%; height: 100%; object-fit: cover; }
.country-card .link-arrow { color: var(--gold); margin-top: 6px; }
.country-card--more { background: linear-gradient(150deg, var(--red), var(--red-deep)); }
.country-card--more::before { display: none; }
.country__plus { font-family: var(--font-head); font-size: 48px; font-weight: 800; line-height: 1; color: var(--gold); }
.country-card__head { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Split / колонки ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.split__media::after { content: ""; position: absolute; inset: auto -18px -18px auto; width: 45%; height: 45%; border-radius: 28px; background: var(--red-soft); z-index: -1; }
.split__badge { position: absolute; left: -20px; bottom: 30px; background: #fff; border-radius: 18px; padding: 16px 22px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--gold); }
.split__badge b { display: block; font-family: var(--font-head); font-size: 22px; color: var(--red); line-height: 1.2; }
.split__badge span { font-size: 13px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.checklist { display: grid; gap: 10px; margin: 22px 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check { width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; margin-top: 1px; }
.check svg { width: 14px; height: 14px; }

/* ---------- Карточки преимуществ ---------- */
.features { display: grid; gap: 22px; }
.features--3 { grid-template-columns: repeat(3, 1fr); }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.feature { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border: 1px solid transparent; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line); }
.section--alt .feature { background: #fff; }
.feature__ico { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.feature__ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Шаги ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.steps--grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.step { counter-increment: step; position: relative; background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 17px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; color: var(--muted); }

/* ---------- CSCA ---------- */
.csca { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.csca__visual { position: relative; border-radius: 28px; padding: 40px; color: #fff; overflow: hidden; background: linear-gradient(150deg, #c8102e 0%, #8a0f22 60%, #4a0812 100%); box-shadow: var(--shadow-lg); }
.csca__visual::after { content: "中"; position: absolute; right: -20px; bottom: -70px; font-size: 280px; line-height: 1; font-weight: 900; color: rgba(255,255,255,.05); }
.csca__visual h3 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.csca__visual > p { color: #f6d5da; }
.csca__subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; position: relative; z-index: 1; }
.csca__subject { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 16px; }
.csca__subject b { display: block; font-family: var(--font-head); color: #fff; font-size: 16px; }
.csca__subject span { font-size: 13px; color: #f6d5da; }
.csca__star { position: absolute; top: 28px; right: 32px; color: var(--gold); width: 46px; height: 46px; }

/* ---------- Пакет под ключ ---------- */
.package { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pack { display: block; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px 26px; transition: background .3s, transform .3s; }
.pack:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.pack__num { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--gold); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.pack__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--gold); color: var(--red-deep); display: grid; place-items: center; margin-bottom: 20px; }
.pack__icon svg { width: 28px; height: 28px; }
.pack h3 { font-size: 20px; margin-bottom: 10px; }
.pack p { font-size: 15px; color: #e2c3c8; margin: 0; }
.package__cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius); background: rgba(217,164,65,.12); border: 1px solid rgba(217,164,65,.35); }
.package__cta p { margin: 0; font-size: 18px; color: #fff; font-family: var(--font-head); font-weight: 600; }
.package__cta p span { color: var(--gold); }

/* ---------- Миссия ---------- */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mission__card--photo { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.mission__card--photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mission__card--photo > img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.mission__content { position: relative; padding: 0 36px 36px; }
.mission__content h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.mission__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: -32px 0 20px; background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(174,21,45,.3); }
.mission__icon svg { width: 30px; height: 30px; }
.mission__card--gold { background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.mission__card--gold .mission__icon { background: var(--gold); color: var(--red-deep); box-shadow: 0 10px 24px rgba(217,164,65,.35); }
.free-badge { display: inline-flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-family: var(--font-head); font-weight: 800; color: var(--red); }
.free-badge strong { font-size: 48px; line-height: 1; }
.free-badge span { font-size: 15px; color: var(--ink); font-weight: 600; }

/* ---------- О школе (главная) ---------- */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.why__img { position: relative; }
.why__img > img { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.why__floating { position: absolute; left: -24px; bottom: 34px; background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; max-width: 290px; }
.why__floating img { width: 46px; height: 46px; object-fit: contain; }
.why__floating b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 15px; line-height: 1.3; }
.why__floating span { font-size: 13px; color: var(--muted); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 28px 0 32px; }
.why__item h3 { font-size: 17px; margin: 12px 0 6px; }
.why__item p { font-size: 15px; margin: 0; color: var(--muted); }
.why__item .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.why__item .ico svg { width: 24px; height: 24px; }

/* ---------- Цены ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.tab { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 11px 20px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 14px; transition: all .2s; }
.tab:hover { border-color: var(--red); color: var(--red); }
.tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; border: 2px solid transparent; }
.price[hidden] { display: none; }
.price--featured { border-color: var(--red); }
.price__flag { position: absolute; top: -13px; left: 30px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px; padding: 5px 14px; border-radius: 999px; }
.price__flag--gold { background: var(--gold); color: var(--red-deep); }
.price h3 { font-size: 20px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.price h3 .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.price h3 .ico svg { width: 22px; height: 22px; }
.price ul { flex: 1; margin-bottom: 24px; }
.price li, .price-mini li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.price li:last-child, .price-mini li:last-child { border-bottom: 0; }
.price li b, .price-mini li b { color: var(--ink); font-family: var(--font-head); white-space: nowrap; }
.price li small { display: block; color: var(--green); font-size: 12px; font-weight: 600; }
.price__note { font-size: 13px; color: var(--muted); margin: -12px 0 20px; }
.prices__extra { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: 15px; }
.prices__extra span { display: inline-flex; align-items: center; gap: 8px; }
.prices__extra svg { width: 20px; height: 20px; color: var(--red); }
.price-mini { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--red); }
.price-mini h3 { font-size: 20px; margin-bottom: 10px; }
.price-mini .price__note { margin: 8px 0 0; }
.price-mini .link-arrow { margin-top: 16px; }

/* ---------- Команда ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tcard { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tcard__img { aspect-ratio: 4/4.4; overflow: hidden; background: #eee; }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.tcard:hover .tcard__img img { transform: scale(1.04); }
.tcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tcard h3 { font-size: 20px; margin-bottom: 2px; }
.tcard__role { color: var(--red); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.tcard__meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.tcard__dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
.tcard__dl dt { color: var(--muted); }
.tcard__dl dd { margin: 0; color: var(--ink); font-weight: 500; }
.tcard__fact { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; background: var(--gold-soft); padding: 10px 12px; border-radius: 12px; }
.tcard__fact svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 3px; }
.tcard q { margin-top: auto; font-style: italic; color: var(--ink); font-size: 15px; padding-top: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid transparent; transition: border-color .2s; }
.faq__item[open] { border-color: var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 20px; height: 20px; color: var(--red); flex: none; transition: transform .25s; }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__a { padding: 0 24px 22px; font-size: 16px; }
.faq__a a { color: var(--red); text-decoration: underline; }

/* ---------- Связанные страницы ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related__card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.related__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.related__card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.related__body b { font-family: var(--font-head); font-size: 18px; color: var(--ink); }

/* ---------- Тест ---------- */
.quiz { position: relative; border-radius: 30px; overflow: hidden; color: #fff; padding: 64px; background: linear-gradient(120deg, var(--red-deep), var(--red)); display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.quiz::after { content: ""; position: absolute; right: -60px; top: -40px; width: 380px; height: 460px; background: url("../img/logo-bg.png") center/contain no-repeat; opacity: .1; }
.quiz__text { position: relative; z-index: 1; }
.quiz h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.quiz p { color: #f2d9dd; font-size: 18px; margin: 0; }
.quiz__action { position: relative; z-index: 1; display: flex; justify-content: flex-end; }

/* ---------- Заявка / контакты ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.contact__form { padding: 52px; }
.contact__form h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.contact__info { background: var(--red-deep) url("../img/logo-bg.png") right -60px bottom -80px / 300px no-repeat; color: #f2d9dd; padding: 52px; display: flex; flex-direction: column; gap: 26px; }
.contact__info h3 { color: #fff; font-size: 22px; margin: 0; }
.contact__row { display: flex; gap: 16px; align-items: flex-start; }
.contact__row .ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.1); color: var(--gold); display: grid; place-items: center; flex: none; }
.contact__row .ico svg { width: 22px; height: 22px; }
.contact__row small { display: block; color: #c99ba3; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact__row a, .contact__row span { color: #fff; font-weight: 500; }
.contact__row a:hover { color: var(--gold); }
.contact__social, .footer__social { display: flex; gap: 10px; }
.contact__social { margin-top: auto; }
.contact__social a, .footer__social a { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s, color .2s; }
.contact__social a:hover, .footer__social a:hover { background: var(--gold); color: var(--red-deep); }
.contact__social svg, .footer__social svg { width: 20px; height: 20px; }
.map { border-radius: 28px; overflow: hidden; height: 420px; box-shadow: var(--shadow); background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__links { margin-top: 16px; text-align: center; color: var(--muted); }
.map__links a { color: var(--red); font-weight: 600; }

/* ---------- SEO-текст ---------- */
.seo { max-width: 920px; margin: 0 auto; }
.seo__body { position: relative; max-height: 320px; overflow: hidden; transition: max-height .6s ease; }
.seo__body::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, rgba(250,246,244,0), var(--bg-alt)); transition: opacity .3s; }
.seo.is-open .seo__body { max-height: 6000px; }
.seo.is-open .seo__body::after { opacity: 0; }
.seo h2 { font-size: 26px; }
.seo h3 { font-size: 19px; margin-top: 1.6em; }
.seo p { font-size: 15px; }
.seo__toggle { margin: 24px auto 0; display: flex; }

/* ---------- Простые страницы ---------- */
.page-simple h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 16px; }
.page-simple h2 { font-size: 22px; margin-top: 1.6em; }
.page-404 { padding: 120px 0; }
.big-404 { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(90px, 18vw, 180px); line-height: 1; color: var(--red); opacity: .15; }

/* ---------- Футер ---------- */
.footer { background: #1b0a0e; color: #bba5aa; padding: 72px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__logo img { height: 50px; width: auto; max-width: none; margin-bottom: 20px; }
.footer p { margin-bottom: 22px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer__h-gap { margin-top: 28px; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer__counters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__counters img { display: inline-block; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- WhatsApp и модалка ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(27,10,14,.7); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; background: #fff; border-radius: 26px; padding: 40px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); animation: pop .3s ease; }
.modal__dialog h2 { font-size: 24px; margin-bottom: 6px; padding-right: 30px; }
.modal__dialog > p { color: var(--muted); font-size: 15px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-alt); font-size: 24px; line-height: 1; color: var(--ink); }
.modal__close:hover { background: var(--red-soft); color: var(--red); }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Анимация ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================
   Адаптив
   ========================================================== */
/* Компактная шапка на всех десктопах: меню + кнопка + Instagram помещаются в контейнер */
@media (min-width: 1241px) {
  .nav__link { padding: 10px 8px; font-size: 14.5px; }
  .nav__cta { padding: 11px 16px; font-size: 14px; }
  .logo img { height: 50px; }
}
@media (max-width: 1280px) {
  .country-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1240px) {
  .topbar__addr { display: none !important; }
  .burger { display: block; }
  /* Мобильное меню: панель всегда ровно под шапкой, страница под ней не прокручивается */
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 20px 28px; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(74,8,18,.18); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .2s ease; }
  body.nav-open { overflow: hidden; }
  .hicon--wa { display: grid; background: #e8f9ef; color: #1fb857; }
  .hicon--wa:hover { background: #25d366; color: #fff; }
  .nav__extra { display: grid; gap: 4px; margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--bg-alt); }
  .nav__extra > a, .nav__extra > span { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--ink); font-weight: 500; font-size: 15px; }
  .nav__extra > a > svg, .nav__extra > span > svg { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: #fff; color: var(--red); flex: none; }
  .nav__extra small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.3; }
  .nav__social { display: flex; gap: 10px; margin-top: 10px; }
  .nav__social a { width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; }
  .nav__social svg { width: 20px; height: 20px; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link:hover { background: none; }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; min-width: 0 !important; grid-template-columns: 1fr !important; padding: 6px 0 10px; }
  .sub::before { display: none; }
  .has-sub.is-open .sub { display: grid; }
  .has-sub.is-open .nav__link svg { transform: rotate(180deg); }
  .nav__cta { margin: 16px 0 0; }
  .programs, .related, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-row { grid-template-columns: repeat(2, 1fr); }
  .package, .features--4 { grid-template-columns: repeat(2, 1fr); }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero__inner { grid-template-columns: 1fr; padding: 64px 20px 110px; gap: 40px; }
  .split, .two-col, .csca, .why, .mission, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .features--3 { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .quiz { grid-template-columns: 1fr; padding: 48px 36px; }
  .quiz__action { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .country-cards { grid-template-columns: repeat(2, 1fr); }
  .why__floating { left: 16px; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p, .prose p { font-size: 16px; }
  .topbar__social, .topbar__mail { display: none !important; }
  .topbar { font-size: 13px; }
  .topbar__inner { min-height: 38px; gap: 12px; }
  .header__inner { gap: 12px; }
  .header__actions { gap: 6px; }
  .hicon, .burger { width: 42px; height: 42px; }
  .hicon svg { width: 20px; height: 20px; }
  .logo img { height: 44px; }
  .hero__inner { padding: 48px 16px 96px; }
  .hero__lead, .page-hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__card { padding: 26px 20px; }
  .hero__facts { gap: 16px; }
  .page-hero__inner { padding: 36px 16px 56px; }
  .page-hero__facts li { width: 100%; }
  .highlights__grid, .programs, .prices, .package, .features--3, .features--4, .related, .team-grid { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-row .tcard__body { padding: 14px; }
  .team-row .tcard h3 { font-size: 16px; }
  .team-row q, .team-row .tcard__meta { display: none; }
  .country-cards { grid-template-columns: 1fr; }
  .country-card { min-height: 280px; }
  .country-card--more { min-height: 0; }
  .country-card__head { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 4px; }
  .country__plus { width: 48px; height: 48px; flex: none; display: grid; place-items: center; font-size: 34px; border-radius: 14px; background: rgba(217,164,65,.16); }

  /* Пакет «под ключ»: иконка слева, номер и заголовок справа */
  .pack { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "icon num" "icon title" "text text"; column-gap: 16px; padding: 22px 20px; }
  .pack__icon { grid-area: icon; width: 52px; height: 52px; margin: 0; align-self: center; }
  .pack__num { grid-area: num; margin: 0; align-self: end; font-size: 12px; }
  .pack h3 { grid-area: title; margin: 0; align-self: start; font-size: 19px; }
  .pack p { grid-area: text; margin-top: 14px; }

  /* О школе: иконка слева, заголовок и описание справа */
  .why__item { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; }
  .why__item .ico { grid-row: span 2; }
  .why__item h3 { margin: 2px 0 4px; }
  .csca__visual { padding: 30px 22px; }
  .csca__subjects { grid-template-columns: 1fr; }
  .mission__content { padding: 0 22px 28px; }
  .split__media::after { display: none; }
  .split__badge { left: 12px; bottom: 12px; padding: 12px 16px; }
  .why__grid { grid-template-columns: 1fr; }
  .why__floating { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 12px 14px; gap: 12px; border-radius: 16px; }
  .why__floating img { width: 36px; height: 36px; flex: none; }
  .why__floating b { font-size: 14px; }
  .why__floating span { font-size: 12px; }
  .quiz { padding: 36px 22px; border-radius: 22px; }
  .quiz .btn { width: 100%; }
  .contact__form, .contact__info { padding: 32px 20px; }
  .package__cta { padding: 22px 20px; }
  .package__cta .btn { width: 100%; white-space: normal; }
  .partners__logos { gap: 24px; justify-content: center; }
  .partners__logos img { height: 28px; }
  .partners__label { width: 100%; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .map { height: 320px; }
  .modal__dialog { padding: 32px 20px; }
  .faq__item summary { padding: 16px 18px; font-size: 16px; }
  .faq__a { padding: 0 18px 18px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 28px; padding: 0 16px 6px; scrollbar-width: none; }
  .tab { flex: none; }
  .price-mini { padding: 24px 20px; }
  .btn { white-space: normal; text-align: center; }
  .page-simple h1 { font-size: 26px; overflow-wrap: anywhere; hyphens: auto; }
}

@media (max-width: 350px) {
  .logo img { height: 38px; }
  .hicon, .burger { width: 38px; height: 38px; }
  .topbar__hours { display: none; }
}
.price-mini--inline { box-shadow: var(--shadow); margin-top: 8px; }
