:root {
  --steel-950: #0a0e10;
  --steel-800: #1b2226;
  --steel-200: #ccd6d9;
  --white: #f5f8f9;
  --accent: #ff5f1f;
  --accent-dim: #e2531b;
  --accent-ink: #1a1008;
  --steel-accent: #8fa3ab;
  --whatsapp: #25d366;
  --whatsapp-dim: #1eb958;
  --telegram: #29a9eb;
  --telegram-dim: #1f8fca;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color-scheme: dark;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--steel-950);
  color: var(--white);
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Buttons (shared: hero CTA, header WhatsApp, catalog/product actions) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-dim);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(245, 248, 249, 0.55);
  color: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(245, 248, 249, 0.1);
  border-color: var(--white);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--accent-ink);
  height: 48px;
  padding: 0 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: var(--whatsapp-dim);
}

.btn--telegram {
  background: var(--telegram);
  color: var(--accent-ink);
  height: 48px;
  padding: 0 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.btn--telegram:hover,
.btn--telegram:focus-visible {
  background: var(--telegram-dim);
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

@media (min-width: 561px) {
  .btn { width: auto; }
}

/* ---------- Site header (shared across all pages) ---------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--steel-950);
  border-bottom: 1px solid var(--steel-accent);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 18px clamp(20px, 5vw, 64px);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.site-logo__icon {
  flex-shrink: 0;
  color: var(--steel-accent);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-logo__name {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-logo__tagline {
  font-size: 0.72rem;
  color: var(--steel-200);
  font-weight: 500;
}

.site-header__contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  margin: -10px;
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-phone-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.site-phone-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-phone:hover,
.site-phone:focus-visible {
  color: var(--accent);
  border-color: currentColor;
}

.site-phone:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.site-nav {
  border-top: 1px solid rgba(143, 163, 171, 0.25);
}

.site-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0 clamp(20px, 5vw, 64px);
  max-width: 1280px;
}

.site-nav__link {
  display: inline-block;
  padding: 14px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--steel-200);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--white);
}

.site-nav__link[aria-current="page"] {
  color: var(--white);
  border-color: var(--accent);
}

@media (max-width: 560px) {
  .site-header__row { align-items: flex-start; }
  .site-logo__tagline { display: none; }
  .site-phone-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .site-phone { padding: 12px; margin: -12px; }
  .site-header__contact .btn--whatsapp span,
  .site-header__contact .btn--telegram span { display: none; }
  .site-header__contact .btn--whatsapp,
  .site-header__contact .btn--telegram { height: 44px; width: 44px; padding: 0; border-radius: 50%; }
}

/* ---------- Page heading (catalog, product, contacts) ---------- */

.page-header {
  padding: 40px clamp(20px, 5vw, 64px) 0;
  max-width: 1280px;
  margin: 0 auto;
}

.page-header__title {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Заявление про индивидуальное изготовление — каталог (сайдбар) и карточка товара (у цены) */
.custom-order-note {
  padding: 14px 16px;
  background: var(--steel-800);
  border: 1px solid var(--steel-accent);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--steel-200);
}

.custom-order-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.custom-order-note a:hover,
.custom-order-note a:focus-visible {
  color: var(--accent-dim);
}

.product__custom-note {
  margin-top: 16px;
  max-width: 560px;
}

/* ---------- Catalog layout ---------- */

.catalog {
  padding: 32px clamp(20px, 5vw, 64px) 96px;
  max-width: 1280px;
  margin: 0 auto;
}

.catalog__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.catalog__sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.catalog__search {
  position: relative;
}

.catalog__search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--steel-accent);
  background: var(--steel-800);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
}

.catalog__search input::placeholder {
  color: var(--steel-200);
}

.catalog__search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.catalog__sidebar-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-200);
}

.catalog__categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0 6px 0 0;
  max-height: min(64vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-accent) transparent;
}

.catalog__category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(143, 163, 171, 0.18);
  color: var(--steel-200);
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.catalog__category-btn:hover,
.catalog__category-btn:focus-visible {
  color: var(--white);
}

.catalog__category-btn[aria-pressed="true"] {
  color: var(--accent);
  font-weight: 700;
}

.catalog__category-count {
  font-size: 0.8rem;
  color: var(--steel-accent);
}

.catalog__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(143, 163, 171, 0.25);
}

.catalog__count {
  font-size: 0.88rem;
  color: var(--steel-200);
  margin-right: auto;
}

.catalog__view-toggle {
  display: flex;
  gap: 2px;
  border: 1px solid var(--steel-accent);
  border-radius: 8px;
  padding: 2px;
}

.catalog__view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--steel-200);
  cursor: pointer;
}

.catalog__view-btn[aria-pressed="true"] {
  background: var(--steel-800);
  color: var(--accent);
}

.catalog__select {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--steel-accent);
  background: var(--steel-800);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 36px 24px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.product-grid.is-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.product-grid.is-list .product-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(143, 163, 171, 0.2);
}

.product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--steel-800);
}

.product-grid.is-list .product-card__image {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-grid.is-list .product-card__info {
  flex: 1 1 auto;
  min-width: 0;
}

.product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel-accent);
}

.product-card__name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-card__price {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.product-grid.is-list .product-card__price {
  flex-shrink: 0;
  white-space: nowrap;
}

.product-card:hover .product-card__name,
.product-card:focus-visible .product-card__name {
  color: var(--accent);
}

.catalog__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.product-card__image.product-card__image--empty,
.product__photo.product__photo--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--steel-accent);
  font-size: 0.85rem;
  border: 1px dashed rgba(143, 163, 171, 0.35);
}

.product-grid.is-list .product-card__image--empty span {
  display: none;
}

.catalog__empty {
  padding: 60px 0;
  text-align: center;
  color: var(--steel-200);
}

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

  .catalog__categories {
    max-height: 240px;
  }
}

/* ---------- Product page ---------- */

.breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 64px) 0;
  font-size: 0.85rem;
  color: var(--steel-200);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--steel-200);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--white);
}

.breadcrumbs span[aria-current] {
  color: var(--white);
}

.product {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 64px) 96px;
}

.product__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.product__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--steel-800);
  position: sticky;
  top: 20px;
}

.product__category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-accent);
}

.product__title {
  margin: 8px 0 0;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.product__specs {
  margin-top: 32px;
  border-top: 1px solid rgba(143, 163, 171, 0.25);
}

.product__specs-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(143, 163, 171, 0.18);
}

.product__specs-row dt {
  font-weight: 600;
  color: var(--steel-200);
}

.product__specs-row dd {
  margin: 0;
  line-height: 1.5;
}

.product__specs-row ul {
  margin: 0;
  padding-left: 18px;
}

.product__specs-row li {
  margin-bottom: 4px;
}

.product__specs-row .is-tbd {
  color: var(--steel-accent);
  font-style: italic;
}

.product__buy {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(143, 163, 171, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.product__price {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.product__related {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 96px;
}

.product__related-title {
  margin: 0 0 4px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  border-top: 1px solid rgba(143, 163, 171, 0.25);
  padding-top: 40px;
}

.floating-actions {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-actions__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.floating-actions__btn:hover,
.floating-actions__btn:focus-visible {
  transform: scale(1.06);
}

.floating-actions__btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.floating-actions__btn--whatsapp {
  background: var(--whatsapp);
  color: var(--accent-ink);
}

.floating-actions__btn--call {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 760px) {
  .product__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product__photo {
    position: static;
  }

  .product__specs-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- Site footer (shared across all pages) ---------- */

.site-footer {
  border-top: 1px solid var(--steel-accent);
  background: var(--steel-950);
  padding: 48px clamp(20px, 5vw, 64px) 0;
}

.site-footer__row {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.site-footer__label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-200);
}

.site-footer__note {
  margin: 12px 0 0;
  max-width: 320px;
  color: var(--steel-200);
  font-size: 0.9rem;
  line-height: 1.55;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__nav a {
  text-decoration: none;
  color: var(--steel-200);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--white);
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.site-footer__person {
  margin: 0;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.site-footer__contacts a:not(.btn) {
  color: var(--steel-200);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-footer__contacts a:not(.btn):hover,
.site-footer__contacts a:not(.btn):focus-visible {
  color: var(--white);
}

.site-footer__contacts .btn--whatsapp {
  margin-top: 6px;
}

.site-footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(143, 163, 171, 0.2);
  font-size: 0.8rem;
  color: var(--steel-accent);
}

@media (max-width: 760px) {
  .site-footer__row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Contacts page ---------- */

.contacts {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 64px) 96px;
}

.contacts__primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 36px clamp(24px, 5vw, 48px);
  background: var(--steel-800);
  border: 1px solid var(--steel-accent);
  border-radius: 16px;
  margin-bottom: 40px;
}

.contacts__phone {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
}

.contacts__phone:hover,
.contacts__phone:focus-visible {
  color: var(--accent);
}

.contacts__phone-note {
  margin: -8px 0 0;
  color: var(--steel-accent);
  font-size: 0.85rem;
}

.contacts__email {
  color: var(--steel-200);
  font-size: 1.05rem;
  text-decoration: none;
}

.contacts__email:hover,
.contacts__email:focus-visible {
  color: var(--white);
}

.contacts__region {
  margin: 4px 0 0;
  color: var(--steel-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.contacts__process h2 {
  margin: 0 0 14px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.contacts__process p {
  margin: 0;
  max-width: 640px;
  color: var(--steel-200);
  line-height: 1.65;
  font-size: 1rem;
}

/* ---------- Delivery & payment (homepage) ---------- */

.delivery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 64px) 80px;
}

.delivery__title {
  margin: 0 0 32px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

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

.delivery__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px clamp(20px, 3vw, 28px);
  background: var(--steel-800);
  border: 1px solid var(--steel-accent);
  border-radius: 16px;
}

.delivery__icon {
  flex-shrink: 0;
  color: var(--accent);
}

.delivery__card h3 {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.delivery__card p {
  margin: 0;
  color: var(--steel-200);
  line-height: 1.6;
  font-size: 0.95rem;
}

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