:root {
  --navy: #14234b;
  --navy-soft: #33415f;
  --gold: #8a5a10;
  --gold-bright: #c98b2b;
  --gold-pale: #f0d9a8;
  --paper: #fbf7ee;
  --paper-edge: #e7dcc6;
  --ink: #26304a;
  --sky: #cfe3f3;
  --shadow: 0 10px 28px -14px rgba(52, 40, 18, .45);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--sans);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
.preview-note { margin: 0; padding: .35rem 1rem; text-align: center; font-size: .8125rem; background: var(--navy); color: #f3e7cc; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(20, 35, 75, .1); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 600 1.25rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.logo b { color: var(--gold); font-weight: 600; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav > a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--navy); padding: .6rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav > a:not(.btn):hover, .nav > a[aria-current="page"] { color: var(--gold); border-color: var(--gold-bright); }
.lang { display: flex; gap: .15rem; font-size: .85rem; font-weight: 600; }
.lang a { text-decoration: none; padding: .45rem .5rem; border-radius: 6px; color: var(--navy-soft); }
.lang a[aria-current="true"] { background: var(--navy); color: #fff; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; }
.burger .ic { width: 28px; height: 28px; margin: auto; }
.burger .ic:last-child, .burger[aria-expanded="true"] .ic:first-child { display: none; }
.burger[aria-expanded="true"] .ic:last-child { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.25rem; border-radius: 8px; border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { color: #fff; background: linear-gradient(180deg, #cf9440, #a9701c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -8px rgba(120, 76, 10, .8); text-shadow: 0 1px 0 rgba(90, 55, 5, .45); }
.btn-gold:hover { background: linear-gradient(180deg, #d79c48, #b47a22); }
.btn-paper { color: var(--navy); background: #fffdf8; border-color: var(--paper-edge); box-shadow: 0 4px 10px -8px rgba(52, 40, 18, .6); }
.btn-paper:hover { background: #fff; border-color: var(--gold-bright); }
.arrow { color: var(--gold-bright); transition: transform .25s var(--ease); }
a:hover > .arrow, a:hover strong > .arrow { transform: translateX(4px); }

/* Первый экран */
.hero { position: relative; background: #9cc3e4 url("../img/hero-door.webp") 58% 40% / cover no-repeat; overflow: hidden; min-height: min(78vh, 720px); display: grid; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(236, 244, 251, .78) 0%, rgba(236, 244, 251, .5) 34%, rgba(236, 244, 251, 0) 58%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(244, 239, 228, .95)); pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.6fr .6fr; align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero h1 { position: relative; font-weight: 800; font-size: clamp(2.6rem, 7.4vw, 5.9rem); line-height: 1.04; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 1px 18px rgba(255, 255, 255, .6); padding-bottom: 1.6rem; }
.hero h1 span { display: block; }
.hero h1 .gold { color: var(--navy); }
.stroke { position: absolute; left: 26%; bottom: 0; width: min(52%, 320px); height: 18px; background: linear-gradient(90deg, transparent, #c98b2b 18%, #e0ad55 60%, transparent); border-radius: 60% 40% 70% 30% / 100%; transform: rotate(-7deg); opacity: .9; filter: blur(.4px); }
.leaf { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 14px 14px rgba(20, 35, 75, .22)); }
.leaf-a { width: min(30vw, 380px); left: 2%; top: 0; transform: rotate(-12deg); }
.leaf-b { z-index: 3; width: min(22vw, 270px); right: 1.5%; bottom: 2%; transform: rotate(-20deg); }

.polaroid { position: relative; justify-self: end; width: min(100%, 300px); margin-right: clamp(-2rem, -2vw, 0rem); padding: 14px 14px 12px; background: #f7f0e1; border-radius: 3px; box-shadow: 0 22px 40px -18px rgba(20, 35, 75, .7), 0 2px 0 rgba(255, 255, 255, .7) inset; transform: rotate(4deg); transition: transform .5s var(--ease); }
.polaroid:hover, .polaroid:focus-within { transform: rotate(2deg) translateY(-4px); }
.pin-head { position: absolute; left: 50%; top: -12px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c79a52, #6b4310 70%); box-shadow: 0 6px 6px -2px rgba(0, 0, 0, .45); z-index: 3; }
.slides { position: relative; aspect-ratio: 1 / 1.12; overflow: hidden; background: #d9cdb6; }
.slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; text-decoration: none; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap { position: absolute; inset: auto 0 0; padding: 2.4rem .9rem .8rem; background: linear-gradient(180deg, transparent, rgba(12, 22, 48, .88)); color: #fff; display: grid; gap: .1rem; }
.slide-cap em { font: 600 1.3rem/1.1 "Caveat", cursive; color: #ffd98a; font-style: normal; }
.slide-cap strong { font: 700 1.05rem/1.2 var(--serif); }
.slide-nav { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.slide-tag { font: 600 1.35rem/1 "Caveat", cursive; color: var(--navy); }
.dots { display: flex; }
.dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #c9bb9d; transition: background-color .2s, transform .2s; }
.dots button[aria-current="true"]::after { background: var(--gold); transform: scale(1.25); }

/* Три карточки */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: -1.2rem; position: relative; z-index: 3; }
.card { position: relative; display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--paper-edge); border-radius: 6px; padding: 10px 10px 0; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 34px -18px rgba(52, 40, 18, .55); }
.card-pic { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 9.5; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-pic img { transform: scale(1.05); }
.card-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fffdf8; border: 2px solid var(--gold-bright); color: var(--gold); box-shadow: 0 4px 10px -4px rgba(52, 40, 18, .5); }
.card-ic .ic { width: 28px; height: 28px; }
.card-body { display: grid; gap: .35rem; padding: 2.1rem .9rem 1.2rem; font-size: .93rem; color: var(--navy-soft); line-height: 1.5; }
.card-body strong { display: flex; align-items: center; justify-content: space-between; font: 800 1.35rem/1.1 var(--serif); text-transform: uppercase; color: var(--navy); }
.card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.card > * { grid-column: 1; }
.card .card-ic { position: relative; left: auto; top: auto; margin: -27px 0 -27px 12px; z-index: 2; grid-row: 2; align-self: start; }
.card .card-body { grid-row: 2; }

/* Отсчёт и карта */
.duo { display: grid; grid-template-columns: .82fr 1.18fr; gap: 0; margin-top: 2rem; background: rgba(251, 247, 238, .82); border: 1px solid var(--paper-edge); border-radius: 6px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.count, .mapbox { padding: clamp(1.25rem, 3vw, 2.25rem); text-align: center; }
.mapbox { border-left: 1px solid var(--paper-edge); }
.duo h2, .connect h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; text-transform: uppercase; }
.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1.25rem auto 1.1rem; max-width: 380px; }
.unit b { display: block; padding: .5rem 0; background: #fffdf8; border: 1px solid var(--paper-edge); border-radius: 6px; box-shadow: 0 6px 12px -10px rgba(52, 40, 18, .7); font: 600 clamp(1.9rem, 4.6vw, 2.9rem)/1.1 "Oswald", var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
.unit span { display: block; margin-top: .4rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-soft); }
.date { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font: 800 1.3rem/1 var(--serif); text-transform: uppercase; color: var(--gold); }
.date .ic { width: 30px; height: 30px; }
.count blockquote { margin: 0; font-size: .98rem; color: var(--navy-soft); }
cite { display: block; margin-top: .3rem; font-style: normal; font-weight: 600; color: var(--navy); }
.lead { max-width: 46ch; margin: .5rem auto .75rem; color: var(--navy-soft); font-size: .95rem; }
.map { width: 100%; height: auto; }
.pin { fill: url(#pin); stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
.pin:nth-child(3n) { animation-delay: -1.1s; } .pin:nth-child(3n+1) { animation-delay: -2.2s; }
.mine .pin { r: 8; stroke: var(--navy); stroke-width: 2; animation-duration: 1.6s; }
@keyframes pulse { 50% { transform: scale(1.45); opacity: .82; } }
.joinform { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; margin-top: .9rem; text-align: left; }
.joinform label { position: relative; display: block; }
.joinform label span { display: block; font-size: .75rem; font-weight: 600; color: var(--navy-soft); margin-bottom: .2rem; }
.joinform .ic { position: absolute; left: .7rem; bottom: .75rem; color: var(--gold-bright); pointer-events: none; }
.joinform select, .joinform input { width: 100%; min-height: 44px; padding: .5rem .7rem .5rem 2.3rem; border: 1px solid var(--paper-edge); border-radius: 8px; background: #fffdf8; font: inherit; font-size: 1rem; color: var(--navy); }
.joinform .btn { align-self: end; white-space: nowrap; }
.join-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: .9rem; font-weight: 600; color: var(--gold); }
.map-foot { margin: .4rem 0 0; font-size: .85rem; font-weight: 600; color: var(--navy); }

/* Оставайтесь на связи */
.connect { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-block: 2rem 3rem; padding: 12px; background: rgba(251, 247, 238, .82); border: 1px solid var(--paper-edge); border-radius: 6px; box-shadow: var(--shadow); }
.connect img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; border-radius: 3px; }
.connect > div { padding: .5rem 1rem .5rem 0; }
.connect p { color: var(--navy-soft); margin: .6rem 0 1rem; max-width: 58ch; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* Внутренние страницы */
.inner main { padding-bottom: 3rem; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 3rem); }
.sec-text h1, .page-head h1, .article h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; text-transform: uppercase; margin: .8rem 0 .8rem; }
.sec-text p, .page-head p { color: var(--navy-soft); font-size: 1.05rem; max-width: 60ch; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; border: 10px solid var(--paper); box-shadow: var(--shadow); background: #33415f center / cover no-repeat; display: grid; place-items: center; }
.play { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 253, 248, .92); color: var(--gold); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); }
.play .ic { width: 30px; height: 30px; margin-left: 4px; }
.video.has-media { display: block; background: #0c1630; overflow: hidden; }
.video.has-media video, .video.has-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-note { position: absolute; left: .75rem; bottom: .75rem; right: .75rem; display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border: 1px dashed rgba(255, 255, 255, .7); border-radius: 6px; color: #fff; font-size: .85rem; font-weight: 500; background: rgba(12, 22, 48, .55); }
.block { margin-top: 1.5rem; padding: clamp(1rem, 3vw, 2rem); background: rgba(251, 247, 238, .88); border: 1px solid var(--paper-edge); border-radius: 6px; box-shadow: var(--shadow); }
.block > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; text-transform: uppercase; margin-bottom: 1rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--paper-edge); }
.list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem .5rem; text-decoration: none; border-radius: 6px; transition: background-color .2s; }
.list a:hover { background: #fffdf8; }
.list i { font: 600 1.5rem/1 "Oswald", var(--sans); font-style: normal; color: var(--gold-bright); }
.list span span { display: block; color: var(--navy-soft); font-size: .93rem; }
.list strong { display: block; font: 700 1.2rem/1.25 var(--serif); color: var(--navy); margin-bottom: .2rem; }
.note { font-size: .93rem; color: var(--navy-soft); padding: .7rem .9rem; background: #fffdf8; border: 1px solid var(--gold-pale); border-radius: 6px; }
.note a { color: var(--gold); font-weight: 600; }
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.res-books { grid-template-columns: 1fr; }
.res-book { grid-template-columns: 200px 1fr; gap: 1.5rem; padding: 1.25rem; }
.res-book img { width: 200px; }
.res-book p { display: block; -webkit-line-clamp: none; overflow: visible; font-size: .95rem; margin-bottom: .7rem; }
.res-book .by { font-weight: 600; color: var(--gold); }
.res { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .9rem; background: #fffdf8; border: 1px solid var(--paper-edge); border-radius: 6px; }
.res img { width: 120px; border-radius: 3px; box-shadow: 0 8px 16px -10px rgba(20, 35, 75, .7); }
.res em, .event em { font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.res h3 { font-size: 1.2rem; margin: .25rem 0 .4rem; }
.res p { font-size: .9rem; color: var(--navy-soft); margin-bottom: .8rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.count-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--paper-edge); text-align: left; }
.count-line h2 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; max-width: 12ch; }
.count-line .units { margin: 0; flex: 1 1 280px; }
.count-line .date { margin: 0; }

.article { max-width: 820px; padding-block: 1.5rem; }
.back { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--gold); }
.prose { font-size: 1.06rem; line-height: 1.7; }
.article .prose { padding: clamp(1rem, 3vw, 2rem); background: rgba(251, 247, 238, .9); border: 1px solid var(--paper-edge); border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.prose h2, .prose h3 { margin: 1.4em 0 .5em; font-size: 1.4rem; }
.prose h3 { font-size: 1.2rem; }
.prose a { color: var(--gold); font-weight: 600; overflow-wrap: anywhere; }
.prose blockquote { margin: 0 0 1em; padding: .9rem 1.1rem; background: #fffdf8; border: 1px solid var(--gold-pale); border-radius: 6px; font: 700 1.2rem/1.4 var(--serif); color: var(--navy); }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4em; }
.prose > :last-child { margin-bottom: 0; }
.prose .res-grid { margin-top: 1rem; font-size: 1rem; line-height: 1.5; }

.page-head { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.joel { margin: 1rem 0 0; max-width: 30ch; font: 700 clamp(1.3rem, 3vw, 1.9rem)/1.3 var(--serif); color: var(--gold); }
.events { display: grid; gap: 1.25rem; margin-top: 1rem; }
.event { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1rem, 3vw, 2rem); padding: 14px; background: rgba(251, 247, 238, .9); border: 1px solid var(--paper-edge); border-radius: 6px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.event:target { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(201, 139, 43, .35), var(--shadow); }
.event > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.event h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: .3rem 0 .6rem; }
.when { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--navy); }
.when .ic { color: var(--gold-bright); }
.event .prose { font-size: 1rem; }
.event .btns { margin-top: 1rem; }
.about { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; margin-top: 1.5rem; }
.about img { border: 10px solid var(--paper); border-radius: 3px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.about h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.panel { padding: clamp(1rem, 3vw, 1.75rem); background: rgba(251, 247, 238, .9); border: 1px solid var(--paper-edge); border-radius: 6px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.panel p { color: var(--navy-soft); }
.stores { display: flex; gap: .6rem; flex-wrap: wrap; }
.stores img { height: 40px; width: auto; }
.contact { margin-top: 1.25rem; }
.contact a { color: var(--gold); font-weight: 600; }

.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; cursor: pointer; list-style: none; font: 800 clamp(1.2rem, 2.4vw, 1.6rem)/1.2 var(--serif); text-transform: uppercase; color: var(--navy); }
.fold > summary::-webkit-details-marker { display: none; }
.fold .caret { color: var(--gold-bright); transition: transform .25s var(--ease); }
.fold[open] .caret { transform: rotate(180deg); }
.fold[open] > summary { margin-bottom: 1rem; }
.fold-text > summary { justify-content: flex-start; gap: .4rem; font: 600 .95rem/1.2 var(--sans); text-transform: none; color: var(--gold); }
.fold-text[open] > summary { margin-bottom: .6rem; }
.prose .fold { margin-top: 1rem; }

.sec-text .slogan { font: 700 clamp(1.25rem, 2.6vw, 1.7rem)/1.3 var(--serif); color: var(--gold); max-width: 30ch; }
.about-text .prose { max-width: 70ch; }
.article-wide { max-width: 1000px; }
.group-lead { color: var(--navy-soft); font-size: 1.05rem; max-width: 60ch; }
.article-wide .block { margin-top: 1rem; }

.reg { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; padding-block: clamp(1.5rem, 4vw, 3rem); }
.reg h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; text-transform: uppercase; margin-bottom: .8rem; }
.reg-text > p:not(.note) { color: var(--navy-soft); font-size: 1.05rem; max-width: 48ch; }
.regform { display: grid; gap: .9rem; }
.regform label span { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-soft); margin-bottom: .25rem; }
.regform input, .regform select { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--paper-edge); border-radius: 8px; background: #fffdf8; font: inherit; font-size: 1rem; color: var(--navy); }
.regform .btn { width: 100%; margin-top: .3rem; }
.reg-msg { margin: 0; min-height: 1.4em; font-size: .9rem; font-weight: 600; color: var(--gold); }
.reg-have { margin: 0; font-size: .9rem; color: var(--navy-soft); }
.reg-have a { color: var(--gold); font-weight: 600; }

/* Подвал */
.foot { background: var(--navy); color: #d9dfee; margin-top: 2rem; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2rem; padding-block: 2rem; font-size: .93rem; }
.foot .logo { color: #fff; margin-bottom: .6rem; }
.foot .logo b { color: var(--gold-pale); }
.foot p { max-width: 40ch; margin: 0; }
.foot nav, .foot-links { display: grid; gap: .1rem; align-content: start; }
.foot nav a, .foot-links a { text-decoration: none; padding: .35rem 0; }
.foot nav a:hover, .foot-links a:hover { color: var(--gold-pale); }

/* Телефон и планшет */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .5rem 1rem 1rem; background: #fff; border-bottom: 1px solid var(--paper-edge); box-shadow: 0 18px 24px -18px rgba(20, 35, 75, .5); display: none; }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid #eee6d6; }
  .nav-join { margin-top: .9rem; }
  .lang { margin-top: .8rem; justify-content: center; }
  .lang a { padding: .6rem 1.1rem; }
  .hero-in { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 1.5rem 2.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 12.5vw, 4.2rem); padding-bottom: 1.1rem; }
  .hero { min-height: 0; background-position: 62% 30%; }
  .hero::before { background: linear-gradient(180deg, rgba(236, 244, 251, .8) 0%, rgba(236, 244, 251, .45) 38%, rgba(236, 244, 251, 0) 60%); }
  .polaroid { justify-self: center; width: min(84%, 320px); transform: rotate(2.5deg); padding: 10px 10px 8px; }
  .slides { aspect-ratio: 1 / .82; }
  .cards { grid-template-columns: 1fr; gap: .7rem; margin-top: -1rem; }
  .card { grid-template-columns: 112px 1fr; grid-template-rows: auto; padding: 8px; align-items: center; }
  .card-pic { aspect-ratio: 1; grid-row: 1; grid-column: 1; }
  .card .card-ic { grid-row: 1; grid-column: 1; margin: 0 0 -6px -6px; align-self: end; width: 40px; height: 40px; }
  .card .card-ic .ic { width: 22px; height: 22px; }
  .card .card-body { grid-row: 1; grid-column: 2; padding: .2rem .4rem .2rem .9rem; font-size: .86rem; line-height: 1.4; }
  .card-body strong { font-size: 1.12rem; }
  .duo { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .mapbox { border-left: 0; border-top: 1px solid var(--paper-edge); }
  .joinform { grid-template-columns: 1fr 1fr; }
  .joinform .btn { grid-column: 1 / -1; }
  .connect { grid-template-columns: 1fr; margin-block: 1.25rem 2rem; }
  .connect img { max-height: 150px; }
  .connect > div { padding: 0 .5rem .6rem; }
  .sec-head { grid-template-columns: 1fr; }
  .res-grid, .pair, .about, .reg { grid-template-columns: 1fr; }
  .res p { -webkit-line-clamp: 2; }
  .about img { max-width: 220px; margin-inline: auto; }
  .event { grid-template-columns: 1fr; }
  .event > img { aspect-ratio: 16 / 7; }
  .video { place-items: start center; padding-top: 12%; }
  .video.has-media { padding-top: 0; }
  .play { width: 56px; height: 56px; }
  .foot-in { grid-template-columns: 1fr; gap: 1.25rem; }
  .foot nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .res { grid-template-columns: 88px 1fr; gap: .75rem; }
  .res img { width: 88px; }
  .res-book { grid-template-columns: 1fr; }
  .res-book img { width: 160px; }
  .joinform { grid-template-columns: 1fr; }
  .list a { grid-template-columns: auto 1fr; }
  .list a > .arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
