/* Активатор — стили витрины. Цвета и размеры сняты со старого сайта (тема Botiga + Elementor). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1d1d1f;
  --text: #212121;
  --muted: #6e6e73;
  --crumbs: #47425d;
  --line: #e5e5ea;
  --soft: #f5f5f7;
  --blue: #005ef9;
  --blue-dark: #0049c4;
  --radius: 20px;
  --shadow: 0 0 32px rgba(0, 0, 0, .07);
  --shadow-hover: 0 8px 36px rgba(0, 0, 0, .12);
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
s { color: var(--muted); font-weight: 400; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------- Шапка ---------- */
.site-header { background: var(--soft); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 36px; height: 72px; }
.logo { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.catalog { position: static; }
.catalog-toggle {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-size: 17px; padding: 8px 0; user-select: none;
}
.catalog-toggle::-webkit-details-marker { display: none; }
.catalog[open] .catalog-toggle svg { transform: rotate(180deg); }
.catalog-toggle svg { transition: transform .2s; }
.mega {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: min(var(--container), calc(100% - 40px)); margin-top: 8px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 28px 32px;
}
.mega-col { display: flex; flex-direction: column; gap: 9px; }
.mega-col a { font-size: 14.5px; color: var(--text); }
.mega-col a:hover { color: var(--blue); }
.mega-col .mega-head { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 4px; }
.header-link { font-size: 17px; color: var(--ink); white-space: nowrap; }
.header-link:hover, .header-link.active { color: var(--blue); }
.header-phone { margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--blue); }

/* ---------- Главная ---------- */
.hero { padding-top: 20px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 2048 / 840; object-fit: cover; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; padding: 10px;
  background: transparent; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
}
.slider-arrow svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow.prev { left: 6px; }
.slider-arrow.next { right: 6px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 0; }
.slider-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #c7c7cc; cursor: pointer; transition: background .2s, transform .2s; }
.slider-dots button.active { background: var(--ink); transform: scale(1.15); }

.section { padding-top: 64px; }
.section-title { font-size: 40px; line-height: 1.15; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.section-sub { text-align: center; margin: 10px 0 0; font-size: 16px; color: var(--text); }
.section-title + .grid { margin-top: 36px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  aspect-ratio: 370 / 304; padding: 26px 16px 0; border-radius: 30px; overflow: hidden;
  background: var(--tile-bg) center / cover no-repeat, var(--soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tile-title { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.tile-sub { font-size: 17px; color: var(--ink); margin-top: 6px; }
.tile-btn {
  margin-top: 30px; width: 74%; height: 46px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 12px 18px; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.card-title {
  margin: 16px 6px 0; font-size: 14.5px; line-height: 1.38; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { margin: auto 6px 0; padding-top: 14px; font-size: 18px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.card-price s { font-size: 14px; }

/* ---------- Внутренние страницы ---------- */
.page { padding-top: 26px; }
.page.narrow { max-width: 860px; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--crumbs);
}
.crumbs a:hover { color: var(--blue); }
.crumbs-current { color: var(--muted); }
.page-title { font-size: 40px; line-height: 1.15; font-weight: 700; margin: 18px 0 28px; letter-spacing: -.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
.chip { padding: 9px 18px; border: 1px solid var(--line); border-radius: 30px; font-size: 14.5px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Товар ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 26px; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; cursor: pointer; background: none; width: 84px; height: 84px; }
.gallery-thumbs button.active { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-title { font-size: 34px; line-height: 1.22; font-weight: 700; letter-spacing: -.01em; }
.product-price { font-size: 35px; font-weight: 600; margin: 26px 0 6px; display: flex; gap: 14px; align-items: baseline; color: var(--text); }
.product-price s { font-size: 20px; }
.delivery-note { font-size: 14.5px; margin: 0 0 22px; }

.buy-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--muted); }
.field input {
  height: 56px; padding: 0 22px; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid #d2d2d7; border-radius: 30px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 94, 249, .14); }
.form-error { margin: -4px 0 0 4px; color: #d70015; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.buy-row { display: flex; gap: 12px; }
.qty {
  display: flex; align-items: center; height: 60px; border: 1px solid #d2d2d7; border-radius: 30px; padding: 0 6px; flex: 0 0 auto;
}
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--soft); }
.qty input {
  width: 40px; border: 0; text-align: center; font: inherit; font-size: 16px; color: var(--text); background: none; -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  border-radius: 30px; padding: 0 28px; height: 60px; font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
  transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }
.buy-row .btn { flex: 1; }
.agree { margin: 0; font-size: 13px; color: var(--muted); }
.agree a { color: var(--blue); }
.pay-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.pay-badges li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 600; color: #3a3a3c; }

.desc { margin-top: 56px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px; }
.desc h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }

.prose { font-size: 15.5px; line-height: 1.65; color: #333; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .6em; font-weight: 600; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose li.nomark { list-style: none; }
.prose a { color: var(--blue); }
.legal { padding-bottom: 20px; }

/* ---------- Оплата и заказ ---------- */
.panel { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 44px 40px; margin: 30px auto 0; max-width: 640px; }
.panel.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.panel-title { font-size: 28px; font-weight: 700; }
.panel p { margin: 0; }
.panel form { margin-top: 8px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--blue); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 600; color: #fff; }
.status-icon.ok { background: #1f9d55; }
.status-icon.bad { background: #d70015; }
.keys { width: 100%; display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.key { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.key code { flex: 1; font: 600 16px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; text-align: left; }
.btn-copy { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; }

/* ---------- Оплата консультации ---------- */
.consult-title { margin-top: 22px; }
.consult { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; align-items: stretch; }
/* у формы IntellectMoney своя белая карточка — свою обёртку не рисуем */
.consult-frame { display: block; width: 100%; height: 340px; border: 0; }
.consult-art { border-radius: 30px; min-height: 320px; background: url("../img/oplata-bg.webp") center / cover no-repeat, var(--soft); }
.consult-help { text-align: center; max-width: 620px; margin: 22px auto 0; }
.consult-help a { color: var(--blue); }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 96px; background: var(--soft); padding: 56px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr 1.4fr; gap: 32px; }
.site-footer h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a:hover { color: var(--blue); }
.requisites { font-size: 13.5px; color: var(--muted); }
.requisites p { margin: 0 0 6px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile-title { font-size: 24px; }
  .tile-btn { margin-top: 22px; }
  .product { gap: 32px; }
  .mega { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .header-row { gap: 22px; }
  .product { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega { grid-template-columns: repeat(2, 1fr); padding: 24px; max-height: 75vh; overflow-y: auto; }
  .consult { grid-template-columns: 1fr; }
  .consult-art { display: none; }
}
@media (max-width: 560px) {
  .header-row { height: 60px; gap: 16px; }
  .logo { font-size: 17px; }
  .catalog-toggle { font-size: 16px; }
  .header-phone { display: none; }
  .header-link { margin-left: auto; font-size: 16px; }
  .consult-frame { height: 380px; }
  .hero { padding-top: 14px; }
  .slider { border-radius: 14px; }
  .slider-arrow { display: none; }
  .section { padding-top: 48px; }
  .section-title, .page-title { font-size: 28px; }
  .tile { border-radius: 22px; padding-top: 16px; }
  .tile-title { font-size: 18px; }
  .tile-sub { font-size: 13px; margin-top: 2px; }
  .tile-btn { width: 84%; height: 36px; margin-top: 12px; font-size: 12px; border-radius: 11px; }
  .card { padding: 8px 8px 14px; border-radius: 16px; }
  .card-title { font-size: 13.5px; margin: 12px 4px 0; }
  .card-price { font-size: 16px; margin: auto 4px 0; }
  .product-title { font-size: 26px; }
  .product-price { font-size: 30px; margin-top: 18px; }
  .qty { padding: 0 2px; }
  .qty button { width: 34px; }
  .qty input { width: 30px; }
  .buy-row .btn { padding: 0 14px; font-size: 14px; }
  .gallery-thumbs button { width: 68px; height: 68px; }
  .desc { padding: 24px 20px; }
  .panel { padding: 32px 22px; }
  .mega { grid-template-columns: 1fr; width: calc(100% - 24px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
