/* Заглушка vladikavkaz.media до запуска сайта.
   Самодостаточный файл: токены взяты из 07_САЙТ/css/tokens.css, приёмы (бумага, скотч, плакаты) — из вёрстки и картинок соцсетей. */

/* ---------- Шрифты ---------- */
@font-face { font-family: "Onest"; src: url("../fonts/Onest-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("../fonts/OldStandardTT-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("../fonts/OldStandardTT-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Токены ---------- */
:root {
  --ink: #171716; --ink-soft: #3f3e3a; --muted: #6b6b66; --line: #e4dfd5; --line-strong: #d3cec2;
  --brick: #a2462f; --green: #3f7d4c; --green-deep: #2d5a3d;
  --kraft: #d8c7a0; --kraft-tint: #f1e6cf; --kraft-paper: #e3d5b7; --cream: #f3ebd8; --wall: #f6f3ec; --stone: #e9e4d8;
  --tape: rgba(214, 196, 156, 0.86);
  --sans: "Onest", Arial, sans-serif; --serif: "Old Standard TT", Georgia, serif;
  --gutter: 40px;
  --shadow-print: 0 1px 2px rgba(0, 0, 0, 0.14), 0 16px 28px -18px rgba(0, 0, 0, 0.5);
  --shadow-sticker: 0 1px 0 rgba(0, 0, 0, 0.12), 0 6px 12px -8px rgba(0, 0, 0, 0.45);
}

/* ---------- Основа ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--wall) url("../img/grain.webp") repeat; background-size: 320px 320px;
  color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.st-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.st-grain { position: absolute; inset: 0; pointer-events: none; background: url("../img/grain.webp") repeat; background-size: 320px 320px; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Мелкие элементы: надзаголовок, кнопка, наклейка, скотч, ссылка со стрелкой ---------- */
.st-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brick); }
.st-kicker--ink { color: var(--ink); }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  background: var(--ink); color: #fff; border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color 0.15s;
}
.st-btn:hover { background: var(--green-deep); }
.st-sticker {
  display: inline-block; transform: rotate(var(--rot, -3deg)); padding: 7px 12px 6px; border-radius: 3px;
  background: var(--brick); color: #fff; box-shadow: var(--shadow-sticker);
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
}
.st-tape {
  position: absolute; left: var(--x, 38%); top: var(--y, -13px); z-index: 4; width: var(--w, 104px); height: var(--h, 28px);
  background: var(--tape); transform: rotate(var(--rot, -4deg));
  clip-path: polygon(0% 0%, 2.4% 20%, 4.1% 40%, 3.0% 60%, 1.2% 80%, 0% 100%, 100% 100%, 97.6% 80%, 96.2% 60%, 98.4% 40%, 96.9% 20%, 100% 0%);
}
.st-more { font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--kraft); padding-bottom: 2px; white-space: nowrap; width: fit-content;}
.st-more:hover { color: var(--green-deep); }

/* ---------- Верх: логотип и каналы ---------- */
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0 16px; border-bottom: 1px solid var(--line-strong); }
.st-logo { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; }
.st-logo img { width: 272px; height: auto; }
.st-logo__sub { font-size: 13px; color: var(--muted); padding-left: 2px; }
.st-top__soc { display: flex; gap: 22px; font-size: 15px; font-weight: 600; padding-bottom: 0px; }
.st-top__soc a { text-decoration: none; }
.st-top__soc a:hover { color: var(--green-deep); }

/* ---------- Первый экран ---------- */
.st-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: center; padding: 36px 0 64px; }
.st-h1 { margin-top: 18px; font-weight: 800; font-size: clamp(44px, 6.1vw, 84px); line-height: 0.8; letter-spacing: -0.04em; }
.st-h1 em, .st-h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.07em; letter-spacing: -0.02em; color: var(--green); line-height: 0.7;}
.st-lead { margin-top: 28px; max-width: 560px; font-size: 21px; line-height: 1.42; color: var(--ink-soft); }
.st-lead b { color: var(--ink); font-weight: 700; }
.st-cta { margin-top: 24px; }
.st-cta__label { font-size: 13px; font-weight: 700; color: var(--green-deep); letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 16px; }
.st-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* фото в белой рамке */
.st-print { position: relative; margin: 0 8px 0 0; transform: rotate(1.4deg); }
.st-print__frame { position: relative; background: #fff; padding: 14px 14px 0; box-shadow: var(--shadow-print); }
.st-print__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; background: #e6e1d6; }
.st-print figcaption { padding: 12px 2px 14px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.25; color: var(--ink-soft); }

/* вариант без фото: знак-окно на листе бумаги */
.st-sign { position: relative; justify-self: center; width: min(100%, 400px); transform: rotate(1.4deg); }
.st-sign__sheet { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; aspect-ratio: 3 / 3.7; background: var(--cream); box-shadow: var(--shadow-print); overflow: hidden; }
.st-sign svg { position: relative; width: 46%; height: auto; overflow: visible; }
.st-sign .f, .st-sign .m { fill: none; stroke: var(--green); }
.st-sign .f { stroke-width: 2; stroke-linejoin: round; }
.st-sign .m { stroke-width: 1.5; }
.st-sign .k { fill: var(--brick); }
.st-sign__t { position: relative; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--green-deep); }

/* ---------- Что будет на сайте ---------- */
.st-sec { padding: 0 0 64px; }
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 36px; border-top: 1px solid var(--line-strong); }
.st-h2 { font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 0.98; letter-spacing: -0.04em; }
.st-head__note { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); text-align: right; }
.st-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 56px; }
.st-item__text { margin-top: 30px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.st-poster {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 3.3; padding: 30px 28px 26px;
  background: var(--pbg); color: var(--pfg); transform: rotate(var(--rot, 0deg));
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16)) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.1));
}
.st-poster--brick { --pbg: var(--brick); --pfg: #fff; --pkick: #f1e6cf; }
.st-poster--green { --pbg: var(--green); --pfg: #fff; --pkick: #f1e6cf; }
.st-poster--kraft { --pbg: var(--kraft-tint); --pfg: var(--ink); --pkick: var(--brick); }
.st-poster > *:not(.st-grain):not(.st-tape) { position: relative; z-index: 1; }
.st-poster .st-grain { opacity: 0.55; }
.st-poster__type { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pkick); }
.st-poster__title { margin-top: 6px; font-weight: 800; font-size: 34px; line-height: 1.04; letter-spacing: -0.03em; }
.st-poster__big { margin-top: auto; font-weight: 800; font-size: clamp(64px, 7.4vw, 100px); line-height: 0.85; letter-spacing: -0.05em; white-space: nowrap; }
.st-poster__cap { margin-top: 14px; padding-top: 10px; border-top: 2px solid currentColor; font-weight: 600; font-size: 16px; line-height: 1.25; }

/* ---------- События недели ---------- */
.st-sub { position: relative; }
.st-sub__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; padding: 56px 60px 60px; background: var(--kraft-paper); }
.st-sub__panel > *:not(.st-grain) { position: relative; z-index: 1; }
.st-sub__panel > .st-grain { opacity: 0.7; }
.st-sub__title { margin-top: 10px; font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.04em; }
.st-sub__title em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.07em; letter-spacing: -0.02em; color: var(--green-deep); }
.st-sub__lead { margin-top: 22px; max-width: 540px; font-size: 19px; line-height: 1.45; color: var(--ink-soft); }
.st-sub__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.st-sub__side .st-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; margin-top: 0; }

/* строка для организаторов */
.st-org { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 32px; align-items: baseline; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.st-org p { font-size: 17px; color: var(--ink-soft); max-width: 620px; }

/* ---------- Подвал ---------- */
.st-masonry {
  border-bottom: 1px solid var(--line-strong);
  /*height: 42px; border-top: 5px solid var(--brick); border-bottom: 5px solid var(--brick);-->
  background: var(--stone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='32'%3E%3Cellipse cx='9' cy='16' rx='6.2' ry='12.5' fill='%238c938a' transform='rotate(30 9 16)'/%3E%3Cellipse cx='27' cy='16' rx='6.2' ry='12.5' fill='%23aab0a6' transform='rotate(30 27 16)'/%3E%3Cellipse cx='45' cy='16' rx='6.2' ry='12.5' fill='%236f7a74' transform='rotate(30 45 16)'/%3E%3C/svg%3E") repeat-x center / 54px 32px;*/
}
.st-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 30px 0 44px; }
.st-foot .st-logo img { width: 220px; }
.st-foot__small { max-width: 520px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); text-align: right; }
.st-foot__small a { text-underline-offset: 2px; }

/* ---------- Планшет ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 28px; }
  .st-hero { gap: 40px; padding: 48px 0 72px; }
  .st-three { gap: 28px; }
  .st-poster { padding: 22px 20px 20px; }
  .st-poster__title { font-size: 26px; }
  .st-sub__panel { padding: 44px 40px 48px; gap: 36px; }
  .st-org { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 719px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .st-top { padding: 18px 0 14px; align-items: center; }
  .st-logo img { width: 206px; }
  .st-logo__sub { font-size: 12px; }
  .st-top__soc { display: none; }
  .st-hero { grid-template-columns: 1fr; gap: 44px; padding: 32px 0 64px; }
  .st-h1 { margin-top: 14px; font-size: clamp(40px, 12.4vw, 56px); }
  .st-lead { margin-top: 20px; font-size: 18px; }
  .st-cta { margin-top: 26px; }
  .st-btns .st-btn { flex: 1 1 auto; padding: 0 16px; }
  .st-print { margin: 0 6px; }
  .st-print__frame { padding: 10px 10px 0; }
  .st-print figcaption { font-size: 15px; padding: 9px 2px 11px; }
  .st-sign { width: 68%; }
  .st-sec { padding-bottom: 72px; }
  .st-head { flex-direction: column; gap: 8px; padding-top: 18px; }
  .st-head__note { text-align: left; font-size: 18px; }
  .st-three { grid-template-columns: 1fr; gap: 44px; margin-top: 40px; }
  .st-item { padding: 0 6px; }
  .st-poster { aspect-ratio: auto; min-height: 200px; padding: 24px 22px 20px; }
  .st-poster__title { font-size: 30px; }
  .st-poster__big { margin-top: 28px; font-size: 72px; }
  .st-item__text { margin-top: 22px; }
  .st-sub__panel { grid-template-columns: 1fr; padding: 40px 22px 32px; gap: 28px; margin: 0 calc(-1 * var(--gutter)); }
  .st-sub__lead { font-size: 17px; }
  .st-sub__side .st-btns { max-width: none; }
  .st-org { margin-top: 32px; }
  .st-foot { flex-direction: column; gap: 20px; padding: 24px 0 36px; }
  .st-foot .st-logo img { width: 190px; }
  .st-foot__small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
