/* Стили сайта «Загородный двор». Собраны из Next.js-версии (Tailwind preflight + globals.css). */
:root { --font-manrope: "Manrope"; --font-literata: "Literata"; }
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

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

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .block {
    display: block;
  }

  .hidden {
    display: none;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }
}

:root {
  --cream: #f3ecdf;
  --cream-deep: #e7dcc9;
  --paper: #fffaf3;
  --ink: #2a2118;
  --muted: #6a5746;
  --wood: #8d4b27;
  --wood-deep: #3e2718;
  --moss: #2f6b45;
  --moss-deep: #1d4330;
  --clay: #c45c32;
  --gold: #c9923a;
  --line: #e3d3bf;
  --leaf: #e4efdc;
  --shadow: 0 16px 40px #3e271814;
  --shadow-lift: 0 22px 48px #3e271824;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(900px 280px at 100% -40px, #c9923a2e, transparent 50%), var(--cream);
  color: var(--ink);
  font-family: var(--font-manrope), "Segoe UI", sans-serif;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, .logo-name {
  font-family: var(--font-literata), Georgia, serif;
  letter-spacing: -.02em;
  font-weight: 650;
}

a {
  color: var(--moss-deep);
}

a:hover {
  color: var(--clay);
}

img, svg.illus {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  z-index: 50;
  position: absolute;
  top: .6rem;
  left: .6rem;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.topbar {
  background: var(--wood-deep);
  color: #f6efe4;
  font-size: .92rem;
}

.topbar .wrap {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  display: flex;
}

.header {
  z-index: 30;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  background: #f3ecdff0;
  position: sticky;
  top: 0;
}

.header-row {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
  display: flex;
}

.logo {
  color: inherit;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  display: flex;
}

.logo-mark {
  flex: none;
  width: 46px;
  height: 46px;
}

.logo-name {
  font-size: 1.35rem;
  line-height: 1;
}

.logo small {
  color: var(--muted);
  font-family: var(--font-manrope), sans-serif;
  letter-spacing: 0;
  font-size: .78rem;
  font-weight: 600;
  display: block;
}

.header-actions {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.order-widget {
  position: relative;
}

.order-panel {
  z-index: 5;
  background: var(--paper);
  border: 1px solid var(--line);
  width: min(300px, 100vw - 1.4rem);
  box-shadow: var(--shadow);
  transform-origin: 100% 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-radius: 18px;
  gap: .5rem;
  padding: .85rem .9rem .95rem;
  transition: transform .16s, opacity .16s, visibility .16s;
  display: grid;
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  transform: scale(.92);
}

.order-widget.is-open .order-panel, .order-widget:hover .order-panel, .order-widget:focus-within .order-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.order-panel-title {
  font-family: var(--font-literata), Georgia, serif;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
}

.order-panel p {
  margin: 0;
}

.order-panel input, .order-panel textarea {
  min-height: 40px;
}

.order-panel textarea {
  min-height: 72px;
}

.menu-btn.btn {
  display: none;
}

.primary-nav {
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  padding: 0 0 .8rem;
  display: flex;
}

.primary-nav a {
  color: var(--ink);
  border-bottom: 2px solid #0000;
  padding: .2rem 0;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--moss-deep);
  border-bottom-color: var(--gold);
}

.btn {
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  min-height: 50px;
  padding: .65rem 1.35rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s, background-color .15s, box-shadow .15s;
  display: inline-flex;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 8px 20px #c45c3247;
}

.btn-primary:hover {
  color: #fff;
  background: #a84b26;
}

.btn-moss {
  background: var(--moss);
  color: #fff;
}

.btn-moss:hover {
  background: var(--moss-deep);
  color: #fff;
}

.btn-ghost {
  color: #f6efe4;
  background: none;
  border-color: #f6efe466;
}

.btn-line {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: var(--wood);
  color: var(--wood);
}

.btn-lg {
  min-height: 58px;
  padding-inline: 1.7rem;
  font-size: 1.08rem;
}

.hero {
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.4rem 0 1.4rem;
  display: grid;
}

.hero-copy h1 {
  margin: .3rem 0 1rem;
  font-size: clamp(2.2rem, 4.4vw, 3.7rem);
  line-height: 1.04;
}

.kicker {
  color: var(--moss);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-panel {
  box-shadow: var(--shadow-lift);
  background: #3e2718;
  border-radius: 28px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-photo {
  aspect-ratio: 446 / 424;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

.hero-actions {
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
  display: flex;
}

.hero-tag {
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  border-radius: 18px;
  gap: .1rem;
  padding: .75rem 1rem;
  display: grid;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

.hero-tag small {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.hero-tag strong {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

.trust {
  grid-template-columns: 1fr 1fr;
  gap: .7rem 1.2rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.trust li {
  padding-left: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
}

.trust li:before {
  content: "";
  background: var(--moss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
  border-radius: 999px;
  width: 1.45rem;
  height: 1.45rem;
  position: absolute;
  top: .05rem;
  left: 0;
}

.trust li span {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  display: block;
}

.section {
  padding: 3.2rem 0;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: #fffaf3b8;
}

.section-leaf {
  background: var(--leaf);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}

.section-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.3rem;
  display: flex;
}

.section-head h2 {
  margin: .25rem 0 0;
}

.section-head p.lead {
  max-width: 46rem;
  margin: .4rem 0 0;
}

.more {
  white-space: nowrap;
  border-bottom: 2px solid var(--gold);
  padding-bottom: .1rem;
  font-weight: 800;
  text-decoration: none;
}

.more:after {
  content: " →";
}

.grid-5, .grid-4, .grid-3, .grid-2 {
  gap: 1.1rem;
  display: grid;
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card, .paper {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
}

.card {
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.card .body, .paper {
  padding: 1.1rem 1.15rem 1.25rem;
}

.card .body {
  flex-direction: column;
  flex: 1;
  display: flex;
}

.card .body > .btn {
  margin-top: auto;
}

.card .body p {
  margin: .35rem 0;
}

.card h2, .card h3 {
  margin: .3rem 0 .1rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.card a.title {
  color: inherit;
  text-decoration: none;
}

.card a.title:hover {
  color: var(--moss-deep);
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
}

.card .body .price {
  margin: .6rem 0 .9rem;
}

.old-price {
  color: var(--muted);
  margin-right: .4rem;
  font-weight: 600;
  text-decoration: line-through;
}

.badges {
  flex-wrap: wrap;
  gap: .35rem;
  display: flex;
}

.badge {
  color: var(--wood-deep);
  background: #f3d7b0;
  border-radius: 999px;
  padding: .1rem .5rem;
  font-size: .75rem;
  font-weight: 800;
}

.badge-sale {
  background: #f3c7b8;
}

.badge-demo {
  background: #efe7d4;
}

.illus {
  background: #e7f0e4;
  display: block;
}

.cat-photo {
  object-fit: cover;
  object-position: center 60%;
  width: 100%;
  height: 220px;
  display: block;
}

.category-photo {
  object-fit: cover;
  border-radius: 18px;
  width: 100%;
  max-height: 460px;
  margin: .2rem 0 1rem;
  display: block;
}

.note {
  border: 1px dashed var(--gold);
  color: var(--wood-deep);
  background: #fff4e4;
  border-radius: 14px;
  padding: .8rem 1rem;
}

.crumbs {
  color: var(--muted);
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 .8rem;
  padding: 0;
  font-size: .92rem;
  list-style: none;
  display: flex;
}

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

.page-hero {
  padding: 1.4rem 0 .2rem;
}

.page-hero h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.prose h2 {
  margin: 1.4rem 0 .4rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin: 1rem 0 .3rem;
  font-size: 1.15rem;
}

.prose p {
  margin: .55rem 0;
}

.prose ul {
  margin: .4rem 0 .8rem;
  padding-left: 1.1rem;
}

.prose a {
  font-weight: 700;
}

.table-wrap {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  padding: .7rem .8rem;
}

th {
  background: #f6efe4;
}

.steps {
  counter-reset: step;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  display: grid;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.2rem;
  font-weight: 600;
  position: relative;
}

.step b {
  background: var(--gold);
  width: 2.6rem;
  height: 2.6rem;
  color: var(--wood-deep);
  font-family: var(--font-literata), Georgia, serif;
  border-radius: 999px;
  place-items: center;
  margin-bottom: .7rem;
  font-size: 1.3rem;
  display: grid;
}

.section-wood {
  background: var(--wood-deep);
  color: #f6efe4;
}

.section-wood h2 {
  color: #fff7ea;
}

.section-wood a {
  color: #f3d7b0;
}

.section-wood .kicker {
  color: #f0c56e;
}

.section-wood .step {
  color: #f6efe4;
  background: #fffaf312;
  border-color: #f6efe429;
}

.rail {
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) transparent;
  grid-auto-columns: minmax(270px, calc(25% - .825rem));
  grid-auto-flow: column;
  gap: 1.1rem;
  margin: -.4rem -.2rem 0;
  padding: .4rem .2rem 1.2rem;
  display: grid;
  overflow-x: auto;
}

.rail > * {
  scroll-snap-align: start;
  min-width: 0;
}

.rail-3 {
  grid-auto-columns: minmax(270px, calc(33.3333% - .733333rem));
}

.cat-strip .card .body {
  padding: .9rem 1rem 1rem;
}

.cat-strip h3 {
  font-size: 1.2rem;
}

.cat-strip .card .body .price {
  color: var(--moss-deep);
  margin: auto 0 0;
  padding-top: .4rem;
  font-size: 1.05rem;
}

.cat-strip .cat-photo {
  aspect-ratio: 640 / 420;
  height: auto;
}

.cat-strip p.desc {
  color: var(--muted);
  font-size: .95rem;
}

.why {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  display: grid;
}

.why .paper {
  flex-direction: column;
  gap: .3rem;
  display: flex;
}

.why .paper h3 {
  margin: .2rem 0;
  font-size: 1.3rem;
}

.why .paper p {
  margin: 0 0 .8rem;
}

.why .paper > a:last-child {
  margin-top: auto;
}

.why-icon {
  background: var(--leaf);
  width: 3rem;
  height: 3rem;
  color: var(--moss-deep);
  border-radius: 14px;
  place-items: center;
  display: grid;
}

.why-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.quote {
  flex-direction: column;
  margin: 0;
  display: flex;
  position: relative;
}

.quote:before {
  content: "“";
  font-family: var(--font-literata), Georgia, serif;
  color: var(--gold);
  margin-top: .8rem;
  font-size: 4rem;
  line-height: .6;
}

.quote p {
  margin: .4rem 0;
}

.quote .muted {
  margin-top: auto;
  font-weight: 700;
}

.page-hero h2 {
  margin: 2rem 0 .9rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.page-hero .section > h2:first-child, .page-hero .section .wrap > h2:first-child, .page-hero .kicker + h2 {
  margin-top: .25rem;
}

.page-hero .section-head h2 {
  margin: .25rem 0 0;
}

.page-hero h3 {
  margin: .2rem 0 .4rem;
  font-size: 1.2rem;
}

.page-hero .paper p:last-child {
  margin-bottom: 0;
}

.page-hero > .wrap:first-child {
  padding-bottom: 2.4rem;
}

.text-col {
  max-width: 46rem;
}

[id] {
  scroll-margin-top: 8.5rem;
}

.cat-hero {
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 2.5rem;
  display: grid;
}

.cat-hero h1 {
  margin: .2rem 0 .8rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
}

.media-frame {
  box-shadow: var(--shadow-lift);
  background: var(--leaf);
  border-radius: 24px;
  overflow: hidden;
}

.media-frame img, .media-frame svg {
  aspect-ratio: 640 / 420;
  object-fit: cover;
  width: 100%;
  display: block;
}

.facts {
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.3rem 0 0;
  display: flex;
}

.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0;
  padding: .6rem 1rem;
  display: grid;
}

.fact small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.fact strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.chips {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.chips a {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: .45rem .95rem;
  font-weight: 700;
  text-decoration: none;
}

.chips a:hover {
  border-color: var(--moss);
  color: var(--moss-deep);
}

.read-list {
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.read-list a {
  font-weight: 700;
}

.product-top {
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
  gap: 2.2rem;
  display: grid;
}

.product-media {
  gap: 1rem;
  display: grid;
  position: sticky;
  top: 8.5rem;
}

.buy-box {
  gap: .2rem;
  padding: 1.5rem 1.5rem 1.6rem;
  display: grid;
}

.buy-box h1 {
  margin: .4rem 0 .1rem;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.08;
}

.buy-box .subtitle {
  margin: 0;
  font-weight: 700;
}

.buy-box .price {
  margin: .6rem 0 .4rem;
  font-size: 2.1rem;
  line-height: 1.1;
}

.buy-box .old-price {
  font-size: 1.2rem;
}

.buy-box .option-block h2 {
  margin: .8rem 0 0;
  font-size: 1.3rem;
}

.btn-block {
  width: 100%;
  margin: .6rem 0 .4rem;
}

.specs {
  border-top: 1px solid var(--line);
  grid-template-columns: auto 1fr;
  margin: .6rem 0;
  display: grid;
}

.specs dt, .specs dd {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: .55rem 0;
}

.specs dt {
  color: var(--muted);
  padding-right: 1.2rem;
  font-weight: 600;
}

.specs dd {
  font-weight: 700;
}

.kit {
  gap: .6rem;
  margin: .4rem 0 .2rem;
  display: grid;
}

.kit-box {
  border-radius: 14px;
  margin: 0;
  padding: .75rem 1rem;
}

.kit-box b {
  margin-bottom: .15rem;
  display: block;
}

.kit-in {
  background: var(--leaf);
}

.kit-out {
  background: #f6efe4;
}

.mini-steps {
  gap: .4rem;
  margin: 1rem 0 0;
  padding-left: 1.3rem;
  font-weight: 600;
  display: grid;
}

.mini-steps li::marker {
  color: var(--moss);
  font-weight: 800;
}

.custom-cta {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
  display: grid;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: .6rem 0;
  padding: .9rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
}

.faq details[open] summary {
  color: var(--moss-deep);
}

.form {
  gap: .75rem;
  display: grid;
}

.search-box {
  position: relative;
}

.search-suggest {
  z-index: 6;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  max-height: 22rem;
  margin: 0;
  padding: .35rem;
  list-style: none;
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  right: 0;
  overflow: auto;
}

.search-suggest a {
  color: inherit;
  border-radius: 12px;
  grid-template-columns: 1fr auto;
  gap: .1rem .8rem;
  padding: .55rem .7rem;
  font-weight: 700;
  text-decoration: none;
  display: grid;
}

.search-suggest a:hover, .search-suggest a.is-active {
  background: #f6efe4;
}

.search-suggest .muted {
  grid-column: 1 / -1;
  font-weight: 500;
}

.search-suggest strong {
  white-space: nowrap;
  font-weight: 800;
}

.search-empty {
  color: var(--muted);
  padding: .7rem;
}

.review-form {
  margin: 1.2rem 0;
}

.option-block {
  gap: .75rem;
  margin-top: 1rem;
  display: grid;
}

.option-block h2 {
  margin: 0;
  font-size: 1.35rem;
}

.option-group {
  border: 1px solid var(--line);
  background: #fffaf3;
  border-radius: 16px;
  gap: .45rem;
  min-inline-size: 0;
  margin: 0;
  padding: .75rem .9rem .9rem;
  display: grid;
}

.option-group legend {
  padding: 0 .3rem;
  font-weight: 800;
}

.option-group .hint {
  margin: 0;
  font-weight: 500;
}

.option-group .check {
  width: 100%;
}

.option-group .check span:first-of-type {
  flex: 1;
}

.option-delta {
  color: var(--wood);
  white-space: nowrap;
  margin-left: auto;
  font-weight: 800;
}

.option-assign {
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: .4rem;
  min-inline-size: 0;
  margin: 0;
  padding: .75rem .85rem;
  display: grid;
}

.option-assign legend {
  padding: 0 .3rem;
  font-weight: 800;
}

.option-assign p {
  margin: 0;
  font-weight: 500;
}

.option-assign-list {
  gap: .35rem;
  max-height: 280px;
  display: grid;
  overflow: auto;
}

.lead-text {
  white-space: pre-line;
}

.star-field {
  border: 0;
  gap: .35rem;
  margin: 0;
  padding: 0;
  display: grid;
}

.star-field legend {
  padding: 0;
  font-weight: 700;
}

.star-rate {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: .15rem;
  display: inline-flex;
}

.star-rate label {
  cursor: pointer;
  color: #d9c8b2;
  justify-content: center;
  align-items: center;
  width: 2.2rem;
  height: 2.2rem;
  min-height: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  position: relative;
}

.star-rate input {
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.star-rate label:hover, .star-rate label:hover ~ label {
  color: var(--gold);
}

.star-rate label:has(input:checked) {
  color: var(--gold);
}

.star-rate label:has(input:checked) ~ label {
  color: var(--gold);
}

.star-rate input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

label {
  gap: .25rem;
  font-weight: 700;
  display: grid;
}

input, textarea, select {
  width: 100%;
  min-height: 46px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9c8b2;
  border-radius: 12px;
  padding: .55rem .7rem;
}

textarea {
  min-height: 120px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.site-footer {
  background: var(--wood-deep);
  color: #f6efe4;
  margin-top: 4rem;
  padding: 2.4rem 0 5.5rem;
  position: relative;
}

.site-footer:before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='34' viewBox='0 0 36 34'%3E%3Cpath d='M6 34V8l7-7 7 7v26z' fill='%233e2718'/%3E%3Crect y='18' width='36' height='5' fill='%233e2718'/%3E%3C/svg%3E") 0 100% / 36px 34px repeat-x;
  height: 34px;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
}

.site-footer a {
  color: #f3d7b0;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.2rem;
  display: grid;
}

.site-footer h2 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-note {
  color: #e6d3be;
}

.sticky-cta {
  display: none;
}

.ask-widget {
  z-index: 45;
  justify-items: end;
  gap: .45rem;
  display: grid;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
}

.ask-toggle {
  cursor: pointer;
  background: var(--wood-deep);
  color: #f6efe4;
  font: inherit;
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem .55rem .5rem;
  font-size: .92rem;
  font-weight: 800;
  display: inline-flex;
  box-shadow: 0 10px 28px #3e271838;
}

.ask-mark {
  background: var(--gold);
  width: 1.55rem;
  height: 1.55rem;
  color: var(--wood-deep);
  font-family: var(--font-literata), Georgia, serif;
  border-radius: 999px;
  place-items: center;
  display: inline-grid;
}

.ask-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  width: min(320px, 100vw - 2rem);
  max-height: min(70vh, 460px);
  box-shadow: var(--shadow);
  border-radius: 18px;
  gap: .5rem;
  padding: .8rem .9rem .95rem;
  display: grid;
  overflow: auto;
}

.ask-panel p {
  margin: 0;
  font-weight: 500;
}

.ask-panel input, .ask-panel textarea {
  min-height: 40px;
}

.ask-panel textarea {
  min-height: 72px;
}

.ask-head {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.ask-head strong {
  font-family: var(--font-literata), Georgia, serif;
  font-size: 1.15rem;
}

.ask-close {
  width: 2rem;
  height: 2rem;
  color: var(--wood-deep);
  font: inherit;
  cursor: pointer;
  background: #f3ecdf;
  border: 0;
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
}

.cat-tile {
  color: inherit;
  min-height: 100%;
  text-decoration: none;
}

.cat-tile .body {
  flex-direction: column;
  flex: 1;
  gap: .35rem;
  display: flex;
}

@media (max-width: 980px) {
  .hero, .grid-4, .footer-grid, .steps, .custom-cta, .grid-3, .why {
    grid-template-columns: 1fr 1fr;
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-btn.btn {
    min-height: 44px;
    display: inline-flex;
  }

  .topbar {
    font-size: .85rem;
  }

  .topbar .wrap > span:first-child {
    display: none;
  }

  .header-row {
    padding: .55rem 0;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-name {
    font-size: 1.15rem;
  }

  .logo small {
    display: none;
  }

  .header-actions .btn {
    min-height: 44px;
    padding-inline: 1.1rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
  }

  .cat-strip p.desc {
    display: none;
  }

  .hero {
    gap: 1.6rem;
    padding-top: 1.2rem;
  }

  .trust {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 100%;
  }

  .grid-5 {
    grid-template-columns: 1fr 1fr;
  }

  .why, .custom-cta, .cat-hero, .product-top {
    grid-template-columns: 1fr;
  }

  .product-media {
    position: static;
  }

  .buy-box {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .primary-nav {
    padding-bottom: .8rem;
    display: none;
  }

  .nav-wrap.open .primary-nav {
    flex-direction: column;
    display: flex;
  }

  .hero, .grid-4, .grid-3, .grid-2, .footer-grid, .steps {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-line {
    display: none;
  }

  .sticky-cta {
    z-index: 40;
    background: var(--wood-deep);
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    padding: .45rem;
    display: grid;
    position: fixed;
    inset: auto 0 0;
  }

  .ask-widget {
    bottom: 4.7rem;
    right: .7rem;
  }

  .sticky-cta a {
    color: #fff;
    text-align: center;
    background: var(--clay);
    border-radius: 12px;
    padding: .75rem;
    font-weight: 800;
    text-decoration: none;
  }

  .sticky-cta a.alt {
    background: var(--moss);
  }

  main {
    padding-bottom: 4.2rem;
  }
}

.admin {
  background: var(--cream);
  min-height: 100vh;
}

.admin-bar {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  display: flex;
}

.admin-nav {
  flex-wrap: wrap;
  gap: .45rem .8rem;
  padding-bottom: 1rem;
  display: flex;
}

.admin-nav a {
  font-weight: 800;
  text-decoration: none;
}

.admin table {
  background: #fff;
}

.admin .paper {
  margin-bottom: 1rem;
}

.check {
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  display: flex;
}

.admin-product {
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "fields photos";
  align-items: start;
  gap: 1.6rem;
  display: grid;
}

.admin-product-fields {
  grid-area: fields;
  min-width: 0;
}

.admin-product-photos {
  grid-area: photos;
  position: sticky;
  top: 1rem;
}

.photo-manager {
  border: 1px solid var(--line);
  background: #fffdf9;
  border-radius: 16px;
  gap: .6rem;
  padding: .9rem;
  transition: border-color .15s, background .15s;
  display: grid;
}

.photo-manager.is-drop {
  border-color: var(--moss);
  background: var(--leaf);
}

.photo-head {
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  display: flex;
}

.photo-hint {
  margin: 0;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.4;
}

.photo-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.photo-tile {
  aspect-ratio: 1;
  background: var(--cream-deep);
  cursor: grab;
  border: 2px solid #0000;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.photo-tile img {
  object-fit: cover;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
}

.photo-tile.is-main {
  aspect-ratio: 16 / 10;
  border-color: var(--moss);
  grid-column: span 3;
}

.photo-tile.is-dragging {
  opacity: .4;
}

.photo-tile.is-over {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #c9923a59;
}

.photo-main, .photo-num, .photo-new {
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: .05rem .5rem;
  font-size: .75rem;
  font-weight: 800;
  position: absolute;
  top: .35rem;
  left: .35rem;
}

.photo-main {
  background: var(--moss);
  color: #fff;
}

.photo-new {
  background: var(--gold);
  color: var(--wood-deep);
  left: auto;
  right: .35rem;
}

.photo-actions {
  opacity: 0;
  justify-content: flex-end;
  gap: .25rem;
  transition: opacity .15s;
  display: flex;
  position: absolute;
  bottom: .3rem;
  left: .3rem;
  right: .3rem;
}

.photo-tile:hover .photo-actions, .photo-tile:focus-within .photo-actions, .photo-tile.is-main .photo-actions {
  opacity: 1;
}

.photo-actions button {
  width: 1.9rem;
  height: 1.9rem;
  min-height: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  background: #fffaf3f0;
  border: 0;
  border-radius: 8px;
  padding: 0;
  font-weight: 800;
}

.photo-actions button:disabled {
  opacity: .35;
  cursor: default;
}

.photo-actions .photo-remove {
  color: #a8321c;
}

.photo-drop {
  border: 2px dashed var(--line);
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  padding: .8rem;
  font-size: .92rem;
  font-weight: 500;
  display: block;
  position: relative;
}

.photo-drop:hover {
  border-color: var(--moss);
}

.photo-drop input {
  opacity: 0;
  cursor: pointer;
  min-height: 0;
  position: absolute;
  inset: 0;
}

.switch {
  min-height: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: .45rem;
  padding: 0;
  font-size: .85rem;
  font-weight: 800;
  display: inline-flex;
}

.switch-knob {
  background: #d9c8b2;
  border-radius: 999px;
  flex: none;
  width: 2.6rem;
  height: 1.5rem;
  transition: background .15s;
  position: relative;
}

.switch-knob:after {
  content: "";
  background: #fff;
  border-radius: 999px;
  width: 1.14rem;
  height: 1.14rem;
  transition: transform .15s;
  position: absolute;
  top: .18rem;
  left: .18rem;
  box-shadow: 0 1px 3px #00000040;
}

.switch.is-on {
  color: var(--moss-deep);
}

.switch.is-on .switch-knob {
  background: var(--moss);
}

.switch.is-on .switch-knob:after {
  transform: translateX(1.1rem);
}

tr.is-off td {
  color: var(--muted);
}

tr.is-off .admin-thumb {
  opacity: .45;
}

.admin-thumb {
  object-fit: cover;
  background: var(--cream-deep);
  border-radius: 8px;
  width: 56px;
  height: 42px;
  display: block;
}

.admin-thumb-empty {
  color: var(--muted);
  place-items: center;
  font-size: .7rem;
  display: grid;
}

@media (hover: none) {
  .photo-actions {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .admin-product {
    grid-template-columns: 1fr;
    grid-template-areas: "photos"
                         "fields";
  }

  .admin-product-photos {
    position: static;
  }
}

.check input {
  width: auto;
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}


/* Админка */
.admin h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin: 0.6rem 0 1rem; }
.admin h2 { font-size: 1.3rem; margin: 0 0 0.4rem; }
.admin .admin-nav a { padding: 0.2rem 0; }


.hero-photo-wide { aspect-ratio: 4 / 3; object-position: 52% center; }

/* Карта области */
.region-map { margin: 1.4rem 0 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 1rem 1rem 1.2rem; box-shadow: var(--shadow); }
.region-map svg { display: block; width: 100%; height: auto; }
.map-region { fill: #e4efdc; stroke: var(--moss); stroke-width: 3; stroke-linejoin: round; }
.map-rays line { stroke: var(--wood); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.35; }
.map-city text { font: 700 13px var(--font-manrope), sans-serif; fill: var(--ink); paint-order: stroke; stroke: #f3f8ef; stroke-width: 4px; stroke-linejoin: round; }
.map-city.is-base text { font-size: 16px; font-weight: 800; }
.map-city:hover text, .map-city.is-current text { fill: var(--clay); }
.map-city:hover circle { r: 8; }
.map-legend { list-style: none; padding: 0; margin: 0.8rem 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-weight: 600; font-size: 0.92rem; }
.map-legend li { display: flex; align-items: center; gap: 0.45rem; }
.map-dot { width: 0.9rem; height: 0.9rem; border-radius: 999px; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.map-dot-base { background: #3e2718; border-radius: 4px; }
@media (max-width: 720px) {
  .region-map { padding: 0.6rem 0.6rem 0.9rem; border-radius: 18px; margin-inline: -0.4rem; }
  .map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -0.2rem; padding-bottom: 0.3rem; }
  .map-scroll svg { min-width: 680px; }
  .map-city text { font-size: 14px; }
  .map-legend { font-size: 0.85rem; }
}
/* Списки в статьях */
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; margin: .4rem 0 .8rem; padding-left: 1.4rem; }
.prose li { margin: .25rem 0; }
.prose li::marker { color: var(--moss); font-weight: 700; }

/* Отзывы о модели */
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 1.6rem; align-items: start; }
.reviews-list { display: grid; gap: 1rem; }
.reviews-layout .review-form { margin: 0; }
.stars { color: var(--gold); letter-spacing: 0.08em; font-size: 1.15rem; margin: 0; line-height: 1; }
.rating-summary { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; }
.rating-summary .stars { font-size: 1.35rem; }
.review-card.quote::before { display: none; }
.reviews-empty .stars { color: #d9c8b2; font-size: 1.6rem; margin-bottom: 0.5rem; }
.reviews-empty p { margin: 0.3rem 0; }
@media (max-width: 900px) { .reviews-layout { grid-template-columns: 1fr; } }
/* Поиск на главной */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-search { margin-top: 1.3rem; max-width: 34rem; }
.hero-search .search-box { display: flex; align-items: center; gap: 0.4rem; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 0.3rem 0.3rem 0.3rem 1rem; box-shadow: var(--shadow); transition: border-color 0.15s; }
.hero-search .search-box:focus-within { border-color: var(--moss); }
.hero-search-icon { display: grid; place-items: center; color: var(--muted); flex: none; }
.hero-search-icon svg { width: 1.25rem; height: 1.25rem; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 46px; padding: 0 0.3rem; font-size: 1.02rem; outline: none; }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search .btn { min-height: 46px; flex: none; }
.hero-search .search-suggest { top: calc(100% + 0.45rem); }
.search-suggest a.is-category span:first-child { color: var(--moss-deep); }
.hero-search + .hero-actions { margin-top: 1rem; }
@media (max-width: 720px) {
  .hero-search .btn { padding-inline: 1rem; }
  .hero-search input { font-size: 1rem; }
}
/* Фото целиком, без обрезки: по бокам размытая копия кадра */
.photo-fit { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #3e2718; }
.photo-fit .photo-fit-bg { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; filter: blur(22px) saturate(1.1) brightness(.72); transform: scale(1.2); }
.photo-fit .photo-fit-img { position: relative; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.photo-fit.is-cover .photo-fit-img { object-fit: cover; object-position: 52% center; }
.media-frame .photo-fit { aspect-ratio: 4 / 3; }

/* Карусель на главной */
.hero-slides { position: relative; aspect-ratio: 4 / 3; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease; color: var(--ink); text-decoration: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide .hero-tag { max-width: calc(100% - 2rem); }
.hero-tag b { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.carousel-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 999px; background: #fffaf3e6; color: var(--ink); font-size: 1.9rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); opacity: .85; transition: opacity .15s; display: grid; place-items: center; padding: 0 0 .2rem; }
.carousel-arrow:hover { opacity: 1; }
.carousel-prev { left: .8rem; }
.carousel-next { right: .8rem; }
.carousel-dots { position: absolute; top: .9rem; left: 50%; z-index: 2; transform: translateX(-50%); display: flex; gap: .4rem; padding: .35rem .55rem; border-radius: 999px; background: #2a211866; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #fffaf399; cursor: pointer; transition: width .25s, background .25s; }
.carousel-dots button[aria-current="true"] { width: 22px; background: #fffaf3; }

/* Грузовик в пунктах про доставку */
.truck-art { display: block; width: 3.2rem; height: auto; flex: none; }
.trust li.trust-truck { padding-left: 3.9rem; }
.trust li.trust-truck:before { display: none; }
.trust-truck a { color: inherit; text-decoration: none; }
.trust-truck a:hover { color: var(--moss-deep); }
.trust-truck .truck-art { position: absolute; left: 0; top: -.15rem; animation: truck-in .9s ease-out both; }
.fact-truck { grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; }
.fact-truck .truck-art { grid-row: span 2; width: 2.9rem; }
@keyframes truck-in { from { transform: translateX(-14px); opacity: 0; } }

/* Галерея товара и просмотр фото */
.gallery-main { position: relative; display: block; cursor: zoom-in; }
.zoom-hint { position: absolute; right: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: #2a2118b3; color: #fff; font-size: .85rem; font-weight: 700; }
.media-frame .zoom-hint svg { width: 1rem; height: 1rem; aspect-ratio: auto; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; }
.gallery-thumb { width: 5.5rem; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--cream-deep); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb[aria-current="true"] { border-color: var(--moss); }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 3.5rem 4.5rem; background: #140e09ed; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px #0008; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 999px; background: #fffaf31f; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 .2rem; }
.lightbox button:hover { background: #fffaf33d; }
.lightbox-close { top: .8rem; right: .8rem; font-size: 1.7rem; }
.lightbox-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .8rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #fffc; font-weight: 700; margin: 0; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 720px) {
  .carousel-arrow { width: 38px; height: 38px; font-size: 1.6rem; }
  .lightbox { padding: 3.6rem .5rem 4.5rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: .6rem; transform: none; }
  .gallery-thumb { width: 4.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .trust-truck .truck-art { animation: none; }
}

/* Динамическое увеличение фото */
.lightbox img { cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lightbox img.is-zoomed { cursor: grab; }
.lightbox img.is-zoomed:active { cursor: grabbing; }
.gallery-main .photo-fit-img { transition: transform .2s ease-out; }
.gallery-main.is-hover-zoom .photo-fit-img { transform: scale(2); }
.gallery-main.is-hover-zoom .zoom-hint { opacity: 0; }
.zoom-hint { transition: opacity .2s; }

/* Стикеры у пунктов на главной появляются по очереди */
.trust li:nth-child(2) .truck-art { animation-delay: .12s; }
.trust li:nth-child(3) .truck-art { animation-delay: .24s; }
.trust li:nth-child(4) .truck-art { animation-delay: .36s; }

/* Телефон в шапке */
.header-phone { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; padding: .3rem .9rem .3rem .35rem; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); transition: border-color .15s; }
.header-phone:hover { border-color: var(--moss); }
.header-phone-text { display: grid; line-height: 1.15; }
.header-phone-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.header-phone-text small { color: var(--moss-deep); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.phone-badge { position: relative; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 999px; background: var(--moss); color: #fff; }
.phone-badge svg { width: 1.15rem; height: 1.15rem; }
.phone-badge:after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--moss); animation: phone-ring 2.4s ease-out infinite; }
@keyframes phone-ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.sticky-cta a.sticky-call { display: flex; align-items: center; justify-content: center; gap: .5rem; text-align: left; padding: .4rem .6rem; }
.sticky-call .phone-badge { width: 2rem; height: 2rem; background: #fff3; }
.sticky-call .phone-badge:after { border-color: #fff; }
.sticky-call span:last-child { display: grid; line-height: 1.1; }
.sticky-call small { font-size: .78rem; font-weight: 700; opacity: .9; white-space: nowrap; }
@media (max-width: 980px) {
  .header-phone-text small { display: none; }
}
@media (max-width: 720px) {
  .header-phone { padding: .2rem; border: 0; background: transparent; }
  .header-phone-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-badge:after { animation: none; display: none; }
  .gallery-main .photo-fit-img { transition: none; }
}

/* Старые цены и скидки */
.old-price { color: var(--muted); font-weight: 600; font-size: .78em; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #b8432f; margin-right: .2rem; }
.discount { display: inline-block; vertical-align: middle; margin-left: .25rem; padding: .1rem .5rem; border-radius: 999px; background: #b8432f; color: #fff; font-size: .62em; font-weight: 800; line-height: 1.5; }
.card { position: relative; }
.card-sale { position: absolute; top: .7rem; left: .7rem; z-index: 2; padding: .3rem .65rem; border-radius: 999px; background: #b8432f; color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 16px #b8432f40; }
.hero-sale { top: 3rem; left: 1rem; }
.saving { margin: -.2rem 0 .4rem; color: #b8432f; font-weight: 800; }
.price-cell { white-space: nowrap; }
.price-cell .old-price { display: block; margin: 0; }
.hero-tag strong .old-price { font-size: .7em; }

/* Украшение шапки по времени года */
.header > .wrap { position: relative; z-index: 1; }
.season { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.season-sun { position: absolute; top: -48px; right: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, #ffd65e 0 34%, #ffd65e66 35% 46%, transparent 47%); opacity: .9; }
.season-sun:before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: repeating-conic-gradient(#ffc94a 0 5deg, transparent 5deg 22.5deg); -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, #000 58%, transparent 66%); mask: radial-gradient(circle, transparent 46%, #000 47%, #000 58%, transparent 66%); animation: sun-spin 60s linear infinite; }
.season-winter .season-sun { opacity: .55; filter: saturate(.6); }
.season-bit { position: absolute; top: -24px; left: var(--x); width: var(--size); height: var(--size); background: center / contain no-repeat; opacity: .85; animation: season-fall var(--dur) linear var(--delay) infinite, season-sway calc(var(--dur) / 3) ease-in-out var(--delay) infinite alternate; }
@keyframes season-fall { from { top: -24px; } to { top: calc(100% + 8px); } }
@keyframes season-sway { from { transform: translateX(calc(var(--sway) * -1)) rotate(calc(var(--spin) * -1)); } to { transform: translateX(var(--sway)) rotate(var(--spin)); } }
@keyframes sun-spin { to { transform: rotate(360deg); } }
.season-autumn .bit-1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6 6 4 12 6 18c2 3 6 4 6 4s4-1 6-4c2-6 0-12-6-16z' fill='%23d9822b'/%3E%3Cpath d='M12 5v17' stroke='%238d4b27' stroke-width='1.2'/%3E%3C/svg%3E"); }
.season-autumn .bit-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2 5 4-2-1 5 5 1-4 4 2 3-5-1-1 5h-4l-1-5-5 1 2-3-4-4 5-1-1-5 4 2z' fill='%23c2412d'/%3E%3Cpath d='M12 9v14' stroke='%237a2a1d' stroke-width='1.2'/%3E%3C/svg%3E"); }
.season-autumn .bit-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6 6 4 12 6 18c2 3 6 4 6 4s4-1 6-4c2-6 0-12-6-16z' fill='%23e3b23c'/%3E%3Cpath d='M12 5v17' stroke='%23a07a1c' stroke-width='1.2'/%3E%3C/svg%3E"); }
.season-winter .season-bit { filter: drop-shadow(0 0 1.5px #5f7f99); opacity: .95; }
.season-winter .bit-1, .season-winter .bit-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9 3.5l3 2.5 3-2.5M9 20.5l3-2.5 3 2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.season-winter .bit-2 { background-image: radial-gradient(circle, #fff 0 45%, transparent 50%); }
.season-spring .bit-1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c4 4 5 9 0 18-5-9-4-14 0-18z' fill='%23f2a7bd'/%3E%3C/svg%3E"); }
.season-spring .bit-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fbd3df'%3E%3Ccircle cx='12' cy='6' r='4'/%3E%3Ccircle cx='17.7' cy='10.1' r='4'/%3E%3Ccircle cx='15.5' cy='16.9' r='4'/%3E%3Ccircle cx='8.5' cy='16.9' r='4'/%3E%3Ccircle cx='6.3' cy='10.1' r='4'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23f2c94c'/%3E%3C/svg%3E"); }
.season-spring .bit-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C4 10 10 4 20 4c0 10-6 16-16 16z' fill='%237cb342'/%3E%3Cpath d='M5 19L17 7' stroke='%234e7d23' stroke-width='1.2'/%3E%3C/svg%3E"); }
.season-summer .season-bit { filter: drop-shadow(0 0 1px #8a7a5c); }
.season-summer .bit-1, .season-summer .bit-2, .season-summer .bit-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='white' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M12 12V3M12 12l7-5M12 12l7 5M12 12V21M12 12l-7 5M12 12L5 7'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%23c9b98f'/%3E%3C/svg%3E"); }
@media (max-width: 720px) {
  .season-sun { width: 96px; height: 96px; top: -40px; right: -34px; }
}
@media (prefers-reduced-motion: reduce) {
  .season-sun:before { animation: none; }
}
