/* My English Classroom — общие стили */

:root {
  --paper: #fbf7f0;
  --paper-2: #f3ece0;
  --card: #ffffff;
  --ink: #1f2a44;
  --ink-soft: #4a5571;
  --muted: #7a8296;
  --line: #e4dccd;
  --accent: #d9603b;
  --accent-ink: #b44a28;
  --accent-soft: #fbe3d8;
  --green: #2f7d5b;
  --green-soft: #e1f1e8;
  --red-soft: #fbe4e1;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 42, 68, .05), 0 8px 24px rgba(31, 42, 68, .06);
  --wrap: 1120px;
  --text: 720px;

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

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

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font: 700 12px/1 var(--font-head); letter-spacing: .02em;
}
.logo__text { font: 700 14px/1.1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.logo__text small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.logo:hover { color: var(--ink); }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }

.burger {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 17px; }
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

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

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
  background: var(--paper);
}
/* Фото Лондона на фоне, приглушённое слева, где текст */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/img/hero-bg.jpg") 12% 35% / auto 150% no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 247, 240, .95) 0%, rgba(251, 247, 240, .9) 42%, rgba(251, 247, 240, .3) 58%, rgba(251, 247, 240, .15) 100%),
    linear-gradient(180deg, transparent 75%, var(--paper) 100%);
}
@media (max-width: 820px) {
  .hero::before { background-position: 45% top; background-size: auto 340px; }
  .hero::after { background: linear-gradient(180deg, rgba(251, 247, 240, .3) 0%, rgba(251, 247, 240, .82) 170px, rgba(251, 247, 240, .95) 300px, var(--paper) 100%); }
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.hero h1 span { color: var(--accent); }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__photo { position: relative; }
.hero__photo img { border-radius: 28px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.hero__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--accent); border-radius: 28px; z-index: -1;
}

.quote {
  position: relative;
  margin: 40px 0 0; padding: 22px 24px 20px 64px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
  border: 1px solid rgba(217, 96, 59, .25); border-left: 5px solid var(--accent);
  border-radius: 6px var(--radius) var(--radius) 6px;
  box-shadow: 0 10px 30px rgba(217, 96, 59, .16);
  max-width: 34em;
}
.quote::before {
  content: "“"; position: absolute; left: 16px; top: 4px;
  font: 700 64px/1 var(--font-head); color: var(--accent);
}
.quote p { margin: 0; font: italic 600 1.2rem/1.45 var(--font-head); color: var(--ink); }
.quote p + p { margin-top: 6px; font: 500 .98rem/1.5 var(--font-body); font-style: normal; color: var(--ink-soft); }
.quote cite { display: block; margin-top: 10px; font: 700 .82rem/1 var(--font-body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 220px; }
}

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

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.about p { color: var(--ink-soft); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.fact { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.fact b { display: block; font: 600 2rem/1.1 var(--font-head); color: var(--accent); margin-bottom: 6px; }
.fact span { font-size: .95rem; color: var(--ink-soft); line-height: 1.45; display: block; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* Опыт: таймлайн */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 32px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper-2); border: 3px solid var(--accent);
}
.timeline__when { font: 700 13px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { margin: 0; color: var(--ink-soft); }

.work {
  display: flex; gap: 18px; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  margin-top: 40px;
}
.work img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.work p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.work b { color: var(--ink); }

/* Сертификаты */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 0; padding: 0; text-align: left; cursor: zoom-in; font: inherit; color: inherit;
  display: flex; flex-direction: column; transition: transform .2s;
}
.cert:hover { transform: translateY(-3px); }
.cert img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.cert__body { padding: 16px 18px 18px; }
.cert__body b { display: block; font-size: 1rem; line-height: 1.35; }
.cert__body span { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .certs { grid-template-columns: 1fr; } }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(20, 24, 36, .85); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox__close {
  position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox__cap { color: #fff; text-align: center; margin-top: 10px; font-size: .95rem; }

/* Карточки материалов */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); color: var(--ink); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.card__more { font-weight: 700; color: var(--accent-ink); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Контакты */
.contact {
  background: var(--ink); color: #fff; border-radius: 28px;
  padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
}
.contact h2 { color: #fff; }
.contact p { color: rgba(255, 255, 255, .78); margin: 0; }
.contact__links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact .btn--primary { width: 100%; }
.contact__mail { color: #fff; font-weight: 600; word-break: break-all; }
.contact__mail:hover { color: var(--accent-soft); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

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

.footer { padding: 36px 0 44px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.footer__in { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer a { color: var(--ink-soft); }

/* ---------- Статьи ---------- */

.crumbs { font-size: .9rem; color: var(--muted); margin: 28px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.article { width: min(100% - 32px, var(--text)); margin: 0 auto; padding: 24px 0 72px; }
.article__head { margin-bottom: 32px; }
.article__head h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.article__lead { font-size: 1.18rem; color: var(--ink-soft); }
.article h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .35em; }
.article li::marker { color: var(--accent); font-weight: 700; }
.article figure { margin: 32px 0; }
.article figure img { border-radius: var(--radius); width: 100%; }
.article figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }

.en { font-weight: 700; color: var(--ink); }

.examples { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.examples li {
  background: var(--card); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 !important;
  box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
}
.examples li span { color: var(--ink-soft); }

.callout {
  background: var(--accent-soft); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout__title { font: 700 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; display: block; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 1.2em; }
.compare div { border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }
.compare .bad { background: var(--red-soft); text-decoration: line-through; text-decoration-color: rgba(180, 40, 30, .45); }
.compare .good { background: var(--green-soft); color: #1d5a40; }
.compare .bad::before { content: "✗ "; color: #b4281e; text-decoration: none; display: inline-block; margin-right: 4px; }
.compare .good::before { content: "✓ "; color: var(--green); }
@media (max-width: 480px) { .compare { grid-template-columns: 1fr; } }

.step { display: flex; gap: 16px; align-items: flex-start; margin-top: 2em; }
.step__n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font: 700 18px/1 var(--font-head); margin-top: 2px;
}
.step h2 { margin-top: 0; }
.step > div { min-width: 0; }

.more { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 32px; }
.more h2 { margin-top: 0; font-size: 1.4rem; }
.more ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.more a { font-weight: 600; }

/* 404 */
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound b { display: block; font: 600 clamp(4rem, 15vw, 8rem)/1 var(--font-head); color: var(--accent); }

[id] { scroll-margin-top: 76px; }
@media (max-width: 600px) {
  .step { display: block; }
  .step__n { display: grid; margin: 0 0 10px; }
}

/* Контакты — последний блок: делаем его высотой с экран, чтобы прокрутка из меню
   ставила его под шапку так же, как остальные секции */
.section--contact {
  background: var(--ink); color: #fff;
  /* контакты + подвал = ровно один экран под шапкой; высоту подвала подставляет main.js */
  min-height: calc(100svh - 64px - var(--footer-h, 140px));
  padding-top: 32px; padding-bottom: 32px;
  display: flex; flex-direction: column;
}
.section--contact > .wrap:last-child { margin-top: auto; }
.signoff {
  padding-top: 32px; margin: 0;
  font: italic 600 clamp(2.4rem, 8vw, 6.5rem)/1.05 var(--font-head);
  color: rgba(255, 255, 255, .09); letter-spacing: -.02em;
}
.signoff span { color: rgba(217, 96, 59, .55); }
body:has(.section--contact) .footer { background: var(--ink); color: rgba(255, 255, 255, .55); border-top-color: rgba(255, 255, 255, .1); }
.section--contact .eyebrow { color: #f3a585; }
.section--contact .contact { background: transparent; padding: 0; border-radius: 0; }

/* Плашка ДДЮТ на первом экране */
.ddut {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; line-height: 1.3;
  box-shadow: var(--shadow);
}
.ddut img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.ddut small { display: block; font-weight: 700; color: var(--accent-ink); font-size: .82rem; margin-top: 2px; }
.ddut:hover { color: var(--ink); border-color: var(--accent); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
body:has(.section--contact) .footer a { color: rgba(255, 255, 255, .8); }
/* Секции: верхний отступ секции уходит под шапку, заголовок встаёт в 32px под ней */
.section[id] { scroll-margin-top: calc(64px + 32px - clamp(56px, 8vw, 96px)); }

/* Обо мне: вступление, навыки, карточки, акцент */
.about { align-items: start; }
.about__lead { font: 500 1.25rem/1.55 var(--font-head); color: var(--ink) !important; margin: 0; }
.about__label { font: 700 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.chips, .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow);
}
.chips li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }

.sub { margin: 48px 0 18px; font-size: 1.35rem; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; display: block;
}
.feature b { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.feature span { display: block; color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

.highlight {
  margin-top: 40px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  background-image: radial-gradient(400px 200px at 100% 0%, rgba(217, 96, 59, .35), transparent 70%);
}
.highlight p { margin: 0; font: 500 1.2rem/1.55 var(--font-head); }
.highlight mark { background: none; color: #f6b394; }
.highlight .highlight__note { margin-top: 14px; font: 400 .97rem/1.6 var(--font-body); color: rgba(255, 255, 255, .72); }

.tags { margin-top: 12px; }
.tags li {
  font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.credit { flex-basis: 100%; font-size: .78rem; opacity: .8; }
.timeline .tags li { padding: 4px 12px; }
.timeline .tags li::before { content: none; }
@media (max-width: 480px) {
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .feature svg { grid-row: span 2; margin: 0; }
  .features { gap: 10px; }
}

/* Первый экран целиком помещается в окно под шапкой */
@media (min-width: 821px) {
  .hero {
    min-height: calc(100svh - 65px);
    padding: clamp(16px, 3vh, 40px) 0;
    display: flex; align-items: center;
  }
  .hero > .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero .eyebrow { margin-bottom: clamp(8px, 1.6vh, 18px); }
  .hero h1 { font-size: clamp(2rem, min(5vw, 6.4vh), 3.25rem); margin-bottom: clamp(8px, 1.6vh, 16px); }
  .hero__lead { margin-bottom: 0; }
  .hero__actions { margin-top: clamp(14px, 2.6vh, 28px); }
  .ddut { margin-top: clamp(12px, 2.2vh, 28px); }
  .quote { margin-top: clamp(14px, 2.6vh, 40px); padding-top: clamp(12px, 2vh, 22px); padding-bottom: clamp(12px, 2vh, 20px); }
  .hero__photo { justify-self: end; width: min(100%, calc(100svh - 65px - 2 * clamp(16px, 3vh, 40px) - 24px)); }
}
@media (max-width: 820px) {
  .hero { padding: 16px 0 24px; min-height: calc(100svh - 65px); display: flex; align-items: center; }
  .hero__grid { gap: 14px; }
  .hero__photo { max-width: 120px; }
  .hero__photo img { border-radius: 20px; }
  .hero__photo::before { inset: 8px -8px -8px 8px; border-radius: 20px; }
  .hero .eyebrow { margin-bottom: 8px; font-size: 11.5px; }
  .hero h1 { font-size: 1.9rem; margin-bottom: 10px; }
  .hero__lead { font-size: 1rem; line-height: 1.55; margin-bottom: 0; }
  .hero__actions { margin-top: 16px; flex-wrap: nowrap; gap: 8px; }
  .hero__actions .btn { flex: 1 1 auto; padding: 10px 14px; font-size: 15px; min-height: 44px; }
  .ddut { margin-top: 14px; padding: 6px 14px 6px 6px; font-size: .85rem; }
  .ddut img { width: 36px; height: 36px; }
  .quote { margin-top: 14px; padding: 14px 16px 14px 48px; }
  .quote::before { font-size: 48px; left: 12px; }
  .quote p { font-size: 1.02rem; }
  .quote p + p { font-size: .9rem; }
  .quote cite { margin-top: 6px; }
}
@media (max-width: 820px) { .hide-sm { display: none; } }

/* Выбор почты */
.mailpick { position: relative; width: 100%; }
.mailpick summary { list-style: none; width: 100%; }
.mailpick summary::-webkit-details-marker { display: none; }
.mailpick__menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5;
  background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  display: grid;
}
.mailpick__menu a, .mailpick__menu button {
  display: block; text-align: left; width: 100%;
  padding: 12px 14px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1.3 var(--font-body); color: var(--ink); text-decoration: none;
}
.mailpick__menu a:hover, .mailpick__menu button:hover { background: var(--paper-2); color: var(--ink); }
.mailpick__menu button { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.contact__mail { background: none; border: 0; padding: 0; cursor: copy; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.copied { color: #8fd6b0 !important; }

/* Галереи в статьях */
.gallery .gallery__row { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; }
.gallery .gallery__row img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 600px) {
  .gallery .gallery__row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  }
  .gallery .gallery__row img { scroll-snap-align: start; }
}
