:root {
  --bg: #f7f8fb; --surface: #fff; --ink: #172449; --muted: #465477;
  --line: #d7dded; --accent: #c7213d; --btn: #263d88; --on-btn: #fff; --soft: #edf1fa;
  --radius: 16px; --head: "Golos Text", Arial, sans-serif;
  --body: "Golos Text", Arial, sans-serif; --serif: "Playfair Display", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ca541c; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 720; line-height: 1.03; }
h1 { font-size: clamp(2.8rem, 5.85vw, 5.75rem); letter-spacing: -.063em; }
h2 { font-size: clamp(2.25rem, 4.4vw, 4.2rem); letter-spacing: -.068em; }
h3 { font-size: clamp(1.35rem, 2.45vw, 2.1rem); letter-spacing: -.045em; }
em { font-style: normal; }
.wrap { width: min(100% - 6rem, 1240px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
section[id] { scroll-margin-top: 20px; }
.skip { position: absolute; z-index: 20; top: .7rem; left: .7rem; padding: .6rem 1rem; background: #fff; color: #172449; transform: translateY(-160%); }
.skip:focus { transform: none; }
.btn { min-height: 53px; padding: .82rem 1.35rem; display: inline-flex; align-items: center; justify-content: center; font: 620 1rem/1.2 var(--body); color: var(--on-btn); background: var(--btn); border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; text-align: center; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); color: #fff; }
.btn-small { min-height: 43px; padding: .62rem 1rem; font-size: .9rem; }
.text-action { font-weight: 620; text-decoration-thickness: 1px; text-underline-offset: .26em; }
.text-action:hover, .site-nav a:hover, .socials a:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.35rem; }
.preview-bar { background: #172449; color: #e4e9f8; }
.preview-links { display: flex; align-items: stretch; gap: .1rem; overflow-x: auto; scrollbar-color: #8390b7 #172449; }
.preview-links a { flex: 0 0 auto; padding: .58rem .82rem; font-size: .87rem; line-height: 1.45; text-decoration: none; }
.preview-links a:hover, .preview-links [aria-current] { color: #fff; background: #394d89; }
.preview-links .compare-link { padding-left: 0; margin-right: .25rem; font-weight: 700; }
.preview-links :focus-visible { outline-offset: -3px; outline-color: #fbc0aa; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 86px; }
.brand { display: inline-flex; gap: .65rem; align-items: center; line-height: 1.2; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; }
.brand b { display: block; font-size: 1.22rem; letter-spacing: -.042em; }
.brand small { color: var(--muted); font-size: .875rem; }
.site-nav { display: flex; align-items: center; gap: clamp(.85rem, 2.3vw, 2.3rem); }
.site-nav a { font-size: .96rem; font-weight: 530; text-decoration: none; }
.kicker { font-size: .875rem; font-weight: 650; letter-spacing: .045em; }
.place-mark { display: inline-block; width: 8px; height: 8px; margin-right: .38rem; border: 2px solid currentColor; transform: rotate(45deg); vertical-align: 1px; }
.hero-copy { min-width: 0; }
.hero-copy .kicker { margin-bottom: 1.4rem; }
.hero-intro { max-width: 35ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); }
.hero-copy .hero-intro { margin-block: 1.5rem; }
.hero-photo { position: relative; overflow: hidden; min-width: 0; }
.hero-photo img, .about-photo img, .scene-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption, .scene-photo figcaption { position: absolute; right: .6rem; bottom: .6rem; border-radius: 4px; background: #14213be8; color: #fff; padding: .2rem .48rem; font-size: .77rem; }

.minimal { --bg: #fbfcff; --btn: #293d83; --radius: 7px; }
.minimal-hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(1.8rem, 5vw, 5rem); padding-block: clamp(4rem, 7vw, 7rem); }
.minimal-hero h1 span { color: var(--accent); }
.minimal-hero .hero-photo { height: clamp(360px, 42vw, 520px); border-radius: 7px; }
.minimal-hero .hero-photo img { object-position: 54% center; }
.minimal .course { border-top: 2px solid var(--line); padding-inline: 0 1.2rem; }
.minimal .course:first-child { border-color: var(--accent); }

.bento { --bg: #f3f5ff; --accent: #bf2141; --btn: #263cac; --radius: 21px; }
.bento-hero { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; padding-block: clamp(2rem, 4.8vw, 4.6rem) clamp(2rem, 5vw, 5rem); }
.bento-hero > * { border-radius: var(--radius); }
.bento-main { grid-column: span 3; background: #e4eaff; padding: clamp(1.5rem, 4vw, 3.65rem); }
.bento-main h1 { margin-block: .9rem 1rem; font-size: clamp(3rem, 5.8vw, 5.75rem); }
.bento-main h1 span { color: var(--accent); }
.bento-main .actions { margin-top: 1.35rem; }
.bento-main .btn { --radius: 10px; }
.bento-hero .hero-photo { grid-column: span 3; min-height: 370px; }
.bento-hero .hero-photo img { position: absolute; inset: 0; object-position: 53% 48%; }
.bento-price, .bento-exams, .bento-place { grid-column: span 2; display: grid; align-content: space-between; min-height: 148px; padding: 1.25rem 1.45rem; line-height: 1.25; text-decoration: none; transition: transform .2s; }
.bento-price { background: #233992; color: #fff; }
.bento-exams { background: #fbdce4; color: #77192f; }
.bento-place { background: #e4eaff; }
.bento-hero a:not(.btn):hover { transform: translateY(-3px); }
.bento-hero a strong { margin-block: .4rem; font-size: clamp(1.45rem, 3.05vw, 2.7rem); line-height: 1.02; letter-spacing: -.055em; }
.bento-hero a span { font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.bento .course { background: #e6ecff; border-radius: var(--radius); }
.bento .course:nth-child(2) { background: #fbe0e6; }
.bento .course:nth-child(3) { background: #fff; }
.bento .price-section { background: #e8edff; }

.type { --bg: #f4f3f0; --surface: #fcfbf8; --ink: #202b52; --muted: #444e69; --accent: #af243c; --btn: #27386c; --line: #c9cbd4; --soft: #edeae4; --radius: 3px; --head: var(--serif); }
.type h1, .type h2, .type h3 { font-weight: 650; letter-spacing: -.055em; }
.type-hero { padding-top: clamp(2rem, 4vw, 3.9rem); }
.type-masthead { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .15rem 1rem; border-block: 1px solid var(--accent); padding-block: .63rem; color: var(--accent); }
.type-hero h1 { font-size: clamp(3.55rem, 11vw, 10.1rem); line-height: .96; padding-block: .15em .24em; }
.type-hero h1 em { color: var(--accent); }
.type-hero h1 span { color: var(--accent); }
.type-deck { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 1.5rem; }
.type-hero .hero-photo { height: clamp(240px, 40vw, 470px); }
.type-hero .hero-photo img { object-position: 50% 44%; }
.type .courses { grid-template-columns: 1fr; gap: 0; }
.type .course { display: grid; grid-template-columns: 1fr 1fr 11rem; align-items: start; padding-inline: 0; min-height: 0; border-top: 1px solid var(--line); }
.type .course a { justify-self: end; }

.collage { --bg: #faf4e9; --surface: #fffaf3; --ink: #1e345e; --muted: #475170; --accent: #b82037; --btn: #b82037; --line: #dfcfc5; --soft: #f3e7d8; --radius: 5px; }
.collage .btn:hover { background: #233b78; }
.collage .site-header { background: #fffaf2; }
.collage-hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; min-height: 620px; gap: 1rem; padding-block: clamp(3rem, 6vw, 6rem); }
.collage-hero h1 { max-width: 9ch; font-size: clamp(3.55rem, 6.8vw, 6.65rem); }
.collage-hero h1 em { display: inline-block; color: var(--accent); font-family: Georgia, serif; font-style: italic; transform: rotate(-7deg); }
.collage-hero .hero-intro { max-width: 37ch; margin-top: 1.9rem; }
.pinboard { position: relative; min-height: clamp(345px, 40vw, 545px); background: radial-gradient(#725f5529 1px, transparent 1px) 0 0/14px 14px; border-radius: 55% 25% 35% 20%; isolation: isolate; }
.print { position: absolute; background: #fff; padding: clamp(.4rem, 1vw, .9rem); box-shadow: 0 12px 30px #342a3835; }
.print img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.print figcaption { padding: .4rem 0 .1rem; color: #35435c; font-size: .78rem; }
.first-print { width: 73%; top: 5%; left: 3%; transform: rotate(-6deg); }
.second-print { width: 54%; right: 3%; bottom: 1%; transform: rotate(9deg); }
.first-print::before { content: ""; height: 26px; width: 104px; position: absolute; left: 38%; top: -11px; background: #eace80c9; transform: rotate(4deg); }
.second-print::before { content: ""; height: 23px; width: 74px; position: absolute; left: 35%; top: -8px; background: #df9da4b3; transform: rotate(-9deg); }
.sticker { position: absolute; display: grid; place-items: center; width: clamp(50px, 8vw, 105px); aspect-ratio: 1; background: #edc558; color: #183361; right: 3%; top: 7%; border-radius: 50%; font: italic 700 clamp(1.6rem, 5vw, 4rem)/1 Georgia, serif; transform: rotate(12deg); box-shadow: 3px 4px 0 #ffd986; }
.collage .course { border: 1px solid var(--line); border-top: 5px solid #d74654; background: #fffaf2; box-shadow: 4px 5px 0 #e7dacd; }
.collage .course:nth-child(2) { border-top-color: #344e99; }
.collage .course:nth-child(3) { border-top-color: #b38326; }

.story { --bg: #101933; --surface: #172546; --ink: #f7f9ff; --muted: #ccd5ea; --line: #3b496e; --soft: #162240; --accent: #ff9aab; --btn: #ffc9d3; --on-btn: #341628; --radius: 7px; }
.story .btn:hover { color: #24122b; }
.story .site-header { background: #131e3a; position: relative; z-index: 1; }
.story-hero { position: relative; min-height: clamp(560px, 51vw, 760px); display: grid; align-items: center; isolation: isolate; }
.story-hero .hero-photo { position: absolute; inset: 0 0 0 19%; z-index: -2; }
.story-hero .hero-photo img { object-position: 50% 40%; }
.story-hero .hero-photo figcaption { z-index: 1; }
.story-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101933 4%, #101933fa 16%, #101933d9 35%, #10193342 67%, transparent 92%), linear-gradient(0deg, #101933a0, transparent 45%); pointer-events: none; }
.story-copy { padding-block: 3rem 4rem; }
.story-copy .kicker { color: #ffd2d9; margin-bottom: 1.25rem; }
.story-copy h1 { font-size: clamp(4rem, 9.5vw, 9.2rem); line-height: .92; }
.story-copy h1 em { color: #ffc9d3; }
.story-copy .hero-intro { color: #e2e8f4; margin-block: 1.35rem; }
.story-path { padding-top: clamp(4.5rem, 10vw, 9rem); }
.story-path h2 { max-width: 15ch; }
.story-scene { display: grid; grid-template-columns: .68fr 1.32fr; align-items: center; gap: clamp(1.6rem, 6vw, 6rem); margin-block: clamp(2.4rem, 6vw, 5.5rem); }
.story-scene + .story-scene { grid-template-columns: 1.18fr .82fr; }
.story-scene + .story-scene .scene-photo { order: -1; }
.story-scene h3 { color: #ffc9d3; font-size: clamp(1.85rem, 4vw, 3.4rem); }
.story-scene p { color: var(--muted); margin-block: 1rem; }
.scene-photo { position: relative; height: clamp(240px, 33vw, 425px); border-radius: var(--radius); overflow: hidden; }
.story .course { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.story .about-photo img { height: auto; aspect-ratio: auto 3 / 2; }
.story .socials { gap: .6rem; margin-top: 1rem; }
.story .socials .btn { min-height: 48px; }
.story :is(.about-vk, .social-vk) { --btn: #c4d6ff; --on-btn: #12285a; }
.story .social-telegram { --btn: #aee4fa; --on-btn: #103449; }
.story .social-max { --btn: #ddd2ff; --on-btn: #302059; }
.story :is(.about-vk, .socials .btn):hover { background: #fff; color: var(--on-btn); }


.section-head { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 1.2rem; padding-bottom: clamp(1.6rem, 4vw, 3.5rem); }
.section-head p { color: var(--muted); max-width: 37ch; justify-self: end; }
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.course { min-height: 228px; padding: 1.4rem; display: grid; align-content: start; gap: .9rem; }
.course p, .about p, .application p, .contact-grid p, .faq p { color: var(--muted); }
.course .text-action { justify-self: start; }
.price-section { background: var(--soft); }
.table-hint { display: none; }
.price-group { border-top: 1px solid var(--line); }
.price-group:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-weight: 630; padding-block: .9rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: .56rem; height: .56rem; margin-right: .35rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); flex: 0 0 auto; }
details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.price-group summary { font-size: clamp(1.3rem, 2.3vw, 1.9rem); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); margin-bottom: 1.5rem; }
.price-table { width: 100%; border-collapse: collapse; min-width: 590px; text-align: left; }
.price-table th, .price-table td { border-bottom: 1px solid var(--line); padding: .65rem .95rem; vertical-align: top; }
.price-table thead th { background: var(--soft); }
.price-table small { display: block; color: var(--muted); font-size: .865rem; }
.price-table td:last-child { white-space: nowrap; font-weight: 650; }
.price-table tr:last-child > * { border-bottom: 0; }
.price-notes { color: var(--muted); margin-top: 1.25rem; }
.price-notes p + p { margin-top: .35rem; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 6.4vw, 6rem); align-items: center; }
.about-photo img { height: clamp(230px, 30vw, 390px); border-radius: var(--radius); object-position: center 43%; }
.about-photo figcaption { color: var(--muted); margin-top: .45rem; font-size: .875rem; }
.about p { margin-block: 1.2rem; }
.application { background: var(--soft); }
.application-layout { display: grid; grid-template-columns: 1fr 1.13fr; align-items: start; gap: clamp(1.7rem, 7vw, 6.7rem); }
.application-layout > div > p { margin-top: 1rem; }
.preview-note { padding-left: 1rem; border-left: 3px solid var(--accent); margin-top: 1.4rem; max-width: 40ch; }
.preview-note .text-action { display: inline-block; margin-top: .5rem; }
.application-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2rem); }
.application-form label, .application-form legend { font-weight: 550; font-size: .96rem; }
.application-form > label { display: block; }
.application-form input:not([type="radio"],[type="checkbox"]), .application-form select { display: block; width: 100%; min-width: 0; min-height: 47px; font: inherit; padding: .55rem .65rem; border-radius: 5px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); margin: .25rem 0 .95rem; }
.application-form select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 15px) center, linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 10px) center, var(--bg); background-repeat: no-repeat; background-size: 5px 5px; }
.application-form input::placeholder { color: var(--muted); opacity: .9; }
.application-form fieldset { border: 0; margin: 0 0 .85rem; padding: 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; min-width: 0; }
.radio-row label { display: inline-flex; align-items: center; min-height: 35px; }
.application-form input:is([type="radio"],[type="checkbox"]) { accent-color: var(--accent); width: 17px; height: 17px; margin: 0 .34rem 0 0; align-self: center; }
.application-form .consent { display: flex; align-items: start; margin-block: .9rem 1.1rem; }
.application-form .consent input { flex: 0 0 17px; align-self: start; margin-top: .18rem; }
.application-form .button { min-height: 49px; border-radius: var(--radius); padding: .7rem 1.1rem; background: var(--btn); color: var(--on-btn); border: 0; font: 640 1rem/1 var(--body); cursor: pointer; }
.application-form .button:disabled { opacity: .55; cursor: default; }
.form-status:not(:empty) { margin-top: .8rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 2rem; }
.contact-grid h2 { max-width: 12ch; }
address { font-style: normal; font-size: 1.2rem; margin-block: 1rem .5rem; }
.phone { display: inline-block; margin-top: .75rem; font-size: clamp(1.28rem, 2.5vw, 1.8rem); font-weight: 650; }
.socials { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin-top: .8rem; }
.map-card { background: var(--soft); border-radius: var(--radius); padding: 1rem; display: grid; justify-items: start; align-content: space-between; gap: .8rem; }
.map-art { width: 100%; min-height: 186px; display: grid; place-content: center; justify-items: center; gap: .4rem; border-radius: var(--radius); color: #253761; background: repeating-linear-gradient(32deg,#d9e3f7 0 75px,#f6f7fc 75px 87px,#dee6f7 87px 145px); }
.map-art span { font-weight: 620; background: #fff; padding: .15rem .5rem; border-radius: 4px; }
.map-art b { background: #a82342; color: #fff; padding: .2rem .55rem; border-radius: 7px; }
.faq { margin-top: 3.25rem; max-width: 760px; }
.faq h3 { margin-bottom: .85rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq p { padding-bottom: 1rem; }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; }

.gallery { --bg: #f4f6fb; --ink: #172449; --muted: #455479; }
.gallery-header { border-bottom: 1px solid #d8deee; }
.gallery-intro { padding-block: clamp(2.5rem, 6vw, 5.4rem) clamp(1.6rem, 4.2vw, 3.75rem); display: grid; grid-template-columns: 1.55fr .65fr; align-items: end; gap: 1.15rem; }
.gallery-intro h1 { font-size: clamp(2.7rem, 6.75vw, 6.3rem); }
.gallery-intro p { font-size: 1.06rem; color: var(--muted); max-width: 32ch; margin-bottom: .35rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.gallery-card { min-width: 0; grid-column: span 2; display: block; border: 1px solid #d8deee; color: inherit; text-decoration: none; border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .22s, transform .22s; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px #17244917; }
.gallery-card:first-child, .gallery-card:nth-child(2) { grid-column: span 3; }
.gallery-shot { height: clamp(150px, 19.5vw, 254px); position: relative; overflow: hidden; background: #e5eafa; }
.gallery-shot > img { height: 100%; width: 100%; object-fit: cover; object-position: center 43%; }
.gallery-motif { position: absolute; inset: 0; pointer-events: none; }
.gallery-card-copy { padding: 1.1rem 1.25rem 1.25rem; }
.gallery-card h2 { font-size: clamp(1.38rem, 2.4vw, 2.07rem); margin-bottom: .45rem; letter-spacing: -.06em; }
.gallery-card p { color: var(--muted); }
.gallery-minimal .gallery-shot > img { width: 64%; margin-left: auto; }
.gallery-minimal .gallery-motif { inset: 28% auto auto 5%; width: 25%; height: 41%; background: linear-gradient(#263b81 0 15%,transparent 15% 26%,#263b81 26% 41%,transparent 41% 71%,#a7b3d5 71% 76%,transparent 76% 88%,#a7b3d5 88% 93%,transparent 93%); }
.gallery-bento .gallery-shot > img { width: 58%; height: 67%; margin: 4% 4% 0 auto; border-radius: 12px; }
.gallery-bento .gallery-motif { inset: 9% auto 13% 5%; background: #27419e; width: 30%; border-radius: 12px;  }
.gallery-bento .gallery-shot::after { content: ""; position: absolute; inset: 78% 6% 6% 39%; border-radius: 6px; background: #e998aa; }
.gallery-type .gallery-shot { background: #ede9de; }
.gallery-type .gallery-shot > img { margin-top: 26%; height: 75%; }
.gallery-type .gallery-motif::before { position: absolute; content: "Английский."; color: #242d53; inset: 4% 0 auto 6%; font: 650 clamp(2rem, 3.8vw, 4.35rem)/1 var(--serif); letter-spacing: -.08em; }
.gallery-collage .gallery-shot { background: #f0dfc7; }
.gallery-collage .gallery-shot > img { width: 75%; height: 89%; margin: 5% auto 0; transform: rotate(-6deg); border: 8px solid #fff; }
.gallery-collage .gallery-motif::before { content: "Hi!"; position: absolute; right: 10%; bottom: 11%; transform: rotate(8deg); display: grid; place-items: center; width: 52px; height: 52px; color: #203473; background: #f5c655; border-radius: 50%; font: italic 700 1.5rem/1 Georgia, serif; }
.gallery-story .gallery-motif { background: linear-gradient(90deg, #111b35f0, #111b3580 43%, transparent); }
.gallery-story .gallery-motif::before { position: absolute; content: "hello."; top: 40%; left: 8%; color: #ffc9d3; font-weight: 750; font-size: clamp(2rem, 4vw, 4.3rem); letter-spacing: -.1em; line-height: 1; }

@keyframes enter-scene { from { opacity: .30; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .scene-in { animation: enter-scene .7s ease-out both; }
}
@media (max-width: 960px) {
  .wrap { width: min(100% - 3.5rem, 1240px); }
  .minimal-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
  .type .course { grid-template-columns: 1fr 1fr; }
  .type .course a { grid-column: 2; justify-self: start; }
  .collage-hero { min-height: 0; }
  .collage-hero h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 2rem, 1240px); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: .65rem 1rem; padding-top: .65rem; }
  .site-nav { width: 100%; order: 2; justify-content: space-between; flex-wrap: wrap; gap: .45rem; padding: .5rem 0 .75rem; border-top: 1px solid var(--line); }
  .site-nav a { font-size: .875rem; }
  .preview-links { width: 100%; padding-inline: 1rem; }
  .brand img { width: 43px; height: 43px; }
  .brand b { font-size: 1.05rem; }
  .gallery-header { min-height: 72px; }
  .gallery-header > a:last-child { font-size: .875rem; text-align: right; }
  .section-head, .gallery-intro, .about, .application-layout, .contact-grid, .collage-hero, .minimal-hero, .story-scene, .story-scene + .story-scene { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .minimal-hero { padding-block: 3rem 1.8rem; }
  .minimal-hero .hero-photo { height: clamp(265px, 78vw, 470px); }
  .bento-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .bento-main, .bento-hero .hero-photo, .bento-place { grid-column: span 2; }
  .bento-hero .hero-photo { min-height: clamp(220px, 66vw, 390px); }
  .bento-price, .bento-exams { grid-column: span 1; min-height: 115px; padding: .9rem; }
  .bento-place { min-height: 107px; padding: .9rem; }
  .type-hero h1 { font-size: clamp(3rem, 11.9vw, 6.7rem); }
  .type-deck { flex-direction: column; align-items: start; gap: 1rem; }
  .type .course { grid-template-columns: 1fr; }
  .type .course a { grid-column: auto; }
  .collage-hero { gap: 1.3rem; padding-block: 2.75rem 1.5rem; }
  .pinboard { min-height: clamp(285px, 83vw, 520px); }
  .second-print { right: 5%; }
  .story-hero { align-items: end; min-height: 620px; }
  .story-hero .hero-photo { inset: 0 0 20%; }
  .story-hero .hero-photo img { object-position: 55% center; }
  .story-hero .hero-photo figcaption { inset: .6rem .6rem auto auto; }
  .story-hero::after { background: linear-gradient(0deg, #101933 15%, #101933f4 28%, #1019339c 49%, #10193300 79%); }
  .story-copy { padding-bottom: 2.3rem; }
  .story-copy h1 { font-size: clamp(3.6rem, 12vw, 6.5rem); }
  .story-scene + .story-scene .scene-photo { order: initial; }
  .courses { grid-template-columns: 1fr; }
  .course { min-height: 0; }
  .about-photo { order: 1; }
  .table-hint { display: block; margin-bottom: .7rem; color: var(--muted); font-size: .875rem; }
  .price-table { min-width: 490px; }
  .price-table th, .price-table td { padding-inline: .62rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card, .gallery-card:first-child, .gallery-card:nth-child(2) { grid-column: span 1; }
  .gallery-card-copy { padding: .95rem; }
}
@media (max-width: 480px) {
  .bento-main h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-shot { height: 175px; }
  .gallery-type .gallery-shot > img { margin-top: 16%; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.application-form h3 { margin-bottom: .65rem; }
.application-form .btn { margin-top: 1.15rem; }

.application-form .trap { display: none; }
.application-form .btn:disabled { opacity: .6; cursor: default; }
