/*
Theme Name: WaiterNow
Theme URI: https://waiternow.ru
Author: PortfelOnline
Description: Лендинг WaiterNow — автоматизация зала для HoReCa. Каждая секция главной страницы — отдельный HTML-блок в редакторе WordPress. Стиль: liquid glass.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: proprietary
Text Domain: waiternow
*/

/* ==========================================================================
   1. Токены
   ========================================================================== */

:root {
  /* Поверхности */
  --bg: #f4f6fb;
  --bg-deep: #eaeef7;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #7c8798;

  /* Стекло */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-weak: rgba(255, 255, 255, 0.38);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-edge: rgba(15, 23, 42, 0.06);
  --blur: 22px;

  /* Акценты */
  --mint: #34d399;
  --cyan: #22d3ee;
  --violet: #8b7cf6;
  --peach: #fb9d6a;
  --amber: #fbbf24;
  --accent: linear-gradient(135deg, var(--mint) 0%, var(--cyan) 100%);
  --accent-warm: linear-gradient(135deg, var(--peach) 0%, var(--amber) 100%);

  /* Геометрия */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);

  /* Ритм */
  --gutter: clamp(20px, 5vw, 48px);
  --wrap: 1240px;
  --section-y: clamp(64px, 9vw, 128px);
}

/* ==========================================================================
   2. База
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

/* Фоновые световые пятна — источник цвета под стеклом */
.wn-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.wn-aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.wn-aurora span:nth-child(1) {
  width: 46vw; height: 46vw; top: -12vw; left: -8vw;
  background: radial-gradient(circle, var(--mint), transparent 68%);
}
.wn-aurora span:nth-child(2) {
  width: 40vw; height: 40vw; top: 18vw; right: -10vw;
  background: radial-gradient(circle, var(--violet), transparent 68%);
}
.wn-aurora span:nth-child(3) {
  width: 38vw; height: 38vw; top: 92vw; left: 22vw;
  background: radial-gradient(circle, var(--peach), transparent 68%);
}
.wn-aurora span:nth-child(4) {
  width: 34vw; height: 34vw; top: 168vw; right: 4vw;
  background: radial-gradient(circle, var(--cyan), transparent 68%);
}

/* ==========================================================================
   3. Сетка
   ========================================================================== */

.wn-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wn-section { padding-block: var(--section-y); position: relative; }

.wn-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 60px); }
.wn-head.is-center { margin-inline: auto; text-align: center; }
.wn-head p { color: var(--ink-2); font-size: 1.1rem; margin-top: 0.75em; }

.wn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 15px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--glass-weak);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.wn-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.wn-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.wn-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wn-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wn-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================================
   4. Стекло
   ========================================================================== */

.wn-glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
}

/* Блик по верхней кромке — «жидкое» преломление */
.wn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.wn-glass.is-solid { background: var(--glass-strong); }
.wn-glass.is-thin { background: var(--glass-weak); }

.wn-card {
  padding: clamp(22px, 2.6vw, 34px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wn-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.wn-card h3 { margin-bottom: 0.4em; }
.wn-card p { color: var(--ink-2); font-size: 0.98rem; }

.wn-ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  font-size: 1.35rem;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.28);
}

.wn-ico.is-warm { background: var(--accent-warm); box-shadow: 0 6px 18px rgba(251, 157, 106, 0.28); }

/* ==========================================================================
   5. Кнопки
   ========================================================================== */

.wn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.wn-btn:active { transform: scale(0.975); }

.wn-btn--primary {
  color: #06281f;
  background: var(--accent);
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.34);
}
.wn-btn--primary:hover { box-shadow: 0 14px 36px rgba(34, 211, 238, 0.44); }

.wn-btn--glass {
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.wn-btn--glass:hover { background: #fff; box-shadow: var(--shadow); }

.wn-btn--ghost { color: var(--ink-2); background: transparent; padding-inline: 10px; }
.wn-btn--ghost:hover { color: var(--ink); }

.wn-btn--lg { padding: 18px 38px; font-size: 1.06rem; }
.wn-btn--block { width: 100%; }

.wn-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ==========================================================================
   6. Шапка
   ========================================================================== */

.wn-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-block: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.wn-header.is-stuck {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
}

.wn-header__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.wn-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.wn-logo__mark {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #06281f;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.35);
}

.wn-nav { margin-right: auto; }

.wn-nav__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wn-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.wn-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.75); }

.wn-header__tel { font-weight: 600; font-size: 0.98rem; white-space: nowrap; }

.wn-burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-strong);
  cursor: pointer;
}
.wn-burger span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.wn-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.wn-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wn-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   7. Hero
   ========================================================================== */

.wn-hero { padding-block: clamp(56px, 8vw, 110px) var(--section-y); }

.wn-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.wn-hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 2em;
}

.wn-hero__note { margin-top: 22px; font-size: 0.9rem; color: var(--ink-3); }

.wn-hero__panel { padding: clamp(24px, 3vw, 38px); }

.wn-stat { display: grid; gap: 4px; }
.wn-stat__v {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wn-stat__v.is-warm { background: var(--accent-warm); -webkit-background-clip: text; background-clip: text; }
.wn-stat__k { font-size: 0.88rem; color: var(--ink-2); line-height: 1.35; }

.wn-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

/* ==========================================================================
   8. Продукты
   ========================================================================== */

.wn-product { display: flex; flex-direction: column; height: 100%; }

.wn-product__vis {
  aspect-ratio: 4 / 3;
  margin: -6px -6px 22px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  background: linear-gradient(150deg, rgba(52, 211, 153, 0.16), rgba(139, 124, 246, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.wn-product__spec {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.wn-product__spec li { display: flex; gap: 10px; align-items: flex-start; }
.wn-product__spec li::before { content: "—"; color: var(--mint); font-weight: 700; }

.wn-product .wn-btn { margin-top: auto; }

.wn-badge {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #06281f;
  background: rgba(52, 211, 153, 0.3);
}

/* ==========================================================================
   9. Логотипы клиентов
   ========================================================================== */

.wn-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--glass-edge);
}

.wn-logos__i {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 118px;
  padding: 18px;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  transition: background 0.25s ease;
}
.wn-logos__i:hover { background: var(--glass-strong); }
.wn-logos__i b { font-size: 1.02rem; letter-spacing: -0.01em; }
.wn-logos__i span { font-size: 0.82rem; color: var(--ink-3); }

/* ==========================================================================
   10. Шаги
   ========================================================================== */

.wn-steps { counter-reset: wn-step; display: grid; gap: clamp(16px, 2vw, 22px); }

.wn-step { display: flex; gap: 20px; align-items: flex-start; padding: clamp(20px, 2.4vw, 30px); }

.wn-step::before {
  counter-increment: wn-step;
  content: counter(wn-step);
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 800;
  color: #06281f;
  background: var(--accent);
}

.wn-step h3 { margin-bottom: 0.3em; font-size: 1.12rem; }
.wn-step p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* ==========================================================================
   11. Интеграции
   ========================================================================== */

.wn-integr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
}

.wn-integr__i {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.25s ease;
}
.wn-integr__i:hover { transform: translateY(-3px); }
.wn-integr__i i { font-style: normal; font-size: 1.3rem; }

/* ==========================================================================
   12. Тарифы
   ========================================================================== */

.wn-price { display: flex; flex-direction: column; height: 100%; }
.wn-price.is-featured { background: var(--glass-strong); border-color: rgba(52, 211, 153, 0.55); }

.wn-price__v {
  margin: 6px 0 2px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.wn-price__v small { font-size: 0.9rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

.wn-price__list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.wn-price__list li { display: flex; gap: 10px; align-items: flex-start; }
.wn-price__list li::before { content: "✓"; color: var(--mint); font-weight: 800; }
.wn-price .wn-btn { margin-top: auto; }

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.wn-faq { display: grid; gap: 12px; }

.wn-faq__i { padding: 0; overflow: hidden; }

.wn-faq__i summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 2.4vw, 30px);
  font-size: 1.04rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.wn-faq__i summary::-webkit-details-marker { display: none; }

.wn-faq__i summary::after {
  content: "+";
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
}
.wn-faq__i[open] summary::after { transform: rotate(45deg); }

.wn-faq__a {
  padding: 0 clamp(20px, 2.4vw, 30px) 24px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ==========================================================================
   14. CTA
   ========================================================================== */

.wn-cta {
  padding: clamp(34px, 5vw, 68px);
  text-align: center;
  background: var(--glass-strong);
}
.wn-cta h2 { max-width: 18em; margin-inline: auto; }
.wn-cta p { max-width: 40em; margin-inline: auto; color: var(--ink-2); font-size: 1.08rem; }
.wn-cta .wn-actions { justify-content: center; margin-top: 30px; }

/* ==========================================================================
   15. Контакты и подвал
   ========================================================================== */

.wn-contacts { display: grid; gap: 20px; }
.wn-contacts__i { padding: clamp(20px, 2.4vw, 28px); }
.wn-contacts__i h4 { margin-bottom: 6px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.wn-contacts__i a, .wn-contacts__i p { font-size: 1.08rem; font-weight: 600; margin: 0; }

.wn-footer {
  margin-top: var(--section-y);
  padding-block: 44px;
  border-top: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.wn-footer__in {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
}

.wn-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wn-footer__nav a:hover { color: var(--ink); }

/* ==========================================================================
   16. Модальное окно заявки
   ========================================================================== */

.wn-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.wn-modal.is-open { display: flex; animation: wn-fade 0.22s ease; }

@keyframes wn-fade { from { opacity: 0; } to { opacity: 1; } }

.wn-modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(26px, 3.4vw, 40px);
  background: rgba(255, 255, 255, 0.86);
  animation: wn-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wn-rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.wn-modal__x {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--ink-2);
  background: rgba(15, 23, 42, 0.06);
  cursor: pointer;
}
.wn-modal__x:hover { background: rgba(15, 23, 42, 0.12); }

.wn-field { display: grid; gap: 6px; margin-bottom: 15px; }
.wn-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }

.wn-field input,
.wn-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 13px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wn-field input:focus,
.wn-field textarea:focus {
  outline: 0;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.wn-field textarea { min-height: 92px; resize: vertical; }

.wn-consent { display: flex; gap: 10px; margin: 16px 0 20px; font-size: 0.8rem; color: var(--ink-3); line-height: 1.45; }
.wn-consent input { margin-top: 2px; flex-shrink: 0; }
.wn-consent a { text-decoration: underline; }

.wn-formmsg { margin-top: 14px; font-size: 0.92rem; text-align: center; }
.wn-formmsg.is-ok { color: #059669; }
.wn-formmsg.is-err { color: #dc2626; }

/* Honeypot */
.wn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   17. Служебные страницы (page.php / 404)
   ========================================================================== */

.wn-page { padding-block: clamp(48px, 6vw, 90px); }
.wn-page__body { padding: clamp(26px, 3.4vw, 46px); }
.wn-page__body h2 { margin-top: 1.4em; }
.wn-page__body h2:first-child { margin-top: 0; }
.wn-page__body a { color: #0891b2; text-decoration: underline; }
.wn-page__body table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.wn-page__body th,
.wn-page__body td { padding: 10px 12px; border: 1px solid var(--glass-edge); text-align: left; }

/* ==========================================================================
   18. Адаптив
   ========================================================================== */

@media (max-width: 1024px) {
  .wn-hero__grid { grid-template-columns: 1fr; }
  .wn-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wn-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .wn-burger { display: block; }
  .wn-header__tel { display: none; }

  .wn-nav {
    position: fixed;
    inset: 64px 12px auto;
    padding: 14px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    display: none;
  }
  .wn-nav.is-open { display: block; }
  .wn-nav__list { flex-direction: column; gap: 2px; }
  .wn-nav a { padding: 13px 16px; font-size: 1.02rem; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wn-grid.cols-2,
  .wn-grid.cols-3,
  .wn-grid.cols-4 { grid-template-columns: 1fr; }
  .wn-actions .wn-btn { width: 100%; }
  .wn-footer__in { flex-direction: column; align-items: flex-start; }

  /* Стекло на слабых мобильных устройствах дороже, чем выигрыш от него */
  .wn-card,
  .wn-logos__i,
  .wn-integr__i {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.82);
  }
  .wn-aurora span { filter: blur(60px); opacity: 0.42; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Резерв: без backdrop-filter стекло вырождается в матовую подложку */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .wn-glass,
  .wn-header,
  .wn-logos__i,
  .wn-integr__i { background: rgba(255, 255, 255, 0.9); }
}
