/* «Конь Педальный» — фирменная тема.
   Палитра: фон #1C1C1C, киноварь #B22222, бирюза #00B4D8,
   охра #C9A84C, текст #E8E0D5. Не менять без причины (узнаваемость). */

:root {
  --bg: #1c1c1c;
  --bg-soft: #242424;
  --bg-card: #262626;
  --red: #b22222;
  --red-bright: #d33030;
  --teal: #00b4d8;
  --ochre: #c9a84c;
  --text: #e8e0d5;
  --text-muted: #a89f93;
  --border: #3a3a3a;
  --radius: 10px;
  --font-display: "Russo One", "Arial Black", sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: #4dd6f0; }

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ochre);
  border-radius: 50%;
  color: var(--ochre);
  font-size: 20px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.logo-text em {
  color: var(--red-bright);
  font-style: normal;
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ---------- Герой ---------- */

.hero {
  padding: clamp(56px, 10vw, 120px) clamp(16px, 4vw, 48px);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(178, 34, 34, 0.28), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(0, 180, 216, 0.16), transparent 60%),
    linear-gradient(180deg, #191919, #141414);
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 960px; margin: 0 auto; }

.hero-kicker {
  margin: 0 0 16px;
  color: var(--ochre);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero-title span { color: var(--red-bright); }

.hero-sub {
  max-width: 560px;
  margin: 24px 0 32px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-bright);
  color: #fff;
  box-shadow: 0 8px 24px rgba(178, 34, 34, 0.35);
}

.btn-ghost {
  border: 1px solid var(--teal);
  color: var(--teal);
}

.btn-ghost:hover {
  background: rgba(0, 180, 216, 0.1);
  color: #4dd6f0;
}

/* ---------- Преимущества ---------- */

.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid var(--ochre);
}

.adv-card h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
}

.adv-card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.adv-icon { font-size: 26px; }

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

section { scroll-margin-top: 80px; }

.section-head {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--red-bright);
}

.section-head p { margin: 0; color: var(--text-muted); }

.services {
  padding: clamp(40px, 8vw, 80px) 0;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.price-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ochre);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.price-table { width: 100%; border-collapse: collapse; }

.price-table td {
  padding: 10px 0;
  vertical-align: top;
  border-bottom: 1px dashed var(--border);
}

.price-table tr:last-child td { border-bottom: none; }

.price-name small {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

.price-value {
  text-align: right;
  white-space: nowrap;
  padding-left: 16px !important;
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 16px;
}

/* ---------- Заглушки ---------- */

.placeholder {
  padding: clamp(40px, 7vw, 72px) 0;
  border-top: 1px solid var(--border);
}

/* ---------- Контакты ---------- */

.contacts {
  padding: clamp(40px, 8vw, 80px) 0;
  border-top: 1px solid var(--border);
}

.contacts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.contact-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 18px 20px;
}

.contact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 6px;
}

.contact-item p { margin: 0; }

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

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 40px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--border);
  background: #151515;
  font-size: 14px;
}

.footer-col strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-col p { margin: 0; color: var(--text-muted); }

.footer-muted { display: flex; align-items: flex-end; }

/* ---------- Мобильная версия ---------- */

@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .hero-title { font-size: clamp(44px, 16vw, 84px); }
}

/* ---------- Статьи: спокойная бумажная страница ---------- */

.paper {
  max-width: 880px;
  margin: 40px auto;
  background: #f7f4ee;
  color: #2b2723;
  border-radius: 6px;
  padding: clamp(24px, 4vw, 56px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.paper-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: #1f1c18;
}

.paper-lead {
  color: #6b645a;
  margin: 0 0 32px;
  max-width: 60ch;
  font-size: 16px;
}

.article-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 18px;
}

.article-back { color: #8a5a2b; text-decoration: none; }
.article-back:hover { color: #b22222; }

.card-cat {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: #9a8f80;
}

.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.article-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid #e0d9cc;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  background: #fffdf8;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.article-card:hover { border-color: #c9a84c; transform: translateY(-2px); }

.article-card h2 {
  font-family: Georgia, serif;
  font-size: 20px;
  margin: 6px 0 8px;
  color: #1f1c18;
}

.article-card p { margin: 0; font-size: 14px; color: #6b645a; line-height: 1.55; }

/* Вкладки стиля — текстовые, без кнопочных рамок */

.style-switch { margin-top: 8px; }

.style-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-labels {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #ddd5c7;
}

.style-labels label {
  padding: 10px 2px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8f80;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  user-select: none;
}

.style-labels label:hover { color: #5d554a; }

#style-obyvatel:checked ~ .style-labels label[for="style-obyvatel"],
#style-marginal:checked ~ .style-labels label[for="style-marginal"] {
  color: #1f1c18;
  border-bottom-color: #b22222;
}

.style-panel { display: none; padding-top: 24px; }

#style-obyvatel:checked ~ .style-panels .panel-obyvatel,
#style-marginal:checked ~ .style-panels .panel-marginal { display: block; }

.article-photo { margin: 0 0 22px; }

.article-photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: #3a352e;
  white-space: pre-line;
}

/* «Маргинал»: фото с подписью поверх — мем-подача */

.meme { position: relative; margin: 0 0 22px; }

.meme img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  filter: grayscale(0.15) contrast(1.12) saturate(0.85);
}

.meme figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 24px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.article-source {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e0d9cc;
  font-size: 13px;
  color: #6b645a;
}

.article-source a { color: #8a5a2b; }
.source-license { margin-left: 8px; color: #9a8f80; font-size: 12px; }

@media (max-width: 720px) {
  .paper { margin: 16px; padding: 22px 18px; }
  .style-labels { gap: 20px; }
  .style-labels label { font-size: 12px; }
}
