:root {
  --bg: #f2ebe3;
  --surface: #ffffff;
  --ink: #2a2118;
  --ink-muted: #6a5e52;
  --line: #e6ddd2;
  --wood: #5c4030;
  --wood-deep: #3a2a1f;
  --leaf: #4f6b3c;
  --shadow: 0 8px 24px rgba(58, 42, 31, 0.08);
  --radius: 14px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--wood-deep);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.main-nav {
  display: flex;
  gap: 8px 18px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--wood);
  border-bottom-color: var(--wood);
}

.header-cta {
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
  background: var(--wood-deep);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s ease;
}

.header-cta:hover {
  background: var(--wood);
  color: #fff;
}

#about,
#reviews,
#customer-photos,
#delivery,
#contacts {
  scroll-margin-top: 88px;
}

.sidebar-section + .sidebar-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ozon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.ozon-link:hover {
  border-color: #cfc4b6;
  background: #faf7f3;
}

.ozon-link .ozon-logo {
  height: 20px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.layout {
  position: relative;
  isolation: isolate;
  min-height: 60vh;
  padding-top: 22px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  border-radius: 16px;
  background-color: #ebe4d8;
  background-image: url("/static/images/background-1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.layout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 247, 0.78) 0%,
    rgba(255, 252, 247, 0.58) 40%,
    rgba(255, 252, 247, 0.42) 100%
  );
  pointer-events: none;
}

.sidebar {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 94px;
  box-shadow: var(--shadow);
}

.sidebar h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--wood-deep);
}

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

.category-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  transition: 0.2s ease;
}

.category-list a:hover {
  border-color: #cfc4b6;
  background: #faf7f3;
}

.category-list a.active {
  color: #fff;
  background: var(--wood-deep);
  border-color: var(--wood-deep);
}

.category-list a.sidebar-extra {
  font-weight: 700;
  border-style: dashed;
}

.content {
  min-width: 0;
}

.section-head {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.78);
  backdrop-filter: blur(4px);
  max-width: max-content;
}

.section-head h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wood-deep);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.subcategory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.subcategory-tabs a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #d9cfc3;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.subcategory-tabs a.active {
  background: var(--wood-deep);
  color: #fff;
  border-color: var(--wood-deep);
}

.subcategory-block {
  margin-bottom: 20px;
}

.subcategory-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--wood-deep);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.75);
  display: inline-block;
}

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

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

.card--gallery {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card--gallery:hover {
  border-color: #cec2b4;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card--gallery:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 3px;
}

.card-thumb {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  background: #efe8de;
}

.card-photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(42, 33, 24, 0.62);
  line-height: 1.2;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

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

.card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wood-deep);
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  margin: auto 0 0;
  padding-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--wood);
  letter-spacing: -0.02em;
}

.card-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
  color: #fff;
  background: var(--wood-deep);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.card-order:hover {
  background: var(--wood);
  color: #fff;
}

.empty-state {
  border: 1px dashed #c9bbaa;
  border-radius: var(--radius);
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.92);
  max-width: 480px;
}

.empty-state p {
  margin: 0 0 10px;
  color: var(--ink-muted);
}

.empty-state-link {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  color: #fff;
  background: var(--wood-deep);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.empty-state-link:hover {
  background: var(--wood);
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .float-msg {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 16px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.84);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}

.lightbox-counter[hidden] {
  display: none;
}

.lightbox-caption {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  max-width: min(90vw, 640px);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  white-space: pre-line;
}

.lightbox-caption[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

.about-section {
  background: #f7f1e8;
  border-top: 1px solid var(--line);
  padding: 40px 0 44px;
}

.about-inner h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  color: var(--wood-deep);
  letter-spacing: -0.02em;
}

.about-inner p {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
}

.about-inner strong {
  color: var(--wood-deep);
}

.trust-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-card {
  background: #faf7f3;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: var(--wood);
  background: #fff;
  border: 1px solid var(--line);
}

.trust-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--wood-deep);
}

.trust-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.customer-photos-section {
  background: #f4eee6;
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.customer-photos-inner h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--wood-deep);
  letter-spacing: -0.02em;
}

.customer-photos-lead {
  margin: 0 0 22px;
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 640px;
}

.customer-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.customer-photo-card {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.customer-photo-card:hover {
  border-color: #cec2b4;
  transform: translateY(-2px);
}

.customer-photo-card:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 3px;
}

.customer-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.customer-photo-card:nth-child(3n) img {
  aspect-ratio: 4 / 3;
}

.customer-photo-caption {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
  white-space: pre-line;
}

.customer-photos-cta {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.customer-photos-cta a,
.customer-photos-empty a {
  color: var(--wood);
  font-weight: 700;
  text-decoration: none;
}

.customer-photos-cta a:hover,
.customer-photos-empty a:hover {
  text-decoration: underline;
}

.customer-photos-empty {
  border: 1px dashed #c9bbaa;
  border-radius: var(--radius);
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.customer-photos-empty p {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
}

.customer-photos-empty p:last-child {
  margin-bottom: 0;
}

.order-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.order-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wood-deep);
}

.order-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wood-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.float-msg {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  background: var(--wood-deep);
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(58, 42, 31, 0.28);
}

.float-msg img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.float-msg:hover {
  background: var(--wood);
  color: #fff;
}

.delivery-section {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 0;
  background-color: #f5f7fb;
  background-image: url("/static/images/delivery.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}

.delivery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.86) 42%,
    rgba(255, 255, 255, 0.55) 100%
  );
  pointer-events: none;
}

.delivery-inner {
  position: relative;
}

.reviews-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 0;
}

.reviews-inner h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--wood-deep);
  letter-spacing: -0.02em;
}

.reviews-lead {
  margin: 0 0 22px;
  color: var(--ink-muted);
  font-size: 14px;
}

.reviews-carousel {
  position: relative;
}

.reviews-viewport {
  overflow: hidden;
  border-radius: 16px;
  outline: none;
}

.reviews-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.review-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  background: #faf7f3;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  min-height: 140px;
}

.review-text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
}

.review-author {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--wood);
}

.reviews-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--wood-deep);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  box-shadow: var(--shadow);
}

.reviews-nav:hover:not(:disabled) {
  border-color: #cfc4b6;
  background: #faf7f3;
}

.reviews-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.reviews-prev {
  left: -12px;
}

.reviews-next {
  right: -12px;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: #d0c6ba;
  cursor: pointer;
}

.reviews-dot.active {
  background: var(--wood-deep);
}

@media (min-width: 720px) {
  .review-card {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (min-width: 1024px) {
  .review-card {
    flex: 0 0 calc(33.333% - 11px);
  }
}

@media (max-width: 900px) {
  .reviews-prev {
    left: 4px;
  }

  .reviews-next {
    right: 4px;
  }
}

.delivery-inner h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  color: var(--wood-deep);
  letter-spacing: -0.02em;
}

.delivery-inner > p {
  margin: 0 0 14px;
  color: #454545;
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}

.delivery-list {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}

.delivery-list li {
  margin-bottom: 8px;
}

.delivery-note {
  margin: 0;
  font-size: 14px;
  color: #707070;
  max-width: 720px;
}

.contacts-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 36px 0 40px;
}

.contacts-inner h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--wood-deep);
  letter-spacing: -0.02em;
}

.contacts-inner p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contacts-email a {
  color: var(--leaf);
  text-decoration: none;
  font-weight: 700;
}

.contacts-email a:hover {
  text-decoration: underline;
}

.contacts-hint {
  font-size: 13px !important;
  color: #8a7f73 !important;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #faf7f3;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.messenger-link:hover {
  border-color: #cfc4b6;
  background: #fff;
}

.contacts-messengers img,
.messenger-icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.messenger-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.site-footer {
  background: var(--wood-deep);
  color: #d7cfc6;
  padding: 28px 0 32px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-inner {
  text-align: center;
}

.footer-line {
  margin: 0 0 8px;
}

.footer-line:last-child {
  margin-bottom: 0;
}

.footer-meta {
  color: #a39688;
  font-size: 12px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .topbar-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    order: 3;
    padding-bottom: 4px;
    justify-content: flex-start;
  }

  .section-head h1 {
    font-size: 24px;
  }

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

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

  .float-msg {
    display: inline-flex;
  }

  .site-footer {
    padding-bottom: 80px;
  }

  #about,
  #reviews,
  #customer-photos,
  #delivery,
  #contacts {
    scroll-margin-top: 108px;
  }
}
