:root {
  /* Colors — fixed palette, see design.md */
  --navy: #1b2a3e;
  --card-bg: #f5f0f8;
  --photo-bg: #ebebeb;
  --footer-bg: #111111;
  --white: #ffffff;
  --black: #000000;
  --gray: #7a7a7a;
  --wine: #4e1620;

  /* Fonts */
  --font-heading: 'Nunito', Arial, sans-serif;
  --font-body: 'Nunito Sans', Arial, sans-serif;

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Spacing */
  --container-max: 1200px;
  --gutter: 24px;
  --margin-desktop: 60px;
  --margin-mobile: 20px;
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;
  --section-padding: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
}

/* TYPOGRAPHY */
.t-display {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -0.02em;
  margin: 0;
}

.t-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  margin: 0;
}

.t-h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  margin: 0;
}

.t-h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  margin: 0;
}

.t-menu {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
}

.t-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.t-logo {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
}

.t-body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  margin: 0;
}

.t-body-md {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.t-gray { color: var(--gray); }

/* Secondary text sitting directly on a dark (navy/footer) section —
   use instead of .t-gray there, per the contrast rule in design.md. */
.t-dim { color: rgba(255,255,255,.7); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .2s, background .2s, color .2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--wine);
  color: var(--white);
}

.btn--primary:hover { opacity: .9; }

.btn--outline {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}

.btn--outline:hover { background: var(--card-bg); }

.btn--on-dark {
  background: var(--wine);
  color: var(--white);
}

.btn--on-dark:hover { background: var(--card-bg); }

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

/* SECTION */
.section {
  padding: var(--section-padding) var(--margin-desktop);
}

.section__head {
  max-width: 640px;
  margin: 0 0 var(--stack-lg);
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Every page shares the same dark navy canvas as the homepage — sections
   never switch to a light full-bleed background. .bg-card/.bg-white stay
   defined for one-off light utility needs, but content sections should not
   use them anymore; use .card/.card--card-bg to float a light surface on
   top of the navy background instead. */
.bg-navy { background: var(--navy); color: var(--white); }
.bg-card { background: var(--card-bg); color: var(--black); }
.bg-white { background: var(--white); color: var(--black); }

/* Hairline separator between stacked sections on the same navy background —
   same treatment as the divider between the homepage slider and social rows.
   Opt-in per section (not automatic) so the homepage — which only ever uses
   this once, between the slider and social rows — isn't retroactively
   changed; apply it explicitly at the top of a section that needs a seam
   from the block above it. */
.divider-top {
  position: relative;
}

.divider-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: rgba(255,255,255,.08);
}

/* CARDS */
.card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .25s ease;
}

.card--card-bg { background: var(--card-bg); }

.card:hover { box-shadow: 0 8px 24px rgba(27, 42, 62, .08); }

.card__title { color: var(--black); margin: 0 0 8px; }
.card__meta { color: var(--gray); margin: 0 0 12px; }
.card__text { color: var(--black); margin: 0; }

/* CHIPS / TAGS */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.chip.is-active,
.chip:hover {
  background: var(--navy);
  color: var(--white);
}

/* IMAGE PLACEHOLDERS */
.ph {
  background: var(--photo-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  min-height: 200px;
}

.ph--soft {
  background: linear-gradient(135deg, var(--card-bg), var(--photo-bg));
}

.ph--tall { min-height: 340px; }
.ph--round { border-radius: var(--radius-full); min-height: 0; }

/* INPUT FIELDS */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--stack-md); }

.field__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--photo-bg);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  resize: none;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

/* HEADER
   Same two-layer pattern as every other section (.page-hero, .section, .footer):
   outer element carries the background + horizontal padding, inner wrapper caps
   at --container-max and centers. Keeps the nav aligned with page content edges
   at any viewport width instead of stretching full-bleed. */
.header {
  padding: 20px var(--margin-desktop);
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  /* Baseline, not center: the logo is a two-line lockup (title + tagline),
     so centering the whole block would sit the single-line nav text off
     the title's baseline. Baseline-aligns nav text to the logo title. */
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  opacity: .8;
  transition: opacity .2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.header__nav a:hover { opacity: 1; }

.header__nav a.is-active {
  opacity: 1;
  border-bottom-color: var(--white);
}

.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.header__logo-title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: var(--white);
}

.header__logo-tagline {
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  align-self: center;
}

.header__cart {
  position: relative;
  display: flex;
  color: var(--white);
  opacity: .8;
  transition: opacity .2s;
}

.header__cart:hover,
.header__cart.is-active { opacity: 1; }

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

.header__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.header__cart-count.is-hidden { display: none; }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-self: center;
}

.header__burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 0 24px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.mobile-menu.open {
  max-height: 320px;
  padding: 10px 24px 20px;
}

.mobile-menu a {
  padding: 10px 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.mobile-menu a.is-active { color: var(--white); opacity: 1; }

/* HERO (home page) */
.hero {
  background: var(--navy);
  padding: 60px 60px 90px;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.hero__photo {
  flex: 1 1 444px;
  max-width: 444px;
  background: var(--photo-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
}

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

.hero__card {
  flex: 1 1 480px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 6px;
}

.hero__role {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray);
  margin: 0 0 18px;
}

.hero__divider {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--black);
  margin-bottom: 20px;
}

.hero__text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--black);
  margin: 0;
}

/* PAGE HERO (internal pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-padding) var(--margin-desktop);
}

.page-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  gap: var(--gutter);
  align-items: center;
  flex-wrap: wrap;
}

.page-hero__text { flex: 1 1 420px; }
.page-hero__media { flex: 1 1 420px; }

.page-hero__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  min-height: 340px;
}

.page-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__title { margin: 0 0 var(--stack-md); }

.page-hero__lead {
  color: rgba(255,255,255,.8);
  margin: 0 0 var(--stack-lg);
  max-width: 560px;
}

.page-hero__actions { display: flex; gap: var(--stack-md); flex-wrap: wrap; }

/* PAGE INTRO (page title block on inner pages, e.g. Гайды) */
.page-intro {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-padding) var(--margin-desktop);
}

.page-intro__inner { max-width: var(--container-max); margin: 0 auto; }

.page-intro__lead {
  color: rgba(255,255,255,.7);
  max-width: 640px;
  margin-top: var(--stack-sm);
}

/* SLIDER */
.slider-section {
  background: var(--navy);
  padding: 0 60px 60px;
}

.slider-section__title {
  color: var(--white);
  text-align: center;
  margin: 0 0 var(--stack-lg);
}

.slider {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

/* Clips the sliding track and holds the rounded corners — kept separate
   from .slider itself so the prev/next arrows (positioned outside that
   box) aren't clipped along with it. */
.slider__viewport {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #4a3f6d, #2b2547);
}

.slider__track {
  display: flex;
  transition: transform .4s ease;
  touch-action: pan-y;
}

.slider__slide {
  min-width: 100%;
  aspect-ratio: 1000 / 667;
}

.slider__slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.slider__slide picture { display: contents; }

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.slider__arrow--prev { left: -60px; }
.slider__arrow--next { right: -60px; }

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  padding: 0;
}

.slider__dots button.active {
  background: var(--white);
}

/* Compact variant for a slider embedded inside a small container (e.g. a
   guide card) rather than filling a whole navy section: fills the height
   of its flex parent instead of a fixed landscape aspect-ratio, and moves
   arrows/dots inside the box — there's no surrounding padding for the
   default -60px arrow position to sit in, and the card's own
   overflow:hidden would clip them there anyway. */
.slider--fill,
.slider--fill .slider__viewport,
.slider--fill .slider__track,
.slider--fill .slider__slide {
  height: 100%;
}

.slider--fill .slider__slide { aspect-ratio: auto; }
.slider--fill .slider__arrow--prev { left: 10px; }
.slider--fill .slider__arrow--next { right: 10px; }

.slider--fill .slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  margin-top: 0;
}

.slider[data-lightbox] .slider__track { cursor: zoom-in; }

/* LIGHTBOX (click-to-zoom on a lightbox-enabled slider) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0,0,0,.85);
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* REVIEWS GALLERY (masonry of real Telegram review screenshots, reviews.html) */
.reviews-gallery {
  column-count: 3;
  column-gap: var(--stack-md);
}

.reviews-gallery__item {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--stack-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: box-shadow .25s ease;
}

.reviews-gallery__item:hover { box-shadow: 0 12px 32px rgba(0,0,0,.4); }

.reviews-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .reviews-gallery { column-count: 2; }
}

@media (max-width: 600px) {
  .reviews-gallery { column-count: 1; }
}

/* SOCIAL */
.social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 50px 20px;
  background: var(--navy);
}

.social__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform .2s;
}

.social__icon svg { width: 22px; height: 22px; }
.social__icon:hover { transform: scale(1.08); }

.social__icon--tg { background: #2aabee; }
.social__icon--ig { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social__icon--yt { background: #ff0000; }

/* GRIDS */
.grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--span-2 { grid-column: span 2; }

/* CHIP ROW */
.chip-row {
  display: flex;
  gap: var(--stack-sm);
  flex-wrap: wrap;
}

/* CONTACT LINKS (contacts page) */
/* Columns sized to their content and centered as one block, instead of
   .grid--2's equal-width columns — with content this much narrower than
   the columns, equal-width + left-aligned items reads as off-center under
   the centered heading above. */
.contact-grid {
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  column-gap: 64px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-link__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link__icon svg { width: 22px; height: 22px; }

.contact-link__value { color: var(--white); font-weight: 700; }

/* CART */
.cart-item {
  display: flex;
  align-items: center;
  gap: var(--gutter);
  padding: var(--stack-md) 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cart-item__ph {
  width: 72px;
  height: 72px;
  min-height: 0;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  font-size: 12px;
}

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

.cart-item__title { margin: 0 0 4px; }

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--photo-bg);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__qty-btn:hover { background: var(--card-bg); }

.cart-item__qty-value {
  min-width: 16px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
}

.cart-item__total {
  flex-shrink: 0;
  min-width: 90px;
  text-align: right;
}

.cart-item__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: rgba(255,255,255,.6);
  font-size: 16px;
  cursor: pointer;
}

.cart-item__remove:hover { color: var(--white); }

.cart-summary {
  position: sticky;
  top: 100px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--stack-md);
}

.cart-summary__note {
  margin-top: var(--stack-md);
}

/* FOOTER */
.footer {
  background: var(--footer-bg);
  padding: 24px 60px;
  margin-top: auto;
}

.footer__row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

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

.footer__top {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
}

.footer__top:hover { color: var(--white); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero__inner { flex-direction: column; }
  .hero__photo { max-width: 100%; }
  .slider__arrow--prev { left: -40px; }
  .slider__arrow--next { right: -40px; }
  .grid { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--span-2 { grid-column: span 1; }
}

@media (max-width: 768px) {
  .header { padding: 16px var(--margin-mobile); }
  .header__nav--left, .header__nav--right { display: none; }
  .header__actions { gap: 16px; }
  .header__burger { display: flex; }
  .header__logo-title { font-size: 18px; line-height: 22px; }
  .header__logo-tagline { font-size: 10px; }
  .mobile-menu { display: flex; }

  .hero { padding: 30px 20px 50px; }
  .hero__card { padding: 24px; }

  .slider-section { padding: 0 44px 40px; }
  .slider__arrow { width: 32px; height: 32px; font-size: 18px; }
  .slider__arrow--prev { left: -36px; }
  .slider__arrow--next { right: -36px; }
  .slider__slide { aspect-ratio: 667 / 1000; }

  .section,
  .page-hero,
  .page-intro {
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
  }

  .t-display { font-size: 30px; line-height: 38px; }
  .t-h1 { font-size: 26px; line-height: 34px; }

  .footer { padding: 24px 20px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
