/* Тема СнегоБаза: сноуборды, лыжи и экипировка из США. Подключается после styles.css и переопределяет его. */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700&display=swap');

:root {
  --bg: #f6f9fc;
  --surface: #edf3fa;
  --line: #d8e4f0;
  --line-strong: #b9cde3;
  --text: #14263d;
  --muted: #5a6b7f;
  --navy: #1d4e89;            /* глубокий горный синий: шапка, заголовки */
  --accent: #e4572e;          /* тёплый красно-оранжевый: акцент, кнопки */
  --accent-hover: #c84520;
  --link: #1f5fa8;
  --forest: #1d4e89;
  --forest-2: #2a66a8;
  --lake: #3a9bd5;
  --sand: #edf3fa;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 107, 79, 0.06), 0 6px 18px rgba(31, 107, 79, 0.07);
  --display: "Unbounded", "Montserrat", system-ui, sans-serif;
  --green: #2a66a8;
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3 { color: var(--forest); }
h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h2 { font-size: 1.6rem; }

/* Шапка: глубокий зелёный */
.site-header {
  background: linear-gradient(90deg, #173f70 0%, #1d4e89 60%, #22558f 100%);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.brand-mark { width: 40px; height: 40px; color: #ffffff; }
.brand-mark .accent { color: var(--accent); }
.brand-name {
  font-family: var(--display);
  color: #f6f9fc;
  font-size: 21px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.brand-tagline { color: #b9d0ea; }
.site-nav a { color: #e6eef8; border-radius: 999px; padding: 6px 12px; }
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  border-color: transparent;
}
.site-nav { gap: 6px; align-items: center; }
.nav-cart {
  background: var(--accent);
  color: #14263d !important;
  font-weight: 600;
}
.nav-cart:hover { background: var(--accent-hover) !important; color: #14263d !important; }

/* Кнопки и поля */
.button { border-radius: 10px; }
.button-primary {
  background: linear-gradient(180deg, #f07a52 0%, #e4572e 100%);
  border-color: #e4572e;
  color: #14263d;
  font-weight: 700;
  box-shadow: 0 2px 0 #a8361a, 0 6px 14px rgba(228, 87, 46, 0.18);
}
.button-primary:hover {
  background: linear-gradient(180deg, #f58a62 0%, #cf4a24 100%);
  border-color: #cf4a24;
  color: #14263d;
}
input, select, textarea { border-radius: 10px; }

/* Первый экран */
.hero.hero-outdoor {
  position: relative;
  overflow: hidden;
  margin: -28px calc(50% - 50vw) 0;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, #d9e8f6 0%, #f6f9fc 50%, #e4eef8 100%);
  min-height: 560px;
}
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-outdoor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 250, 246, 0.85) 0%, rgba(247, 250, 246, 0.45) 45%, rgba(247, 250, 246, 0) 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 16px 210px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 2px 8px rgba(31, 107, 79, 0.10);
}
.hero-outdoor h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  margin: 14px 0 12px;
  max-width: 720px;
  color: var(--forest);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(247, 250, 246, 0.6);
}
.hero-outdoor .subline {
  color: #1a2f4a;
  max-width: 620px;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(247, 250, 246, 0.6);
}
.hero-outdoor .search-form {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(31, 107, 79, 0.14);
  max-width: 640px;
}
.hero-outdoor .search-form input { border: 0; flex: 1; min-width: 0; height: 48px; }
.hero-outdoor .search-form .button { padding: 0 26px; height: 48px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 640px; }
.hero-chips a {
  background: rgba(255, 255, 255, 0.85);
  color: var(--forest);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.hero-chips a:hover {
  background: var(--accent);
  color: #14263d;
  border-color: var(--accent);
  text-decoration: none;
}

/* Три мира: сноуборд, лыжи, экипировка */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.world {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.world:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(31, 107, 79, 0.20);
}
.world-fish { background: linear-gradient(135deg, #1d4e89 0%, #2a66a8 100%); }
.world-hunt { background: linear-gradient(135deg, #f07a52 0%, #e4572e 100%); }
.world-rest { background: linear-gradient(135deg, #b85c7a 0%, #6f4a9e 100%); }
.world h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 6px 0 0;
  color: inherit;
}
.world p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.world-go { margin-top: 8px; font-weight: 700; font-size: 0.92rem; }
.world-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.world-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* На цитрусовой карточке тёмный текст */
.world-hunt { color: #14263d; }
.world-hunt h3,
.world-hunt p,
.world-hunt .world-go { color: #14263d; }
.world-hunt .world-icon { background: rgba(255, 255, 255, 0.35); }
.world-hunt .world-icon svg { stroke: #14263d; }

/* Карточки */
.card {
  border-radius: var(--radius);
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
a.card { transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
a.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 107, 79, 0.10);
}

/* Плитки направлений: мята, небо, олива, цитрус */
.dir-art { border: 0; border-radius: 10px; padding: 8px; }
.tone-water .dir-art { background: linear-gradient(160deg, #d3f0e4, #b5e3d0); color: #1d4e89; }
.tone-ice .dir-art { background: linear-gradient(160deg, #e3f0ff, #c7defa); color: #2c64a8; }
.tone-forest .dir-art { background: linear-gradient(160deg, #e8f0d9, #d2e4b7); color: #55702b; }
.tone-camp .dir-art { background: linear-gradient(160deg, #ffe9cc, #ffd29e); color: #c0501a; }
a.card:hover .dir-art { color: var(--accent-hover); }
.dir-grid .category-tile h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.category-tile { border-top: 3px solid transparent; }
.category-tile.tone-water { border-top-color: #2a66a8; }
.category-tile.tone-ice { border-top-color: #4a8fe0; }
.category-tile.tone-forest { border-top-color: #7a8f3d; }
.category-tile.tone-camp { border-top-color: #e4572e; }

/* Фото товаров в цвете */
.offer-photo img, .cart-line img { filter: none !important; }
.badge { border-radius: 999px; }
.badge.new { color: #fff; background: #2a66a8; border-color: #2a66a8; }

/* Полоски-подсказки */
.chat-promo {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #e2f6f0, #eef9e6);
  border-color: #bfe6df;
  margin-top: 28px;
}
.wholesale-strip {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fff1dc, #ffe6c4);
  border-color: #ffd29e;
}
.wholesale-strip:hover { border-color: var(--forest-2); }
.notice { border-radius: 10px; }
.branch-list a { border-radius: 8px; }

/* Подвал: волна над тёмным зелёным */
.site-footer {
  position: relative;
  background: var(--forest);
  color: #cfe0d6;
  border-top: 0;
  margin-top: 90px;
  padding: 28px 0 32px;
}
.site-footer a { color: #f3ead8; }
.footer-trees {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  width: 100%;
  height: 50px;
  fill: var(--forest);
  display: block;
}

/* Анимации сцены */
.hero-scene .hs-float,
.hero-scene .hs-leaf,
.hero-scene .hs-glow {
  transform-box: fill-box;
  transform-origin: center;
}
.hero-scene .hs-float { animation: hs-float 6s ease-in-out infinite; }
.hero-scene g:nth-of-type(2n) > .hs-float { animation-duration: 7.5s; animation-delay: -1.2s; }
.hero-scene g:nth-of-type(3n) > .hs-float { animation-duration: 8.5s; animation-delay: -2.4s; }
@keyframes hs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-scene .hs-leaf { animation: hs-leaf 5s ease-in-out infinite; transform-origin: left center; }
.hero-scene g:nth-of-type(2n) > .hs-leaf { animation-duration: 6s; animation-delay: -1s; }
@keyframes hs-leaf {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(6deg); }
}
.hero-scene .hs-glow { animation: hs-glow 7s ease-in-out infinite; }
@keyframes hs-glow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene * { animation: none !important; }
}

/* Оригинал из США */
.us-flag {
  width: 19px;
  height: 10px;
  flex: none;
  border-radius: 1.5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  vertical-align: -1px;
}
.offer-origin { display: flex; align-items: center; gap: 6px; }

.usa-stamp {
  position: absolute;
  top: 34px;
  right: 24px;
  width: 132px;
  height: 132px;
  color: #1d4e89;
  opacity: 0.9;
  transform: rotate(-12deg);
  filter: drop-shadow(0 2px 6px rgba(31, 107, 79, 0.18));
}
.usa-stamp svg { width: 100%; height: 100%; display: block; }
.usa-stamp text { font-family: "Manrope", system-ui, sans-serif; }
@media (max-width: 1000px) {
  .usa-stamp { width: 96px; height: 96px; top: 18px; right: 12px; }
}
@media (max-width: 640px) {
  .usa-stamp { display: none; }
}

/* Полоса преимуществ под первым экраном */
.usa-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: -34px 0 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31, 107, 79, 0.12);
  overflow: hidden;
}
.usa-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d4e89 0%, #2a66a8 35%, #e4572e 100%);
}
.usa-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-left: 1px solid var(--line);
}
.usa-item:first-child { border-left: 0; }
.usa-item strong { display: block; color: var(--forest); font-size: 0.98rem; }
.usa-item span:not(.usa-ico) { display: block; color: var(--muted); font-size: 0.85rem; }
.usa-item .us-flag { width: 34px; height: 18px; border-radius: 3px; }
.usa-ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: #1d4e89;
}
.usa-item:nth-child(3) .usa-ico { background: #e4572e; color: #14263d; }
.usa-item:nth-child(4) .usa-ico { background: #6f4a9e; }
@media (max-width: 900px) {
  .usa-strip { grid-template-columns: 1fr 1fr; margin-top: -24px; }
  .usa-item:nth-child(3) { border-left: 0; }
  .usa-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.usa-strip + .worlds { margin-top: 28px; }

/* Бренды */
.brands-strip { text-align: center; }
.brands-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.brands-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.brands-row span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #6b7a70;
  transition: color 0.15s;
}
.brands-row span:hover { color: var(--forest); }

/* Адаптив */
@media (max-width: 900px) {
  .worlds { grid-template-columns: 1fr; }
  .hero.hero-outdoor { min-height: 520px; }
  .hero-content { padding: 36px 16px 190px; }
  .hero-outdoor::after {
    background: linear-gradient(180deg, rgba(247, 250, 246, 0.88) 0%, rgba(247, 250, 246, 0.5) 55%, rgba(247, 250, 246, 0) 75%);
  }
}

@media (max-width: 640px) {
  .brand-name { font-size: 18px; }
  .site-header { position: static; }
  .hero-outdoor .search-form .button { padding: 0 16px; }
  .hero-chips a { font-size: 13px; padding: 5px 11px; }
  .site-nav .nav-cart { order: -1; }
  .usa-item { padding: 14px 12px; gap: 10px; }
  .usa-item span:not(.usa-ico) { display: none; }
  .usa-item strong { font-size: 0.9rem; }
  .usa-item .us-flag { width: 28px; height: 15px; }
  .usa-ico { width: 28px; height: 28px; font-size: 0.85rem; }
  .brands-row span { font-size: 1rem; }
}

@media print {
  .site-header, .site-footer, .footer-trees, .hero-scene {
    background: none !important;
    box-shadow: none !important;
  }
  .footer-trees, .hero-scene { display: none !important; }
}

/* Заголовки разделов: цветная черта */
h2::before {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e4572e, #ffb340);
}

/* Цены */
.price { color: #b85f10; }

/* Переключатель языка RU / EN в шапке (22.10) */
.lang-switch { display: inline-flex; gap: 2px; margin-left: 6px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.lang-switch button { border: 0; background: transparent; color: #e6eef8; font: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.lang-switch button:hover { background: rgba(255, 255, 255, 0.18); }
.lang-switch button.active { background: #ffffff; color: #1d4e89; cursor: default; }
@media (max-width: 720px) { .lang-switch { order: -2; } }

/* Английская версия: цена уже в долларах (formatRub), вторая цена в долларах не нужна (22.10) */
html[lang="en"] .price-usd { display: none; }
