/* ДомРазум — общие стили проекта */
:root {
  --bg: #f6f3ec;
  --bg-deep: #eee9de;
  --surface: #fffdf8;
  --surface-muted: #f1ece2;
  --ink: #17211f;
  --muted: #56645f;
  --brand: #0e5a4a;
  --brand-dark: #0a3f34;
  --brand-soft: #e2eee8;
  --accent: #e8a33d;
  --accent-dark: #9b6414;
  --accent-soft: #f8e9cf;
  --line: #e1dccf;
  --line-strong: #cfc7b7;
  --danger: #a92a20;
  --danger-soft: #f9e4e1;
  --success: #1f6f43;
  --shadow: 0 18px 44px rgba(23, 33, 31, 0.09);
  --shadow-soft: 0 8px 24px rgba(23, 33, 31, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 78px;
  --font: "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid #d9861c;
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 236, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  min-height: var(--header-h);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { color: var(--ink); }

.brand img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-tagline {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.main-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.menu-toggle-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #2a1a04;
  font-size: 11.5px;
  font-weight: 700;
}

.cart-count[hidden] { display: none; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fffdf8;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--brand-dark);
  color: #fffdf8;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-accent {
  background: var(--accent);
  color: #241806;
}

.btn-accent:hover {
  background: #f0b358;
  color: #241806;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-small {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--brand-dark);
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.15s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head p {
  margin-top: 10px;
  max-width: 56ch;
  color: var(--muted);
}

.section-head .link-arrow {
  flex-shrink: 0;
  padding-bottom: 4px;
}

/* Главная */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 6vw, 84px) 0 48px;
}

.hero h1 {
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.hero-copy > p {
  margin-top: 22px;
  max-width: 50ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-facts strong {
  color: var(--ink);
  font-weight: 750;
}

.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px;
}

.device-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.device-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.card-media {
  display: block;
  background: var(--bg-deep);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.device-card:hover .card-media img {
  transform: scale(1.025);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 18px 18px 20px;
}

.card-body .eyebrow {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.card-body h3 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--brand);
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  color: var(--muted);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.price {
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price small {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6d470d;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenario-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.scenario-teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 290px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: #f6f1e7;
  text-decoration: none;
  overflow: hidden;
}

.scenario-teaser:nth-child(2) { background: #174a3f; }
.scenario-teaser:nth-child(3) { background: #5c431d; }
.scenario-teaser:nth-child(4) { background: #243f3a; }

.scenario-teaser img {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 66%;
  opacity: 0.2;
  border-radius: 20px;
  filter: grayscale(0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.scenario-teaser:hover img {
  transform: translateY(-4px) scale(1.03);
  opacity: 0.28;
}

.scenario-teaser:hover { color: #f6f1e7; }

.scenario-teaser h3 {
  position: relative;
  color: #f6f1e7;
  font-size: 1.25rem;
  max-width: 13ch;
  margin-bottom: 10px;
}

.scenario-teaser p {
  position: relative;
  font-size: 13.5px;
  color: rgba(246, 241, 231, 0.76);
  max-width: 22ch;
}

.scenario-teaser .teaser-foot {
  position: relative;
  margin-top: auto;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
}

.step h3 { margin-bottom: 8px; }

.step p {
  font-size: 14.5px;
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--brand);
  color: #f6f1e7;
  overflow: hidden;
  position: relative;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 55px solid rgba(246, 241, 231, 0.08);
}

.cta-band h2 {
  color: #f6f1e7;
  max-width: 18ch;
}

.cta-band p {
  margin-top: 10px;
  color: rgba(246, 241, 231, 0.76);
  max-width: 52ch;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Заголовки страниц */
.page-head {
  padding: 52px 0 36px;
}

.page-head h1 {
  max-width: 20ch;
}

.page-head .lead {
  margin-top: 16px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 7px;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--brand); }

/* Каталог */
.catalog-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-bottom: 72px;
}

.filters {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filters h2 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.filters fieldset {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.filters legend {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  font-size: 14px;
  cursor: pointer;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.check-row .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.price-row span {
  color: var(--muted);
  font-size: 13px;
}

.filters-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.field-hint {
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.results-count {
  font-size: 14px;
  color: var(--muted);
}

.results-count strong {
  color: var(--ink);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
}

.search-field {
  position: relative;
  flex: 1 1 210px;
}

.search-field input {
  padding-left: 38px;
}

.search-field svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 20px;
}

/* Поля формы */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 650;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 122px;
  resize: vertical;
  line-height: 1.5;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b8ae9d;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 90, 74, 0.14);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(169, 42, 32, 0.13);
}

.field-error {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--danger);
}

.field-error:empty {
  display: none;
}

.check-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}

.check-inline input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.form-alert {
  display: none;
  margin-bottom: 18px;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.45;
}

.form-alert.is-visible { display: block; }

.form-alert.is-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #edcdc8;
}

.form-alert.is-success {
  background: #e6f2e9;
  color: var(--success);
  border: 1px solid #c5e0ce;
}

/* Карточка устройства */
.device-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  padding-bottom: 28px;
}

.device-visual {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}

.device-visual img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.device-info .badge { margin-bottom: 14px; }

.device-info h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  max-width: 18ch;
}

.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.rating-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 700;
}

.rating-value::before {
  content: "★";
  color: var(--accent);
  font-size: 15px;
}

.device-desc {
  margin-top: 18px;
  font-size: 1.01rem;
  color: var(--muted);
  max-width: 58ch;
}

.device-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.price-large {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--success);
}

.stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.stock.is-empty { color: var(--danger); }
.stock.is-empty::before { background: var(--danger); }

.purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.stepper button {
  width: 42px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.stepper button:hover { background: var(--surface-muted); }

.stepper button:disabled {
  color: var(--line-strong);
  cursor: not-allowed;
  background: transparent;
}

.stepper-small {
  height: 38px;
}

.stepper-small button {
  width: 34px;
  font-size: 18px;
}

.qty-value {
  min-width: 48px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.stepper input {
  width: 42px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.purchase-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

.accordion {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 2px;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.accordion details[open] summary::after {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 2px 18px;
  color: var(--muted);
  font-size: 14px;
}

.spec-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px 18px;
  margin: 0;
  font-size: 14px;
}

.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--ink); }

.related {
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Сценарии */
.scenarios-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.scenario-tab {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.scenario-tab:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.scenario-tab[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fffdf8;
}

.scenario-panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.scenario-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.scenario-panel-head h2 { font-size: 1.6rem; }

.scenario-goal {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.scenario-panel > p {
  color: var(--muted);
  max-width: 65ch;
}

.scenario-total {
  flex-shrink: 0;
  text-align: right;
}

.scenario-total span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scenario-total strong {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.scenario-devices {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.scenario-device {
  display: grid;
  grid-template-columns: auto 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-device input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.scenario-device img {
  width: 62px;
  height: 48px;
  object-fit: cover;
  border-radius: 9px;
  background: var(--bg-deep);
}

a.scenario-device-name {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

a.scenario-device-name:hover {
  color: var(--brand);
}

.scenario-device-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.scenario-device-price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.weather-card {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #10483c, #0a332b);
  color: #f6f1e7;
  box-shadow: var(--shadow-soft);
}

.weather-card h2 {
  color: #f6f1e7;
  font-size: 1.25rem;
}

.weather-card > p {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(246, 241, 231, 0.72);
}

.weather-card select {
  margin-top: 16px;
  border-color: rgba(246, 241, 231, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f6f1e7;
}

.weather-card select option { color: var(--ink); }

.weather-body {
  margin-top: 18px;
  font-size: 13.5px;
}

.weather-now {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.weather-temp {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.weather-desc {
  color: rgba(246, 241, 231, 0.82);
  font-size: 13px;
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.weather-stat {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.weather-stat span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.55);
}

.weather-stat strong {
  font-size: 14px;
  color: #f6f1e7;
}

.weather-advice {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(232, 163, 61, 0.1);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(246, 241, 231, 0.9);
}

.weather-advice .btn {
  margin-top: 10px;
  min-height: 36px;
  padding: 6px 13px;
  font-size: 12.5px;
}

.weather-status {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(246, 241, 231, 0.7);
}

.weather-card a {
  color: #f2c987;
}

.weather-card .btn-ghost {
  color: #f6f1e7;
  border-color: rgba(246, 241, 231, 0.38);
}

.weather-card .btn-ghost:hover {
  background: rgba(246, 241, 231, 0.1);
  border-color: rgba(246, 241, 231, 0.6);
  color: #fffdf8;
}

.weather-card .field-error {
  color: #ffb4a8;
}

/* Корзина */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.cart-item-media img {
  width: 104px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-deep);
}

.cart-item h2 {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cart-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.cart-item h2 a:hover { color: var(--brand); }

.cart-item-meta {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 9px;
}

.cart-line-total {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.remove-button {
  padding: 3px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}

.remove-button:hover { color: var(--danger); }

.cart-summary {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cart-summary h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
  font-weight: 650;
}

.summary-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
}

.summary-total strong {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.cart-summary .btn { margin-top: 18px; }

.summary-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.empty-state {
  padding: 46px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state h2 { font-size: 1.4rem; }

.empty-state p {
  max-width: 44ch;
  margin: 10px auto 22px;
  color: var(--muted);
}

.state-box {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.state-box h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.state-box p {
  max-width: 48ch;
  margin: 0 auto 18px;
  color: var(--muted);
}

/* Контакты */
.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 72px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.contact-card h2 {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.contact-card p,
.contact-card address {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.45;
}

.contact-card a {
  color: var(--ink);
  text-decoration: none;
}

.contact-card a:hover { color: var(--brand); }

.slogan-card {
  margin-top: 14px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #f6f1e7;
}

.slogan-card blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.slogan-card p {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(246, 241, 231, 0.7);
}

.map-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feedback-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feedback-card h2 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.feedback-card > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

/* Авторизация */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: stretch;
  max-width: 980px;
  margin-inline: auto;
  padding: 48px 0 76px;
}

.auth-card {
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}

.auth-card h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.auth-card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.auth-form {
  margin-top: 26px;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: 26px;
  background: linear-gradient(155deg, #10483c, #0a332b);
  color: #f6f1e7;
  overflow: hidden;
}

.auth-aside h2 {
  color: #f6f1e7;
  font-size: 1.6rem;
  max-width: 16ch;
}

.auth-aside p {
  margin-top: 12px;
  color: rgba(246, 241, 231, 0.72);
  font-size: 14px;
  max-width: 38ch;
}

.auth-aside ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.auth-aside li {
  position: relative;
  padding-left: 26px;
  color: rgba(246, 241, 231, 0.86);
}

.auth-aside li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.auth-aside img {
  width: 78%;
  align-self: end;
  margin: 0 -14px -28px auto;
  opacity: 0.9;
  border-radius: 16px;
}

.auth-switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.auth-switch a { font-weight: 650; }

.demo-hint {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: 12.5px;
  color: var(--muted);
}

.demo-hint code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
}

/* Профиль */
.profile-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.profile-card {
  position: sticky;
  top: 96px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #f6f1e7;
  font-size: 1.35rem;
  font-weight: 750;
}

.profile-card h1 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.profile-card .email {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.profile-card .btn { margin-top: 20px; }

.orders-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.orders-head h2 { font-size: 1.45rem; }

.orders-head span {
  font-size: 13px;
  color: var(--muted);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.order-number {
  font-size: 15px;
  font-weight: 700;
}

.order-date {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 650;
}

.order-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.order-item-row span:first-child { color: var(--ink); }

.order-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.order-total strong { font-size: 1.05rem; }

/* 404 */
.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 60px 0 80px;
  text-align: center;
}

.error-code {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--brand);
  opacity: 0.16;
}

.error-page h1 {
  margin-top: -12px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.error-page p {
  max-width: 46ch;
  margin: 14px auto 26px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Подвал */
.site-footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  background: #12231f;
  color: rgba(246, 241, 231, 0.72);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.6fr));
  gap: 36px;
}

.footer-brand .brand-name {
  color: #f6f1e7;
}

.footer-brand .brand-tagline {
  color: rgba(246, 241, 231, 0.5);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 36ch;
  color: rgba(246, 241, 231, 0.62);
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.45);
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.site-footer a {
  color: rgba(246, 241, 231, 0.8);
  text-decoration: none;
}

.site-footer a:hover { color: #fffdf8; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
  font-size: 12px;
  color: rgba(246, 241, 231, 0.42);
}

/* Служебные состояния */
.loading-block {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.skeleton {
  background: linear-gradient(90deg, #eee9de 25%, #f7f4ec 50%, #eee9de 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-media { aspect-ratio: 4 / 3; }
.skeleton-line { height: 12px; margin: 12px 18px; border-radius: 6px; }
.skeleton-line.wide { width: 70%; margin-bottom: 20px; }
.skeleton-line.short { width: 48%; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ecd6b2;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: #5e3c0d;
  font-size: 14px;
}

.notice a { font-weight: 650; color: #5e3c0d; }

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 13px 16px;
  border-radius: 12px;
  background: #16302c;
  color: #f6f1e7;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  animation: toast-in 0.2s ease;
}

.toast.is-error { background: #6d201a; }

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
}

.muted { color: var(--muted); }

.mt-24 { margin-top: 24px; }

/* Адаптивность */
@media (max-width: 1020px) {
  .scenario-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-media { max-width: 560px; }
  .hero h1 { max-width: 18ch; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .device-layout { grid-template-columns: 1fr; }
  .device-visual { position: static; max-width: 620px; }
  .scenarios-layout { grid-template-columns: 1fr; }
  .weather-card { position: static; order: -1; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contacts-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { min-height: 300px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; }
  .step::before { margin: 2px 0 0; }
  .step h3, .step p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .header-inner { gap: 8px 14px; padding-block: 10px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .main-nav a {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
  }
  .header-actions { margin-left: auto; }
  .brand-tagline { display: none; }
  .page-head { padding: 34px 0 26px; }
  .section { padding: 48px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .cta-band { align-items: start; flex-direction: column; }
  .feature-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .order-item-row { flex-wrap: wrap; }
  .cart-item { grid-template-columns: 84px minmax(0, 1fr); }
  .cart-item-media img { width: 84px; height: 68px; }
  .cart-item-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .scenario-device { grid-template-columns: auto 54px minmax(0, 1fr); }
  .scenario-device img { width: 54px; height: 44px; }
  .scenario-device-price { grid-column: 3; }
  .scenario-panel-head { flex-direction: column; }
  .scenario-total { text-align: left; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 18px; }
  .cart-link { padding: 8px 11px; }
  .hero-actions .btn { width: 100%; }
  .featured-grid { grid-template-columns: 1fr; }
  .scenario-teaser-grid { grid-template-columns: 1fr; }
  .scenario-teaser { min-height: 230px; }
  .steps { gap: 14px; }
  .step { grid-template-columns: 1fr; }
  .step h3, .step p { grid-column: 1; }
  .step::before { margin-bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .cart-item-media img { width: 72px; height: 60px; }
  .price-large { font-size: 1.9rem; }
  .purchase-row .btn { width: 100%; }
  .weather-stats { grid-template-columns: 1fr 1fr 1fr; }
  .auth-aside img { display: none; }
  .toast-stack { right: 16px; left: 16px; bottom: 16px; max-width: none; }
}

@media (max-width: 380px) {
  .header-actions .btn { padding-inline: 12px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
}

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