:root {
  --bg: #faf8f3;
  --paper: #ffffff;
  --ink: #24312d;
  --muted: #66736d;
  --line: #ded8cd;
  --sage: #426653;
  --sage-dark: #284638;
  --rose: #a94d64;
  --gold: #b48b45;
  --shadow: 0 18px 50px rgba(36, 49, 45, 0.14);
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", Roboto, Arial, system-ui, sans-serif;
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(36, 49, 45, 0.12);
  background: rgba(250, 248, 243, 0.93);
  backdrop-filter: blur(16px);
}

.brand img {
  width: min(220px, 48vw);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a,
.header-phone,
.text-link {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.site-nav a:hover,
.header-phone:hover,
.text-link:hover {
  color: var(--rose);
}

.header-phone {
  font-weight: 700;
  color: var(--sage-dark);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.hero {
  min-height: clamp(560px, 78vh, 780px);
  display: grid;
  align-items: end;
  padding: clamp(36px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(26, 34, 31, 0.74), rgba(26, 34, 31, 0.34), rgba(26, 34, 31, 0.08)),
    var(--hero-image) center / cover;
}

.hero__inner {
  width: min(760px, 100%);
  color: #fff;
  padding-bottom: clamp(24px, 7vh, 80px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f7c9d2;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 850;
}

h2 {
  font-size: clamp(30px, 4.4vw, 54px);
}

h3 {
  font-size: 21px;
}

.hero__copy {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

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

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

.button--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.product-info .button--ghost,
.page-heading .button--primary {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: transparent;
}

.section,
.contacts,
.page-heading,
.product-page,
.catalog-layout,
.process-band {
  padding: clamp(44px, 7vw, 92px) clamp(16px, 4vw, 56px);
}

.section__header {
  max-width: 760px;
  margin-bottom: 30px;
}

.section__header--split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.section__header p,
.page-heading p,
.contacts p,
.product-info__summary {
  color: var(--muted);
  line-height: 1.7;
}

.section--intro {
  padding-bottom: 36px;
}

.section--tinted {
  background: #eef3ed;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.value-grid div {
  min-height: 170px;
  padding: 26px;
  background: var(--paper);
}

.value-grid strong,
.value-grid span {
  display: block;
}

.value-grid strong {
  margin-bottom: 12px;
  font-size: 20px;
}

.value-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.category-grid,
.product-grid {
  display: grid;
  gap: 18px;
}

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

.category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sage-dark);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 220ms ease;
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 850;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid rgba(36, 49, 45, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(36, 49, 45, 0.08);
}

.product-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #edf0ea;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.product-card__body {
  padding: 18px;
}

.product-card__body p {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.product-card__body h3 {
  min-height: 48px;
}

.product-card__body span {
  display: block;
  margin-top: 14px;
  color: var(--sage-dark);
  font-size: 20px;
  font-weight: 850;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: center;
  background: var(--sage-dark);
  color: #fff;
}

.process-band .eyebrow {
  color: #d8b76f;
}

.process-steps {
  display: grid;
  gap: 12px;
}

.process-steps span {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 750;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: start;
  background: var(--paper);
}

.contacts__links {
  display: grid;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

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

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.7fr) minmax(220px, 0.8fr);
  gap: 28px;
  padding: 44px clamp(16px, 4vw, 56px);
  background: #1f2d28;
  color: #e9eee9;
}

.site-footer img {
  width: 210px;
  margin-bottom: 16px;
  filter: brightness(1.4);
}

.site-footer p,
.site-footer span {
  color: #b8c2bd;
}

.site-footer nav,
.site-footer div:last-child {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-heading {
  min-height: 320px;
  display: grid;
  align-content: center;
  background: #f2eee6;
}

.page-heading h1 {
  max-width: 980px;
}

.page-heading p {
  max-width: 760px;
  font-size: 18px;
}

.page-heading--with-image {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 38px;
  align-items: center;
}

.page-heading--with-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.catalog-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  align-self: start;
}

.catalog-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
}

.catalog-nav a:hover {
  background: #edf2ec;
  color: var(--sage-dark);
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery__thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.product-info {
  padding-top: 12px;
}

.price {
  margin: 24px 0 0;
  color: var(--sage-dark);
  font-size: 34px;
  font-weight: 900;
}

.details-list {
  display: grid;
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.details-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px;
  background: var(--paper);
}

.details-list dt {
  color: var(--muted);
}

.details-list dd {
  margin: 0;
  font-weight: 750;
}

.rich-text {
  max-width: 900px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.78;
}

.rich-text p,
.rich-text ul,
.rich-text ol {
  margin-top: 0;
}

.rich-text a {
  color: var(--rose);
  font-weight: 750;
  text-decoration: underline;
}

.rich-text--legal {
  max-width: 1060px;
  font-size: 16px;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-phone {
    display: none;
  }

  .site-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .site-nav.is-open a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .value-grid,
  .product-grid,
  .category-grid,
  .process-band,
  .contacts,
  .site-footer,
  .page-heading--with-image,
  .catalog-layout,
  .product-page {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: 620px;
    padding: 28px 16px;
  }

  .section__header--split {
    display: block;
  }

  .category-grid,
  .product-grid {
    gap: 14px;
  }

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

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

  .details-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Unified storefront styling for inner pages. The home page uses prototype.css;
   these overrides bring catalog, product and info pages into the same language. */
:root {
  --bg: #efe6d9;
  --paper: #fffaf1;
  --paper-soft: #f7efe4;
  --ink: #2f261f;
  --walnut: #5b4636;
  --walnut-deep: #31241c;
  --clay: #8d6850;
  --reed: #756d60;
  --water: #697876;
  --line: #ded0bd;
  --line-strong: rgba(72, 52, 39, 0.22);
  --shadow-soft: 0 18px 48px rgba(47, 38, 31, 0.12);
  --shadow-lift: 0 30px 72px rgba(47, 38, 31, 0.18);
  --shadow-photo: 0 24px 58px rgba(47, 38, 31, 0.2);
}

body {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.72), rgba(239, 230, 217, 0.96)),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Arial, system-ui, sans-serif;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 5.2vw, 66px);
}

h2 {
  font-size: clamp(31px, 4.4vw, 54px);
}

h3 {
  font-size: clamp(22px, 2vw, 30px);
}

.site-header {
  position: relative;
  top: auto;
  min-height: 0;
  margin: 18px clamp(14px, 4vw, 54px) 0;
  padding: 12px clamp(14px, 2.8vw, 24px);
  border: 1px solid rgba(91, 70, 54, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 18px 44px rgba(30, 22, 17, 0.13);
  backdrop-filter: blur(14px);
}

.brand {
  width: min(178px, 44vw);
  border-radius: 5px;
}

.brand img {
  width: 100%;
  border-radius: 5px;
}

.site-nav {
  gap: 30px;
  color: var(--walnut-deep);
  font-size: 17px;
  font-weight: 720;
}

.site-nav a:hover,
.header-phone:hover,
.text-link:hover {
  color: var(--clay);
}

.header-phone {
  color: var(--walnut-deep);
  font-weight: 760;
}

.nav-toggle {
  border-color: rgba(91, 70, 54, 0.22);
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.42);
  color: var(--walnut-deep);
  cursor: pointer;
}

.nav-toggle span {
  background: currentColor;
}

.section,
.contacts,
.product-page,
.catalog-layout {
  padding: clamp(46px, 6.4vw, 86px) clamp(18px, 5vw, 72px);
}

.page-heading {
  min-height: auto;
  margin: clamp(30px, 4vw, 54px) clamp(18px, 5vw, 72px) 0;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 86, 66, 0.1), rgba(255, 250, 241, 0.34)),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.page-heading h1,
.page-heading p {
  max-width: 850px;
}

.page-heading p {
  color: var(--reed);
  font-size: clamp(17px, 1.8vw, 21px);
}

.page-heading--with-image {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: clamp(24px, 4vw, 44px);
}

.page-heading--with-image img {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  filter: saturate(0.7) sepia(0.08) contrast(0.94);
  box-shadow: var(--shadow-photo);
}

.eyebrow {
  color: var(--clay);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.button {
  min-height: 48px;
  border-radius: 5px;
  color: var(--walnut);
  font-weight: 760;
  box-shadow: 0 12px 26px rgba(47, 38, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 38, 31, 0.13);
}

.button--primary {
  border-color: var(--walnut);
  background: var(--walnut);
  color: #fffaf1;
}

.button--primary:hover {
  background: var(--walnut-deep);
}

.button--ghost,
.product-info .button--ghost,
.page-heading .button--primary {
  border-color: var(--walnut);
  background: transparent;
  color: var(--walnut);
}

.product-actions {
  gap: 12px;
  margin-top: 28px;
}

.catalog-layout {
  max-width: 1280px;
  grid-template-columns: minmax(210px, 250px) 1fr;
  margin: 0 auto;
  gap: clamp(24px, 4vw, 40px);
}

.catalog-nav {
  top: 24px;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow-soft);
}

.catalog-nav a {
  border-radius: 5px;
  color: var(--reed);
  font-size: 14px;
}

.catalog-nav a:hover {
  background: var(--paper-soft);
  color: var(--walnut-deep);
}

.product-page {
  max-width: 1280px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.84fr);
  margin: 0 auto;
  gap: clamp(30px, 5vw, 68px);
}

.gallery__main {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  filter: saturate(0.72) sepia(0.08) contrast(0.96);
  box-shadow: var(--shadow-photo);
}

.gallery__thumbs {
  gap: 10px;
  margin-top: 12px;
}

.gallery__thumbs img {
  border: 1px solid var(--line);
  border-radius: 6px;
  filter: saturate(0.72) sepia(0.08) contrast(0.96);
}

.product-info {
  padding-top: 8px;
}

.product-info h1 {
  max-width: 680px;
  font-size: clamp(28px, 2.5vw, 34px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.product-info__summary {
  max-width: 620px;
  color: var(--reed);
  font-size: 17px;
  line-height: 1.72;
}

.price {
  color: var(--walnut-deep);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 760;
}

.details-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 14px 34px rgba(47, 38, 31, 0.08);
}

.details-list div {
  background: rgba(255, 250, 241, 0.74);
}

.details-list dt {
  color: var(--reed);
}

.details-list dd {
  color: var(--ink);
  font-weight: 700;
}

.section {
  border-top: 1px solid rgba(72, 52, 39, 0.11);
}

.section--tinted {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.74), rgba(247, 239, 228, 0.96)),
    var(--paper-soft);
}

.section__header p,
.contacts p {
  color: var(--reed);
}

.rich-text {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.78;
}

.rich-text a {
  color: var(--clay);
}

.rich-text img {
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.product-grid {
  gap: clamp(18px, 3vw, 30px);
}

.product-card {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: var(--shadow-soft);
}

.product-card__image {
  background: var(--paper-soft);
}

.product-card__image img {
  filter: saturate(0.7) sepia(0.08) contrast(0.94);
}

.product-card__body {
  padding: 18px;
}

.product-card__body p {
  color: var(--reed);
  font-size: 13px;
}

.product-card__body h3 {
  min-height: 0;
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.08;
}

.product-card__body span {
  color: var(--walnut);
  font-size: 21px;
  font-weight: 760;
}

.category-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}

.category-card img {
  filter: saturate(0.62) sepia(0.13) contrast(0.92) brightness(0.94);
}

.contacts {
  background:
    linear-gradient(135deg, rgba(105, 120, 118, 0.2), transparent 38%),
    var(--walnut-deep);
  color: #fffaf1;
}

.contacts p,
.contacts__links span {
  color: rgba(255, 250, 241, 0.7);
}

.site-footer {
  grid-template-columns: minmax(260px, 1.18fr) minmax(190px, 0.75fr) minmax(220px, 0.8fr);
  padding: clamp(52px, 7vw, 86px) clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 250, 241, 0.12);
  background: #211914;
  color: rgba(255, 250, 241, 0.82);
}

.site-footer img {
  width: 210px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.88);
  filter: none;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: rgba(255, 250, 241, 0.7);
  line-height: 1.62;
}

.site-footer nav::before,
.site-footer div:last-child::before {
  margin-bottom: 8px;
  color: #fffaf1;
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.site-footer nav::before {
  content: "Информация";
}

.site-footer div:last-child::before {
  content: "Связь";
}

.empty-state {
  border-color: var(--line);
  background: rgba(255, 250, 241, 0.88);
  color: var(--reed);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 16px;
  }

  .site-nav.is-open {
    gap: 0;
  }

  .product-page,
  .catalog-layout,
  .page-heading--with-image {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    width: min(342px, calc(100% - 48px));
    margin: 18px 24px 0;
    padding: 12px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    width: min(172px, 64vw);
  }

  .site-nav.is-open {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 5;
    min-width: 196px;
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(91, 70, 54, 0.18);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.96);
    box-shadow: 0 18px 42px rgba(30, 22, 17, 0.18);
    color: var(--walnut-deep);
    font-size: 16px;
  }

  .site-nav.is-open a {
    padding: 10px 12px;
    border-top: 0;
    border-radius: 5px;
  }

  .header-phone {
    display: none;
  }

  .section,
  .contacts,
  .product-page,
  .catalog-layout {
    padding: 38px 18px;
  }

  .page-heading {
    margin: 24px 18px 0;
    padding: 28px 22px;
  }

  .product-info h1 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .product-actions,
  .product-actions .button {
    width: 100%;
  }

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