:root {
  --bg: #faf9f5;
  --fg: #3d2b2e;
  --muted: #5c5355;
  --accent: #a68966;
  --accent-hover: #8f7358;
  --border: #e6e6e6;
  --radius: 15px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: #fff;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
  min-width: 0;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand--with-mark {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark-wrap {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.brand__canvas {
  display: block;
  width: 56px;
  height: 56px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand__mark-fallback {
  display: none;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand__titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .brand__canvas {
    display: none !important;
  }

  .brand__mark-fallback {
    display: block !important;
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

@media (max-width: 1180px) {
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: 100%;
    padding-bottom: 0.25rem;
    gap: 0.45rem 1rem;
  }
}

.nav a {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}
.nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--ghost {
  background: #fff;
  color: var(--accent) !important;
}

.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

.hero__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

section.section {
  padding: 2.5rem 0;
}

section.section--muted {
  background: var(--bg);
}

.section__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 1rem;
  text-align: center;
}

.section__subtitle {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card-img {
  border-radius: var(--radius);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: auto;
  display: block;
}

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

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

.tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.products-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

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

.product-card__img {
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__body {
  padding: 1rem 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--fg);
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  align-items: center;
}

.product-card__actions .btn {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-cart {
  position: relative;
  z-index: 100;
}

.nav-cart__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}
.nav-cart__toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-cart__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(45, 38, 40, 0.35);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.cart-backdrop[hidden] {
  display: none !important;
}

.cart-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  width: min(400px, calc(100vw - 1.5rem));
  max-height: min(75vh, 480px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 100;
}

.cart-panel[hidden] {
  display: none !important;
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-panel__heading {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
}

.cart-panel__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1;
}
.cart-panel__close:hover {
  color: var(--fg);
  background: var(--bg);
}

.cart-panel__body {
  overflow: auto;
  padding: 0.75rem 1rem;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.cart-panel__empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.cart-panel__empty a {
  font-weight: 600;
}

.cart-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-panel__item {
  margin: 0;
}

.cart-line {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.cart-panel__item:last-child .cart-line {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-line__title {
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
}

.cart-line__remove {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 0.15rem;
}
.cart-line__remove:hover {
  color: #c00;
}

.cart-line__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.cart-line__unit {
  color: var(--muted);
  font-size: 0.82rem;
  flex: 1 1 6rem;
  min-width: 0;
}

.cart-line__sum {
  font-weight: 700;
  color: var(--fg);
  margin-left: auto;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.cart-qty__btn {
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.cart-qty__btn:hover {
  background: #ebe8e3;
}

.cart-qty__input {
  width: 2.5rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.2rem 0;
  -moz-appearance: textfield;
}
.cart-qty__input::-webkit-outer-spin-button,
.cart-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-panel__footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-panel__total {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.cart-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart-panel__actions .btn {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-panel__to-catalog {
  flex: 1 1 140px;
}

@media (max-width: 720px) {
  .cart-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: min(88vh, 560px);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -10px 48px rgba(0, 0, 0, 0.18);
  }

  .cart-panel__footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

body.cart-sheet-open {
  overflow: hidden;
}

.cart-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 120;
  padding: 0.65rem 1.25rem;
  background: var(--fg);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: min(90vw, 360px);
  text-align: center;
}

.cart-toast.cart-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.checkout-modal[hidden] {
  display: none !important;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 38, 40, 0.45);
  cursor: pointer;
}

.checkout-modal__box {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.checkout-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
}
.checkout-modal__close:hover {
  color: var(--fg);
}

.checkout-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkout-summary {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 10px;
  overflow: auto;
}

.checkout-summary__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.checkout-summary__table th,
.checkout-summary__table td {
  padding: 0.4rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.checkout-summary__total {
  margin: 0.75rem 0 0;
  text-align: right;
}

.checkout-form .req {
  color: #b33;
}

.checkout-form__status {
  margin-top: 0.5rem;
}

body.checkout-modal-open {
  overflow: hidden;
}

.cta-strip {
  background: var(--fg);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.cta-strip a {
  color: #fff;
  text-decoration: underline;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.site-footer strong {
  color: var(--fg);
}

.site-footer__quick {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.form {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.note {
  font-size: 0.88rem;
  color: var(--muted);
}

.err-404 {
  padding: 4rem 0;
  text-align: center;
}

.err-404__hint {
  color: var(--muted);
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.err-404__links {
  margin: 0.75rem 0 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.contacts-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contacts-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: #fff;
  text-align: center;
}

.contacts-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--fg);
}

.contacts-card__addr {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contacts-card__phone {
  margin: 0.35rem 0;
}

.site-footer__loc + .site-footer__loc {
  margin-top: 1rem;
}

.transfer-list--catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.transfer-list__row {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.transfer-list__row:last-child {
  border-bottom: none;
}

.transfer-list__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}

.transfer-list__link:hover {
  color: var(--accent);
}

.transfer-list__title {
  flex: 1 1 220px;
  min-width: 0;
  line-height: 1.45;
}

.transfer-list__price {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.service-card__price {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
}

.service-card__price--muted {
  color: var(--muted);
  font-weight: 600;
}

.service-card__desc {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-card__actions .btn {
  flex: 1 1 auto;
  min-width: 0;
}

.hero--compact {
  padding: 2rem 0 1.25rem;
}

.hero--compact .lead {
  margin-bottom: 0;
}

.video-reviews-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .video-reviews-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }
}

.video-review-card {
  margin: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.video-review-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--fg);
}

.video-review-card__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
}

.video-review-card__video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.video-review-card__direct {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.video-reviews-note {
  margin-top: 2.5rem;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
