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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
}


/* ========== Header (brand + title) ========== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 20%;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  pointer-events: none;
  padding: 0 16px;
}

.site-brand {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.55),
    0 0 18px rgba(255,255,255,0.12);
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 3.6vw, 2.15rem);
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.15;
  background: linear-gradient(
    180deg,
    #fff8e0 0%,
    #ffe566 18%,
    #f0c14a 40%,
    #d4a017 55%,
    #f5d76e 75%,
    #fff0b3 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* мягкая тень без 3D-перспективы — не рябит */
  filter:
    drop-shadow(0 1px 0 #8a6a10)
    drop-shadow(0 2px 6px rgba(0,0,0,0.45))
    drop-shadow(0 0 20px rgba(255, 200, 50, 0.3));
}

/* ========== 3D Scene ========== */
/* header ~20% + gaps; button zone + bottom ~20% */
.scene {
  position: fixed;
  top: 28%;
  bottom: 28%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  z-index: 1;
}

.cloud {
  position: relative;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  will-change: transform;
}

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w, 240px);
  height: var(--card-h, 135px);   /* 16:9, +50% */
  margin-left: calc(var(--card-w, 240px) / -2);
  margin-top: calc(var(--card-h, 135px) / -2);
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: #111;
  transition: filter 0.35s ease, opacity 0.35s ease;
  backface-visibility: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.card.is-front {
  z-index: 10;
}

/* --- Loading placeholders in cloud --- */
.card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, #1a1a22 0%, #0d0d12 100%);
  border-radius: inherit;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.card.show-placeholder .card-placeholder {
  opacity: 1;
  pointer-events: auto;
}

.card.is-ready .card-placeholder {
  opacity: 0;
  pointer-events: none;
}

.card-ph-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(212, 175, 55, 0.25);
  border-top-color: #d4af37;
  animation: spin 0.85s linear infinite;
}

.card-ph-text {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.card.is-error .card-ph-ring {
  display: none;
}

.card.is-ready img {
  opacity: 1;
}

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


/* ========== CTA Button ========== */
.cta-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10%;
  display: flex;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.cta-btn {
  pointer-events: auto;
  position: relative;
  border: none;
  cursor: pointer;
  padding: 18px 48px;
  border-radius: 999px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #f5e6c8;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  letter-spacing: 0.04em;
  box-shadow:
    0 4px 0 #000,
    0 8px 24px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(0) scale(1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              background 0.25s ease,
              color 0.25s ease;
  animation: pulse 3s ease-in-out infinite;
  will-change: transform;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), transparent 50%, rgba(212, 175, 55, 0.25));
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.cta-btn:hover {
  transform: translateY(-4px) scale(1.06);
  color: #fff8e7;
  background: linear-gradient(145deg, #252525 0%, #141414 100%);
  box-shadow:
    0 8px 0 #000,
    0 16px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(212, 175, 55, 0.55),
    0 0 40px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 0 #000,
    0 4px 12px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.09); }
  55% { transform: scale(0.97); }
  70% { transform: scale(1.05); }
}

.cta-btn:hover {
  animation: none;
}

/* ========== Preview (fullscreen) ========== */
.preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.preview.is-open {
  opacity: 1;
  visibility: visible;
}

.preview-inner {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  transform: scale(0.85);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview.is-open .preview-inner {
  transform: scale(1);
}

.preview-stage {
  position: relative;
  width: 100%;
  min-height: min(52vh, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-inner img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.preview-inner img.is-shown {
  opacity: 1;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 5;
  pointer-events: none;
}

.preview-loading.is-visible {
  display: flex;
}

.preview-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.25);
  border-top-color: #d4af37;
  animation: spin 0.8s linear infinite;
}

.preview-close {
  position: absolute;
  top: -48px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s;
}

.preview-close:hover {
  color: #fff;
}

.preview-link {
  position: relative;
  z-index: 6;
  flex-shrink: 0;
  display: inline-block;
  margin-top: 18px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1400;
  background: linear-gradient(180deg, #ffe566 0%, #d4a017 50%, #b8860b 100%);
  box-shadow:
    0 3px 0 #8a6a10,
    0 8px 24px rgba(0,0,0,0.45),
    0 0 20px rgba(255, 200, 50, 0.25);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  text-align: center;
}

.preview-link:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  box-shadow:
    0 5px 0 #8a6a10,
    0 12px 32px rgba(0,0,0,0.5),
    0 0 28px rgba(255, 200, 50, 0.35);
}



/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  padding: 20px;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #141414;
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f5e6c8;
  text-align: center;
  line-height: 1.3;
}

.modal-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  line-height: 1.4;
  text-align: center;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.field input:focus {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 80, 80, 0.5);
}

.send-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 20px 0 12px;
  text-align: center;
}

.messengers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.msg-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.msg-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.msg-btn:active {
  transform: translateY(0);
}

.msg-max {
  background: linear-gradient(145deg, #7b5cff, #5a3fd4);
  box-shadow: 0 4px 14px rgba(106, 76, 230, 0.4);
}

.msg-wa {
  background: linear-gradient(145deg, #25d366, #128c7e);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.msg-tg {
  background: linear-gradient(145deg, #2aabee, #229ed9);
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.35);
}

.msg-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #e8b923, #c49a1a);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.call-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.call-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  .top-header {
    height: 18%;
    justify-content: flex-start;
    padding-top: 3%; /* Best-WebMaster.Ru выше на ~5% */
  }
  .site-brand {
    font-size: 0.9rem;
  }
  .page-title {
    font-size: 1.25rem;
  }
  .scene {
    top: 24%;
    bottom: 26%;
  }
  .card {
    --card-w: 150px;
    --card-h: 84px;
  }
  .cta-btn {
    padding: 14px 32px;
  }
  .preview-close {
    top: -40px;
    font-size: 0.85rem;
  }
  .msg-btn {
    padding: 10px 8px;
    font-size: 0.78rem;
  }
  .cta-wrap {
    bottom: 8%;
  }
  .preview-link {
    font-size: 0.82rem;
    padding: 10px 20px;
    margin-top: 14px;
  }
  .preview-inner img {
    max-height: 70vh;
  }
}

@media (min-width: 601px) {
  .top-header {
    justify-content: flex-start;
    padding-top: 1.5%; /* выше, зазор между строками тот же */
    height: 16%;
  }
  .cta-wrap {
    bottom: 5%; /* кнопка ниже на 5% */
  }
  .scene {
    bottom: 24%;
  }
}

@media (min-width: 900px) {
  .card {
    --card-w: 260px;
    --card-h: 146px;
  }
}

@media (min-width: 1400px) {
  .card {
    --card-w: 290px;
    --card-h: 163px;
  }
}


/* ========== v2: вкладки в шапке, SEO-строка, favicon ========== */
.tabs {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45em;
  pointer-events: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.tabs .tab {
  text-decoration: none;
  cursor: default;
}
.tabs a.tab {
  cursor: pointer;
  /* неактивная вкладка — приглушённый белый, без золота */
  background: linear-gradient(180deg, #ffffff 0%, #c9c9c9 55%, #9a9a9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.72;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tabs a.tab:hover,
.tabs a.tab:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}
.tabs a.tab::after {
  content: ' \2197';   /* ↗ — подсказка, что это переход */
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 400;
  font-size: 0.55em;
  vertical-align: super;
  opacity: 0.8;
}
.tab-sep {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: rgba(255, 255, 255, 0.28);
  transform: translateY(-0.05em);
}

.seo-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 16;
  padding: 0 12px 10px;
  text-align: center;
  pointer-events: none;
}
.seo-line p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.3;
}
.seo-line a {
  color: rgba(255, 230, 160, 0.7);
  text-decoration: none;
  pointer-events: auto;
}
.seo-line a:hover { color: #ffe566; }

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

@media (max-width: 600px) {
  .tabs { gap: 0.35em; }
  .tabs .tab { font-size: 1.08rem; letter-spacing: 0.04em; }
  .tab-sep { font-size: 1rem; }
  .seo-line { padding-bottom: 6px; }
  .seo-line p { font-size: 0.6rem; }
}
@media (max-width: 360px) {
  .tabs .tab { font-size: 0.95rem; }
}


/* ========== APPS: карусель телефонов ========== */
.flow {
  position: fixed;
  left: 0; right: 0;
  top: 19%;
  height: 44%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-stage {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 1100px;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
}
.flow-stage.is-dragging { cursor: grabbing; }
.flow-track {
  list-style: none;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.phone {
  --ph: calc(var(--flow-h, 300px) * 1);
  --pw: calc(var(--ph) * 9 / 16);
  position: absolute;
  left: 50%; top: 50%;
  width: var(--pw);
  height: var(--ph);
  margin-left: calc(var(--pw) / -2);
  margin-top: calc(var(--ph) / -2);
  border-radius: calc(var(--pw) * 0.11);
  overflow: hidden;
  background: #0a0a0a;
  border: 3px solid #1c1c1c;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.45s ease, filter 0.45s ease;
  will-change: transform;
  backface-visibility: hidden;
  cursor: pointer;
  -webkit-user-drag: none;
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}
.phone.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 0 50px rgba(212, 175, 55, 0.12);
}
.phone.is-hidden { opacity: 0; pointer-events: none; }

.flow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(14, 14, 14, 0.85);
  color: #f0c14a;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.flow-arrow:hover { background: #1c1c1c; border-color: rgba(212, 175, 55, 0.7); transform: translateY(-50%) scale(1.08); }
.flow-prev { left: max(10px, calc(50% - 560px)); }
.flow-next { right: max(10px, calc(50% - 560px)); }

/* ========== APPS: описание ========== */
.info {
  position: fixed;
  left: 0; right: 0;
  top: 66%;
  height: 20%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 16px;
  text-align: center;
}
.info-head {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  animation: infoIn 0.4s ease;
}
@keyframes infoIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.info-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
}
.info-text { text-align: left; min-width: 0; }
.info-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.03em;
  color: #fff3cf;
  line-height: 1.15;
  white-space: nowrap;
}
.info-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.7vw, 0.95rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.3;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-btns {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}
.ibtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.ibtn:active { transform: scale(0.97); }
.ibtn-store {
  color: #1a0d00;
  background: linear-gradient(180deg, #ffe566 0%, #f0c14a 45%, #d4a017 100%);
  box-shadow: 0 4px 0 #6b4f0a, 0 8px 20px rgba(0,0,0,0.5);
}
.ibtn-store:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #6b4f0a, 0 12px 26px rgba(0,0,0,0.6); }
.ibtn-site {
  color: #f5e6c8;
  background: #141414;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.35), 0 6px 16px rgba(0,0,0,0.5);
}
.ibtn-site:hover { background: #1e1e1e; box-shadow: 0 0 0 1px rgba(212,175,55,0.7), 0 8px 20px rgba(0,0,0,0.6); }

.dots { display: flex; gap: 7px; }
.dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transition: background 0.25s, transform 0.25s;
}
.dots span.is-on { background: #f0c14a; transform: scale(1.3); }

/* CTA ниже описания */
.cta-wrap { bottom: 5%; }
.cta-btn { animation: none; }
.cta-btn:hover { animation: none; }

@media (max-width: 600px) {
  .flow { top: 18%; height: 44%; }
  .info { top: 65%; height: 23%; gap: 8px; }
  .info-icon { width: 42px; height: 42px; border-radius: 11px; }
  .info-name { font-size: 1rem; }
  .info-desc { font-size: 0.74rem; }
  .ibtn { padding: 9px 13px; font-size: 0.74rem; gap: 6px; }
  .flow-arrow { width: 36px; height: 36px; }
  .flow-arrow svg { width: 20px; height: 20px; }
  .cta-wrap { bottom: 6%; }
  .cta-btn { padding: 11px 26px; font-size: 1rem; }
}
@media (max-height: 640px) {
  .flow { top: 17%; height: 40%; }
  .info { top: 60%; height: 27%; gap: 6px; }
  .cta-wrap { bottom: 4%; }
  .cta-btn { padding: 9px 22px; font-size: 0.95rem; }
}
@media (min-width: 601px) {
  .cta-wrap { bottom: 3.5%; }
  .info-head { margin-bottom: 2px; }
}

.seo-line p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-short { display: none; }
@media (max-width: 600px) {
  .seo-full { display: none; }
  .seo-short { display: inline; }
  .seo-line p { font-size: 0.6rem; }
}
/* Телефон горизонтально: убираем лишнее, чтобы ничего не наезжало */
@media (max-height: 480px) {
  .seo-line { display: none; }
  .info-desc, .dots { display: none; }
  .flow { top: 20%; height: 48%; }
  .info { top: 68%; height: 18%; gap: 6px; }
  .info-head { gap: 8px; }
  .info-icon { width: 34px; height: 34px; border-radius: 9px; }
  .cta-wrap { bottom: 1%; }
  .cta-btn { padding: 6px 16px; font-size: 0.8rem; }
}


/* v3: описание всегда на 2 строки — кнопки и точки на одном уровне; равномерные отступы */
.info {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: space-between;
  justify-content: center;
  justify-items: center;
  gap: 0;
}
@media (min-width: 601px) {
  .flow { top: 18.5%; height: 42.5%; }
  .info { top: 63%; height: 21%; }
  .cta-wrap { bottom: 4.2%; }
}
@media (max-width: 600px) {
  .info { top: 65%; height: 21%; }
}
.info-desc {
  height: calc(2 * 1.3em);   /* ровно две строки, даже если текст в одну */
  -webkit-line-clamp: 2;
}
.info-head { align-items: flex-start; margin-bottom: 0 !important; }
.info-icon { margin-top: 2px; }
.dots { margin-top: 0; }
@media (max-height: 480px) {
  .info { grid-template-rows: auto auto; }
}


/* v4: шапка — равномерные отступы (бренд / вкладки / контент), вкладки на ПК мельче */
.top-header {
  justify-content: space-evenly !important;
  padding-top: 0 !important;
  gap: 0 !important;
}
.tabs .tab { font-size: clamp(1.1rem, 2.3vw, 1.55rem); letter-spacing: 0.06em; }
.tab-sep { font-size: clamp(1rem, 2vw, 1.35rem); }
@media (min-width: 601px) {
  .top-header { height: 18.5%; }
}
@media (max-width: 600px) {
  .top-header { height: 18%; }
  .tabs .tab { font-size: 1.08rem; }
  .tab-sep { font-size: 1rem; }
}
@media (max-height: 480px) {
  .top-header { height: 20%; }
}
