:root {
  --paper: #f6f6f1;
  --surface: #ffffff;
  --stone: #e4e2da;
  --ink: #202421;
  --muted: #66706a;
  --line: #d9ded7;
  --forest: #315a4f;
  --forest-dark: #24463d;
  --wine: #7d4247;
  --copper: #aa744b;
  --shadow: 0 18px 50px rgba(32, 36, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.section-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  padding: 10px 28px;
  border-bottom: 1px solid rgba(217, 222, 215, 0.9);
  background: rgba(246, 246, 241, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 172px;
  height: 107px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.main-nav a,
.nav-action {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a:hover,
.nav-action:hover {
  border-color: var(--line);
  background: var(--surface);
}

.phone-link {
  color: var(--forest);
  font-weight: 750;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 118px);
  padding: 72px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.section-copy h2,
.complex-layout h2,
.cta-layout h2,
.product-summary h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.18;
}

.hero-gift {
  display: inline-flex;
  margin: 28px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--copper);
  background: rgba(255, 255, 255, 0.75);
  color: var(--forest-dark);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
}

.hero-actions,
.quiz-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border 0.2s ease;
}

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

.button.primary {
  background: var(--forest);
  color: #fff;
}

.button.primary:hover {
  background: var(--forest-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.small {
  min-height: 38px;
  padding: 10px 12px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.text-button {
  width: 100%;
  border-color: var(--line);
  background: transparent;
  color: var(--forest);
}

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

.hero-facts div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-facts strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-facts span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-delivery-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 250px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(32, 36, 33, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.section-heading.compact {
  max-width: 860px;
}

.section-heading h2,
.section-copy h2,
.complex-layout h2,
.cta-layout h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.section-heading p:not(.eyebrow),
.section-copy p,
.complex-layout p,
.cta-layout p,
.product-summary p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.quiz-section {
  padding: 76px 0;
}

.price-match {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: -20px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.price-match h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.price-match p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.quiz {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quiz-progress {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-weight: 800;
}

.quiz-panel,
.quiz-final {
  padding: 28px;
}

.quiz-panel h3,
.quiz-final h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.quiz-hint {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.quiz-option {
  min-height: 68px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  font-weight: 760;
}

.quiz-option.selected {
  border-color: var(--forest);
  background: #e7efeb;
  color: var(--forest-dark);
}

.quiz-actions {
  justify-content: space-between;
}

.quiz-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.catalog-section {
  padding: 76px 0;
  background: var(--surface);
}

.catalog-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.catalog-segment {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.catalog-segment.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.filter-block[hidden] {
  display: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.catalog-filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.filter-block {
  display: grid;
  gap: 10px;
}

.filter-block label,
.filter-title {
  color: var(--ink);
  font-weight: 850;
}

.filter-block input[type="search"],
.lead-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.filter-chips {
  display: grid;
  gap: 8px;
}

.filter-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  padding: 9px 10px;
}

.filter-chip.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 650;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}

.catalog-content {
  min-width: 0;
}

.catalog-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #efeee8;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(8px, 1.1vw, 16px);
  background: transparent;
  mix-blend-mode: multiply;
}

.product-media span {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(49, 90, 79, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.product-info {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 86px;
  padding: 12px 14px 8px;
}

.product-info a {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.product-info strong {
  color: var(--forest);
  font-size: 19px;
  line-height: 1.1;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.product-actions {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
  padding: 0 14px 12px;
}

.product-actions .button {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
  overflow: hidden;
  font-size: 12px;
}

.pagination {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.pagination button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.pagination button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.pagination-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 42px;
  color: var(--muted);
  font-weight: 850;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
}

.service-section {
  padding: 82px 0;
}

.muted-band {
  background: #ecefe9;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 48px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
}

.section-copy {
  display: grid;
  gap: 18px;
}

.section-copy h3,
.complex-layout h3 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.service-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-stats span {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest-dark);
  font-weight: 800;
}

.checked-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checked-list.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checked-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-weight: 650;
}

.checked-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  content: "✓";
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}

.service-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  padding: 0;
  border-radius: 11px;
  background: transparent;
}

.service-media.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-media.collage img {
  height: 430px;
  min-width: 0;
}

.info-lines {
  display: grid;
  gap: 12px;
}

.info-lines div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.info-lines strong,
.info-lines span {
  display: block;
}

.info-lines span {
  margin-top: 6px;
  color: var(--muted);
}

.service-flow {
  color: var(--forest-dark) !important;
  font-weight: 850;
}

.complex-section {
  padding: 76px 0;
  background: var(--forest-dark);
  color: #fff;
}

.complex-layout {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 48px;
  align-items: start;
}

.complex-layout .eyebrow {
  color: #e7c39d;
}

.complex-layout h2,
.complex-layout h3,
.complex-layout p,
.complex-layout li {
  color: #fff;
}

.complex-layout p {
  color: rgba(255, 255, 255, 0.78);
}

.complex-layout .checked-list li::before {
  background: var(--copper);
}

.complex-layout > div {
  display: grid;
  align-content: start;
}

.complex-layout > div:first-child {
  gap: 16px;
}

.complex-layout > div:last-child {
  gap: 22px;
}

.complex-layout h2,
.complex-layout h3,
.complex-layout p {
  margin: 0;
}

.complex-layout .checked-list {
  gap: 18px 34px;
}

.complex-layout .checked-list li {
  padding-left: 30px;
  line-height: 1.45;
}

.complex-layout .checked-list li::before {
  top: 4px;
}

.complex-layout .strong-note {
  max-width: 760px;
  line-height: 1.55;
  font-weight: 850;
}

.strong-note {
  margin-top: 22px !important;
  color: #fff !important;
  font-weight: 850;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.cta-section {
  padding: 76px 0;
  background: #fafaf7;
}

.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
}

.small-note {
  margin-top: 18px !important;
  color: var(--forest-dark) !important;
  font-weight: 760;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.lead-form input[type="file"] {
  padding: 10px;
}

.lead-form input.is-invalid {
  border-color: var(--wine);
}

.form-status {
  min-height: 21px;
  margin: 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 750;
}

.lead-turnstile {
  min-width: 0;
  max-width: 100%;
}

.turnstile-status {
  margin: 0;
  color: var(--wine);
  font-size: 14px;
  line-height: 1.5;
}

.form-status.error {
  color: var(--wine);
}

.form-status.success {
  color: var(--forest);
}

.thanks-page {
  min-height: 62vh;
  display: grid;
  align-items: center;
}

.thanks-layout {
  max-width: 680px;
  padding-top: 72px;
  padding-bottom: 84px;
}

.thanks-layout h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
}

.thanks-layout p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 36, 33, 0.58);
}

.modal-window {
  position: relative;
  width: min(460px, 100%);
  min-width: 0;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 26px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-window h2 {
  margin: 0;
  font-size: 32px;
}

.modal-window p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.product-page {
  padding: 46px 0 80px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--forest);
  font-weight: 850;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 42px;
  align-items: start;
}

.product-gallery,
.product-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-main-image {
  display: grid;
  place-items: center;
  min-height: 640px;
  background: #efeee8;
}

.product-main-image img {
  width: 100%;
  height: 640px;
  object-fit: contain;
  padding: 34px;
  background: transparent;
  mix-blend-mode: multiply;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.product-thumbs button {
  width: 90px;
  height: 90px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.product-thumbs button.active {
  border-color: var(--forest);
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.product-summary {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.product-summary h1 {
  font-size: clamp(36px, 4vw, 58px);
}

.product-page-type {
  color: var(--wine) !important;
  font-weight: 850;
}

.product-page-price {
  color: var(--forest) !important;
  font-size: 36px !important;
  font-weight: 900;
}

.product-order {
  width: fit-content;
}

.product-kit {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 8px 0 0;
  padding: 20px 0 0;
  border: 0;
}

.product-kit legend {
  width: 100%;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.product-summary .free-addition-hint {
  font-size: 14px;
}

.free-addition-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.free-addition-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 750;
  cursor: pointer;
}

.free-addition-option:has(input:checked) {
  border-color: var(--forest);
  background: #edf3ef;
  color: var(--forest-dark);
}

.free-addition-option:has(input:focus-visible) {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.free-addition-option input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--forest);
  cursor: pointer;
}

.lead-free-addition {
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: #edf3ef;
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 750;
}

.product-bottom-cta {
  padding-top: 66px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--forest-dark);
  color: #fff;
}

.footer-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 22px;
}

.footer-company,
.footer-contacts {
  display: grid;
  gap: 8px;
}

.footer-company strong {
  font-size: 18px;
  font-weight: 850;
}

.footer-company span,
.footer-contacts a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-contacts {
  margin: 0;
  font-style: normal;
  text-align: right;
}

.footer-contacts a,
.footer-credit a {
  transition: color 0.2s ease;
}

.footer-contacts a:hover,
.footer-credit a:hover {
  color: #fff;
}

.footer-credit {
  padding: 0 0 24px;
  font-size: 13px;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 6px;
  }

  .main-nav a,
  .nav-action {
    padding-inline: 9px;
    font-size: 13px;
  }

  .hero,
  .split-section,
  .split-section.reverse,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-image {
    min-height: 520px;
  }

  .catalog-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.catalog-segment {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.catalog-segment.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.filter-block[hidden] {
  display: none;
}

.catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .section-shell {
    width: min(100% - 28px, 720px);
  }

  .site-header {
    min-height: 100px;
    padding: 12px 14px;
  }

  .brand-logo {
    width: 124px;
    height: 77px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 100px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a,
  .nav-action {
    width: 100%;
    text-align: left;
  }

  .hero {
    gap: 28px;
    padding: 46px 0 42px;
  }

  .hero h1,
  .section-heading h2,
  .section-copy h2,
  .complex-layout h2,
  .cta-layout h2,
  .product-summary h1 {
    font-size: 36px;
  }

  .hero-facts,
  .quiz-options,
  .catalog-segments,
  .catalog-filters,
  .checked-list.two-columns,
  .complex-layout,
  .cta-layout,
  .price-match {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-image {
    min-height: 470px;
  }

  .catalog-topline,
  .inline-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-layout {
    display: grid;
    gap: 18px;
    padding-top: 28px;
  }

  .footer-contacts {
    text-align: left;
  }

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

  .service-media img,
  .service-media.collage img {
    height: 360px;
  }

  .product-main-image,
  .product-main-image img {
    min-height: 420px;
    height: 420px;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .quiz-actions,
  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-media span {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 6px;
    font-size: 10px;
  }

  .product-info {
    min-height: 82px;
    gap: 4px;
    padding: 10px 10px 7px;
  }

  .product-info a {
    min-height: 37px;
    font-size: 14px;
  }

  .product-info strong {
    font-size: 17px;
  }

  .product-actions {
    gap: 7px;
    padding: 0 11px 11px;
  }

  .product-actions .button {
    min-height: 38px;
    padding: 9px 8px;
    font-size: 13px;
  }

  .pagination {
    gap: 4px;
    margin-top: 18px;
  }

  .pagination button {
    min-width: 28px;
    height: 34px;
    border-radius: 5px;
    font-size: 13px;
  }

  .pagination-ellipsis {
    min-width: 18px;
    height: 34px;
    font-size: 13px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-image {
    min-height: 420px;
  }

  .hero-delivery-note {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .product-thumbs {
    overflow-x: auto;
  }

  .modal-window {
    padding: 22px;
  }
}
