/* Doctor Launch — Home (from Figma Web_DR.LAUNCH) */

:root {
  --color-text: #1a1917;
  --color-text-muted: #9c9a96;
  --color-text-secondary: #676767;
  --color-text-footer: #5f5e5a;
  --color-border: #e0ded9;
  --color-bg: #ffffff;
  --color-bg-search: #f5f4f0;
  --color-bg-image: #f3f3f3;
  --color-black: #000000;
  --color-success: #3b6d11;
  --color-success-soft: #eaf3de;
  --color-success-text: #27500a;
  --color-blue-soft: #e6f1fb;
  --color-blue-text: #185fa5;
  --color-blue-dark: #042c53;
  --color-blue-badge: #b5d4f4;
  --color-green-soft: #e1f5ee;
  --color-peach: #faeeda;
  --color-hit: #ff7878;
  --color-hit-text: #620000;
  --color-heart: #d60000;
  --color-star: #ef9f27;
  --color-check: #5ec200;
  --color-telegram: #229ed9;
  --color-telegram-bg: #1a3a5c;
  --color-search-placeholder: #757575;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-logo: "Onest", "Manrope", system-ui, sans-serif;
  --container: 1400px;
  --gap-products: 23px;
  --radius-card: 14px;
  --radius-banner: 20px;
  --radius-btn: 10px;
  --radius-search: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  border-radius: var(--radius-btn);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
}

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

.btn--primary {
  background: var(--color-text);
  color: #fff;
  padding: 8px 40px;
}

.btn--primary:hover {
  background: #2e2d2b;
  opacity: 1;
}

.btn--primary:active {
  background: #0f0e0d;
}

.btn--primary.is-added {
  gap: 6px;
  width: 148px;
  padding: 8px 16px;
}

.btn--primary.is-added .btn__check {
  display: block;
}

.btn__check {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--secondary {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  font-weight: 400;
  width: auto;
  white-space: nowrap;
}

.product-card__actions .btn--secondary {
  width: 98px;
  flex: 0 0 auto;
}

.section-head .btn--secondary {
  width: auto;
  min-width: 0;
  padding: 8px 18px;
}

.btn--secondary:hover {
  background: var(--color-bg-search);
  opacity: 1;
}

.btn--secondary:active {
  background: var(--color-border);
}

.btn--light {
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  padding: 10px 14px;
  border-radius: 6px;
}

.btn--light:hover {
  background: #f0f0f0;
  opacity: 1;
}

.btn--light:active {
  background: #e5e5e5;
}

.btn--banner {
  background: #fff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 20px;
  line-height: 36px;
  padding: 6px 18px;
  border-radius: var(--radius-btn);
}

.btn--banner:hover {
  background: #f0f0f0;
  opacity: 1;
}

.btn--telegram {
  background: var(--color-telegram);
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  line-height: 36px;
  padding: 6px 18px;
  border-radius: var(--radius-btn);
}

.btn--telegram:hover {
  background: #1b8fc4;
  opacity: 1;
}

.btn--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 75px;
  font-weight: 400;
  font-size: 11px;
  line-height: 15px;
  color: #575757;
  border-radius: 6px;
  padding: 2px 0;
}

.btn--icon:hover {
  opacity: 0.7;
}

.btn--icon:active {
  opacity: 0.5;
}

.btn--icon__glyph {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-cart-badge,
.m-bottom-nav__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: #d60000;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

.m-bottom-nav__badge {
  top: 2px;
  right: calc(50% - 18px);
}

.btn--icon__glyph svg,
.btn--icon__glyph img,
.btn--icon svg,
.btn--icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.btn--wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
  flex-shrink: 0;
}

.btn--wishlist--inline {
  position: static;
  top: auto;
  right: auto;
}

.btn--wishlist:hover {
  background: #fff5f5;
  opacity: 1;
}

.btn--wishlist:active {
  transform: scale(0.94);
}

.btn--wishlist img,
.btn--wishlist svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.btn--wishlist.is-active img {
  filter: none;
}

.btn--icon svg,
.btn--icon img,
.search__icon svg,
.header__messenger svg {
  display: block;
  flex-shrink: 0;
}

.btn--menu {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.btn--menu:hover {
  background: var(--color-bg-search);
  opacity: 1;
}

.btn--link {
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: #575757;
}

.btn--link:hover {
  color: var(--color-blue-text);
  opacity: 1;
}

.btn--link:active {
  color: var(--color-blue-dark);
}

.btn--text {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
}

.btn--text:hover {
  color: var(--color-blue-text);
  opacity: 1;
}

/* ——— Layout ——— */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: 14px;
  background: #fff;
}

.header__top {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 50px;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  width: 250px;
}

.logo__title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 24px;
  line-height: 31.586px;
  color: #1a1917;
}

.logo__subtitle {
  font-weight: 500;
  font-size: 10px;
  line-height: 17.372px;
  color: #676767;
  text-transform: uppercase;
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 406px;
  max-width: 100%;
  background: var(--color-bg-search);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-search);
  padding: 4px 16px;
  flex-shrink: 1;
}

.search__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
}

.search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 30px;
  color: var(--color-text);
  outline: none;
  min-width: 0;
}

.search__input::placeholder {
  color: var(--color-search-placeholder);
}

.header__messengers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 75px;
  height: 50px;
  flex-shrink: 0;
  margin-left: auto;
}

.header__messenger {
  display: flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.header__messenger img,
.header__messenger svg {
  width: 28px;
  height: 28px;
  max-width: 28px;
  display: block;
  object-fit: cover;
}

.header__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 217px;
  height: 50px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 15px;
  text-align: center;
  color: var(--color-text);
}

.header__phone:hover {
  color: var(--color-blue-text);
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  height: 50px;
  flex-shrink: 0;
  width: 331px;
}

.header__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 11px 0;
}

.header__nav {
  padding-bottom: 0;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 15px;
  color: #575757;
}

.header__nav-list a:hover {
  color: var(--color-blue-text);
}

/* ——— Main layout ——— */

.page-main {
  flex: 1;
  padding-top: 14px;
  padding-bottom: 40px;
}

.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 250px;
}

.sidebar__label {
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  color: #1a1917;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 14px;
}

.sidebar__group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 26px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: #575757;
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  text-align: left;
}

.sidebar__link:hover .sidebar__item-title {
  color: var(--color-blue-text);
}

.sidebar__icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  box-sizing: border-box;
  background: #e6f1fb;
}

.sidebar__icon--blue {
  background: #e6f1fb;
}

.sidebar__icon--green {
  background: #e1f5ee;
}

.sidebar__icon--peach {
  background: #faeeda;
}

.sidebar__icon img,
.sidebar__icon svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  display: block;
  flex-shrink: 0;
}

.sidebar__item-title {
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  color: #575757;
  white-space: nowrap;
}

.sidebar__count {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #9c9a96;
  flex-shrink: 0;
  text-align: right;
  min-width: 28px;
}

.sidebar__expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: -2px;
  border-radius: 4px;
  color: var(--color-text-muted);
}

.sidebar__expand:hover {
  background: rgba(156, 154, 150, 0.12);
  opacity: 1;
}

.sidebar__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sidebar__group.is-open > .sidebar__row .sidebar__expand .sidebar__chevron {
  transform: rotate(90deg);
}

.sidebar__group.is-open > .sidebar__row {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar__sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 2px 36px;
  padding: 0;
}

.sidebar__group.is-open > .sidebar__sub {
  display: flex;
}

.sidebar__sub[hidden] {
  display: none !important;
}

.sidebar__sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 15px;
  color: var(--color-text);
}

.sidebar__sub-link span {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 15px;
}

.sidebar__sub-link:hover {
  background: var(--color-bg-search);
}

.sidebar__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 14px 0;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 33px;
  min-width: 0;
}

/* ——— Hero slider ——— */

.hero-slider {
  position: relative;
}

.hero-slider__viewport .hero {
  border-radius: 0;
}

.hero-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-banner);
}

.hero-slider__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-black);
  border-radius: var(--radius-banner);
  padding: 25px 40px;
  min-height: 323px;
  position: relative;
  overflow: hidden;
}

.hero--telegram {
  background: var(--color-telegram-bg);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero__title {
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  color: #fff;
}

.hero__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #9e9e9e;
}

.icon-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.hero__price {
  font-weight: 500;
  font-size: 20px;
  line-height: 36px;
  color: #fff;
}

.hero__grid {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 80px;
  row-gap: 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 36px;
  color: #9e9e9e;
}

.hero__image {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image img {
  width: 100%;
  height: 100%;
  max-width: 696px;
  max-height: 308px;
  object-fit: cover;
  object-position: center left;
}

.hero__image--contain img {
  width: auto;
  height: auto;
  max-width: 338px;
  max-height: 246px;
  object-fit: contain;
  object-position: center;
}

.hero__image--phone {
  width: 44%;
  justify-content: flex-end;
  padding-right: 48px;
}

.hero--telegram .hero__image-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
}

.hero--telegram .hero__tg-phone,
.hero__image--phone img {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 290px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.28));
}

.hero-slider__controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
  min-height: 28px;
}

.hero-slider__arrow {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e0ded9;
  color: #575757;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.hero-slider__arrow:hover {
  background: var(--color-bg-search);
  border-color: #cfcbc4;
  opacity: 1;
}

.hero-slider__arrow img,
.hero-slider__arrow svg {
  width: 12px;
  height: 12px;
  display: block;
  opacity: 0.8;
}

.hero-slider__arrow:hover img,
.hero-slider__arrow:hover svg {
  opacity: 1;
}

.hero-slider__arrow--prev img {
  transform: rotate(180deg);
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 6px;
  margin: 0 4px;
}

/* Figma icon/slider 4399:3647 */
.hero-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: #c2c2c2;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-slider__dot.is-active {
  width: 14px;
  height: 6px;
  background: #1a1917;
}

.hero-slider__dot:hover {
  opacity: 0.85;
}

/* ——— Drawer (mobile catalog menu) ——— */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.drawer.is-open {
  display: block;
}

.drawer[hidden] {
  display: none !important;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0.45);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(390px, 100%);
  height: 100%;
  background: #fff;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer__close {
  width: 28px;
  height: 28px;
  border-radius: 15px;
  border: 0.5px solid #a9a9a9;
  background: #e7e7e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer__close svg {
  width: 20px;
  height: 20px;
}

.drawer__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer__nav .sidebar__icon {
  width: 28px;
  height: 28px;
  padding: 6px;
}

.drawer__nav .sidebar__icon img,
.drawer__nav .sidebar__icon svg {
  width: 16px;
  height: 16px;
}

.drawer__nav .sidebar__item-title {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.drawer__nav .sidebar__link {
  font-size: 13px;
  line-height: 16px;
}

.drawer__nav .sidebar__expand {
  width: 22px;
  height: 22px;
}

.drawer__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 18px;
  color: var(--color-text);
}

.drawer__info-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.drawer__contacts {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer__phone {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-text);
}

.drawer__messengers {
  display: flex;
  gap: 12px;
}

body.drawer-open {
  overflow: hidden;
}

/* ——— Section heads ——— */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* ——— Product grid ——— */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-products);
}

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

.product-card__media {
  position: relative;
  background: var(--color-bg-image);
  height: 159px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  overflow: hidden;
}

.product-card__media > a img {
  width: 156px;
  height: 139px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 100px;
  padding: 2px 10px;
  font-weight: 500;
  font-size: 10px;
  line-height: 12px;
  z-index: 2;
}

.product-card__badge--new {
  background: var(--color-blue-badge);
  color: var(--color-blue-dark);
}

.product-card__badge--hit {
  background: var(--color-hit);
  color: var(--color-hit-text);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  flex: 1;
}

.product-card__title {
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  color: var(--color-text);
}

.product-card__subtitle {
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text);
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 20px;
}

.product-card__sku {
  color: var(--color-text-muted);
  font-weight: 400;
}

.product-card__stock {
  color: var(--color-success);
  font-weight: 500;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 100px;
  font-size: 10px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.tag--green {
  background: var(--color-success-soft);
  color: var(--color-success-text);
}

.tag--blue {
  background: var(--color-blue-soft);
  color: var(--color-blue-text);
}

.tag--gray {
  background: var(--color-bg-search);
  color: #5f5e5a;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.product-card__stars {
  display: flex;
  width: 63px;
  height: 11px;
}

.product-card__stars svg {
  width: 63px;
  height: 11px;
}

.product-card__price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.product-card__price {
  display: flex;
  align-items: flex-end;
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  color: var(--color-text);
}

.product-card__price svg {
  width: 9.5px;
  height: 13px;
  margin: 3px 0 3px 3px;
}

.product-card__old {
  font-size: 12px;
  line-height: 20px;
  min-height: 20px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin: 0;
}

.product-card__old:empty,
.product-card__old--empty {
  visibility: hidden;
  text-decoration: none;
}

.product-card__delivery {
  font-size: 10px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.product-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
}

.product-card__price-block + .product-card__actions {
  margin-top: 0;
}

.product-card__actions .btn--primary {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}

/* ——— Promo banners ——— */

.promo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--radius-banner);
  padding: 25px 40px;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.promo--dark {
  background: var(--color-black);
}

.promo--telegram {
  background: var(--color-telegram-bg);
  min-height: 250px;
}

.promo__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.promo__title {
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  color: #fff;
}

.promo__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promo__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #9e9e9e;
}

.promo__list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.promo__price {
  font-weight: 500;
  font-size: 20px;
  line-height: 36px;
  color: #fff;
}

.promo__image {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 338px;
  height: 246px;
  pointer-events: none;
}

.promo__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo__image--phone {
  right: 56px;
  width: auto;
  height: auto;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.promo__image--phone .promo__tg-phone {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.28));
}

.promo__grid {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 80px;
  row-gap: 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 36px;
  color: #9e9e9e;
}

/* ——— Trust ——— */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}

.benefits__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: #fff;
  min-height: 72px;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--dur-fast, 160ms) var(--ease-out, ease),
    box-shadow var(--dur-fast, 160ms) ease,
    border-color var(--dur-fast, 160ms) ease;
}

.benefits__card:hover {
  border-color: #cfcbc3;
  box-shadow: 0 8px 22px rgba(26, 25, 23, 0.07);
  transform: translateY(-2px);
}

.benefits__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-blue-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits__icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.benefits__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.benefits__text strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.benefits__text span {
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-text-muted);
  font-weight: 400;
}

.trust-section {
  margin-top: 8px;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: #fff;
  min-height: 80px;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--dur-fast, 160ms) var(--ease-out, ease),
    box-shadow var(--dur-fast, 160ms) ease,
    border-color var(--dur-fast, 160ms) ease;
}

a.trust__card:hover {
  border-color: #cfcbc3;
  box-shadow: 0 8px 22px rgba(26, 25, 23, 0.07);
  transform: translateY(-2px);
}

.trust__logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

.trust__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.trust__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-blue-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust__icon svg {
  width: 22px;
  height: 22px;
}

.trust__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: #1a1917;
  margin: 0;
}

.trust__stars {
  display: block;
  width: 56px;
  height: 10px;
  object-fit: contain;
  object-position: left center;
}

.trust__text {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: #575757;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trust__score {
  font-weight: 700;
  color: #2f2f2f;
}

.trust__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9c9a96;
  flex-shrink: 0;
}

/* ——— Content tiles ——— */

.articles-section {
  margin-top: 8px;
}

.content-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.content-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
  height: 100%;
  background: #fff;
  border: 0.5px solid var(--color-border, #a9a9a9);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition:
    transform var(--dur-fast, 160ms) var(--ease-out, ease),
    box-shadow var(--dur-fast, 160ms) ease,
    border-color var(--dur-fast, 160ms) ease;
}

a.content-tile:hover {
  border-color: #cfcbc3;
  box-shadow: 0 10px 28px rgba(26, 25, 23, 0.08);
  transform: translateY(-2px);
}

.content-tile--media {
  padding: 0;
  background: #fff;
}

.content-tile__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 352 / 200;
  background: #111;
  overflow: hidden;
  flex-shrink: 0;
}

.content-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.content-tile--media:hover .content-tile__media img {
  transform: scale(1.04);
}

.content-tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  background: #fff;
  flex: 1;
}

.content-tile__title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #2f2f2f;
}

.content-tile__meta {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  color: #7d7d7d;
}

.content-tile--review {
  background: #fff;
  border: 0.5px solid var(--color-border, #a9a9a9);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  min-height: 240px;
  height: auto;
  overflow: hidden;
  cursor: default;
}

.review-card__summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__score {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #2f2f2f;
}

.review-card__summary-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.review-card__stars {
  display: block;
  flex-shrink: 0;
}

.review-card__stars--lg {
  width: 64px;
  height: 11px;
}

.review-card__stars--sm {
  width: 58px;
  height: 10px;
}

.review-card__source {
  margin: 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.2;
  color: #7d7d7d;
}

.review-card__author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.review-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #deecf7;
  color: #005496;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-card__author-text {
  min-width: 0;
}

.review-card__name {
  margin: 0;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  color: #2f2f2f;
}

.review-card__status {
  margin: 0;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.3;
  color: #7d7d7d;
}

.review-card__text {
  margin: 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.45;
  color: #3f3f3f;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* legacy articles (kept for other pages if any) */
.articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-banner);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 189px;
  background: var(--color-bg-image);
}

.article-card__media {
  height: 110px;
  background: linear-gradient(135deg, #e6f1fb 0%, #f5f4f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__media svg {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__body {
  padding: 14px 16px;
  background: #fff;
  flex: 1;
}

.article-card__title {
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.article-card__meta {
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-muted);
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 0 40px;
  margin-top: auto;
}

.footer__grid {
  display: flex;
  gap: 122px;
  align-items: flex-start;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__brand {
  width: 331px;
}

.footer__logo-title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 20px;
  line-height: 18px;
  color: #000;
  margin-bottom: 4px;
}

.footer__logo-sub {
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: #676767;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer__heading {
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #000;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__links a,
.footer__links span {
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-footer);
}

.footer__links a:hover {
  color: var(--color-blue-text);
}

.footer__phone {
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
  color: #000;
}

.footer__phone:hover {
  color: var(--color-blue-text);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-footer);
}

.footer__socials,
.footer__socials--mobile-only {
  display: none;
}

/* ——— Tablet: 768–1199px ——— */

@media (max-width: 1199px) and (min-width: 768px) {
  .header__top {
    flex-wrap: wrap;
    height: auto;
    row-gap: 12px;
  }

  .logo {
    width: auto;
    min-width: 200px;
  }

  .search {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .header__messengers {
    margin-left: 0;
  }

  .header__phone {
    width: auto;
    font-size: 16px;
  }

  .header__nav-list {
    gap: 16px;
    font-size: 13px;
  }

  .layout {
    grid-template-columns: 240px 1fr;
    gap: 16px;
  }

  .sidebar {
    width: 240px;
  }

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

  .hero {
    padding: 24px;
    min-height: 280px;
  }

  .hero__title {
    font-size: 24px;
    line-height: 30px;
  }

  .hero__image {
    width: 48%;
    opacity: 0.9;
  }

  .hero__image img {
    max-width: 480px;
    max-height: 260px;
  }

  .hero__grid {
    column-gap: 40px;
  }

  .promo {
    padding: 24px;
  }

  .promo__title {
    font-size: 24px;
    line-height: 30px;
  }

  .promo__image {
    right: 16px;
    width: 240px;
    height: 180px;
    opacity: 0.9;
  }

  .promo__grid {
    column-gap: 40px;
  }

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

  .articles,
  .content-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-tile--review {
    grid-column: 1 / -1;
  }

  .footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 40px;
  }

  .footer__brand {
    width: auto;
    grid-column: 1 / -1;
  }
}

/* ——— Mobile: ≤767px ——— */

@media (max-width: 767px) {
  .btn--menu {
    display: inline-flex;
  }

  .header__top {
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
  }

  .logo {
    width: calc(100% - 52px);
  }

  .logo__title {
    font-size: 22px;
    line-height: 28px;
  }

  .logo__subtitle {
    font-size: 10px;
    line-height: 14px;
  }

  .search {
    order: 4;
    width: 100%;
  }

  .header__messengers {
    display: none;
  }

  .header__phone {
    order: 3;
    width: auto;
    height: auto;
    font-size: 16px;
    margin-left: auto;
  }

  .header__actions {
    order: 2;
    gap: 8px;
    height: auto;
  }

  .btn--icon {
    width: 44px;
  }

  .btn--icon span {
    display: none;
  }

  .header__nav {
    display: none;
  }

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

  .sidebar {
    display: none;
  }

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

  .hero-slider__viewport {
    border-radius: 10px;
  }

  .hero {
    padding: 16px 20px 36px;
    min-height: 220px;
    gap: 12px;
    border-radius: 10px;
  }

  .hero__title {
    font-size: 15px;
    line-height: normal;
  }

  .hero__list {
    gap: 4px;
  }

  .hero__list li {
    font-size: 12px;
    gap: 10px;
  }

  .icon-check {
    width: 16px;
    height: 16px;
  }

  .hero__price {
    font-size: 16px;
    line-height: 24px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 8px;
    font-size: 14px;
    line-height: 24px;
  }

  .hero__image {
    position: absolute;
    right: 0;
    top: auto;
    bottom: 0;
    width: 48%;
    height: 145px;
    margin-top: 0;
  }

  .hero__image img {
    max-width: 179px;
    max-height: 145px;
  }

  .hero__image--contain img {
    max-width: 160px;
    max-height: 140px;
  }

  .hero-slider__controls {
    position: absolute;
    left: 20px;
    bottom: 12px;
    margin-top: 0;
    z-index: 2;
  }

  .hero-slider__arrow {
    display: none;
  }

  .hero-slider__dot {
    background: rgba(255, 255, 255, 0.35);
  }

  .hero-slider__dot.is-active {
    width: 20px;
    background: #fff;
  }

  .btn--light {
    font-size: 12px;
    line-height: normal;
    padding: 6px 10px;
    background: #0084eb;
    color: #fff;
    font-weight: 600;
  }

  .btn--light:hover {
    background: #0070c9;
  }

  .product-card__media {
    height: 140px;
    padding: 10px 16px;
  }

  .product-card__media > a img {
    width: 120px;
    height: 120px;
  }

  .btn--wishlist {
    width: 28px;
    height: 28px;
  }

  .promo {
    padding: 20px;
    min-height: auto;
  }

  .promo__title {
    font-size: 22px;
    line-height: 28px;
  }

  .promo__image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 180px;
    margin-top: 12px;
  }

  .promo__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 8px;
    line-height: 24px;
  }

  .btn--banner,
  .btn--telegram {
    font-size: 16px;
    line-height: 28px;
  }

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

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

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

  .footer__brand {
    width: 100%;
  }

  .product-card__actions {
    flex-wrap: wrap;
  }

  .product-card__actions .btn--primary,
  .product-card__actions .btn--secondary {
    flex: 1 1 auto;
    width: auto;
  }
}

/* ——— Desktop: ≥1200px (explicit base already matches) ——— */

@media (min-width: 1200px) {
  .container {
    max-width: calc(var(--container) + 40px);
  }
}

/* ——— Inner pages (catalog, product, info, cart) ——— */

.btn--link.is-active {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumbs a:hover {
  color: var(--color-blue-text);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-title--inline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title__meta {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.page-lead {
  font-size: 14px;
  color: var(--color-text-footer);
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-sort select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
}

.catalog-count {
  font-size: 13px;
  color: var(--color-text-muted);
}

.prose {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-footer);
}

.feature-grid,
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.feature-card,
.info-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}

.feature-card h2,
.info-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p,
.info-card p {
  font-size: 13px;
  color: var(--color-text-footer);
  line-height: 1.5;
}

.cta-panel {
  background: #1a1917;
  color: #fff;
  border-radius: 20px;
  padding: 32px 40px;
}

.cta-panel h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.cta-panel > p {
  color: #9e9e9e;
  margin-bottom: 20px;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.cta-form input,
.cta-form textarea,
.promo-bar input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  min-width: 220px;
  flex: 1;
}

.cta-form textarea {
  width: 100%;
  resize: vertical;
}

.cta-form input:focus,
.cta-form textarea:focus,
.promo-bar input:focus,
.catalog-sort select:focus {
  outline: 2px solid #185fa5;
  outline-offset: 2px;
}

.btn--accent {
  background: #185fa5;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
}

.btn--blue {
  background: #185fa5;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

.btn--square {
  width: 34px;
  height: 34px;
  padding: 0;
}

.form-message {
  width: 100%;
  font-size: 13px;
  color: var(--color-success);
}

.form-message.is-error {
  color: #791f1f;
}

.bonus-hero {
  background: #1a3a5c;
  color: #fff;
  border-radius: 20px;
  padding: 32px 40px;
  margin-bottom: 32px;
}

.bonus-hero h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.bonus-hero > p {
  color: #9e9e9e;
  margin-bottom: 20px;
}

.bonus-hero__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bonus-hero__card {
  background: rgba(230, 241, 251, 0.18);
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #185fa5;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.steps h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.steps p {
  font-size: 13px;
  color: var(--color-text-footer);
}

.table-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
}

.table-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

.data-table--striped thead tr,
.data-table--striped tbody tr:nth-child(even) {
  background: var(--color-bg-search);
}

.text-green { color: var(--color-success) !important; font-weight: 500; }
.text-red { color: #791f1f !important; }

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}

.contacts-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 19px;
  background: #fff;
}

.contact-card--stack {
  flex-direction: column;
  align-items: stretch;
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-card__icon--blue {
  background: var(--color-blue-soft);
  color: var(--color-blue-text);
}

.contact-card__icon--green {
  background: var(--color-success-soft);
  color: var(--color-success-text);
}

.contact-card__icon--peach {
  background: var(--color-peach);
  color: #8a5a1e;
}

.contact-card__icon--blue img {
  filter: invert(29%) sepia(82%) saturate(1200%) hue-rotate(186deg) brightness(92%) contrast(92%);
}

.contact-card__icon--green img {
  filter: invert(28%) sepia(45%) saturate(700%) hue-rotate(55deg) brightness(90%) contrast(90%);
}

.contact-card__icon--peach img {
  filter: invert(35%) sepia(40%) saturate(900%) hue-rotate(8deg) brightness(95%) contrast(90%);
}

.contact-card__label {
  font-size: 11px;
  color: var(--color-text-muted);
}

.contact-card__value {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin: 2px 0;
}

.contact-card__note {
  font-size: 12px;
  color: var(--color-text-footer);
}

.messenger-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn--tg {
  flex: 1;
  background: var(--color-blue-soft);
  border: 1px solid var(--color-blue-badge);
  color: var(--color-blue-text);
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
}

.btn--viber {
  flex: 1;
  background: var(--color-green-soft);
  border: 1px solid #9fe1cb;
  color: #0f6e56;
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
}

.map-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.map-card__placeholder {
  height: 260px;
  background: var(--color-bg-search);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.map-card__body {
  padding: 16px;
}

.map-card__body h2 {
  font-size: 13px;
  margin-bottom: 6px;
}

.map-card__body p {
  font-size: 12px;
  color: var(--color-text-footer);
  line-height: 1.6;
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 710px) 426px;
  gap: 27px;
  align-items: start;
  margin-bottom: 32px;
}

.product-gallery {
  position: relative;
}

.product-gallery__stage {
  position: relative;
  background: var(--color-bg-image);
  border-radius: 20px;
  overflow: hidden;
  height: 546px;
  min-height: 546px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  touch-action: pan-y;
  user-select: none;
}

.product-gallery__stage > img {
  max-width: 82%;
  max-height: 520px;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-gallery__stage.is-dragging > img {
  transition: none;
}

.product-gallery__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  border-radius: 100px;
  padding: 2px 10px;
  font-weight: 500;
  font-size: 10px;
  line-height: 12px;
  background: var(--color-blue-badge);
  color: var(--color-blue-dark);
}

.product-gallery__stage .btn--wishlist {
  top: 14px;
  right: 14px;
}

.product-gallery__hint {
  display: none;
}

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

.product-gallery__thumb {
  width: 72px;
  height: 64px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: var(--color-bg-image);
}

.product-gallery__thumb.is-active {
  border-color: var(--color-text);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0;
}

.product-gallery__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9d9d9;
}

.product-gallery__dots span.is-active {
  width: 14px;
  height: 6px;
  border-radius: 100px;
  background: #1a1917;
}

/* ——— Product lightbox ——— */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 15, 14, 0.82);
  border: 0;
  padding: 0;
  cursor: zoom-out;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox__figure {
  position: relative;
  width: 100%;
  max-height: calc(90vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  padding: 28px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 128px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.lightbox__figure.is-dragging .lightbox__img {
  transition: none;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1917;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.lightbox__close {
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
}

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

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

.lightbox__nav img {
  width: 18px;
  height: 18px;
  display: block;
}

.lightbox__nav--prev img {
  transform: rotate(180deg);
}

.lightbox__counter {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .lightbox {
    padding: 12px;
  }

  .lightbox__figure {
    padding: 16px;
    border-radius: 12px;
  }

  .lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .product-gallery__hint {
    display: none;
  }
}

.buybox {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buybox__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buybox h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #000;
}

.buybox__subtitle {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
}

.buybox__sku {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.2;
}

.buybox__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buybox__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buybox__tags .tag {
  padding: 10px 12px;
  font-size: 16px;
  line-height: 18px;
}

.buybox__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.buybox__rating a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.buybox__rating a:hover {
  color: var(--color-blue-text);
}

.buybox__stock {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-success-soft);
  color: var(--color-success-text);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.buybox__stock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-success-text);
  display: inline-block;
  flex-shrink: 0;
}

.buybox__logistics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-footer);
  margin: 0;
  padding: 0;
  list-style: none;
}

.buybox__logistics li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.buybox__logistics img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.buybox__logistics a {
  color: var(--color-blue-text);
  margin-left: 6px;
}

.buybox__divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 6px 0;
  width: 100%;
}

.buybox__commerce {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.buybox__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buybox__compare {
  flex: 1;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  width: auto;
}

.buybox__price {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000;
}

.buybox__bonus {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-success);
}

.buybox__installments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-footer);
  margin: 0;
  padding: 0;
  list-style: none;
}

.buybox__installments li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.buybox__installment {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.buybox__installment:hover {
  background: var(--color-bg-search);
  border-color: var(--color-border);
}

.buybox__installment:active {
  background: #efece6;
}

.buybox__installment:focus-visible {
  outline: 2px solid var(--color-blue-text);
  outline-offset: 2px;
}

.buybox__installment.is-selected {
  background: var(--color-blue-soft);
  border-color: var(--color-blue-badge);
  box-shadow: inset 0 0 0 1px rgba(24, 95, 165, 0.08);
  color: var(--color-blue-dark);
}

.buybox__installment.is-selected:hover {
  background: #d9ebf8;
  border-color: var(--color-blue-text);
}

.buybox__installment.is-selected:active {
  background: #cfe4f5;
}

.buybox__pay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  flex: 1;
  font-weight: 500;
  transition: color 180ms ease;
}

.buybox__installment.is-selected .buybox__pay {
  color: var(--color-blue-dark);
  font-weight: 600;
}

.buybox__pay img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.buybox__installments strong {
  font-weight: 600;
  color: var(--color-text-footer);
  white-space: nowrap;
  transition: color 180ms ease;
}

.buybox__installment.is-selected strong {
  color: var(--color-blue-text);
}

.buybox__installment-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1.5px solid #b8b5ae;
  background: var(--color-bg);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.buybox__installment-mark::after {
  content: "";
  width: 12px;
  height: 9px;
  background-color: #fff;
  opacity: 0;
  -webkit-mask: url("../assets/icons/check.svg") center / contain no-repeat;
  mask: url("../assets/icons/check.svg") center / contain no-repeat;
  transition: opacity 160ms ease;
}

.buybox__installment:hover .buybox__installment-mark {
  border-color: #9a978f;
}

.buybox__installment.is-selected .buybox__installment-mark {
  background: var(--color-blue-text);
  border-color: var(--color-blue-text);
}

.buybox__installment.is-selected .buybox__installment-mark::after {
  opacity: 1;
}

.buybox__installments-more {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.3;
}

.buybox__installments-more a {
  color: var(--color-blue-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 160ms ease, opacity 160ms ease;
}

.buybox__installments-more a:hover {
  color: var(--color-blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.buybox__installments-more a:focus-visible {
  outline: 2px solid var(--color-blue-text);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .buybox__installment,
  .buybox__pay,
  .buybox__installments strong,
  .buybox__installment-mark,
  .buybox__installment-mark::after,
  .buybox__installments-more a {
    transition: none;
  }
}

.buybox__actions {
  display: flex;
  gap: 6px;
  width: 100%;
}

.buybox__actions .btn--primary,
.buybox__actions .btn--secondary {
  flex: 1;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  width: auto;
}

.buybox__actions .btn--primary {
  background: #1a1917;
  color: #fff;
  font-weight: 600;
}

.btn--outline {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-footer);
  font-weight: 400;
  font-size: 14px;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 16px;
}

.btn--outline:hover {
  background: var(--color-bg-search);
  opacity: 1;
}

/* Sidebar scanner picker (Figma search 2) */
.sidebar__picker {
  margin-top: 14px;
  background: var(--color-blue-soft);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar__picker-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.4px;
  color: var(--color-blue-text);
}

.sidebar__picker-title img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar__picker-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar__picker-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 1px solid var(--color-blue-badge);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0.48px;
  color: var(--color-text);
}

.sidebar__picker-input::placeholder {
  color: var(--color-search-placeholder);
}

.sidebar__picker-btn {
  width: 36px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: var(--color-blue-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.sidebar__picker-btn img {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) invert(1);
}

.tabs__list {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.tabs__btn {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text-footer);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs__btn.is-active {
  color: var(--color-text);
  font-weight: 600;
  border-bottom-color: var(--color-text);
}

.tabs__panel {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-footer);
}

/* Cart / favorites */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.cart-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item,
.fav-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 17px;
  background: #fff;
}

.cart-item__img,
.fav-row__img {
  width: 80px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8edf5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__img img,
.fav-row__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__img--mint {
  background: var(--color-green-soft);
}

.cart-item__info,
.fav-row__info {
  flex: 1;
  min-width: 0;
}

.cart-item__info h2,
.fav-row__info h2 {
  font-size: 14px;
  font-weight: 600;
}

.cart-item__info > p,
.fav-row__info > p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 2px 0 6px;
}

.cart-item__price,
.fav-row__price {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

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

.qty button {
  width: 30px;
  height: 30px;
  background: var(--color-bg-search);
  color: var(--color-text-footer);
}

.qty input {
  width: 36px;
  border: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.btn--icon-round {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  color: var(--color-text-muted);
  font-size: 16px;
}

.promo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--color-blue-soft);
  border: 1px solid var(--color-blue-badge);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--color-blue-text);
  font-size: 13px;
}

.cart-summary {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 19px;
  background: #fff;
  position: sticky;
  top: 16px;
}

.cart-summary h2 {
  font-size: 15px;
  margin-bottom: 8px;
}

.cart-summary dl {
  margin: 0;
}

.cart-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-footer);
  margin-bottom: 8px;
}

.cart-summary hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 10px 0;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cart-summary .btn {
  margin-bottom: 8px;
}

.trust-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--color-success);
}

.trust-list li::before {
  content: "✓ ";
}

.fav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fav-row__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 132px;
}

.fav-row__btns {
  display: flex;
  gap: 6px;
  width: 100%;
}

.fav-row__btns .btn--primary {
  flex: 1;
  padding: 9px 12px;
  font-size: 12px;
}

.fav-row__btns .btn--wishlist {
  width: 34px;
  height: 34px;
}

.fav-row .product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 6px 0 0;
}

.fav-row .product-card__stock .buybox__stock-dot {
  display: none;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--color-border);
  padding: 12px;
  text-align: center;
  vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  background: var(--color-bg-search);
}

.compare-table img {
  margin: 0 auto 8px;
  max-height: 64px;
  object-fit: contain;
}

/* Modal */
.modal[hidden] {
  display: none !important;
}

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

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0.45);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.modal__dialog h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.modal__lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-footer);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.field__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
}

.field__input--area {
  min-height: 100px;
  resize: vertical;
}

.field__input.is-invalid {
  border-color: #c44;
}

.field__input:focus {
  outline: 2px solid rgba(24, 95, 165, 0.25);
  border-color: var(--color-blue-text);
}

.product-tabs__list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-faq {
  margin-top: 28px;
}

.product-faq__title,
.product-related__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
}

.product-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-faq__item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.product-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-faq__item summary::-webkit-details-marker {
  display: none;
}

.product-faq__item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1;
}

.product-faq__item[open] summary::after {
  content: "−";
}

.product-faq__item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-footer);
}

.product-related {
  margin-top: 32px;
  margin-bottom: 8px;
}

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

@media (max-width: 900px) {
  .product-related .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.review-card--inline {
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: var(--color-text-muted);
  border-radius: 8px;
}

.modal__close:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #185fa5;
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .feature-grid,
  .info-cards,
  .bonus-hero__cards,
  .steps__list {
    grid-template-columns: 1fr 1fr;
  }

  .product-layout,
  .cart-layout,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .feature-grid,
  .info-cards,
  .bonus-hero__cards,
  .steps__list {
    grid-template-columns: 1fr;
  }

  .cta-panel,
  .bonus-hero {
    padding: 24px 20px;
  }

  .cart-item,
  .fav-row {
    flex-wrap: wrap;
  }
}

.btn--ghost {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
}
.btn--ghost:hover { background: var(--color-bg-search); opacity: 1; }
.cta-form input.is-invalid,
.cta-form textarea.is-invalid { border-color: #791f1f; }

/* ——— Personal cabinet (Figma 4481:7032) ——— */

.cabinet {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cabinet__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
  flex-shrink: 0;
}

.cabinet__main {
  flex: 1;
  min-width: 0;
}

.cabinet-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-align: center;
}

.cabinet-user__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.cabinet-user__name {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 22.5px;
}

.cabinet-user__role {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-muted);
}

.cabinet-user__bonus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--color-blue-soft);
  color: var(--color-blue-text);
  font-size: 12px;
  line-height: 18px;
}

.cabinet-user__bonus:hover {
  opacity: 0.9;
}

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

.cabinet-nav__item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 14px 12px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.cabinet-nav__item:last-child {
  border-bottom: none;
}

.cabinet-nav__item.is-active {
  background: var(--color-bg-search);
  font-weight: 600;
}

.cabinet-nav__item:hover {
  background: var(--color-bg-search);
}

.cabinet-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cabinet-nav__icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 0.55;
}

.cabinet-nav__item.is-active .cabinet-nav__icon img {
  opacity: 1;
  filter: invert(33%) sepia(74%) saturate(742%) hue-rotate(178deg) brightness(92%) contrast(91%);
}

.cabinet-nav__label {
  flex: 1;
  min-width: 0;
}

.cabinet-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--color-blue-text);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 16.5px;
}

.cabinet-panel {
  padding: 19px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.cabinet-panel__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.cabinet-orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-card__id {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 19.5px;
}

.order-card__date {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-muted);
}

.order-card__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--color-success-soft);
  color: var(--color-success-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.order-card__product {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #e8edf5;
  overflow: hidden;
}

.order-card__thumb--peach {
  background: #faece7;
}

.order-card__thumb img {
  width: 40px;
  height: 36px;
  object-fit: contain;
}

.order-card__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 19.5px;
}

.order-card__name:hover {
  color: var(--color-blue-text);
}

.order-card__meta {
  margin: 0;
  font-size: 11px;
  line-height: 16.5px;
  color: var(--color-text-muted);
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-card__total {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}

.order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-card__btn {
  width: auto;
  min-height: 28px;
  padding: 7px 15px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-black);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.order-card__btn:hover {
  background: var(--color-bg-search);
}

.order-card__btn--review {
  background: var(--color-blue-soft);
  border-color: var(--color-blue-text);
  color: var(--color-blue-text);
}

.order-card__btn--review:hover {
  background: var(--color-blue-badge);
}

.cabinet-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}

.cabinet-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-footer);
}

.cabinet-form__field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
}

.cabinet-form__field input:focus {
  outline: none;
  border-color: var(--color-blue-text);
}

.cabinet-form .btn--primary {
  align-self: flex-start;
  width: auto;
  min-width: 140px;
  padding: 10px 18px;
}

@media (max-width: 980px) {
  .cabinet {
    flex-direction: column;
  }

  .cabinet__aside {
    width: 100%;
  }
}
