/* Accademia Arte — светлая современная тема.
   Бордо из логотипа, тёплые светлые фоны, мягкие тени в тон, скруглённые карточки, иконки в плашках. */

:root {
  --bg: #ffffff;
  --tint: #fbf5f3;
  --line: #efe2df;
  --bordeaux: #5a0f22;
  --bordeaux-2: #7d1a33;
  --bordeaux-deep: #3f0a17;
  --brass: #a8802f;
  --ink: #2a1a1e;
  --muted: #6f5f63;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(90, 15, 34, .05), 0 4px 14px rgba(90, 15, 34, .06);
  --shadow: 0 2px 6px rgba(90, 15, 34, .05), 0 14px 36px rgba(90, 15, 34, .10);
  --shadow-lg: 0 8px 18px rgba(90, 15, 34, .08), 0 30px 70px rgba(90, 15, 34, .18);

  --wrap: 1200px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --space: clamp(3.5rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: var(--bordeaux); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--bordeaux-2); }
p { margin: 0 0 1em; }
h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--bordeaux); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h3 { font: 700 1.25rem/1.25 var(--sans); color: var(--ink); margin: 0; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.wrap-narrow { max-width: 48rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bordeaux); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 0; }
.ico { flex: none; }

/* ---------- Кнопки, плашки, чипы ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95em 1.7em;
  background: linear-gradient(135deg, var(--bordeaux-2), var(--bordeaux));
  color: #fff; border: 0; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(90, 15, 34, .28);
  transition: transform .18s, box-shadow .18s, background-color .18s, color .18s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(90, 15, 34, .34); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }
.btn-ghost { background: #fff; color: var(--bordeaux); box-shadow: inset 0 0 0 1.500px var(--line), var(--shadow-sm); }
.btn-ghost:hover { color: var(--bordeaux); box-shadow: inset 0 0 0 1.500px var(--bordeaux), var(--shadow); }
.btn-small { padding: .7em 1.25em; font-size: .9375rem; }

.badge {
  flex: none; display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, #fbe9ec, #f4e3cd);
  color: var(--bordeaux);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 6px 16px rgba(90, 15, 34, .10);
}
.badge .ico { width: 26px; height: 26px; }
.badge-sm { width: 40px; height: 40px; border-radius: 13px; }
.badge-sm .ico { width: 19px; height: 19px; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem;
  padding: .45rem 1rem .45rem .7rem; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: .875rem; font-weight: 600; color: var(--bordeaux);
}
.chip .ico { width: 18px; height: 18px; color: var(--brass); }

.more { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9375rem; color: var(--bordeaux); text-decoration: none; }
.more .ico { width: 18px; height: 18px; transition: transform .18s; }
.more:hover .ico, .card-link:hover .more .ico { transform: translateX(4px); }

/* Карточка целиком кликабельна по ссылке в заголовке */
.card-link { position: relative; }
.card-link h2 a::after, .card-link h3 a::after, .card-link strong a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Шапка ---------- */

.topbar { background: var(--bordeaux); color: #f3dfe2; font-size: .8125rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar-motto { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 500; }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar-links a, .topbar-address { display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; white-space: nowrap; }
.topbar-links a:hover { color: #f4e3cd; }
.topbar .ico { width: 15px; height: 15px; color: #e7c98a; }

.head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(90, 15, 34, .05); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .5rem; }
.brand { flex: none; text-decoration: none; }
.brand img { height: 72px; width: auto; }
.brand-text { font: 700 1.75rem/1 var(--serif); color: var(--bordeaux); }

.nav { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.nav ul { display: flex; flex-wrap: nowrap; gap: .1rem; }
.nav li a { display: block; padding: .5rem .7rem; white-space: nowrap; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; transition: background-color .15s, color .15s; }
.nav li a:hover { background: var(--tint); color: var(--bordeaux); }
.nav li a[aria-current="page"] { background: #f8e9eb; color: var(--bordeaux); }
.nav-side { display: flex; align-items: center; gap: 1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.head-tools { display: flex; align-items: center; gap: .6rem; order: 3; }
.nav { flex: 1; justify-content: flex-end; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.lang a { padding: .35rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-decoration: none; transition: background-color .15s, color .15s; }
.lang a:hover { color: var(--bordeaux); }
.lang a[aria-current="true"] { background: var(--bordeaux); color: #fff; box-shadow: 0 3px 8px rgba(90, 15, 34, .25); }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: #fff; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.500px var(--line); padding: .6rem 1rem; color: var(--bordeaux); font: 700 .9375rem var(--sans); cursor: pointer; }

/* ---------- Картинки ---------- */

.pic {
  position: relative; overflow: hidden; border-radius: var(--r);
  background-color: #f6e6e2;
  background-image: linear-gradient(135deg, #fbeef0, #f6e3dc 55%, #f1dcc0);
}
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
/* Нет фото — мягкий градиент с нотой вместо пустого места */
.pic.is-empty::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a0f22' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E") center / min(34%, 96px) no-repeat;
  opacity: .28;
}
.pic-card { aspect-ratio: 4 / 3; border-radius: var(--r) var(--r) 0 0; }
.pic-portrait { aspect-ratio: 4 / 5; border-radius: var(--r) var(--r) 0 0; }
.pic-portrait img { object-position: center top; }
.pic-row { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.pic-duo { aspect-ratio: 5 / 4; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.pic-banner { aspect-ratio: 16 / 10; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.pic-hero { aspect-ratio: 4 / 5; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.pic-cta { aspect-ratio: 16 / 9; border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- Первый экран ---------- */

.hero {
  position: relative; overflow-x: clip; padding-top: clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(52rem 30rem at 92% -6%, #f9e3e6 0, transparent 62%),
    radial-gradient(40rem 26rem at -8% 28%, #f7ead6 0, transparent 60%),
    linear-gradient(#fff, var(--tint));
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.hero-lead { margin: 1.5rem 0 0; max-width: 34rem; font-size: 1.125rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.hero-media { position: relative; max-width: 460px; width: 100%; justify-self: end; }
.hero-media::before {
  content: ""; position: absolute; inset: 8% -6% -5% 10%; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--bordeaux-2), var(--bordeaux)); transform: rotate(5deg); opacity: .92;
}
.float {
  position: absolute; display: flex; align-items: center; gap: .7rem; margin: 0;
  padding: .65rem 1.1rem .65rem .65rem; border-radius: 18px; max-width: 16rem;
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow);
  font-size: .9375rem; font-weight: 700; line-height: 1.25;
}
.float-top { top: 9%; left: -9%; }
.float-bottom { bottom: 9%; right: -7%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-media { animation: rise .7s ease-out both; }
  .hero-media { animation-delay: .12s; }
  .float { animation: bob 6s ease-in-out infinite; }
  .float-bottom { animation-delay: -3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes bob { 50% { transform: translateY(-7px); } }
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); position: relative; top: 2.5rem; margin-bottom: 2.5rem; }
.feature { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature > div { flex: 1; min-width: 0; }
.feature strong { display: block; font: 800 1.0625rem/1.25 var(--sans); }
.feature strong a { color: var(--ink); text-decoration: none; }
.feature span:not(.badge):not(.feature-arrow) { display: block; margin-top: .2rem; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.feature-arrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--bordeaux); transition: background-color .2s, color .2s; }
.feature-arrow .ico { width: 17px; height: 17px; }
.feature:hover .feature-arrow { background: var(--bordeaux); color: #fff; }

/* ---------- Секции ---------- */

.section { padding-block: var(--space); }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }

.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sechead > div { max-width: 44rem; }
.sechead h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 1rem; border-radius: 4px; background: linear-gradient(90deg, var(--bordeaux), var(--brass)); }
.sechead p { margin: 1.1rem 0 0; color: var(--muted); font-size: 1.0625rem; }

.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.duo-flip .duo-media { order: 2; }
.duo-media { position: relative; }
.duo-media::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; left: -5%; bottom: -7%; border-radius: var(--r-lg); background: linear-gradient(135deg, #f4e3cd, #f9e3e6); }
.duo-flip .duo-media::before { left: auto; right: -5%; }
.duo-media .pic { position: relative; }
.duo-text h2 { margin-bottom: 1.5rem; }
.duo-text .btn { margin-top: .75rem; }
.lead-text { font-size: 1.0625rem; color: var(--muted); }
.lead-text p:first-of-type { font-size: 1.25rem; line-height: 1.55; font-weight: 600; color: var(--ink); }
.mission .badge { margin-bottom: 1.25rem; }
.mission p { color: var(--muted); }
.mission p:first-of-type { font: italic 600 1.75rem/1.3 var(--serif); color: var(--bordeaux); }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.value { padding: 1.75rem 1.5rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value h3 { margin-top: 1.25rem; }
.value p { margin: .6rem 0 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover .pic img { transform: scale(1.05); }
.card-media { position: relative; }
.badge-float { position: absolute; left: 1.25rem; bottom: -22px; background: #fff; box-shadow: var(--shadow); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card-media + .card-body { padding-top: 2.4rem; }
.card h3, .card h2 { font: 700 1.3rem/1.25 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.card h3 a, .card h2 a { color: inherit; text-decoration: none; }
.card p { margin: .6rem 0 1.1rem; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.card .more { margin-top: auto; }
.card time { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .6rem; font-size: .8125rem; font-weight: 600; color: var(--brass); }
.card time .ico { width: 15px; height: 15px; }
.card-link h3, .card-link h2 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 1rem; }
.card-link:hover h3 a, .card-link:hover h2 a { color: var(--bordeaux); }

.teachers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.teacher { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; }
.teacher:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.teacher:hover .pic img { transform: scale(1.05); }
.teacher-body { padding: 1.25rem 1.25rem 1.5rem; }
.teacher h3 { font-size: 1.0625rem; line-height: 1.3; }
.teacher p { margin: .5rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--muted); }

/* ---------- Партнёры ---------- */

/* Логотип показывается целиком на белой плашке — у партнёров разные фоны и пропорции */
.pic-logo { aspect-ratio: 16 / 10; background: #fff; border-radius: var(--r) var(--r) 0 0; }
.pic-logo img { object-fit: contain; padding: 9% 12%; }

.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.partner { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; }
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.partner-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.section .partner h2, .partner h3 { font: 800 1.2rem/1.3 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.partner h2 a, .partner h3 a { color: inherit; text-decoration: none; }
.partner.card-link:hover h2 a, .partner.card-link:hover h3 a { color: var(--bordeaux); }
.partner p { margin: .55rem 0 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.partner .more { margin-top: auto; padding-top: 1rem; }

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.25rem; }
.logos a { display: block; border-radius: var(--r); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.logos a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logos .pic-logo { border-radius: var(--r); }

/* ---------- Внутренние страницы ---------- */

.pagehead {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(46rem 26rem at 96% 0, #f9e3e6 0, transparent 62%),
    radial-gradient(36rem 22rem at -6% 100%, #f7ead6 0, transparent 60%),
    var(--tint);
}
.pagehead-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.pagehead h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.pagehead-lead { margin: 1.25rem 0 0; max-width: 40rem; font-size: 1.125rem; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.1rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--bordeaux); }
.crumbs .ico { width: 14px; height: 14px; }

.rows { display: grid; gap: 1.5rem; }
.row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: center; padding: 1rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; }
.row.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.row:hover .pic img { transform: scale(1.05); }
.row-body { padding: .5rem 1rem .5rem 0; }
.section .row h2 { font: 800 clamp(1.2rem, 2.2vw, 1.5rem)/1.25 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.row h2 a { color: inherit; text-decoration: none; }
.row.card-link:hover h2 a { color: var(--bordeaux); }
.row-body p { margin: .8rem 0 0; color: var(--muted); max-width: 42rem; font-size: .9375rem; }
.row .more { margin-top: 1.1rem; }

.meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.meta li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--tint); font-size: .8125rem; font-weight: 600; color: var(--bordeaux); }
.meta .ico { width: 15px; height: 15px; color: var(--brass); }
.meta-chips { margin: 0 0 2rem; }

.empty { padding: 2.5rem; border-radius: var(--r); background: var(--tint); font-size: 1.125rem; color: var(--muted); }

.article-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }

.prose { font-size: 1.0625rem; line-height: 1.8; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); font-weight: 800; color: var(--ink); margin: 2em 0 .6em; line-height: 1.25; letter-spacing: -.01em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brass); font-weight: 700; }
.prose img { height: auto; margin: 1.75em 0; border-radius: var(--r); box-shadow: var(--shadow); }
.prose blockquote { margin: 1.75em 0; padding: 1.25rem 1.5rem; border-radius: var(--r-sm); background: var(--tint); border-left: 4px solid var(--brass); font: italic 600 1.4rem/1.4 var(--serif); color: var(--bordeaux); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-cards { display: grid; gap: .85rem; }
.contact-cards li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.contact-cards span:not(.badge) { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.contact-cards a, .contact-cards b { font-weight: 800; font-size: 1.0625rem; color: var(--ink); text-decoration: none; }
.contact-cards a:hover { color: var(--bordeaux); }
.contact-action { margin-top: 1.5rem; }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--tint); }
.map iframe { display: block; width: 100%; height: 540px; border: 0; }

/* ---------- Заявка ---------- */

.cta {
  padding-block: var(--space);
  background:
    radial-gradient(44rem 26rem at 0 0, #f9e3e6 0, transparent 60%),
    radial-gradient(40rem 26rem at 100% 100%, #f7ead6 0, transparent 60%),
    var(--tint);
}
.section-tint + .cta, main:has(> .section-tint:last-child) + .cta { background: #fff; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cta h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1.5rem; }
.cta-text > p { max-width: 32rem; color: var(--muted); }
.cta-points { display: grid; gap: .7rem; margin: 1.5rem 0 0; }
.cta-points li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; }
.cta-points .ico { margin-top: .2rem; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bordeaux); color: #fff; stroke-width: 3; }
.cta-photo { position: relative; margin-top: 2rem; max-width: 30rem; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cta-contacts a { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 1rem .4rem .4rem; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; font-size: .9375rem; color: var(--ink); text-decoration: none; }
.cta-contacts a:hover { color: var(--bordeaux); box-shadow: var(--shadow); }

.form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.form h3 { font-size: 1.5rem; }
.form-note { margin: .2rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.form label { display: block; margin: 1.25rem 0 .4rem; font-size: .875rem; font-weight: 700; }
.form .optional { font-weight: 500; color: var(--muted); }
.input { position: relative; }
.input .ico { position: absolute; left: 1rem; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--brass); pointer-events: none; }
.input input { padding-left: 2.9rem; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; padding: .9rem 1rem; background: var(--tint); color: var(--ink);
  border: 1.500px solid transparent; border-radius: var(--r-sm); font: inherit;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.form .input input { padding-left: 2.9rem; }
.form textarea { resize: vertical; min-height: 7rem; }
.form input:focus, .form textarea:focus { outline: 0; background: #fff; border-color: var(--bordeaux); box-shadow: 0 0 0 4px rgba(90, 15, 34, .10); }
.form ::placeholder { color: #a8989b; }
.form .btn { width: 100%; margin-top: 1.5rem; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status { margin: 1rem 0 0; font-size: .9375rem; min-height: 1.5em; }
.form-status.is-ok { color: #1f6b3a; font-weight: 700; }
.form-status.is-error { color: #a3261e; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал ---------- */

.foot { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); font-size: .9375rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2.5rem clamp(2rem, 5vw, 4rem); }
.foot-logo { height: 92px; width: auto; margin-bottom: 1rem; }
.foot-about p { color: var(--muted); max-width: 26rem; }
.foot-h { font: 800 1rem/1.2 var(--sans); color: var(--ink); margin-bottom: 1rem; letter-spacing: 0; }
.foot-list { display: grid; gap: .6rem; }
.foot-list a { color: var(--muted); text-decoration: none; font-weight: 500; }
.foot-list a:hover { color: var(--bordeaux); }
.foot-contacts li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.foot-contacts .ico { width: 18px; height: 18px; margin-top: .22rem; color: var(--brass); }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--bordeaux); transition: background-color .18s, color .18s, transform .18s; }
.social a:hover { background: var(--bordeaux); color: #fff; transform: translateY(-3px); }
.foot-copy { margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */

/* Шапка чуть шире основной колонки: в ней семь пунктов меню, телефон, кнопка и переключатель языка */
.topbar .wrap, .head .wrap { --wrap: 1400px; }
.nav li a { padding-inline: .6rem; font-size: .9rem; }

@media (max-width: 1560px) {
  .nav-phone span:not(.badge) { display: none; }
}

@media (max-width: 1140px) {
  .teachers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-address { display: none; }
  .float-top { left: -3%; }
  .float-bottom { right: -3%; }
}

@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
  .head-in { flex-wrap: wrap; }
  .brand img { height: 60px; }
  .head-tools { order: 0; }
  .nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1rem; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: .15rem; }
  .nav li a { padding: .8rem 1rem; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-side { justify-content: space-between; }
  .nav-phone span:not(.badge) { display: inline; }
}

@media (max-width: 920px) {
  .topbar-motto { display: none; }
  .topbar-in { justify-content: center; }

  .hero-in, .duo, .cta-in, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { justify-self: center; max-width: 400px; margin-top: 1rem; }
  .duo-flip .duo-media { order: 0; }
  .duo-media { max-width: 520px; }
  .pagehead-in { grid-template-columns: minmax(0, 1fr); }
  .pagehead .pic-banner { max-width: 420px; aspect-ratio: 16 / 9; }
  .cards, .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .cta-in { align-items: start; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar-links { gap: 1.25rem; }
  .features { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .values, .cards, .partners { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .teacher-body { padding: 1rem; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-body { padding: 0 .5rem .75rem; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .article-foot .btn { width: 100%; }
  .hero-media { max-width: 86%; }
  .float { font-size: .8125rem; padding: .5rem .8rem .5rem .5rem; }
  .float-top { left: -6%; } .float-bottom { right: -6%; }
  .sechead { flex-direction: column; align-items: flex-start; }
  .map iframe { height: 360px; }
}
