/* ── Reset & Base ────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --accent: #1d1d1f;
  --accent-hover: #000000;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --font-heading: 'Unbounded', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main {
  flex: 1;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ── Header ─────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

/* ── City Selector ────────────────────────────────────── */

.city-selector {
  position: relative;
}

.city-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.city-selector-btn:hover {
  background: var(--border);
}

.city-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 340px;
  z-index: 200;
  overflow: hidden;
  columns: 2;
  column-gap: 0;
  padding: 4px 0;
}

.city-dropdown.open {
  display: block;
}

.city-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
  break-inside: avoid;
}

.city-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.city-dropdown-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.city-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.city-selector-mobile {
  display: none;
}

/* ── Burger / Mobile Nav ───────────────────────────────── */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Home Stacking Cards ───────────────────────────────── */

.hstack-section {
  padding: 64px 0 140px;
  background: #000;
}

.hstack-dots {
  display: none;
}

.hstack-item {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: -60px;
  opacity: 0;
  margin-top: 40px;
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              margin-top 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hstack-item:last-child {
  margin-bottom: 0;
}

.hstack-item.visible {
  opacity: 1;
  margin-top: 0;
}

.hstack-card {
  background: var(--card-bg, #1d1d1f);
  color: var(--card-text, #fff);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-transform-origin: center top;
  transform-origin: center top;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hstack-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 6 / 3;
}

.hstack-img {
  overflow: hidden;
}

.hstack-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hstack-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 56px;
}

.hstack-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.hstack-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #fff;
}

.hstack-desc p {
  margin: 0 0 10px;
}

.hstack-desc p:last-child {
  margin-bottom: 0;
}

.hstack-utp--next {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .hstack-section {
    padding: 32px 0 48px;
    overflow: hidden;
  }

  .hstack-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hstack-track::-webkit-scrollbar {
    display: none;
  }

  .hstack-item {
    width: 85%;
    min-width: 85%;
    flex-shrink: 0;
    margin-bottom: 0;
    opacity: 1 !important;
    margin-top: 0 !important;
    scroll-snap-align: center;
  }

  .hstack-card {
    transform: none !important;
    opacity: 1 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .hstack-img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
  }

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

  .hstack-inner {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .hstack-text {
    padding: 28px 24px;
    flex: 1;
  }

  .hstack-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .hstack-desc {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .hstack-utp--next {
    margin-top: 14px;
  }

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

  .hstack-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
  }

  .hstack-dot.active {
    background: #fff;
  }
}

/* ── About Duo (services page) ────────────────────────── */

/* ── About Steps (full-width) ─────────────────────────── */

.about-steps {
  background: #000;
}

.about-steps__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 56px;
}

.about-steps__heading {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 48px;
  color: #fff;
  text-align: center;
}

.about-steps__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.about-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #000;
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 32px 28px;
}

.about-step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.about-step__body {
  flex: 1;
  min-width: 0;
}

.about-step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.01em;
}

.about-step__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ── Home FAQ Section ──────────────────────────────────── */

.home-faq-section {
  padding: 80px 10%;
  background: var(--bg-secondary);
}

.home-faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.home-faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.home-faq-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-faq-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
}

.home-faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.home-faq-answer {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .home-faq-section {
    padding: 48px 20px;
  }

  .home-faq-header {
    margin-bottom: 32px;
  }

  .home-faq-title {
    font-size: 1.75rem;
  }

  .home-faq-subtitle {
    font-size: 1rem;
  }

  .home-faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-faq-card {
    padding: 24px;
  }

  .home-faq-question {
    font-size: 1rem;
  }

  .home-faq-answer {
    font-size: 0.875rem;
  }
}

/* ── Counter Section ──────────────────────────────────── */

.counter-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-inner {
  text-align: center;
  padding: 40px 24px;
}

.counter-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: inherit;
}

.counter-caption {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin: 16px 0 0;
  opacity: 0.7;
  color: inherit;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .counter-inner {
    padding: 32px 20px;
  }

  .counter-caption {
    font-size: 1rem;
  }
}

/* ── Portfolio Slider ───────────────────────────────────── */

.portfolio-slider-section {
  overflow: hidden;
  background: #000;
  padding: 0 0 80px;
}

.portfolio-slider-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}

.portfolio-slider-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.portfolio-slider-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.portfolio-slider-track {
  display: flex;
  gap: 12px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.portfolio-slider-track.dragging {
  cursor: grabbing;
}

.portfolio-slide {
  flex: 0 0 auto;
  width: 420px;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.portfolio-slide:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .portfolio-slider-header {
    padding: 48px 20px 28px;
  }

  .portfolio-slider-title {
    font-size: 1.75rem;
  }

  .portfolio-slider-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .portfolio-slide {
    width: 260px;
    height: 340px;
  }

  .portfolio-slider-section {
    padding: 0 0 48px;
  }

  /* About Steps responsive */
  .about-steps__content {
    padding: 48px 24px;
  }

  .about-steps__heading {
    font-size: 1.6rem;
    margin-bottom: 28px;
  }

  .about-steps__list {
    grid-template-columns: 1fr;
  }

  .about-step {
    padding: 24px 20px;
  }
}

/* ── Scroll Hero ────────────────────────────────────────── */

.scroll-hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.scroll-hero__sticky {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.scroll-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.scroll-hero__loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  transition: opacity 0.5s ease;
}

.scroll-hero__loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hero__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hero-spin 0.8s linear infinite;
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}

.scroll-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.scroll-hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.scroll-hero__word {
  display: inline-block;
  min-width: 4ch;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-hero__word.changing {
  opacity: 0;
  transform: translateY(-16px);
}

.scroll-hero__rest {
  display: block;
  margin-top: 0.1em;
}


@media (max-width: 768px) {
  .scroll-hero {
    height: 80vh;
  }
  .scroll-hero__heading {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }
}

/* ── Cards Grid ─────────────────────────────────────────── */

.services-grid {
  padding: 48px 0 96px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Cards Slider ───────────────────────────────────────── */
.cards-slider {
  overflow-x: auto;
  overflow-y: clip;
  padding: 16px 0;
  margin: -16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cards-slider::-webkit-scrollbar {
  display: none;
}

.cards-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  -webkit-user-select: none;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0 24px;
}

.card {
  flex: 0 0 360px;
  width: 360px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  display: flex;
  flex-direction: column;
}

.cards-slider.dragging .card {
  pointer-events: none;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-body .card-description {
  flex: 1;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.card-price .price-value {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.card-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 980px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.card-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* ── Group Card Type Pills ─────────────────────────────── */

.card-type-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card-type-pill {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 980px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.card-type-pill:hover {
  border-color: rgba(0,0,0,0.25);
  color: var(--text-primary);
}

.card-type-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Group Modal Type Tabs ────────────────────────────── */

.group-type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.group-type-tab {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 980px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.group-type-tab:hover {
  border-color: rgba(0,0,0,0.25);
  color: var(--text-primary);
}

.group-type-tab.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* ── Product Cards ─────────────────────────────────────── */

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-card-text {
  padding: 32px 24px 16px;
  text-align: center;
}

.product-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.product-card-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.product-card.dark-bg .product-card-title {
  color: #fff;
}

.product-card.dark-bg .product-card-desc {
  color: rgba(255, 255, 255, 0.7);
}

.product-card.dark-bg .product-card-btn {
  background: #fff;
  color: var(--text-primary);
}

.product-card.dark-bg .product-card-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-action {
  padding: 16px 24px 32px;
  text-align: center;
}

.product-card-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 980px;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.product-card-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.product-card-btn-detail {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong, rgba(0,0,0,0.15));
  margin-top: 8px;
}

.product-card-btn-detail:hover {
  background: var(--text-primary, #1d1d1f);
  color: #fff;
  border-color: var(--text-primary, #1d1d1f);
}

.product-card.dark-bg .product-card-btn-detail {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
  background: transparent;
}

.product-card.dark-bg .product-card-btn-detail:hover {
  background: #fff;
  color: var(--text-primary, #1d1d1f);
  border-color: #fff;
}

.product-buy-wrap {
  position: relative;
}

.product-buy-toggle {
  cursor: pointer;
  border: none;
}

.product-buy-links {
  display: none;
  flex-direction: row;
  gap: 6px;
  animation: buyLinksIn 0.25s ease;
}

@keyframes buyLinksIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-buy-wrap.open .product-buy-toggle {
  display: none;
}

.product-buy-wrap.open .product-buy-links {
  display: flex;
}

.product-buy-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.product-buy-link:hover {
  background: rgba(0, 0, 0, 0.12);
}

.product-card.dark-bg .product-buy-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.product-card.dark-bg .product-buy-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 980px) {
  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Home Products Slider ─────────────────────────────────── */

.home-products-section {
  padding: 80px 0 40px;
}

.home-products-section .product-card {
  flex: 0 0 360px;
  width: 360px;
}

@media (max-width: 980px) {
  .home-products-section .product-card {
    flex: 0 0 320px;
    width: 320px;
  }
}

@media (max-width: 600px) {
  .home-products-section {
    padding: 60px 0 24px;
  }

  .home-products-section .product-card {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
  }
}

/* ── Product Detail Page ──────────────────────────────────── */

.pd-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pd-hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pd-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
}

.pd-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.pd-hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 32px;
}

.pd-hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pd-hero-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.pd-hero-btn {
  background: rgba(255,255,255,0.2);
  color: inherit;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pd-hero-btn:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.7);
  transform: scale(1.03);
}

.pd-section {
  padding: 80px 0;
}

.pd-cards-slider {
  overflow-x: auto;
  overflow-y: clip;
  padding: 16px 0;
  margin: -16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.pd-cards-slider::-webkit-scrollbar {
  display: none;
}

.pd-cards-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  -webkit-user-select: none;
}

.pd-cards-track {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0 24px;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.pd-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.pd-card {
  flex: 0 0 360px;
  width: 360px;
  border-radius: var(--radius);
  padding: 40px 32px;
  aspect-ratio: 4 / 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.pd-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pd-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.pd-card-desc {
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.8;
}

.pd-step-card {
  position: relative;
}

.pd-step-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pd-step-num {
  font-weight: 800;
  opacity: 0.5;
  flex-shrink: 0;
}

.pd-desc-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.pd-desc-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pd-desc-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 80px 20px;
}

.pd-desc-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.pd-desc-text {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.pd-desc-text p {
  margin-bottom: 16px;
}

.pd-desc-text p:last-child {
  margin-bottom: 0;
}

.pd-bottom-text {
  background: var(--bg-secondary, #f5f5f7);
}

.pd-rich-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pd-rich-text h2, .pd-rich-text h3 {
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.pd-rich-text p {
  margin-bottom: 16px;
}

.pd-rich-text ul, .pd-rich-text ol {
  margin: 16px 0;
  padding-left: 24px;
}

@media (max-width: 768px) {
  .pd-hero {
    min-height: 60vh;
  }

  .pd-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .pd-hero-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .pd-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .pd-cards-slider {
    scroll-snap-type: x mandatory;
  }

  .pd-cards-track {
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 0;
    max-width: 100%;
  }

  .pd-cards-track::after {
    content: '';
    flex: 0 0 16px;
  }

  .pd-card {
    flex: 0 0 calc(100vw - 32px);
    width: calc(100vw - 32px);
    aspect-ratio: 4 / 6;
    min-height: auto;
    padding: 32px 24px;
    scroll-snap-align: start;
  }

  .pd-section {
    padding: 48px 0;
  }

  .pd-desc-content {
    padding: 48px 20px;
  }
}

/* ── Franchise Page ────────────────────────────────────── */

.fr-intro {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.fr-intro-content {
  text-align: center;
  padding: 80px 20px;
}

.fr-intro-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.fr-intro-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.fr-geo-list {
  text-align: left;
  margin-top: 48px;
}

.fr-geo-country {
  margin-bottom: 32px;
}

.fr-geo-country:last-child {
  margin-bottom: 0;
}

.fr-geo-country-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 8px;
}

.fr-geo-cities {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 32px;
}

.fr-geo-cities li {
  font-size: 0.9375rem;
  line-height: 1.8;
  opacity: 0.75;
}

.fr-geo-singles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.fr-geo-single {
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.8;
}

.fr-geo-single-country {
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

.fr-geo-single-city {
  font-size: 0.9375rem;
  opacity: 0.6;
}

.fr-desc-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.fr-desc-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.fr-desc-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.fr-desc-text {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.fr-desc-text p {
  margin-bottom: 16px;
}

.fr-desc-text p:last-child {
  margin-bottom: 0;
}

.fr-desc-usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  text-align: left;
}

.fr-desc-usp-item {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}

.fr-desc-usp-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.fr-desc-usp-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.fr-desc-usp-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ── УТП список ── */

.fr-usp-section {
  background: #ffffff;
}

.fr-usp-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  opacity: 0.65;
  margin-top: -28px;
  margin-bottom: 40px;
}

.fr-usp-list {
  max-width: 800px;
  margin: 0 auto;
}

.fr-usp-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.fr-usp-row:first-child {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.fr-usp-num {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.35;
  flex-shrink: 0;
  padding-top: 2px;
}

.fr-usp-body {
  flex: 1;
}

.fr-usp-row-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fr-usp-row-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.65;
  margin-top: 4px;
}

.fr-section {
  padding: 80px 0;
}

.fr-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
}

.fr-map-section {
  padding: 0;
}

.fr-map {
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.fr-form-section {
  background: var(--bg-secondary, #f5f5f7);
}

.fr-apply-form {
  max-width: 600px;
  margin: 0 auto;
}

.fr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fr-apply-form input[type="text"],
.fr-apply-form input[type="email"],
.fr-apply-form input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: var(--font);
  background: #fff;
  transition: border-color var(--transition);
}

.fr-apply-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-franchise-submit {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}

.btn-franchise-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.fr-form-success {
  text-align: center;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm, 8px);
  background: #d4edda;
  color: #155724;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .fr-intro {
    min-height: 0 !important;
    height: auto !important;
    display: block;
    padding: 80px 0 60px;
  }

  .fr-intro-content {
    padding: 0 16px;
  }

  .fr-desc-section {
    min-height: 0 !important;
    height: auto !important;
    display: block;
    padding: 60px 0;
  }

  .fr-geo-cities {
    grid-template-columns: 1fr 1fr;
  }

  .fr-geo-singles {
    grid-template-columns: 1fr 1fr;
  }

  .fr-map {
    height: 320px;
  }

  .fr-desc-usp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fr-section {
    padding: 48px 0;
  }

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

  .fr-desc-content {
    padding: 0 16px;
  }
}

/* ── About Page ────────────────────────────────────────── */

.about-page {
  position: relative;
}
.about-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
  pointer-events: none;
}


.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-section-inner {
  text-align: left;
  padding: 100px 20px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.about-section-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 32px;
}

.about-section-title .word {
  display: inline-block;
}

.about-section-title .char {
  display: inline-block;
}

.about-section-image {
  margin: 32px 0;
}

.about-section-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

.about-section-content {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.6;
}

.about-section-content .word {
  display: inline-block;
}

.about-section-content p {
  margin-bottom: 20px;
}

.about-section-content p:last-child {
  margin-bottom: 0;
}

.about-section-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-section-content h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.about-section-content ul,
.about-section-content ol {
  max-width: 800px;
  margin: 20px 0;
  padding-left: 28px;
}

.about-section-content li {
  margin-bottom: 10px;
}

/* ── About: glass bottom nav ─────────────────────────────── */

.about-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.about-nav-item {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  letter-spacing: -0.01em;
}

.about-nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.about-nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .about-section {
    min-height: 80vh;
  }

  .about-section-inner {
    padding: 80px 20px;
  }

  .about-nav {
    display: none;
  }

  .about-section-title {
    font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  }

  .about-section-content {
    font-size: clamp(1rem, 2.4vw, 1.6rem);
  }

  .about-nav-item {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}

/* ── Modal ──────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 860px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  margin-bottom: 48px;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: #e8e8ed;
  color: var(--text-primary);
}

.modal-content {
  padding: 0;
}

/* Desktop: hide sticky header */
.modal-sticky-header {
  display: none;
}

/* ── Modal Hero Image ───────────────────────────────────── */

.modal-hero {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ── Modal Body ─────────────────────────────────────────── */

.modal-body {
  padding: 48px 56px 56px;
}

.modal-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-short-description {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── Modal Pricing Row ──────────────────────────────────── */

.modal-pricing {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-pricing > div {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}

.modal-pricing > div:last-child {
  border-right: none;
}

.modal-pricing .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 4px;
}

.modal-pricing .value {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.modal-express .value {
  color: #bf5af2;
}

/* ── Modal Sections ─────────────────────────────────────── */

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
  padding-bottom: 0;
  border-bottom: none;
}

/* Includes List */
.includes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.includes-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: 8px 0;
}

.includes-list li:nth-child(odd) {
  padding-right: 24px;
}

.includes-list li:nth-child(even) {
  padding-left: 24px;
}

.includes-list li svg {
  flex-shrink: 0;
}

/* Examples Grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.example-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.example-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.example-caption {
  display: block;
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* Brands Marquee */
.brands-marquee {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
}

.brands-marquee::before,
.brands-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.brands-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.brands-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.brands-track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.brands-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.brand-item:hover {
  background: #e8e8ed;
}

.brand-item img {
  height: 44px;
  width: auto;
  opacity: 0.55;
  transition: opacity var(--transition);
  filter: brightness(0);
}

.brand-item:hover img {
  opacity: 0.85;
}

.brands-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Portfolio Gallery */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.portfolio-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.portfolio-item-info {
  padding: 14px 16px;
}

.portfolio-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Options List */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.option-item:last-child {
  border-bottom: none;
}

.option-item:hover {
  background: var(--bg-secondary);
}

.option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-title {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.option-desc {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.option-price {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  margin-left: 24px;
}

/* ── Options Tabs ──────────────────────────────────────── */

.options-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.options-tab-btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.options-tab-btn:hover {
  color: var(--text-primary);
}

.options-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.options-tab-panel {
  display: none;
}

.options-tab-panel.active {
  display: block;
}

/* ── Contacts Page ─────────────────────────────────────── */

.contacts-hero {
  padding: 80px 0 24px;
  text-align: center;
}

.contacts-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contacts-subtitle {
  color: var(--text-secondary);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 500px;
  margin: 0 auto;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: 980px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 36px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: 980px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}

.view-toggle-btn.active {
  background: var(--bg);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.view-toggle-btn:hover:not(.active) {
  color: var(--text-secondary);
}

/* Location Cards */
.locations-section {
  padding: 0 0 64px;
}

.location-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.location-card:hover {
  box-shadow: var(--shadow-sm);
}

.location-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  cursor: pointer;
  user-select: none;
}

.location-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.location-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.location-address {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.location-type-mobile {
  display: none;
}

.location-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-type-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 980px;
  letter-spacing: 0.01em;
}

.location-type-badge.type-pickup {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

.location-type-badge.type-postamat {
  background: rgba(255, 159, 10, 0.1);
  color: #cc7f08;
}

.location-type-badge.type-lamoda {
  background: rgba(48, 209, 88, 0.1);
  color: #1da34a;
}

.location-chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.location-card.open .location-chevron {
  transform: rotate(180deg);
}

/* Expandable body */
.location-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.location-card.open .location-card-body {
  max-height: 1000px;
}

.location-details {
  padding: 0 28px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.location-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.location-detail svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.location-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.location-route:hover {
  background: var(--bg-secondary);
}

.location-route svg {
  flex-shrink: 0;
}

.location-photos {
  padding: 0 28px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.location-photo-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.location-actions {
  padding: 0 28px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.location-schema-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.location-schema-btn:hover {
  background: var(--bg-secondary);
}

.location-inline-map {
  aspect-ratio: 4 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  margin: 12px 28px 24px;
}

.location-schema-btn svg {
  flex-shrink: 0;
}

/* Schema fullscreen popup */
.schema-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.schema-popup.open {
  display: flex;
}

.schema-popup-viewport {
  flex: 1;
  width: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 16px;
}

.schema-popup-viewport img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.schema-popup-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1d1d1f;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  color: #fff;
  z-index: 10001;
  transition: background 0.2s;
}

.schema-popup-close:hover {
  background: #333;
}

.schema-popup-controls {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10001;
}

.schema-zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1d1d1f;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: background 0.2s;
}

.schema-zoom-btn:hover {
  background: #333;
}

a.location-type-badge {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

a.location-type-badge:hover {
  opacity: 0.8;
}

/* ── Postamat page ──────────────────────────────────────── */

.postamat-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--accent);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postamat-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.postamat-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px;
}

.postamat-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.postamat-hero-intro {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.postamat-section {
  padding: 64px 0;
}

/* Duo-card layout (single card: text left + image right) */
.postamat-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}

.postamat-duo-photo {
  padding: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postamat-duo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.postamat-duo-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: -1;
}

.postamat-duo-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.postamat-duo-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
}

.postamat-info {
  position: relative;
  padding: 64px 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-secondary);
}

.postamat-info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.postamat-info-content {
  position: relative;
  z-index: 1;
}

.postamat-info-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.postamat-info-intro {
  font-size: 1.125rem;
  margin-bottom: 24px;
  opacity: 0.85;
}

.postamat-info-text {
  font-size: 1rem;
  line-height: 1.8;
}

.postamat-info-text ul,
.postamat-info-text ol {
  padding-left: 1.25em;
  margin: 0.5em 0;
}

.postamat-info-text li {
  margin-bottom: 0.25em;
}

.postamat-info[style*="background-image"] .postamat-info-title,
.postamat-info[style*="background-image"] .postamat-info-intro,
.postamat-info[style*="background-image"] .postamat-info-text {
  color: #fff;
}

/* ── Postamat FAQ ──────────────────────────────────────── */

.postamat-faq {
  padding: 64px 0;
}

.postamat-faq-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.postamat-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-card:hover {
  box-shadow: var(--shadow-sm);
}

.faq-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--transition);
}

.faq-card.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-card.open .faq-card-body {
  max-height: 500px;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Map */
.ymap-container {
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
}

/* Map Legend */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

/* Courier Form */
.courier-form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 48px;
}

.courier-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: center;
}

.courier-form-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-align: center;
  margin-bottom: 32px;
}

.courier-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.9375rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field input::placeholder {
  color: var(--text-muted);
}

/* DaData address suggestions */
.form-field--address {
  position: relative;
}

.dadata-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dadata-suggestion {
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.dadata-suggestion:last-child {
  border-bottom: none;
}

.dadata-suggestion:hover,
.dadata-suggestion.active {
  background: var(--bg-secondary, #f5f5f7);
}

.courier-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.courier-form-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.courier-form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.courier-form-consent a:hover {
  text-decoration: none;
}

.courier-form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 980px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.courier-form-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.courier-form-success {
  text-align: center;
  padding: 32px 0;
}

.courier-form-success svg {
  margin-bottom: 16px;
}

.courier-form-success h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.courier-form-success p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Contacts Block */
.contacts-block {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}

.contacts-block-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 32px;
}

.contacts-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.contact-btn-tg {
  background: #0088cc;
  color: #fff;
}

.contact-btn-tg:hover {
  background: #006da3;
  transform: scale(1.02);
}

.contact-btn-phone {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.contact-btn-phone:hover {
  background: #e8e8ed;
  transform: scale(1.02);
}

.contacts-links {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contacts-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.contacts-link-item:last-child {
  border-bottom: none;
}

.contacts-link-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contacts-link-item a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contacts-link-item a:hover {
  text-decoration: underline;
}

/* ── Contacts Page (standalone) — Apple duo layout ──────── */

.contacts-duo {
  padding: 0 0 96px;
}

.contacts-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.contacts-duo-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
}

.contacts-duo-photo {
  padding: 0;
}

.contacts-duo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contacts-duo-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}

.contacts-duo-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contacts-duo-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 380px;
}

.contacts-duo-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.contacts-duo-btns .contact-btn {
  width: 100%;
  justify-content: center;
}

.contacts-duo-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contacts-duo-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contacts-duo-link:last-child {
  border-bottom: none;
}

.contacts-duo-link span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contacts-duo-link a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contacts-duo-link a:hover {
  text-decoration: underline;
}

/* ── Before/After page: dark theme + stacking cards ────── */

.ba-page {
  background: #000000;
}

body:has(.ba-page) {
  background: #000000;
}

body:has(.ba-page) .header {
  background: #fff;
  border-bottom-color: var(--border);
}

.ba-hero {
  padding: 80px 0 24px;
  text-align: center;
}

.ba-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
  color: #f5f5f7;
}

.ba-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 540px;
  margin: 0 auto;
}

.ba-stack {
  padding: 48px 0 120px;
}

.ba-stack-item {
  /* sticky positioning set via JS for computed offsets */
  margin-bottom: -80px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ba-stack-item:last-child {
  margin-bottom: 0;
}

.ba-stack-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.ba-stack-card {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.ba-stack-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-stack-img {
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.ba-stack-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Fixed CTA ─────────────────────────────────────────── */

.mobile-cta {
  position: fixed;
  z-index: 500;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  color: #fff;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 64px;
  border-radius: 980px;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  background: rgba(30, 30, 30, 0.65);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@media (max-width: 768px) {
  .mobile-cta {
    bottom: 32px;
    padding: 14px 48px;
    font-size: 0.9375rem;
    transition: bottom 0.15s ease;
  }

  .mobile-cta:hover {
    transform: translateX(-50%);
  }

  .footer {
    padding-bottom: 70px;
  }
}

/* ── Promo Banner ───────────────────────────────────────── */

.promo-banner {
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 101;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.promo-banner-text {
  text-decoration: none;
  letter-spacing: -0.01em;
}

a.promo-banner-text:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-banner-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 4px;
  line-height: 1;
  transition: opacity 0.2s;
  position: absolute;
  right: 16px;
}

.promo-banner-close:hover {
  opacity: 1;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  background: #000;
  padding: 48px 0 32px;
  color: #999;
  font-size: 0.8125rem;
}

/* Top row: logo + nav */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #999;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 24px 0;
}

/* Bottom row: legal + social */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #666;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #999;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.footer-copy {
  color: #555;
  font-size: 0.75rem;
  margin: 0;
  text-align: right;
  flex-shrink: 0;
}

/* ── Cookie Banner ──────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--text-primary);
  color: #fff;
  padding: 16px 24px;
  transition: opacity 0.3s ease;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-banner-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-btn {
  flex-shrink: 0;
  padding: 10px 28px;
  background: #fff;
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-banner-btn:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .cookie-banner-btn {
    width: 100%;
  }
}

/* ── Page (requisites, privacy) ─────────────────────────── */

.page-content {
  padding: 48px 0 64px;
  flex: 1;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.page-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-body h2 { font-size: 1.25rem; margin: 24px 0 12px; color: var(--text); }
.page-body h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--text); }
.page-body p { margin: 0 0 12px; }
.page-body ul, .page-body ol { margin: 0 0 12px; padding-left: 24px; }
.page-body a { color: var(--accent); text-decoration: underline; }

/* ── Vacancies Page ─────────────────────────────────────── */

.vacancies-page {
  flex: 1;
}

/* Hero */

.vacancies-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 0 48px;
  text-align: left;
  overflow: hidden;
}

.vacancies-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vacancies-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.vacancies-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.vacancies-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
  color: inherit;
}

.vacancies-subtitle {
  color: inherit;
  opacity: 0.8;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 auto;
  line-height: 1.6;
}

.vacancies-subtitle p {
  margin: 0 0 8px;
}

.vacancies-subtitle p:last-child {
  margin-bottom: 0;
}

.vacancies-hero a,
.vacancies-hero a:visited {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vacancies-hero a:hover {
  opacity: 0.7;
}

/* Section title */

.vacancies-section-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 32px;
}

/* Card grid — dark background, 2 columns */

.vacancies-list-section {
  padding: 64px 0 72px;
  background: #1d1d1f;
}

.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Vacancy card tile */

.vacancy-card {
  background: #2c2c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  padding: 0;
}

.vacancy-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.vacancy-position {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.25;
  padding: 28px 32px 0;
  margin: 0;
}

/* Spec rows */

.vacancy-specs {
  padding: 20px 32px 24px;
}

.vacancy-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vacancy-spec-row:first-child {
  border-top: none;
}

.vacancy-spec-row:last-child {
  border-bottom: none;
}

.vacancy-spec-row--block {
  flex-direction: column;
  gap: 8px;
}

.vacancy-spec-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  letter-spacing: -0.005em;
}

.vacancy-spec-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  text-align: right;
  line-height: 1.5;
}

.vacancy-spec-row--block .vacancy-spec-value {
  text-align: left;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  white-space: pre-line;
  line-height: 1.65;
}

/* Apply button — white, centered below tiles */

.vacancies-apply-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.vacancy-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  border-radius: 980px;
  text-decoration: none;
  transition: background var(--transition), transform 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: -0.005em;
}

.vacancy-apply-btn--white {
  background: #ffffff;
  color: #1d1d1f;
}

.vacancy-apply-btn--white:hover {
  background: #f0f0f0;
  transform: scale(1.03);
}

.vacancy-apply-btn:hover {
  transform: scale(1.03);
}

.vacancy-apply-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.vacancy-apply-btn:hover svg {
  transform: translateX(3px);
}

/* Empty state */

.vacancies-empty {
  padding: 64px 0 96px;
  text-align: center;
}

.vacancies-empty-text {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Full-width bottom image */

.vacancies-bottom-image {
  width: 100%;
  line-height: 0;
}

.vacancies-bottom-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive */

@media (max-width: 768px) {
  .vacancies-hero {
    padding: 56px 0 32px;
  }

  .vacancies-title {
    font-size: 2.5rem;
  }

  .vacancies-subtitle {
    font-size: 1rem;
  }

  .vacancies-section-title {
    font-size: 1.5rem;
  }

  .vacancies-list-section {
    padding: 40px 0 56px;
  }

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

  .vacancy-position {
    font-size: 1.25rem;
    padding: 24px 20px 0;
  }

  .vacancy-specs {
    padding: 16px 20px 20px;
  }

  .vacancy-spec-row {
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
  }

  .vacancy-spec-value {
    text-align: left;
  }

  .vacancies-apply-wrapper {
    margin-top: 32px;
  }

  .vacancy-apply-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Scrollbar ──────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ── Responsive labels ─────────────────────────────────── */

.label-mobile { display: none; }

@media (max-width: 768px) {
  .label-desktop { display: none; }
  .label-mobile { display: inline; }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1560px) {
  .cards-slider {
    cursor: grab;
  }

  .cards {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 0;
  }

  .cards::after {
    content: '';
    flex: 0 0 20px;
  }
}

@media (max-width: 980px) {
  .card {
    flex: 0 0 320px;
    width: 320px;
  }
}

@media (max-width: 600px) {
  .cards-slider {
    scroll-snap-type: x mandatory;
  }

  .cards {
    padding-left: calc(50vw - 140px);
    padding-right: 0;
  }

  .cards::after {
    content: '';
    flex: 0 0 calc(50vw - 140px);
  }

  .card {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
  }
}

@media (max-width: 768px) {
  .header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 32px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-top: 1px solid var(--border);
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 18px 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .city-selector-desktop {
    display: none;
  }

  .city-selector-mobile {
    display: block;
    padding: 12px 0;
  }

  .city-selector-mobile .city-selector-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
  }

  .city-selector-mobile .city-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    top: auto;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    columns: 1;
  }

  .view-toggle {
    margin-bottom: 24px;
  }

  .view-toggle-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
    gap: 5px;
  }

  .view-toggle-btn svg {
    width: 14px;
    height: 14px;
  }

  .contacts-title,
  .ba-hero-title {
    font-size: 2.5rem;
  }

  .contacts-subtitle,
  .ba-hero-subtitle {
    font-size: 1.1rem;
  }

  .ba-stack {
    padding: 32px 0 80px;
  }

  .ba-stack-item {
    margin-bottom: -60px;
  }

  .ba-stack-card {
    width: 100%;
    border-radius: 0;
  }

  .ba-stack-inner {
    aspect-ratio: auto;
  }

  .ba-stack-img {
    height: auto;
    width: 100%;
    aspect-ratio: auto;
  }

  .contacts-duo-grid {
    grid-template-columns: 1fr;
  }

  .contacts-duo-card {
    min-height: auto;
  }

  .contacts-duo-photo {
    height: 320px;
  }

  .contacts-duo-info {
    padding: 32px 24px;
  }

  .contacts-duo-heading {
    font-size: 1.6rem;
  }

  .contacts-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .courier-form-card {
    padding: 32px 20px;
    overflow: hidden;
  }

  .courier-form {
    max-width: 100%;
    overflow: hidden;
  }

  .courier-form-grid {
    grid-template-columns: 1fr;
  }

  .courier-form .form-field input,
  .courier-form-submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .contact-btn {
    justify-content: center;
  }

  .location-card-header {
    padding: 16px 20px;
  }

  .location-details {
    padding: 0 20px 16px;
  }

  .location-photos {
    padding: 0 20px 12px;
  }

  .location-actions {
    padding: 0 20px 20px;
  }

  .location-type-badge {
    font-size: 0.6875rem;
    padding: 4px 10px;
  }

  .location-type-mobile {
    display: block;
    margin-top: 6px;
  }

  .location-card-right .location-type-badge {
    display: none;
  }

  .postamat-hero {
    min-height: 60vh;
  }

  .postamat-hero-title {
    font-size: 2rem;
  }

  .postamat-duo-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .postamat-duo-photo {
    height: 260px;
    padding: 5%;
    order: -1;
  }

  .postamat-duo-info {
    padding: 32px 24px;
    order: 0;
  }

  .postamat-duo-heading {
    font-size: 1.5rem;
  }

  .postamat-faq {
    padding: 40px 0;
  }

  .postamat-faq-title {
    font-size: 1.5rem;
  }

  .faq-card-header {
    padding: 16px 20px;
  }

  .faq-answer {
    padding: 0 20px 16px;
  }

  .ymap-container {
    height: 400px;
  }

  .modal-body {
    padding: 32px 28px 40px;
  }

  .modal-title {
    font-size: 1.75rem;
  }

  .modal-hero {
    height: 240px;
  }

  .modal-pricing {
    flex-direction: column;
  }

  .modal-pricing > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .modal-pricing > div:last-child {
    border-bottom: none;
  }

  .includes-list {
    grid-template-columns: 1fr;
  }

  .includes-list li:nth-child(even) {
    padding-left: 0;
  }

  .includes-list li:nth-child(odd) {
    padding-right: 0;
  }

  .portfolio-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .portfolio-gallery::-webkit-scrollbar {
    display: none;
  }

  .portfolio-gallery .portfolio-item {
    flex: 0 0 70%;
    scroll-snap-align: start;
  }

  .portfolio-item-title {
    font-size: 0.75rem;
  }

  .portfolio-tag {
    font-size: 0.625rem;
  }

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

  .footer {
    padding: 32px 0 24px;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .fluid-content {
    padding: 80px 0 60px;
  }

  .card-body {
    padding: 20px 20px 24px;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal {
    border-radius: 0;
    min-height: 100vh;
  }

  .modal-hero {
    border-radius: 0;
    height: 260px;
  }

  .modal-close {
    display: none;
  }

  .modal-sticky-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .modal-sticky-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .modal-sticky-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
  }

  .modal-title {
    display: none;
  }
}
