/* =========================
   BASE: variables, resets, layout helpers
   ========================= */

/* ===== JOST LOCAL FONTS (with Cyrillic) ===== */

@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


:root {
    /* Brand / Theme */
    --brand: #d86072;
    --brand-rgb: 204, 73, 100;
    --bg: #ffffff;
    --text: #0a0a0a;
    --muted: #6b7280;
    --border: #e5e7eb;

    /* Layout */
    --max: 1120px;
    --radius: 16px;

    /* Glass / Shadows */
    --glass-blur: 20px;
    --glass-sat: 1.2;
    --bar-alpha: .14;
    --btn-alpha: .30;
    --btn-alpha-hover: .38;
    --btn-outer-shadow: .10;
    --stroke-alpha: .35;
    --shadow-alpha: .16;

    /* Topbar visuals */
    --logo-size: 80px;
    --tg-size: 22px;

    /* Buttons (global control) */
    --btn-fz: 14px;
    --btn-px: 18px;
    --btn-h: 36px;

    /* City tabs a bit larger */
    --city-btn-fz: 15px;
    --city-btn-py: 1px;
    --city-btn-px: 16px;

    /* Card typography */
    --card-1-fz: 16px;
    --card-1-lh: 1.4;
    --card-1-weight: 500;
    --card-1-color: var(--text);

    --card-2-fz: 16px;
    --card-2-lh: 1.4;
    --card-2-weight: 500;
    --card-2-color: var(--text);

    --card-3-fz: 12px;
    --card-3-color: var(--muted);
    --card-pub-color: var(--muted);
    --card-link-color: var(--brand);
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Jost', sans-serif;
    font-synthesis-weight: none; /* не рисовать псевдожирность — держим именно наши веса */
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

/* формы и кнопки наследуют шрифт */
button, input, select, textarea {
    font: inherit;
}

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

a {
    color: #d86072;
    text-decoration: none;
}

.page {
    max-width: var(--max);
    margin: 24px auto;
    padding: 0 16px;
}

/* Simple card (used also in slots) */
.s-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.s-card__media {
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
}

.s-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.s-card__body {
    padding: 12px 14px;
}

.s-card__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.s-card__meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.s-card__btn {
    display: inline-block;
    font-weight: 600;
    font-size: clamp(12px, 3.2vw, 13px);
    padding: 0.5em 0.75em;
    border-radius: 999px;
    background: rgba(0, 0, 0, .04);
    line-height: 1.1;
    white-space: nowrap;
}

.s-card__btn:hover {
    background: rgba(0, 0, 0, .08);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --logo-size: 40px;
        --tg-size: 16px;
        --btn-fz: 13px;
        --btn-h: 32px;
        --btn-px: 10px;
        --city-btn-fz: 14px;
        --city-btn-py: 8px;
        --city-btn-px: 14px;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .topbar {
        background: rgba(255, 255, 255, .9);
    }

    .glass-btn {
        background: rgba(255, 255, 255, .98);
        border-color: rgba(0, 0, 0, .08);
    }
}

/* LINKS INSIDE LIQUID-GLASS MODAL */
.lg-modal .lg-modal__text a {
  color: var(--brand);
  text-decoration: underline;
  transition: color .2s ease, text-decoration .2s ease;
}

.lg-modal .lg-modal__text a:hover {
  color: #a2324a;
  text-decoration: none;
}

.lg-modal .lg-modal__text a:focus-visible {
  outline: 2px solid rgba(var(--brand-rgb), .6);
  outline-offset: 2px;
  border-radius: 3px;
}

.lg-modal .lg-modal__text {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

.seo-section {
  max-width: var(--max, 1120px);
  margin: 32px auto 48px;
  padding: 20px 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 16px);
  background: #fff;
}
.seo-title {
  font-size: 20px;
  margin: 0 0 8px;
}
.seo-lead {
  margin: 0 0 8px;
  color: var(--text, #0a0a0a);
  opacity: .9;
}
.seo-more { margin-top: 4px; }
.seo-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: rgb(var(--brand-rgb, 216,96,114));
  font-weight: 600;
  list-style: none;
}
.seo-toggle::-webkit-details-marker { display: none; }
.seo-toggle::before {
  content: "▼";
  font-size: 12px;
  transform: translateY(-1px);
  transition: transform .2s ease;
}
.seo-more[open] .seo-toggle::before { transform: rotate(-180deg) translateY(1px); }
.seo-body {
  margin-top: 8px;
  color: var(--text, #0a0a0a);
  opacity: .9;
}
.seo-keys {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted, #6b7280);
}
