:root {
  /* Premium pharma-lux palette (black + gold + minimal white) */
  --bg: #070708;
  --surface: #0f0f12;
  --surface-2: #141418;
  --surface-3: #1a1a20;

  --ink: #f8f3e8; /* minimal white */
  --muted: #bfb6a6;
  --line: rgba(205, 170, 107, 0.22);
  --shadow: 0 18px 56px rgba(0, 0, 0, 0.62);

  --gold: #cdaa6b;
  --gold-2: #f0dcaa;
  --gold-deep: #3a2b17;
  --accent: var(--gold);
  --accent-2: var(--gold-2);
  --accent-3: var(--gold-deep);

  --radius: 18px;
  --radius-lg: 28px;

  --container: 1120px;

  /* Typography: elegant + readable, hint of vintage */
  --font-sans: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cinzel", "Playfair Display", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(1200px 520px at 14% -4%, rgba(205, 170, 107, 0.18), transparent 62%),
    radial-gradient(900px 520px at 92% 0%, rgba(205, 170, 107, 0.10), transparent 64%),
    radial-gradient(900px 520px at 60% 120%, rgba(255, 255, 255, 0.05), transparent 62%),
    linear-gradient(180deg, rgba(205, 170, 107, 0.05), rgba(0, 0, 0, 0)),
    var(--bg);
  line-height: 1.6;
  /* Подвал прижат к низу экрана даже на коротких страницах */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Основной блок растягивается и отодвигает подвал вниз */
main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
  transition: transform 180ms ease;
  z-index: 999;
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 8, 0.76);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(205, 170, 107, 0.35);
  background: rgba(15, 15, 18, 0.92);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-2);
  border-radius: 2px;
}

.nav a {
  font-size: 13px;
  color: rgba(246, 241, 230, 0.88);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav a:hover {
  background: rgba(205, 170, 107, 0.16);
  border-color: rgba(205, 170, 107, 0.42);
}

.nav a.active {
  background: rgba(205, 170, 107, 0.18);
  color: #f6f1e6;
  border-color: rgba(205, 170, 107, 0.70);
}

/* Пункт «Личный кабинет» — только в мобильном меню (на десктопе есть иконка) */
.nav-account {
  display: none;
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* Кнопка-иконка «Личный кабинет» */
.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(205, 170, 107, 0.30);
  background: rgba(15, 15, 18, 0.72);
  color: var(--gold-2);
  transition: background 160ms ease, border-color 160ms ease;
}

.account-link:hover {
  background: rgba(205, 170, 107, 0.16);
  border-color: rgba(205, 170, 107, 0.55);
}

.account-link svg {
  display: block;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(205, 170, 107, 0.30);
  background: rgba(15, 15, 18, 0.72);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.cert-link {
  display: block;
  cursor: pointer;
}

.lang-btn.is-active {
  background: rgba(205, 170, 107, 0.18);
  color: var(--ink);
  border: 1px solid rgba(205, 170, 107, 0.55);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: rgba(15, 15, 18, 0.92);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.btn-primary {
  border-color: rgba(205, 170, 107, 0.55);
  background: linear-gradient(135deg, #f4e4bf, #cdaa6b);
  color: #1a1410;
}

.btn-ghost {
  background: rgba(17, 17, 19, 0.55);
}

.btn-small {
  padding: 9px 12px;
  font-size: 13px;
}

/* Кнопка выхода из аккаунта */
.btn-danger {
  color: #f5b6b6;
  border-color: rgba(200, 90, 90, 0.45);
  background: rgba(120, 40, 40, 0.18);
}

.btn-danger:hover {
  background: rgba(120, 40, 40, 0.32);
  border-color: rgba(200, 90, 90, 0.75);
}

.wb-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(205, 170, 107, 0.35);
}

.wb-buy-row {
  margin: 16px 0 8px;
}

.mini-meta .wb-buy-btn {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

button,
input,
textarea,
select {
  color: var(--ink);
  font-family: inherit;
}

.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(205, 170, 107, 0.45) 20%,
    rgba(205, 170, 107, 0.45) 80%,
    transparent
  );
  margin: 0 auto;
  width: min(var(--container), calc(100% - 40px));
}

.section {
  padding: 72px 0;
}

.section-accent {
  background: linear-gradient(
    180deg,
    rgba(205, 170, 107, 0.16),
    rgba(11, 11, 12, 0)
  );
}

.section-soft {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(11, 11, 12, 0)
  );
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.3px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 34px);
}

h3 {
  font-size: 18px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.body-text {
  margin: 0;
  color: #bfb6a6;
  max-width: 62ch;
}

/* Hero */
.hero {
  padding: 84px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(205, 170, 107, 0.30);
  background: rgba(17, 17, 19, 0.62);
  color: rgba(246, 241, 230, 0.90);
  margin: 0 0 14px;
  width: fit-content;
}

.lead {
  margin: 14px 0 0;
  color: rgba(246, 241, 230, 0.86);
  max-width: 62ch;
}

.hero-kicker {
  margin: 10px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, 0.72);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.highlight {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(17, 17, 19, 0.72);
  border: 1px solid rgba(205, 170, 107, 0.18);
}

.highlight-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
}

.highlight-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Banners */
.hero-visual {
  display: grid;
  gap: 14px;
}

.banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 19, 0.68);
  border: 1px solid rgba(205, 170, 107, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.banner-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.68);
  border: 1px solid rgba(205, 170, 107, 0.28);
  font-weight: 700;
  font-size: 12px;
}

.banner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 16px;
}

.banner-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.banner-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.banner-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-card {
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 19, 0.68);
  border: 1px solid rgba(205, 170, 107, 0.18);
  overflow: hidden;
}

.mini-img-link {
  display: block;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.mini-img-link:hover {
  opacity: 0.92;
}

.mini-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.mini-meta {
  padding: 12px 12px 14px;
}

.mini-title {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
}

.mini-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Cards / news */
.cards-grid {
  display: grid;
  gap: 14px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 19, 0.72);
  border: 1px solid rgba(205, 170, 107, 0.18);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48);
  border-color: rgba(205, 170, 107, 0.34);
}

.card-kicker {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.card-text {
  margin: 10px 0 14px;
  color: var(--muted);
}

.link {
  display: inline-flex;
  font-weight: 700;
  color: var(--gold-2);
  border-bottom: 1px solid rgba(205, 170, 107, 0.55);
  padding-bottom: 2px;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cert-list {
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.cert-title-link {
  display: block;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 170, 107, 0.22);
  background: rgba(17, 17, 19, 0.75);
  box-shadow: var(--shadow);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cert-title-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.55);
  border-color: rgba(205, 170, 107, 0.45);
  color: var(--gold);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cert-card {
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 170, 107, 0.22);
  background: rgba(17, 17, 19, 0.75);
  box-shadow: var(--shadow);
  padding: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.55);
  border-color: rgba(205, 170, 107, 0.45);
}

.cert-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgba(205, 170, 107, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-width: min(960px, 92vw);
  width: 100%;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(205, 170, 107, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
}

.lightbox-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  transition: opacity 160ms ease;
}

.lightbox-content img.is-loading {
  opacity: 0.35;
}

.lightbox-content img.is-ready {
  opacity: 1;
}

.lightbox-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.lightbox-caption:empty {
  display: none;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(205, 170, 107, 0.35);
  background: rgba(15, 15, 18, 0.92);
  color: var(--ink);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(205, 170, 107, 0.35);
  background: rgba(15, 15, 18, 0.92);
  color: var(--ink);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.product-card {
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 19, 0.74);
  border: 1px solid rgba(205, 170, 107, 0.18);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.40);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.product-card-soft {
  box-shadow: 0 14px 26px rgba(19, 35, 35, 0.06);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.55);
  border-color: rgba(205, 170, 107, 0.38);
}

.product-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.product-title {
  margin: 0;
  font-size: 18px;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 768px) {
  .news-list {
    grid-template-columns: 1fr;
  }
}

.blog-article .article-full {
  display: none;
  margin-top: 10px;
}

.blog-article.is-expanded .article-full {
  display: block;
}

.blog-article h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 24px);
}

.blog-article .article-toggle {
  margin-top: 10px;
  background: none;
  border: none;
  padding: 0 0 2px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-serif);
  border-bottom: 1px solid rgba(205, 170, 107, 0.55);
}

.blog-article .article-toggle:hover {
  color: var(--gold-2);
}

.testimonial-open {
  margin-top: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 20px;
  justify-content: center;
  max-width: 660px;
  margin: 0 auto;
}

.reels-video-card-sm {
  max-height: 440px;
  width: 100%;
  margin: 0 auto;
}

.reels-video-card-sm video {
  background: rgba(17, 17, 19, 0.92);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-gallery-hero {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.product-gallery-hero .frame {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery-hero:hover .frame {
  transform: translateY(-2px);
}

.product-gallery-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(205, 170, 107, 0.18);
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-gallery-thumb:hover {
  border-color: rgba(205, 170, 107, 0.45);
  transform: translateY(-1px);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-gallery-hero img {
  border-radius: 0;
  border: none;
  aspect-ratio: auto;
}

.reels-video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 10px);
  background: rgba(17, 17, 19, 0.78);
}

.reels-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.reels-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--gold);
  background: rgba(7, 7, 8, 0.25);
  transition: background 160ms ease;
}

.reels-video-card:hover .reels-play {
  background: rgba(7, 7, 8, 0.4);
}

.reels-video-link {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--gold);
  background: linear-gradient(180deg, rgba(205, 170, 107, 0.12), rgba(17, 17, 19, 0.92));
}

.reels-link-label {
  padding: 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  max-width: 32ch;
}

.price {
  display: none;
}

.product-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(191, 227, 218, 0.20);
  border: 1px solid rgba(191, 227, 218, 0.35);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.about-aside {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 170, 107, 0.18);
  background: rgba(17, 17, 19, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Founder */
.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: center;
}

.portrait {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 170, 107, 0.18);
  box-shadow: var(--shadow);
}

.quote {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 170, 107, 0.22);
  background: rgba(17, 17, 19, 0.72);
}

.quote-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
}

.quote-author {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.philosophy h3 {
  margin-top: 18px;
}

.checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #bfb6a6;
}

.checklist li {
  margin: 6px 0;
  color: var(--muted);
}

.founder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: rgba(17, 17, 19, 0.55);
  flex-shrink: 0;
}

/* Premium media frames + placeholders (images, diplomas, video/reels) */
.frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 170, 107, 0.28);
  background: linear-gradient(180deg, rgba(205, 170, 107, 0.08), rgba(17, 17, 19, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-inner {
  padding: 12px;
}

.media {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgba(205, 170, 107, 0.14);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reels-placeholder {
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  padding: 18px;
  cursor: pointer;
  border: none;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: center;
  background:
    radial-gradient(500px 220px at 30% 20%, rgba(205, 170, 107, 0.18), transparent 60%),
    rgba(17, 17, 19, 0.78);
  transition: border-color 160ms ease, transform 160ms ease;
}

.reels-placeholder:hover {
  transform: translateY(-2px);
  outline: 1px solid rgba(205, 170, 107, 0.35);
}

.reels-placeholder .reels-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}

.reels-placeholder .reels-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.video-lightbox.is-open {
  display: flex;
}

.video-lightbox-content {
  max-width: min(960px, 92vw);
  width: 100%;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(205, 170, 107, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
}

.video-lightbox-content video {
  width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
}

/* Simple form styling */
.form {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 13px;
  color: rgba(246, 241, 230, 0.92);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(205, 170, 107, 0.22);
  background: rgba(17, 17, 19, 0.72);
  color: var(--ink);
  padding: 12px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23cdaa6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
/* Список вариантов рисует система — задаём тёмный текст на светлом фоне, иначе не видно. */
select option {
  color: #1a1a1a;
  background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(205, 170, 107, 0.55);
  box-shadow: 0 0 0 4px rgba(205, 170, 107, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-text a {
  color: var(--gold);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.form-status-success {
  color: var(--ink);
  background: rgba(205, 170, 107, 0.12);
  border: 1px solid rgba(205, 170, 107, 0.35);
}

.form-status-error {
  color: #f5d0d0;
  background: rgba(120, 40, 40, 0.25);
  border: 1px solid rgba(200, 90, 90, 0.35);
}

/* «Забыли пароль?» — раскрывающийся блок на странице входа */
.reset-block {
  max-width: 720px;
  margin: 32px 0 10px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reset-block > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: var(--gold-2);
}

.reset-block > summary::-webkit-details-marker {
  display: none;
}

.reset-block > summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--gold);
  font-weight: 700;
}

.reset-block[open] > summary::before {
  content: "–";
}

.reset-block .form {
  margin-top: 14px;
}

.reset-block + .muted {
  margin-top: 18px;
}

/* Личный кабинет — карточка с данными */
.profile-card {
  max-width: 720px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 170, 107, 0.18);
  background: rgba(17, 17, 19, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.profile-list {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
}

.profile-row {
  display: grid;
  gap: 4px;
}

.profile-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-value {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.profile-logout {
  margin-top: 32px;
}

/* Реквизиты ИП внизу страницы «Контакты» */
.legal-requisites {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 720px;
  font-size: 12px;
  line-height: 1.7;
}

.legal-requisites p {
  margin: 0 0 10px;
}

.legal-requisites a {
  color: inherit;
  text-decoration: none;
}

.legal-requisites a:hover {
  color: var(--gold-2);
}

/* Галочка «Запомнить меня» на входе */
.remember-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.remember-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Баннер согласия на cookie */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 300;
  width: calc(100% - 32px);
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 15, 18, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.cookie-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-text a {
  color: var(--gold-2);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-accept {
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: left;
  }
}

/* ---------- Админка ---------- */
.nav-admin {
  color: var(--gold-2);
  font-weight: 700;
}

/* Таблица прокручивается по горизонтали на узких экранах */
.admin-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-table tbody tr:hover {
  background: rgba(205, 170, 107, 0.06);
}

/* Ячейке нельзя задавать display:flex — она перестанет быть ячейкой
   таблицы и сломает выравнивание строк. Выстраиваем в ряд содержимое. */
.admin-actions {
  white-space: nowrap;
}

.admin-actions .btn,
.admin-actions form {
  display: inline-flex;
  vertical-align: middle;
  margin: 2px 6px 2px 0;
}

/* ---------- Цена и наличие в каталоге ---------- */
.product-price {
  margin: 10px 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-2);
}

.product-stock {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.product-stock.in-stock {
  color: #9fd6a6;
}

.product-stock.out-stock {
  color: #f5b6b6;
}

/* Блок покупки: «В корзину» + «Подробнее», ниже — логотипы маркетплейсов */
.buy-block {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  max-width: 460px;
}

.buy-primary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* «В корзину» (в форме) и «Подробнее» — равные колонки в один ряд */
.buy-primary > form,
.buy-primary > .btn {
  flex: 1 1 150px;
}

.buy-primary form {
  margin: 0;
}

.buy-primary form > .btn {
  width: 100%;
}

.buy-market {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.buy-market-label {
  font-size: 13px;
  color: var(--muted);
}

.market-tiles {
  display: inline-flex;
  gap: 12px;
}

.market-tile {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.market-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

.market-tile svg,
.market-tile .market-logo {
  display: block;
  width: 46px;
  height: 46px;
}

/* Загруженный логотип: скругляем углы и обрезаем аккуратной плиткой */
.market-logo {
  object-fit: cover;
  border-radius: 12px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- Счётчик на иконке корзины ---------- */
.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4e4bf, #cdaa6b);
  color: #1a1410;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

/* ---------- Страница корзины ---------- */
.cart-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  max-width: 860px;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 170, 107, 0.18);
  background: rgba(17, 17, 19, 0.72);
}

.cart-item-media img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.cart-item-price {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
}

.cart-qty-input {
  width: 74px;
}

/* Кол-во: −  N  + в золотых кружках */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.qty-stepper form {
  margin: 0;
  display: inline-flex;
}

.qty-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(205, 170, 107, 0.55);
  background: rgba(15, 15, 18, 0.72);
  color: var(--gold-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.qty-btn:hover:not([disabled]) {
  background: rgba(205, 170, 107, 0.16);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.qty-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.cart-item-sum {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-2);
  white-space: nowrap;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.cart-total strong {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold-2);
}

@media (max-width: 680px) {
  .cart-item {
    grid-template-columns: 68px 1fr;
    gap: 14px;
  }
  .cart-item-media img {
    width: 68px;
    height: 68px;
  }
  .cart-item-sum {
    grid-column: 2;
  }
  .cart-item-controls {
    gap: 8px;
  }
  .qty-stepper {
    gap: 8px;
  }
  .qty-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .buy-market {
    gap: 10px;
  }
  .market-tile svg {
    width: 42px;
    height: 42px;
  }
}

/* ---------- Оформление заказа ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.checkout-form {
  max-width: none;
  margin: 0;
}

.checkout-legend {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold-2);
  margin: 8px 0 4px;
}
.checkout-legend:first-child {
  margin-top: 0;
}

.delivery-options {
  display: grid;
  gap: 12px;
  margin: 2px 0 8px;
}

.delivery-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.014);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.delivery-option:hover {
  border-color: rgba(205, 170, 107, 0.45);
}
.delivery-option input[type="radio"] {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  flex: none;
  cursor: pointer;
}
.delivery-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(205, 170, 107, 0.08);
}
.delivery-option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.delivery-option-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--ink);
}
.delivery-option-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* Итоговая карточка заказа */
.checkout-summary {
  position: sticky;
  top: 96px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(205, 170, 107, 0.08), rgba(20, 20, 24, 0.5));
  box-shadow: var(--shadow);
}
.checkout-summary .checkout-legend {
  margin-top: 0;
}

.summary-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.summary-name {
  min-width: 0;
}
.summary-sum {
  white-space: nowrap;
  font-weight: 600;
}
.summary-delivery {
  border-bottom: none;
}
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}
.summary-total strong {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--gold-2);
}
.summary-note {
  font-size: 13px;
  margin-top: 12px;
}

/* Страница заказа */
.order-card {
  max-width: 640px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 8px;
}
.order-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.order-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(191, 149, 63, 0.12);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 600;
}
.order-badge-pay {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink, #333);
}
.order-details {
  margin: 14px 0 0;
}

/* «Мои заказы» в кабинете */
.orders-list {
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease;
}
.order-row:hover {
  border-color: var(--gold-2);
}
.order-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-row-main .muted {
  font-size: 12px;
}
.order-row-side {
  display: flex;
  align-items: center;
  gap: 14px;
}
.order-row-side strong {
  font-family: var(--font-serif);
  color: var(--gold-2);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .checkout-summary {
    position: static;
  }
}

.policy-content {
  max-width: 760px;
}

.policy-body {
  display: grid;
  gap: 14px;
}

.policy-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 24px);
  margin-top: 10px;
}

.policy-body p,
.policy-body ul {
  margin: 0;
  color: rgba(246, 241, 230, 0.88);
  line-height: 1.55;
}

.policy-body ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}

.policy-body a {
  color: var(--gold);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.footer-tagline {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.footer-links a:hover {
  background: rgba(205, 170, 107, 0.16);
  border-color: rgba(205, 170, 107, 0.42);
}

/* Responsive */
@media (max-width: 980px) {
  /* Шапка в одну строку: бренд — кнопки — «бургер» */
  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    min-height: 8vh;
    padding: 6px 0;
  }
  .brand {
    order: 1;
    min-width: 0;
  }
  .header-cta {
    order: 2;
    justify-content: flex-end;
    align-self: center;
    gap: 10px;
  }
  .nav-toggle {
    order: 3;
    display: inline-flex;
  }
  /* На мобильном вместо иконки кабинета — пункт «Личный кабинет» в меню.
     Корзина при этом остаётся в шапке: до неё нужен быстрый доступ. */
  .account-link {
    display: none;
  }
  .cart-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }
  .nav-account {
    display: block;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    width: 100%;
    color: var(--gold-2);
    font-weight: 700;
  }
  .lang-switch {
    padding: 4px;
    gap: 6px;
  }
  .lang-btn {
    font-size: 10px;
    padding: 4px 8px;
  }
  /* Меню раскрывается во всю ширину под шапкой */
  .nav {
    order: 4;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0 4px;
  }
  body.nav-open .nav {
    display: flex;
  }
  .hero-grid,
  .about-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .cards-2 {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .videos-grid {
    grid-template-columns: 1fr;
    max-width: min(260px, 72vw);
    gap: 16px;
  }
  .reels-video-card-sm {
    max-height: 360px;
  }
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .banner-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Временно скрыт раздел «Контакты» — удалите правило ниже, чтобы вернуть */

