/* Оформление сайта. Тема меняет только переменные — разметка и вёрстка общие.
   Переключается в админке; для примерки можно добавить к адресу ?theme=reed */

/* ==========================================================
   «Камыш» — природная, тёплый песок и болотная зелень, латунный акцент.
   Ощущение солидной охотничье-рыболовной базы.
   ========================================================== */
[data-theme="reed"] {
  --ink: #23291f;
  --ink-soft: #5f6a55;
  --paper: #f7f3e8;
  --surface: #fffdf6;
  --header-bg: rgba(247, 243, 232, .94);
  --sand: #efe9d8;
  --sand-deep: #e2d9c1;
  --deep: #2f4434;
  --deep-2: #3c5a42;
  --deep-3: #557a5b;
  --accent: #a8802c;
  --accent-dark: #8a6820;
  --line: rgba(35, 41, 31, 0.14);
  --shadow: 0 10px 28px rgba(47, 68, 52, 0.12);
  --radius: 12px;
  --radius-sm: 8px;

  --font-text: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Bitter', Georgia, serif;
  --display-weight: 700;
  --display-spacing: -0.005em;

  --hero-bg: linear-gradient(150deg, #16241a 0%, #274a30 55%, #3f6b45 100%);
  /* вертикальные штрихи — заросли камыша по воде */
  --hero-texture:
    repeating-linear-gradient(93deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(87deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 23px);
  --page-hero-bg: linear-gradient(150deg, #1b2c20, #3c5a42);
  --footer-bg: #1b2a1f;
}
[data-theme="reed"] .page-hero--boat { background: linear-gradient(150deg, #16262c, #37605c); }
[data-theme="reed"] .page-hero--skiff { background: linear-gradient(150deg, #1d2a1a, #4a6b34); }
[data-theme="reed"] .hero__eyebrow { color: #d9c48a; opacity: 1; }
[data-theme="reed"] .steps__num { background: var(--accent); }

/* Рисунок первого экрана вынесен в отдельный слой .hero__art и выбирается
   в админке (камыш или снасти), поэтому здесь остались только внутренние страницы. */
[data-theme="reed"] .page-hero { position: relative; overflow: hidden; }
[data-theme="reed"] .page-hero::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 60%; height: 100%;
  background: url(/img/reeds.svg) repeat-x right bottom / auto 130px;
  opacity: .22; pointer-events: none;
}

/* ==========================================================
   «Рассвет» — кремовая бумага, терракота, рассветное небо над водой.
   Тёплая и человечная; заголовки с характером.
   ========================================================== */
[data-theme="dawn"] {
  --ink: #241f1b;
  --ink-soft: #6f6055;
  --paper: #fdf7ef;
  --surface: #ffffff;
  --header-bg: rgba(253, 247, 239, .94);
  --sand: #f6ebdc;
  --sand-deep: #ecdcc6;
  --deep: #34495e;
  --deep-2: #3f5a74;
  --deep-3: #56789a;
  --accent: #c1512b;
  --accent-dark: #a03f1f;
  --line: rgba(36, 31, 27, 0.13);
  --shadow: 0 12px 32px rgba(90, 60, 40, 0.13);
  --radius: 16px;
  --radius-sm: 10px;

  --font-text: 'PT Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Yeseva One', Georgia, serif;
  --display-weight: 400;
  --display-spacing: 0;

  /* небо на рассвете: синева наверху переходит в тёплый свет у воды */
  --hero-bg: linear-gradient(170deg, #1b3b5c 0%, #3d5470 38%, #9c5c46 72%, #d38a52 100%);
  --hero-texture:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px);
  --page-hero-bg: linear-gradient(150deg, #1b3b5c, #7a5a5c);
  --footer-bg: #2b2521;
}
[data-theme="dawn"] .page-hero--boat { background: linear-gradient(150deg, #1b3b5c, #59738d); }
[data-theme="dawn"] .page-hero--skiff { background: linear-gradient(150deg, #234a4a, #7d8f5c); }
[data-theme="dawn"] .hero__eyebrow { color: #f2cba6; opacity: 1; }
[data-theme="dawn"] h1, [data-theme="dawn"] h2 { line-height: 1.08; }
[data-theme="dawn"] .hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* Солнце над водой и дорожка отражения — иначе «Рассвет» только на словах */
[data-theme="dawn"] .hero::before {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  right: 14%; bottom: 96px; width: clamp(150px, 22vw, 260px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 236, 198, .95) 0%,
    rgba(255, 204, 140, .60) 42%,
    rgba(255, 176, 100, .18) 62%,
    rgba(255, 176, 100, 0) 72%);
}
[data-theme="dawn"] .hero::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  right: 14%; bottom: 0; width: clamp(90px, 13vw, 150px); height: 110px;
  transform: translateX(50%);
  background: repeating-linear-gradient(180deg,
    rgba(255, 216, 160, .34) 0 3px, transparent 3px 11px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent);
}

/* ==========================================================
   «Течение» — контрастная и современная: белое поле, графит и янтарь,
   крупные узкие заголовки. Строже и «моложе» остальных.
   ========================================================== */
[data-theme="current"] {
  --ink: #12161a;
  --ink-soft: #5c6672;
  --paper: #ffffff;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, .96);
  --sand: #f2f4f6;
  --sand-deep: #e3e7ec;
  --deep: #16202b;
  --deep-2: #24384b;
  --deep-3: #3a5a76;
  --accent: #e2801a;
  --accent-dark: #c26a0c;
  --line: rgba(18, 22, 26, 0.14);
  --shadow: 0 14px 34px rgba(18, 22, 26, 0.10);
  --radius: 4px;
  --radius-sm: 3px;

  --font-text: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --display-weight: 600;
  --display-spacing: 0.005em;

  --hero-bg: linear-gradient(120deg, #0d1216 0%, #16202b 60%, #1f3244 100%);
  --hero-texture:
    repeating-linear-gradient(60deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 30px);
  --page-hero-bg: linear-gradient(120deg, #0d1216, #24384b);
  --footer-bg: #0d1216;
}
[data-theme="current"] .page-hero--boat { background: linear-gradient(120deg, #0d1216, #1d4358); }
[data-theme="current"] .page-hero--skiff { background: linear-gradient(120deg, #0d1216, #23503f); }
[data-theme="current"] .hero__title,
[data-theme="current"] .section__head h2,
[data-theme="current"] .page-hero h1 { text-transform: uppercase; }
[data-theme="current"] .hero__title { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: 0.01em; }
[data-theme="current"] .hero__eyebrow { color: var(--accent); opacity: 1; }
[data-theme="current"] .btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; }
[data-theme="current"] .btn--sm { font-size: .8rem; }
[data-theme="current"] .offer-card__kind { border-radius: 3px; }
[data-theme="current"] .price strong { font-family: var(--font-display); font-size: 1.45rem; }
[data-theme="current"] .steps__num { border-radius: 3px; background: var(--accent); }

/* Струи течения по всему первому экрану — название должно быть видно, а не только прочитано */
[data-theme="current"] .hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url(/img/flow.svg) repeat-x center bottom / auto 62%;
  opacity: .9;
}
[data-theme="current"] .page-hero { position: relative; overflow: hidden; }
[data-theme="current"] .page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url(/img/flow.svg) repeat-x center / auto 100%;
  opacity: .5;
}

/* Полоска выбора темы — показывается только при примерке через ?theme= */
.theme-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  background: rgba(16, 20, 24, .92); color: #fff; padding: 10px 14px; border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: .85rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.theme-bar span { opacity: .7; margin-right: 4px; }
.theme-bar a {
  color: #fff; padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .28);
  font-family: 'Golos Text', system-ui, sans-serif;
}
.theme-bar a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.theme-bar a.is-active { background: #fff; color: #12161a; border-color: #fff; }
@media (max-width: 560px) {
  .theme-bar { width: calc(100% - 24px); border-radius: 14px; }
}
