:root {
  /* New palette (flat fills only) */
  --color-bg: #ede9dd; /* site background */
  --color-text: #6c382b; /* text on bg */

  --color-primary: #841923; /* accent blocks (cards/buttons/highlights) */
  --color-primary-soft: #6b141c; /* hover / borders (no gradients) */
  --color-on-primary: #ede9dd; /* text on accent blocks */

  --color-header-footer: #150f19; /* header & footer */
  --color-header-text: #f4cba0; /* header logo/nav */
  --color-footer-text: rgba(244, 203, 160, 0.78); /* footer normal text */

  --color-light: #ede9dd;
  --color-accent: #f4cba0;
  --color-brown: #6c382b;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.18s ease-out;
  --transition-base: 0.25s ease-out;
}

/* ====== RESET / BASE ====== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ====== LAYOUT ====== */

.container {
  width: 100%;
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== HEADER ====== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: #ede9dd;
  border-bottom: 1px solid rgba(244, 203, 160, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(244, 203, 160, 0.08);
  box-shadow: 0 0 16px rgba(244, 203, 160, 0.2);
}

.logo__mark img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.logo__text {
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.self_blog {
  font-weight: 700;
}

.nav__list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__list a {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 6px 0;
  position: relative;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav__list a:hover::after {
  width: 100%;
}

/* Burger */

.nav__toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  cursor: pointer;
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ====== HERO ====== */

.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
  /* background: url(/img/logo_promo.png); */
}

/* ====== HERO: визуальный блок (логотип) ====== */

.hero__visual {
  position: relative;
  min-height: 260px;
}

.hero__visual-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-logo img {
  display: block;
  width: auto;
  height: 100%;
  max-height: 120px;
  object-fit: contain;
}

.hero__bg-orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.hero__bg-orbit--one {
  width: 380px;
  height: 380px;
  background: rgba(132, 25, 35, 0.28);
  top: -120px;
  left: -40px;
}

.hero__bg-orbit--two {
  width: 420px;
  height: 420px;
  background: rgba(244, 203, 160, 0.22);
  bottom: -120px;
  right: -60px;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

/* Hero text */

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(108, 56, 43, 0.82);
  margin-bottom: 10px;
}

.hero__title {
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero__title span {
  display: block;
  color: var(--color-primary);
}

.hero__subtitle {
  max-width: 32rem;
  color: rgba(108, 56, 43, 0.86);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

/* Buttons */

.btn {
  border-radius: var(--radius-pill);
  border: none;
  padding: 11px 22px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.6);
  background: var(--color-primary-soft);
}

.btn--ghost {
  border: 1px solid rgba(132, 25, 35, 0.55);
  background: transparent;
  color: var(--color-primary);
}

.btn--ghost:hover {
  background: rgba(132, 25, 35, 0.08);
}

/* Hero meta */

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__meta-item {
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--color-primary);
  border: 1px solid rgba(21, 15, 25, 0.22);
  color: var(--color-on-primary);
}

.hero__meta-number {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.hero__meta-label {
  font-size: 12px;
  color: rgba(237, 233, 221, 0.86);
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  border: 1px solid rgba(21, 15, 25, 0.22);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  color: var(--color-on-primary);
}

.hero-card--main {
  transform: perspective(800px) rotateY(-6deg) rotateX(4deg);
  transform-origin: center left;
  backdrop-filter: blur(22px);
}

.hero-card__label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 233, 221, 0.88);
  margin-bottom: 12px;
}

.hero-card__path {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-card__dot {
  position: relative;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  background: rgba(21, 15, 25, 0.24);
}

.hero-card__dot--cn::before,
.hero-card__dot--ru::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.hero-card__dot--cn::before {
  background: var(--color-on-primary);
}

.hero-card__dot--ru::before {
  background: var(--color-accent);
}

.hero-card__line {
  flex: 1;
  height: 1px;
  background: rgba(237, 233, 221, 0.65);
  position: relative;
  overflow: hidden;
}

.hero-card__line::after {
  content: "";
  position: absolute;
  left: -40%;
  width: 40%;
  top: -1px;
  bottom: -1px;
  background: rgba(244, 203, 160, 0.85);
  animation: shuttle 3.6s infinite;
}

@keyframes shuttle {
  0% {
    transform: translateX(0);
  }
  60% {
    transform: translateX(220%);
  }
  100% {
    transform: translateX(220%);
  }
}

.hero-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-card__pill {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: rgba(21, 15, 25, 0.24);
  color: rgba(237, 233, 221, 0.92);
}

.hero-card__pill--accent {
  background: rgba(244, 203, 160, 0.92);
  color: var(--color-header-footer);
}

/* Floating cards */

.hero-card--floating {
  position: absolute;
  width: 190px;
  background: var(--color-primary);
}

.hero-card--top {
  top: -12px;
  right: -12px;
  animation: float 6s ease-in-out infinite;
}

.hero-card--bottom {
  bottom: -10px;
  left: -12px;
  animation: float 7s ease-in-out infinite;
}

.hero-card--floating p {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
}

.hero-card--floating span {
  font-size: 11px;
  color: rgba(237, 233, 221, 0.78);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ====== SECTIONS ====== */

.section {
  padding: 72px 0;
}

.section--light {
  background: var(--color-bg);
}


.section__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section__header {
  max-width: 640px;
}

.section__header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(108, 56, 43, 0.78);
  margin: 0 0 8px;
}

.section__title {
  margin: 0 0 8px;
  font-size: 26px;
}

.section__subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(108, 56, 43, 0.78);
}

/* About grid */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-card {
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  background: var(--color-primary);
  border: 1px solid rgba(21, 15, 25, 0.18);
  color: var(--color-on-primary);
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.about-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(237, 233, 221, 0.88);
}

/* Services slider */

.services-slider {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-lg);
  /* background: var(--color-primary); */
  /* border: 1px solid rgba(21, 15, 25, 0.18); */
  padding: 18px 4px 20px;
  color: var(--color-on-primary);
}

.services-slider__track {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.services-slider__track::-webkit-scrollbar {
  height: 5px;
}

.services-slider__track::-webkit-scrollbar-track {
  background: rgba(21, 15, 25, 0.18);
}

.services-slider__track::-webkit-scrollbar-thumb {
  background: rgba(237, 233, 221, 0.7);
  border-radius: 999px;
}

.service-card {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  border-radius: 18px;
  background: var(--color-primary);
  border: 1px solid rgba(237, 233, 221, 0.32);
  padding: 16px 16px 14px;
  color: var(--color-on-primary);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.service-card p {
  font-size: 13px;
  color: rgba(237, 233, 221, 0.88);
  margin: 0 0 10px;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: rgba(237, 233, 221, 0.84);
}

.service-card li::before {
  content: "— ";
}

/* Slider buttons */

.services-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(21, 15, 25, 0.22);
  background: rgba(237, 233, 221, 0.85);
  color: var(--color-header-footer);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.slider-btn:hover {
  background: rgba(244, 203, 160, 0.38);
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.slider-btn--prev {
  left: -14px;
}

.slider-btn--next {
  right: -14px;
}

/* Store showcase */

.store-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 22px;
  align-items: stretch;
  justify-content: space-between;
}

.store-showcase__info {
  border-radius: var(--radius-md);
  padding: 18px;
  /*background: var(--color-primary);
  border: 1px solid rgba(21, 15, 25, 0.18);
  color: #6c382b;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-showcase__info .section__eyebrow {
  color: #6c382b;
}

.store-showcase__info .section__title {
  margin-bottom: 0;
  font-size: clamp(18px, 2.1vw, 24px);
}

.store-showcase__slider {
  position: relative;
  width: clamp(360px, 50vw, 700px);
  max-width: 100%;
  justify-self: start;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 15, 25, 0.16);
  background: var(--color-header-footer);
  box-shadow: var(--shadow-soft);
}

.store-showcase__track {
  display: flex;
  transform: translateX(-100%);
}

.store-showcase__slide {
  flex: 0 0 100%;
  margin: 0;
}

.store-showcase__slide img {
  display: block;
  width: 100%;
  height: clamp(240px, 34vw, 380px);
  object-fit: cover;
  background: #161016;
}

/* Timeline: ≥768px — слева табы, справа панель; <768px — аккордеон (без карточек — текст на фоне секции) */

.timeline {
  width: 100%;
}

.timeline__wide {
  display: none;
}

.timeline__accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

@media (min-width: 768px) {
  .timeline__wide {
    display: grid;
    grid-template-columns: minmax(200px, 38%) minmax(0, 1fr);
    gap: clamp(20px, 3.5vw, 36px);
    align-items: start;
  }

  .timeline__accordion {
    display: none !important;
  }

  .timeline__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .timeline__tab {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #6c382b;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: opacity 0.2s ease;
  }

  .timeline__tab-indicator {
    width: 3px;
    flex-shrink: 0;
    background: #6c382b;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .timeline__tab.is-active .timeline__tab-indicator,
  .timeline__tab:hover .timeline__tab-indicator {
    opacity: 1;
  }

  .timeline__tab-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0 6px 12px;
    flex: 1;
    min-width: 0;
  }

  .timeline__tab.is-active .timeline__label {
    font-weight: 700;
  }

  .timeline__step {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6c382b;
  }

  .timeline__label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #6c382b;
  }

  .timeline__detail {
    padding: 4px 0 4px 8px;
    min-height: 120px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #6c382b;
  }

  .timeline__panels {
    position: relative;
    min-height: 120px;
  }

  .timeline__panel {
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease,
      transform 0.35s ease;
  }

  .timeline__panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .timeline__panel p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #6c382b;
  }
}

@media (max-width: 767px) {
  .timeline__wide {
    display: none !important;
  }

  .timeline__accordion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .timeline__acc-item {
    width: 100%;
    border: none;
    background: transparent;
  }

  .timeline__acc-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 4px;
    border: none;
    background: transparent;
    color: #6c382b;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .timeline__acc-item.is-open .timeline__acc-trigger {
    color: #6c382b;
    font-weight: 700;
  }

  .timeline__acc-title {
    font-size: 15px;
    line-height: 1.3;
    flex: 1;
    color: #6c382b;
  }

  .timeline__step {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6c382b;
    flex-shrink: 0;
  }

  .timeline__acc-item.is-open .timeline__step {
    color: #6c382b;
  }

  .timeline__acc-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease;
  }

  .timeline__acc-item.is-open .timeline__acc-panel {
    max-height: 280px;
    opacity: 1;
  }

  .timeline__acc-panel p {
    margin: 0;
    padding: 0 4px 18px;
    font-size: 14px;
    line-height: 1.55;
    color: #6c382b;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__panel,
  .timeline__acc-panel {
    transition: none !important;
  }

  .blog-modal__backdrop,
  .blog-modal__panel {
    transition: none !important;
  }
}

/* Offices */

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.office-card {
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  background: var(--color-primary);
  border: 1px solid rgba(21, 15, 25, 0.18);
  color: var(--color-on-primary);
}

.office-card h3 {
  margin: 0 0 6px;
}

.office-card__tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(237, 233, 221, 0.16);
  margin-bottom: 8px;
}

.office-card p {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(237, 233, 221, 0.88);
}

.office-card__meta {
  font-size: 12px;
  color: rgba(244, 203, 160, 0.92);
}

/* Contacts */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
}

.contacts__list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  font-size: 14px;
}

.contacts__list li {
  margin-bottom: 8px;
}

.contacts__list span {
  display: inline-block;
  width: 140px;
  color: rgba(108, 56, 43, 0.78);
}

.contacts__list a {
  color: var(--color-primary);
}

/* Form */

.contacts__form-wrap {
  align-self: center;
}

.form {
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  border: 1px solid rgba(21, 15, 25, 0.18);
  padding: 20px 18px 16px;
  box-shadow: var(--shadow-soft);
  color: var(--color-on-primary);
}

.form__field {
  margin-bottom: 12px;
}

.form__field label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: rgba(237, 233, 221, 0.9);
}

.form__field input,
.form__field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(237, 233, 221, 0.42);
  background: rgba(237, 233, 221, 0.12);
  color: var(--color-on-primary);
  font: inherit;
  padding: 9px 10px;
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

/* Safari: скрыть кнопку автозаполнения контактов (имя/телефон) */
#name::-webkit-contacts-auto-fill-button,
#contact::-webkit-contacts-auto-fill-button {
  display: none !important;
  pointer-events: none;
  width: 0;
  height: 0;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(237, 233, 221, 0.72);
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: rgba(244, 203, 160, 0.85);
  box-shadow: 0 0 0 1px rgba(244, 203, 160, 0.45);
  background: rgba(237, 233, 221, 0.16);
}

.form__field input.is-invalid,
.form__field textarea.is-invalid {
  border-color: #ffb0b0;
  box-shadow: 0 0 0 1px rgba(255, 176, 176, 0.45);
}

.form__error {
  min-height: 16px;
  margin: 4px 2px 0;
  font-size: 12px;
  line-height: 1.35;
  color: #ffd0d0;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.form__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.form__hint {
  margin: 0;
  font-size: 11px;
  color: rgba(237, 233, 221, 0.82);
}

.form__hint a {
  color: rgba(244, 203, 160, 0.95);
}

/* Чекбокс согласия в форме */
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.privacy-consent input {
  margin-top: 2px;
}

/* Страница политики конфиденциальности (оформление как у бывшей модалки) */
.section--privacy {
  padding-top: 48px;
}

.section--privacy .container {
  display: flex;
  justify-content: center;
}

.privacy-page__card {
  position: relative;
  width: min(900px, calc(100% - 32px));
  border-radius: 18px;
  border: 1px solid rgba(244, 203, 160, 0.24);
  background: var(--color-header-footer);
  color: var(--color-light);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
  padding: clamp(18px, 3vw, 26px);
}

.privacy-page__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(244, 203, 160, 0.16);
  color: var(--color-light);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.privacy-page__back:hover {
  background: rgba(244, 203, 160, 0.28);
}

.privacy-page__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.1vw, 34px);
  font-weight: 700;
}

.privacy-page__content {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(237, 233, 221, 0.92);
}

.privacy-page__content h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-light);
}

.privacy-page__content p {
  margin: 0 0 12px;
}

.privacy-page__content ul {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.privacy-page__content li {
  margin-bottom: 4px;
}

.privacy-page__content strong {
  color: var(--color-accent);
}

/* Личный блог — по центру как политика, +20% к ширине/высоте; выезд слева */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
}

.blog-modal[hidden] {
  display: none;
}

.blog-modal:not([hidden]) {
  display: block;
}

.blog-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.blog-modal.is-visible .blog-modal__backdrop {
  opacity: 1;
}

.blog-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Privacy: width min(900px, calc(100% - 32px)), max-height min(80vh, 760px) → ×1.2 */
  width: min(1080px, calc((100vw - 32px) * 1.2), calc(100vw - 16px));
  max-height: min(96vh, 912px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(132, 25, 35, 0.18);
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: translate(calc(-50% - 100vw), -50%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.blog-modal.is-visible .blog-modal__panel {
  transform: translate(-50%, -50%);
}

.blog-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(132, 25, 35, 0.1);
  color: var(--color-primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.blog-modal__close:hover {
  background: rgba(132, 25, 35, 0.18);
}

.blog-modal__scroll {
  flex: 1;
  overflow: auto;
  padding: clamp(18px, 3vw, 26px);
  padding-top: 48px;
}

.blog-modal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 36%);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.blog-modal__text .blog-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  opacity: 0.82;
}

.blog-modal__title {
  margin: 0 0 14px;
  padding-right: 40px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--color-primary);
}

.blog-modal__subtitle {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
}

.blog-modal__subtitle:not(:first-of-type) {
  margin-top: 18px;
}

.blog-modal__text p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-primary);
}

.blog-modal__text > p:last-of-type {
  margin-bottom: 0;
}

.blog-modal__list {
  margin: -6px 0 14px;
  padding-left: 1.35rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-primary);
}

.blog-modal__collage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Рядом только на десктопе — на мобильных показываются встроенные копии */
.blog-modal__collage--aside {
  display: flex;
}

.blog-modal__figure--embed {
  display: none;
}

/* Единый кадр как у blog1 (1030×909); 2 и 3 заполняют его через cover */
.blog-modal__figure {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(132, 25, 35, 0.14);
  aspect-ratio: 1030 / 909;
  width: 100%;
}

.blog-modal__figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.modal-open {
  overflow: hidden;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(244, 203, 160, 0.18);
  padding: 18px 0 26px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo--small .logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.logo--small .logo__text {
  font-size: 12px;
}

.footer__copy {
  margin: 4px 0 0;
  font-size: 12px;
}

.footer__links {
  display: flex;
  gap: 14px;
  font-size: 13px;
}

/* ====== ANIMATIONS ON SCROLL ====== */

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(18px);
}

[data-animate="fade-left"].is-visible {
  transform: translateX(0);
}

/* ====== RESPONSIVE ====== */

@media (max-width: 960px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    order: -1;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .header__inner {
    padding: 10px 0;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    position: absolute;
    inset: 52px 16px auto;
    border-radius: 18px;
    background: var(--color-bg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
    padding: 10px 14px 12px;
    flex-direction: column;
    gap: 8px;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .nav__list.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav__list a {
    padding: 6px 2px;
  }

  .section {
    padding: 52px 0;
  }

  .section__header--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-btn {
    width: 28px;
    height: 28px;
  }

  .slider-btn--prev {
    left: -10px;
  }

  .slider-btn--next {
    right: -10px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 56px;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-card--floating {
    display: none;
  }

  .store-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .store-showcase__info {
    padding: 12px 14px;
    border-radius: 12px;
    align-items: center;
  }

  .store-showcase__info .section__title {
    font-size: 16px;
    line-height: 1.35;
  }

  .store-showcase__slider {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .blog-modal__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-modal__collage--aside {
    display: none !important;
  }

  .blog-modal__figure--embed {
    display: block;
    margin: 6px auto 14px;
  }

  .blog-modal__figure--embed.blog-modal__figure--after-text {
    margin-bottom: 0;
    margin-top: 16px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__meta-item {
    flex: 1 1 100%;
  }

  .service-card {
    flex-basis: 80vw;
  }

}

/* ========= Плавающая кнопка мессенджеров (FAB) ========= */

.messenger-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Пока открыта модалка политики — не перекрываем окно и не ловим клики */
body.modal-open .messenger-fab {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.messenger-fab__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  /* Скрыто по умолчанию; открытие через :hover / :focus-within / .is-open */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

/* Десктоп: меню по наведению или при фокусe внутри (клавиатура) */
@media (hover: hover) and (pointer: fine) {
  .messenger-fab:hover .messenger-fab__menu,
  .messenger-fab:focus-within .messenger-fab__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Мобильные / тач: открытие классом .is-open (см. script.js) */
.messenger-fab.is-open .messenger-fab__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Плавное появление пунктов снизу вверх с задержкой (десктоп и открытое меню) */
.messenger-fab__item {
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.messenger-fab:hover .messenger-fab__item,
.messenger-fab:focus-within .messenger-fab__item,
.messenger-fab.is-open .messenger-fab__item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.messenger-fab:hover .messenger-fab__item:nth-child(1),
.messenger-fab:focus-within .messenger-fab__item:nth-child(1),
.messenger-fab.is-open .messenger-fab__item:nth-child(1) {
  transition-delay: 0.04s;
}

.messenger-fab:hover .messenger-fab__item:nth-child(2),
.messenger-fab:focus-within .messenger-fab__item:nth-child(2),
.messenger-fab.is-open .messenger-fab__item:nth-child(2) {
  transition-delay: 0.1s;
}

.messenger-fab:hover .messenger-fab__item:nth-child(3),
.messenger-fab:focus-within .messenger-fab__item:nth-child(3),
.messenger-fab.is-open .messenger-fab__item:nth-child(3) {
  transition-delay: 0.16s;
}

.messenger-fab:hover .messenger-fab__item:nth-child(4),
.messenger-fab:focus-within .messenger-fab__item:nth-child(4),
.messenger-fab.is-open .messenger-fab__item:nth-child(4) {
  transition-delay: 0.22s;
}

.messenger-fab__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(234, 210, 172, 0.95);
  border: 1px solid #a83232;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #6f171b;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.messenger-fab__link:hover,
.messenger-fab__link:active {
  color: #8b1e23;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.messenger-fab__icon {
  width: 20px;
  height: 20px;
}

.messenger-fab__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #a83232;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.messenger-fab__trigger:hover,
.messenger-fab__trigger:focus-visible {
  background: #8b1e23;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  outline: none;
}

.messenger-fab__trigger:active {
  transform: scale(0.97);
}

.messenger-fab__trigger-icon {
  display: flex;
  width: 26px;
  height: 26px;
}

.messenger-fab__trigger-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .messenger-fab {
    right: 15px;
    bottom: 15px;
  }

  .messenger-fab__trigger {
    width: 45px;
    height: 45px;
  }

  .messenger-fab__trigger-icon {
    width: 24px;
    height: 24px;
  }

  /* Минимальная зона касания 44×44 для пунктов меню */
  .messenger-fab__link {
    width: 44px;
    height: 44px;
  }

  .messenger-fab__icon {
    width: 22px;
    height: 22px;
  }
}