/* Лендинг «Блог о здоровье» — оформление.
   Палитра: тёплая бумага, глубокий зелёный, терракота. Без внешних шрифтов и
   библиотек: только системные шрифты, поэтому страница работает без интернета. */

:root {
  --paper: #f6f2ea;
  --paper-2: #fffdf8;
  --paper-3: #efe9dd;
  --ink: #17211d;
  --ink-2: #3d4a44;
  --muted: #6d7a73;
  --green: #1e5b4b;
  --green-2: #144537;
  --green-soft: #e3ede8;
  --clay: #c26a3f;
  --clay-2: #a7552f;
  --clay-soft: #f6e7dc;
  --line: rgba(23, 33, 29, 0.12);
  --line-soft: rgba(23, 33, 29, 0.07);
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --shadow-s: 0 2px 6px rgba(23, 33, 29, 0.06);
  --shadow-m: 0 18px 46px rgba(23, 33, 29, 0.1);
  --font-display: Georgia, "Times New Roman", "PT Serif", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(22px, 2vw, 28px);
}

h2 {
  font-size: clamp(19px, 1.8vw, 25px);
}

h3 {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.2;
}

p {
  margin: 0 0 0.85em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.container--narrow {
  width: min(820px, 100% - 48px);
}

.section {
  padding: clamp(36px, 4.4vw, 64px) 0;
}

.section--tight {
  padding: clamp(20px, 2.6vw, 34px) 0;
}

.section--paper2 {
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-2);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}

.lede {
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  color: var(--ink-2);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--clay);
  color: #fffaf4;
  box-shadow: 0 10px 24px rgba(194, 106, 63, 0.28);
}

.btn-primary:hover {
  background: var(--clay-2);
}

.btn-green {
  background: var(--green);
  color: #f7fbf8;
  box-shadow: 0 10px 24px rgba(30, 91, 75, 0.25);
}

.btn-green:hover {
  background: var(--green-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-2);
  background: rgba(23, 33, 29, 0.03);
}

.btn-light {
  background: var(--paper-2);
  color: var(--green-2);
}

.btn-light:hover {
  background: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #f4f8f5;
  border-color: rgba(244, 248, 245, 0.45);
}

.btn-outline-light:hover {
  border-color: #f4f8f5;
  background: rgba(255, 255, 255, 0.08);
}

.btn-note {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- навигация ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  padding: 9px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-cta-short {
  display: none;
}

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

.hero {
  padding: clamp(24px, 3.2vw, 46px) 0 clamp(22px, 2.6vw, 36px);
}

.hero-grid {
  display: block;
  max-width: 820px;
}

.hero h1 {
  margin-bottom: 6px;
}

.hero-sub {
  margin: 0 0 12px;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.4;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-lede {
  font-size: clamp(15.5px, 1.2vw, 18px);
  color: var(--ink-2);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.7;
}

.hero-media {
  position: relative;
  isolation: isolate;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 12%;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: var(--green-soft);
  z-index: -1;
}

.portrait-frame {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.portrait-frame .media-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 500px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

.portrait-frame .media-empty {
  width: 100%;
  min-height: 420px;
  border-radius: var(--radius-l);
}

/* ---------- медиа и заглушки ---------- */

.media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 150px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background-image: linear-gradient(150deg, var(--paper-2), var(--paper-3));
  border: 1px dashed rgba(23, 33, 29, 0.22);
  border-radius: inherit;
}

.media-empty__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(23, 33, 29, 0.25);
  margin-bottom: 2px;
}

.media-empty__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.media-empty__hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-l);
  background: #0e1512;
  box-shadow: var(--shadow-m);
}

/* ---------- история ---------- */

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.story-aside {
  position: sticky;
  top: 96px;
}

.story-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--green-soft);
  font-size: 14px;
  color: var(--green-2);
}

.story p {
  color: var(--ink-2);
}

.story p + p {
  margin-top: 0.85em;
}

.story p.story-lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink);
}

.story strong {
  color: var(--ink);
  font-weight: 600;
}

.inline-link {
  font-weight: 600;
  text-decoration-color: rgba(30, 91, 75, 0.35);
}

.inline-link:hover {
  text-decoration-color: var(--green);
}

/* ---------- широкое фото ---------- */

.wide-photo {
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.photo-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.photo-figure .photo-caption {
  justify-content: center;
}

.wide-photo .media-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(640px, 78vh);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

.wide-photo .media-empty {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius-l);
}

.photo-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.photo-caption::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line);
  flex: none;
  align-self: center;
}

/* ---------- предложение о разборе ---------- */

.offer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(194, 106, 63, 0.34) 0%, rgba(194, 106, 63, 0) 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(88, 150, 128, 0.35) 0%, rgba(88, 150, 128, 0) 60%),
    var(--green-2);
  color: #dfeee6;
}

.offer .eyebrow {
  color: #f2b78d;
}

.offer .eyebrow::before {
  background: #f2b78d;
}

.offer h2 {
  color: #ffffff;
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.offer-lede {
  color: rgba(223, 238, 230, 0.88);
  max-width: 56ch;
}

.checks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  color: rgba(223, 238, 230, 0.94);
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #c8e8d8;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.price-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-l);
  padding: clamp(18px, 2.2vw, 24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.price-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(223, 238, 230, 0.62);
  margin-bottom: 14px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.price-old {
  font-size: 17px;
  color: rgba(223, 238, 230, 0.55);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-free {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  color: #ffffff;
}

.price-desc {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(223, 238, 230, 0.78);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.code-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}

.code-chip em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(223, 238, 230, 0.72);
}

/* ---------- Лилия ---------- */

.lilia-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.portrait-frame--tall .media-img {
  max-height: 480px;
}

.lilia-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.lilia-list li {
  position: relative;
  padding-left: 26px;
}

.lilia-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--clay);
  border-radius: 2px;
  transform: rotate(45deg);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--green);
}

.stat span {
  font-size: 13.5px;
  color: var(--muted);
}

.quote {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--clay);
  font-family: var(--font-display);
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- выгода ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.value-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  box-shadow: var(--shadow-s);
}

.value-card .num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--clay-2);
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--ink-2);
  font-size: 14.5px;
}

/* ---------- шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.step {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 18px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: var(--green);
  color: #f2f8f4;
  font-family: var(--font-mono);
  font-size: 14px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- видео ---------- */

.video-block {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.video-block .media-video {
  max-height: 500px;
}

.video-block .media-empty {
  width: 100%;
  min-height: 300px;
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, #1c2723, #0e1512);
  border-color: rgba(255, 255, 255, 0.18);
}

.video-block .media-empty__label {
  color: #e6efe9;
}

.video-block .media-empty__hint {
  color: #8ea49a;
}

.video-block .media-empty__dot {
  border-color: rgba(255, 255, 255, 0.3);
}

.video-caption {
  max-width: 720px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- финальный призыв ---------- */

.final {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.final h2 {
  margin-bottom: 12px;
}

.final .lede {
  margin: 0 auto 18px;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.final-phone {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

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

.footer {
  padding: 22px 0 28px;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--green);
}

.footer-note {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.85;
}

/* ---------- всплывающая подсказка ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #f7f9f7;
  font-size: 14.5px;
  box-shadow: 0 16px 36px rgba(23, 33, 29, 0.28);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- аккуратное появление блоков ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .offer-grid,
  .lilia-grid,
  .story-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-aside {
    position: static;
  }

  .hero-media {
    order: -1;
    max-width: 400px;
    margin-inline: auto;
  }

  .hero-media::before {
    display: none;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .value-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    gap: 10px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .nav-cta {
    padding: 8px 13px;
    font-size: 13px;
  }

  .nav-cta-full {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .container,
  .container--narrow {
    width: calc(100% - 32px);
  }

  .hero-actions .btn,
  .cta-row .btn,
  .final-actions .btn {
    width: 100%;
  }

  .wide-photo {
    max-width: 100%;
  }

  .price-row {
    gap: 10px;
  }
}

/* ---------- компактный первый экран ---------- */

.hero-grid .hero-media {
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

/* ---------- режим загрузки (только для владельца) ---------- */

.owner-bar {
  background: var(--ink);
  color: #f4f7f4;
  font-size: 13px;
}

.owner-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 42px;
  padding-block: 6px;
}

.owner-bar__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--clay);
  color: #fffaf4;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owner-bar__text {
  opacity: 0.86;
}

.owner-bar__btn {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--clay);
  color: #fffaf4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.owner-bar__btn:hover {
  background: var(--clay-2);
}

.owner-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--clay);
  color: #fffaf4;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.28);
}

.owner-fab:hover {
  background: var(--clay-2);
}

.media-slot {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

/* С загруженным файлом блок подстраивается под его ширину, чтобы кнопки
   и подпись были ровно по краям фото/видео. */
.media-slot:has(.media-img),
.media-slot:has(.media-video) {
  width: auto;
}

.media-slot__body {
  display: flex;
  justify-content: center;
  width: 100%;
}

.media-slot__body .media-img,
.media-slot__body .media-video {
  max-width: 100%;
  height: auto;
}

.media-slot__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 5px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.8);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}

.media-slot__tools {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-slot__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--clay);
  color: #fffaf4;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.media-slot__btn:hover {
  background: var(--clay-2);
}

.media-slot__btn--ghost {
  background: rgba(23, 33, 29, 0.66);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.media-slot__btn--ghost:hover {
  background: rgba(23, 33, 29, 0.85);
}

.media-slot__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 5px;
  background: rgba(0, 0, 0, 0.3);
}

.media-slot__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--clay);
  transition: width 0.15s linear;
}

.media-slot.is-drag {
  outline: 2px dashed var(--clay);
  outline-offset: -6px;
}

/* В режиме загрузки заглушка чуть выше, чтобы кнопки не наезжали на текст. */
.media-slot .media-empty {
  padding-bottom: 56px;
}

@media (max-width: 620px) {
  .owner-bar__inner {
    min-height: 44px;
    gap: 8px;
    padding-block: 4px;
  }

  .owner-bar__badge {
    padding: 3px 8px;
    font-size: 9.5px;
  }

  .owner-bar__text {
    display: none;
  }

  .owner-bar__btn {
    margin-left: auto;
    padding: 7px 12px;
    font-size: 12px;
  }

  .owner-fab {
    left: auto;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .media-slot__tag {
    font-size: 9.5px;
  }
}

