:root {
  --ink: #1c1b19;
  --muted: #5f5b56;
  --paper: #f4f1ec;
  --white: #ffffff;
  --red: #d01040;
  --red-deep: #a50d32;
  --line: #e6e1d9;
  --yellow: #ffc341;
  --chat: #c52407;
  --shadow: 0 14px 40px rgba(28, 22, 16, 0.08);
  --radius: 18px;
  --font: "Sora", "Segoe UI", sans-serif;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--wrap), calc(100% - 28px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topline p {
  margin: 0;
}

.topline a[href^="tel"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-link {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0 12px;
}

.logo img {
  height: 58px;
  width: auto;
}

.search {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px 0 16px;
  min-width: 0;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 0;
  height: 44px;
  outline: none;
}

.search button {
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
}

.phone-link {
  color: var(--red);
}

.menu-btn {
  display: none;
}

.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 0 0 12px;
}

.nav-desktop > a,
.drop > a.nav-top,
.drop > button.nav-top {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}

.nav-desktop > a:hover,
.drop > a.nav-top:hover,
.drop > button.nav-top:hover,
.nav-desktop > a:focus-visible,
.drop > a.nav-top:focus-visible,
.drop > button.nav-top:focus-visible {
  background: #f6e7ea;
  color: var(--red-deep);
}

.partner-link {
  background: #fff6df !important;
}

.drop {
  position: relative;
}

.drop-panel {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 240px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 5;
}

.drop:hover .drop-panel,
.drop:focus-within .drop-panel,
.drop.is-open .drop-panel {
  display: grid;
}

.drop-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.drop-panel a:hover {
  background: var(--paper);
}

.drawer {
  display: none;
}

.hero {
  display: block;
  margin: 18px auto 8px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}

.hero img {
  width: 100%;
  height: auto;
}

.block {
  margin: 36px 0 56px;
}

.block h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.block h2 a:hover {
  color: var(--red);
}

.home-title {
  margin: 18px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.2;
}

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  min-width: 0;
}

.card[hidden] {
  display: none;
}

.photo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfaf8, #f1eee8);
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.photo .secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .secondary,
.card:focus-within .secondary {
  opacity: 1;
}

.photo img.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: auto;
  height: 22px;
  max-width: none;
  padding: 0;
  object-fit: fill;
  z-index: 2;
}

.card-title {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  min-height: 2.7em;
}

.card-title:hover {
  color: var(--red);
}

.price {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--red);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.pager-nav {
  display: flex;
  gap: 8px;
}

.pager-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  position: relative;
}

.pager-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.pager-btn[data-prev]::before {
  transform: translateX(2px) rotate(135deg);
}

.pager-btn[data-next]::before {
  transform: translateX(-2px) rotate(-45deg);
}

.pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pager-range {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.more,
.articles-all {
  margin-left: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.articles-all {
  display: table;
  margin-top: 14px;
}

.articles {
  display: grid;
  gap: 14px;
}

.article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.article img {
  width: 100%;
  aspect-ratio: 388 / 218;
  object-fit: cover;
}

.article-body {
  padding: 14px 16px 16px;
}

.article-title {
  display: block;
  font-weight: 650;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

.read-more svg {
  display: block;
}

.site-footer {
  margin-top: 18px;
  background: #171614;
  color: #ece8e2;
  padding: 28px 0 110px;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer p {
  margin: 0 0 8px;
}

.tagline {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.copy {
  color: #c9c3bb;
  font-size: 13px;
  line-height: 1.55;
}

.signature {
  font-size: 13px;
  color: #c9c3bb;
}

.signature a {
  color: white;
  font-weight: 600;
}

.dialog[hidden],
.drawer[hidden],
.ss-panel[hidden],
.cookie[hidden],
.prefs[hidden] {
  display: none;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(22, 18, 14, 0.46);
  display: grid;
  place-items: center;
  padding: 18px;
}

.dialog-card {
  width: min(440px, 100%);
  background: white;
  border-radius: 20px;
  padding: 18px 18px 22px;
  position: relative;
  box-shadow: var(--shadow);
}

.dialog-card .logo-mini {
  height: 64px;
  margin: 0 auto 8px;
}

.dialog-x,
.ss-close,
.prefs-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.dialog h4 {
  margin: 4px 0 12px;
  font-size: 18px;
}

.dialog input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  margin-top: 8px;
  background: white;
}

.forgot {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--red-deep);
  text-decoration: underline;
}

.submit-link,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  width: 100%;
}

.register-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.error-message:empty {
  display: none;
}

.error-message {
  color: var(--red);
  font-size: 13px;
  margin-top: 4px;
}

.cookie {
  position: fixed;
  z-index: 30;
  left: 12px;
  bottom: 12px;
  width: min(380px, calc(100% - 24px));
  background: white;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(20, 16, 12, 0.18);
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
}

.cookie-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cookie p,
.prefs p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #3d3a36;
}

.cookie a,
.prefs a {
  text-decoration: underline;
}

.cookie-actions,
.prefs-actions {
  display: grid;
  gap: 8px;
}

.btn-dark,
.btn-ghost,
.btn-text {
  min-height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-dark {
  background: #2b2b2b;
  color: white;
  border: 0;
}

.btn-ghost {
  background: white;
  border: 1px solid #cfcac2;
}

.btn-text {
  background: transparent;
  border: 0;
  text-decoration: underline;
}

.prefs {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(22, 18, 14, 0.46);
  display: grid;
  place-items: end center;
  padding: 12px;
}

.prefs-card {
  width: min(520px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: white;
  border-radius: 18px;
  padding: 18px 16px 16px;
  position: relative;
}

.cookie-cat {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.cookie-cat label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 650;
  font-weight: 600;
}

.cookie-cat p {
  margin: 6px 0 0;
}

.ss {
  position: fixed;
  z-index: 35;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ss-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #e23b18, var(--chat));
  border-radius: 999px;
  min-height: 52px;
  padding: 0 16px 0 18px;
  box-shadow: 0 10px 24px rgba(197, 36, 7, 0.35);
  font-weight: 600;
}

.ss-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b9b9b9;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.ss.is-online .ss-dot {
  background: #37d067;
}

.ss-bubble {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}

.ss-panel {
  width: min(360px, calc(100vw - 24px));
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(20, 16, 12, 0.22);
  border: 1px solid var(--line);
}

.ss-head {
  background: linear-gradient(135deg, #e23b18, var(--chat));
  color: white;
  padding: 16px 44px 14px 16px;
  position: relative;
}

.ss-head p {
  margin: 0;
  font-weight: 650;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.ss-status {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
}

.ss-close {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.ss-body {
  padding: 14px 14px 12px;
}

.ss-kicker {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 14px;
}

.ss-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.ss-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ss-body input,
.ss-body textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #faf9f7;
}

.ss-body textarea {
  min-height: 88px;
  resize: vertical;
}

.ss-body input:focus,
.ss-body textarea:focus,
.search input:focus {
  outline: 2px solid rgba(208, 16, 64, 0.35);
  outline-offset: 1px;
}

.field-error {
  display: block;
  color: var(--red);
  font-weight: 500;
  font-size: 12px;
  margin-top: 4px;
}

.ss-send {
  width: 100%;
  margin-top: 4px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--chat);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.ss-send:disabled {
  opacity: 0.6;
  cursor: progress;
}

.ss-gdpr-btn {
  margin-top: 10px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

.ss-gdpr {
  margin: 8px 0 0;
  font-size: 12px;
  color: #4d4944;
  max-height: 140px;
  overflow: auto;
}

.ss-thread {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.ss-msg {
  justify-self: end;
  max-width: 90%;
  background: #fff1ea;
  border-radius: 14px 14px 4px 14px;
  padding: 8px 10px;
  font-size: 14px;
}

.ss-brand {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: #9a948c;
}

.ss-form-error {
  color: var(--red);
  font-size: 13px;
  margin: 8px 0 0;
}

.redirect-error {
  padding: 48px 0 72px;
}

.redirect-error .title {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
}

.redirect-error .not-fount {
  margin: 8px 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.redirect-error a {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 720px) {
  .products.cols-3,
  .products.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .logo img {
    height: 72px;
  }
}

@media (min-width: 1040px) {
  .products.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .menu-btn {
    display: none;
  }
}

@media (max-width: 860px) {
  .menu-btn {
    display: grid;
  }

  .bar {
    grid-template-columns: auto 1fr auto auto;
  }

  .nav-desktop {
    display: none;
  }

  .topline {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }

  .search {
    grid-column: 1 / -1;
    order: 5;
  }

  .bar {
    grid-template-columns: auto 1fr auto;
  }

  .drawer {
    display: block;
    border-top: 1px solid var(--line);
    background: white;
    padding: 8px 0 14px;
  }

  .drawer[hidden] {
    display: none;
  }

  .drawer h4 {
    margin: 8px 0;
    font-weight: 500;
    font-size: 16px;
  }

  .drawer a,
  .drawer [data-sub-toggle] {
    display: flex;
    width: 100%;
    text-align: left;
    padding: 11px 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
  }

  .drawer-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }

  .drawer-item a {
    flex: 1;
    border-bottom: 0;
  }

  .drawer-item [data-sub-toggle] {
    width: 48px;
    flex: none;
    border-bottom: 0;
    position: relative;
  }

  .drawer-item [data-sub-toggle]::before {
    content: "";
    width: 8px;
    height: 8px;
    margin: auto;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
  }

  .drawer .sub {
    padding-left: 12px;
  }

  .drawer .sub[hidden] {
    display: none;
  }

  .cookie {
    bottom: 84px;
  }
}

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

  .photo .secondary {
    transition: none;
  }
}

.crumbs { color: var(--muted); font-size: 13px; margin: 16px 0; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.sep { margin: 0 6px; }
.product-layout { display: grid; gap: 22px; margin-bottom: 28px; }
.product-layout .photo { background: white; border: 1px solid var(--line); border-radius: 18px; }
.order-link { font-weight: 700; }
.prose { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 8px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose img.page-photo {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 22px auto;
}
.prose img.page-photo--wide {
  max-width: 480px;
}
.prose img.page-photo--badge {
  max-width: 280px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  margin: 16px auto 28px;
}
.prose a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 2px; }
.tabs { display: flex; gap: 14px; margin: 8px 0 12px; font-weight: 700; }
.sortbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 8px 0 14px; color: var(--muted); font-size: 14px; }
.sortbar select { margin-left: 6px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: white; }
.contact-form { display: grid; gap: 6px; max-width: 520px; margin-top: 12px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #faf9f7; }
.contact-form textarea { min-height: 120px; }
.search-note { margin: 8px 0 16px; }
@media (min-width: 860px) {
  .product-layout { grid-template-columns: minmax(260px, 420px) 1fr; align-items: start; }
}
