:root {
  --bg: #fefbf9;
  --bg-soft: #fff6fa;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #fef1f7;
  --text: #36232e;
  --text-muted: #8a7682;
  --accent: #e56b9a;
  --accent-deep: #c14b7d;
  --accent-2: #b992d9;
  --accent-glow: rgba(229, 107, 154, 0.22);
  --success: #5cb88a;
  --danger: #e07070;
  --border: rgba(61, 45, 54, 0.09);
  --border-strong: rgba(61, 45, 54, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(61, 45, 54, 0.08);
  --shadow-soft: 0 6px 24px rgba(229, 107, 154, 0.12);
  --tap: 52px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max-w: 420px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 85% 60% at 70% 0%, rgba(247, 199, 220, 0.35), transparent 56%),
    radial-gradient(ellipse 70% 52% at 0% 42%, rgba(251, 227, 205, 0.38), transparent 56%),
    var(--bg);
  color: var(--text);
  line-height: 1.45;
  overscroll-behavior-y: none;
}

a {
  color: var(--accent);
}

.app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, #fff 0%, var(--bg-soft) 38%, var(--bg) 100%);
  position: relative;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, var(--accent-glow), transparent 52%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(185, 146, 217, 0.12), transparent 45%);
  z-index: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(12px + env(safe-area-inset-top, 0)) 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.94), rgba(255, 250, 252, 0.88));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(61, 45, 54, 0.04);
}

.app-header__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.app-header__logo {
  display: block;
  /* Полный wordmark 4:1 — на узком экране не должен заходить под кнопки справа */
  height: clamp(44px, 14vw, 72px);
  width: auto;
  max-width: min(380px, 100%);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 1;
}

.app-header__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface-2), #fff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.app-header__mark-svg {
  width: 22px;
  height: 22px;
}

.app-header__seo-title {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
  font-weight: 800;
}

.app-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.header-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.header-icon-link:active {
  color: var(--accent-deep);
}

.header-icon-link__bubble {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, var(--surface-2));
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: 0 2px 10px rgba(229, 107, 154, 0.12);
}

.header-icon-link__label {
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  flex: 1;
  padding: 16px 16px calc(88px + env(safe-area-inset-bottom, 0));
  position: relative;
  z-index: 1;
}

.app-main--with-legal {
  padding-bottom: calc(170px + env(safe-area-inset-bottom, 0));
}

.app-footer__shine {
  height: 3px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(229, 107, 154, 0.5), rgba(185, 146, 217, 0.55), transparent);
  opacity: 0.75;
}

.app-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
  margin-bottom: 12px;
}

.footer-meta__dot {
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.45;
  user-select: none;
}

.footer-soft-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.footer-soft-link__ico {
  flex-shrink: 0;
  opacity: 0.88;
}

.footer-soft-link:active {
  color: var(--accent-deep);
  border-color: rgba(229, 107, 154, 0.35);
}

.info-box__legal {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.45;
}

.info-box__legal a {
  color: var(--accent);
  font-weight: 700;
}

.upload-selected-service {
  margin-bottom: 14px;
  background: linear-gradient(145deg, #fff7fb, #fff);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.upload-selected-service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  grid-column: 1 / -1;
}

.upload-selected-service__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.upload-selected-service__price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-deep);
  white-space: nowrap;
}

.upload-selected-service__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.3;
  grid-column: 1 / -1;
}

.upload-selected-service__desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
  grid-column: 1 / -1;
}

.upload-selected-service__pair {
  margin-top: 0;
  max-width: 320px;
  grid-column: 1 / -1;
}

.service-seo-card {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.service-seo-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.service-seo-card__desc {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.service-seo-card__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.service-seo-card__shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.service-seo-card__shot span {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.service-seo-card__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (min-width: 900px) {
  .upload-selected-service {
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 16px;
    row-gap: 10px;
    align-items: start;
  }

  .upload-selected-service__desc {
    grid-column: 1 / 2;
    margin: 0;
  }

  .upload-selected-service__pair {
    max-width: 360px;
    grid-column: 2 / 3;
    justify-self: end;
  }

  .service-seo-card {
    max-width: 680px;
    margin: 0 auto 14px;
  }

  .service-seo-card__title,
  .service-seo-card__desc {
    text-align: center;
  }

  .service-seo-card__pair {
    max-width: 420px;
    margin: 0 auto;
    gap: 10px;
  }
}

.view {
  display: none;
  animation: fadeIn 0.28s ease;
}

.view.is-active {
  display: block;
}

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

.hero-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 242, 248, 0.65));
  border-radius: 28px;
  padding: 24px 22px;
  box-shadow: 0 12px 38px rgba(193, 75, 125, 0.14);
  border: 1px solid rgba(193, 75, 125, 0.16);
  margin-bottom: 20px;
}

.hero-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.processing-disclaimer {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(193, 75, 125, 0.16);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.home-hero__left,
.home-hero__right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.home-hero__left {
  padding: 22px 18px;
}

.home-hero__left #heroTitle {
  margin: 0 0 10px;
  font-size: 1.72rem;
  line-height: 1.1;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #2f2230;
  text-wrap: balance;
  animation: homeHeroTitleIn 0.65s ease-out both;
}

.home-hero__left p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
  animation: fadeIn 0.8s ease both;
}

.home-hero__left .home-hero__start {
  width: auto;
  margin-top: 16px;
  padding-inline: 18px;
  display: none !important;
}

.home-hero__right {
  padding: 12px;
}

.ba-slider {
  position: relative;
}

.ba-slide {
  display: none;
}

.ba-slide.is-active {
  display: block;
  animation: fadeIn 0.45s ease;
}

.ba-slide__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ba-shot {
  position: relative;
  min-height: 236px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(61, 45, 54, 0.12);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  cursor: zoom-in;
}

.home-hero .ba-shot {
  background-position: center 42% !important;
}

@media (hover: hover) and (pointer: fine) {
  .ba-shot:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(61, 45, 54, 0.16);
  }
}

.home-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 14, 18, 0.38);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.home-zoom-overlay.hidden {
  display: none;
}

.home-zoom-popup {
  width: min(900px, 92vw);
  max-height: 84vh;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 26px 60px rgba(20, 14, 18, 0.28);
  overflow: hidden;
}

.home-zoom-popup img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  background: #f3edf1;
}

.home-zoom-popup__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.home-zoom-popup__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.ba-shot span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.ba-shot--before {
  background:
    linear-gradient(145deg, rgba(95, 88, 95, 0.35), rgba(95, 88, 95, 0.15)),
    radial-gradient(circle at 30% 20%, #f6d4d1, #d1bccd 52%, #b8a8bf);
}

.ba-shot--after {
  background:
    linear-gradient(145deg, rgba(210, 130, 165, 0.15), rgba(185, 130, 210, 0.1)),
    radial-gradient(circle at 30% 20%, #ffe5ef, #f4d2e7 52%, #e7c9dc);
}

.ba-slide__caption {
  margin: 10px 2px 4px;
  color: var(--text-muted);
  font-size: 0.83rem;
}

.ba-slide__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
}

.ba-slide__meta .ba-slide__caption {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ba-slide__cta {
  flex-shrink: 0;
  width: auto;
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .ba-slide__meta {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ba-slide__cta {
    width: 100%;
  }
}

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

.ba-slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(61, 45, 54, 0.2);
}

.ba-slider__dot.is-active {
  background: var(--accent);
}

@keyframes homeHeroTitleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(193, 75, 125, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-flow {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
}

.hero-flow__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(229, 107, 154, 0.25);
  background: linear-gradient(145deg, #fff, #fff3f9);
  box-shadow: 0 4px 12px rgba(229, 107, 154, 0.12);
}

.hero-flow__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.hero-flow__label {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.hero-flow__sep {
  color: var(--accent-deep);
  font-weight: 900;
  opacity: 0.7;
  animation: heroFlowPulse 1.8s ease-in-out infinite;
}

.hero-flow__item--done {
  border-color: rgba(99, 182, 117, 0.35);
  background: linear-gradient(145deg, #f5fff7, #ffffff);
}

.hero-flow__item--done .hero-flow__num {
  background: linear-gradient(135deg, #63b675, #4ca761);
}

@keyframes heroFlowPulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.65;
  }
  50% {
    transform: translateX(2px);
    opacity: 1;
  }
}

.section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 12px 4px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs__link {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs__sep {
  opacity: 0.55;
}

.breadcrumbs__current {
  color: var(--text);
  font-weight: 700;
}

.services-page-h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.36rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-menu {
  margin-bottom: 12px;
}

.tag-menu--services {
  margin-top: 14px;
  margin-bottom: 0;
}

.tag-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tag-menu-toggle__icon {
  color: var(--accent-deep);
  font-size: 0.9rem;
}

.tag-filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tag-filter-btn.is-active {
  border-color: rgba(229, 107, 154, 0.45);
  color: var(--accent-deep);
  background: #fff3f9;
}

.tag-more-btn {
  border: 1px dashed rgba(229, 107, 154, 0.45);
  background: #fff;
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.home-tag-panel {
  margin: 8px 0 16px;
  text-align: center;
}

.home-quick {
  margin: 8px 0 20px;
}

.home-quick__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 520px) {
  .home-quick__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .home-quick__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-quick__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(193, 75, 125, 0.14);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-quick__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193, 75, 125, 0.12);
}

.home-quick__visual {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}

.home-quick__body {
  padding: 12px 14px 14px;
}

.home-quick__name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.home-quick__price {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.home-popular {
  margin: 12px 0 16px;
}

.home-popular__title {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
}

.home-popular__list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

.home-popular__service-card {
  margin: 0;
}

.home-seo-text {
  margin: 14px 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.home-seo-text__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.home-seo-text__content {
  color: var(--text-dim);
  line-height: 1.65;
}

.home-tag-panel__title {
  margin: 0 0 12px;
}

.home-tag-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.home-how {
  margin-bottom: 8px;
}

.home-how__title {
  margin-bottom: 10px;
}

.home-how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-how-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(193, 75, 125, 0.14);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(193, 75, 125, 0.1);
}

.home-how-card__num {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
}

.home-how-card h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.1;
}

.home-how-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 899px) {
  .tag-menu-toggle {
    display: inline-flex;
    width: auto;
  }

  .tag-menu--home .tag-menu-toggle {
    display: none;
  }

  .tag-menu.is-collapsed .tag-filters,
  .tag-menu.is-collapsed .home-tag-filters {
    display: none;
  }

  .tag-menu:not(.is-collapsed) .tag-filters,
  .tag-menu:not(.is-collapsed) .home-tag-filters {
    margin-top: 8px;
  }
}

.tag-seo {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff7fb;
}

.tag-seo__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.service-card {
  --service-icon: 44px;
  --service-head-gap: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 14px 16px 16px;
  min-height: auto;
  border: 1px solid rgba(193, 75, 125, 0.16);
  border-radius: 18px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.service-card__visual {
  position: relative;
  margin-bottom: 2px;
}

.service-card__pairs {
  display: block;
}

.service-card__pair {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.service-card__pair.is-active {
  display: grid;
}

.service-card__shot {
  position: relative;
  min-height: 200px;
  border-radius: 12px;
  border: 1px solid rgba(61, 45, 54, 0.12);
  background-color: #f4e7ef;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.service-card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 18, 0.22), transparent 45%);
}

.service-card__shot span {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.service-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(61, 45, 54, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.service-card__nav--prev {
  left: 8px;
}

.service-card__nav--next {
  right: 8px;
}

.service-card__pager {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 14, 18, 0.45);
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--service-head-gap);
  min-width: 0;
}

.service-card__head .service-card__price {
  align-self: flex-end;
  padding-bottom: 1px;
}

.service-card:active {
  transform: scale(0.98);
}

.service-card.is-selected {
  border-color: rgba(193, 75, 125, 0.5);
  background: linear-gradient(135deg, rgba(229, 107, 154, 0.12), #fff);
  box-shadow: 0 10px 28px rgba(193, 75, 125, 0.16);
}

.service-card__icon {
  width: var(--service-icon);
  height: var(--service-icon);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--surface-2);
  flex-shrink: 0;
}

.service-card__name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  text-align: left;
}

.service-card__desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding-left: calc(var(--service-icon) + var(--service-head-gap));
}

.service-card__price {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.12s ease, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--sm {
  min-height: 44px;
  font-size: 0.9rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-box {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.upload-zone {
  position: relative;
  border: 2px dashed rgba(229, 107, 154, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  background: rgba(229, 107, 154, 0.07);
  margin-bottom: 16px;
}

.upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.upload-zone__big {
  font-size: 2rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-item {
  position: relative;
}

.preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.preview-item__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 12, 18, 0.78);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.upload-page-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-page-grid__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expert-panel {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(185, 146, 217, 0.12), #fff);
  border: 1px solid rgba(185, 146, 217, 0.28);
}

.expert-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.expert-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(185, 146, 217, 0.2);
  color: #6b4d86;
  border: 1px solid rgba(185, 146, 217, 0.4);
}

.expert-panel__title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.expert-panel__hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.expert-panel__hint strong {
  color: var(--text);
  font-weight: 700;
}

.expert-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.expert-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: #fffefb;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  resize: vertical;
  -webkit-tap-highlight-color: transparent;
}

.expert-textarea::placeholder {
  color: rgba(138, 118, 130, 0.65);
}

.expert-textarea:focus {
  outline: none;
  border-color: rgba(199, 125, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.15);
}

.expert-counter {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.result-refine-panel {
  margin-top: 14px;
}

.result-variants-note {
  margin-top: 10px;
}

.result-variants {
  margin-top: 12px;
}

.result-variants__title {
  margin-bottom: 8px;
}

.result-variants__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.result-variant {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.result-variant.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.result-variant img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.result-variants__empty {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.result-refine-cost {
  margin: 0 0 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.result-refine-cost strong {
  color: var(--accent-deep);
}

.result-refine-btn {
  margin-top: 10px;
}

.result-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 12px auto 14px;
  max-width: min(760px, 100%);
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(61, 45, 54, 0.1);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
  margin: 24px auto 16px;
}

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

.result-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  margin-bottom: 14px;
  position: relative;
}

.result-frame img {
  display: block;
  width: 100%;
  vertical-align: middle;
}

.result-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.result-frame__label {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.checkbox-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.checkbox-row label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.checkbox-row label a {
  color: var(--accent-deep);
}

.checkbox-row--consent {
  margin-top: 2px;
}

.checkbox-row--consent.is-error {
  border-color: #d92d20;
  background: #fff1f3;
  box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.12);
}

.app-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(to top, rgba(255, 255, 255, 0.97), rgba(255, 250, 252, 0.94));
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 40px rgba(61, 45, 54, 0.06);
}

.app-footer__extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
}

.app-footer__extra .result-refine-btn {
  margin-top: 0;
  min-height: 44px;
}

.app-footer__buttonsline {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

.nav-dock {
  display: flex;
  gap: 0;
}

.nav-dock .btn {
  flex: 1;
}

.app-footer__buttonsline .app-footer__extra,
.app-footer__buttonsline .nav-dock {
  display: flex;
  gap: 0;
  margin: 0;
}

.app-footer__buttonsline .app-footer__extra {
  flex: 1 1 60%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-footer__buttonsline .nav-dock {
  flex: 1 1 40%;
}

.app-footer__buttonsline .btn {
  border: 0;
  border-radius: 0;
  min-height: 46px;
  box-shadow: none;
}

.app-footer__buttonsline .app-footer__extra .btn,
.app-footer__buttonsline .nav-dock .btn {
  flex: 1 1 auto;
}

.app-footer__buttonsline .app-footer__extra .btn + .btn,
.app-footer__buttonsline .nav-dock .btn + .btn,
.app-footer__buttonsline .app-footer__extra:not(.hidden) + .nav-dock .btn:first-child {
  border-left: 1px solid var(--border-strong);
}

.app-footer__buttonsline .app-footer__extra.hidden + .nav-dock {
  flex: 1 1 100%;
}

.hidden {
  display: none !important;
}

.result-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 8, 10, 0.9);
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0)) 12px calc(12px + env(safe-area-inset-bottom, 0));
}

.result-lightbox__controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.result-lightbox__controls .btn {
  width: auto;
  min-width: 44px;
}

.result-lightbox__viewport {
  flex: 1;
  overflow: auto;
  display: grid;
  place-items: center;
}

.result-lightbox__viewport img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  transform-origin: center center;
}

.scroll-top-btn {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0));
  bottom: calc(96px + env(safe-area-inset-bottom, 0));
  width: 38px;
  height: 38px;
  border: 1px solid rgba(229, 107, 154, 0.35);
  border-radius: 999px;
  background: linear-gradient(145deg, #fff, #fff4fa);
  color: var(--accent-deep);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(193, 75, 125, 0.2);
  z-index: 40;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:active {
  transform: translateY(1px);
}

@media (min-width: 900px) {
  .scroll-top-btn {
    right: max(20px, env(safe-area-inset-right, 0));
    bottom: 24px;
  }
}

.back-btn {
  width: var(--tap);
  height: var(--tap);
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #fff, var(--surface-2));
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(61, 45, 54, 0.05);
  -webkit-tap-highlight-color: transparent;
}

.back-btn.back-btn--concealed {
  visibility: hidden;
  pointer-events: none;
  /* visibility не освобождает место — на главной «Назад» скрыт, но съедал колонку ~52px */
  width: 0;
  min-width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-width: 0;
  overflow: hidden;
  box-shadow: none;
}

.back-btn:active {
  transform: scale(0.96);
}

.back-btn svg {
  width: 22px;
  height: 22px;
}

/* ——— ПК и планшет в альбомной ориентации ——— */
@media (min-width: 900px) {
  :root {
    --max-w: 1240px;
    --radius-lg: 22px;
    --radius-md: 16px;
  }

  body {
    background:
      radial-gradient(ellipse 85% 55% at 50% 0%, rgba(255, 228, 240, 0.95), transparent 62%),
      radial-gradient(ellipse 60% 50% at 0% 45%, rgba(252, 228, 208, 0.8), transparent 58%),
      #f9f2f6;
    padding: 24px 20px 32px;
  }

  .app {
    max-width: var(--max-w);
    min-height: calc(100dvh - 48px);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(61, 45, 54, 0.1);
    overflow: hidden;
  }

  .app::before {
    max-width: var(--max-w);
    border-radius: 24px;
  }

  .app-header {
    padding: 18px 28px 16px;
    top: 0;
  }

  .app-header__logo {
    height: clamp(68px, 8vw, 92px);
    max-width: min(520px, calc(100% - 24px));
  }

  .app-header__seo-title {
    margin-top: 8px;
    font-size: 1.03rem;
  }

  .services-page-h1 {
    font-size: 1.32rem;
    margin-bottom: 12px;
  }

  .app-main {
    padding: 24px 32px calc(100px + env(safe-area-inset-bottom, 0));
  }

  .app-main--with-legal {
    padding-bottom: calc(186px + env(safe-area-inset-bottom, 0));
  }

  .hero-card {
    padding: 28px 28px;
  }

  .hero-card h1 {
    font-size: 2.7rem;
  }

  .hero-card p {
    font-size: 1rem;
  }

  .hero-kicker {
    font-size: 0.76rem;
  }

  .hero-flow {
    gap: 10px 8px;
  }

  .hero-flow__item {
    padding: 9px 12px;
  }

  .hero-flow__label {
    font-size: 0.9rem;
  }

  .view.is-active[data-view="home"] {
    display: block;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: stretch;
  }

  .home-hero__left {
    padding: 28px 26px;
  }

  .home-hero__left #heroTitle {
    font-size: 2.78rem;
  }

  .home-hero__left p {
    font-size: 1.12rem;
    max-width: 560px;
  }

  .home-hero__left .home-hero__start {
    display: inline-flex !important;
  }

  .home-hero__right {
    padding: 16px;
  }

  .ba-shot {
    min-height: 260px;
  }

  .view.is-active[data-view="home"] .hero-card {
    margin-bottom: 18px;
  }

  .view.is-active[data-view="home"] .section-title {
    margin-bottom: 0;
  }

  .view.is-active[data-view="home"] .home-tag-panel {
    width: 100%;
  }

  .view.is-active[data-view="home"] .home-tag-panel .tag-menu--home {
    width: 100%;
  }

  .view.is-active[data-view="home"] .home-tag-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .home-how__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-popular__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .service-card {
    padding: 18px 20px 20px;
    gap: 10px;
    --service-icon: 52px;
    --service-head-gap: 14px;
  }

  .service-card__shot {
    min-height: 250px;
  }

  .service-card__icon {
    font-size: 1.5rem;
  }

  .service-card__name {
    font-size: 1.05rem;
  }

  .service-card__desc {
    font-size: 0.88rem;
  }

  .service-card__price {
    font-size: 1.05rem;
  }

  .upload-page-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
    gap: 28px;
    align-items: start;
  }

  .upload-page-grid__media .upload-zone {
    padding: 36px 24px;
    margin-bottom: 20px;
  }

  .upload-page-grid__media .preview-grid {
    max-width: 400px;
  }

  .expert-textarea {
    min-height: 160px;
    font-size: 0.98rem;
  }

  .view.is-active[data-view="processing"] .hero-card {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .result-frame {
    max-width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .result-compare {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .view.is-active[data-view="result"] .info-box {
    max-width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .app-footer {
    padding: 14px 28px calc(14px + env(safe-area-inset-bottom, 0));
  }

  .nav-dock {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .app-footer__buttonsline .nav-dock {
    max-width: none;
    margin: 0;
  }

  .nav-dock .btn {
    min-height: 50px;
    font-size: 1rem;
  }
}

@media (min-width: 900px) and (hover: hover) {
  .service-card:hover {
    border-color: var(--border-strong);
    background: #fff;
  }

  .service-card.is-selected:hover {
    border-color: rgba(229, 107, 154, 0.55);
    background: linear-gradient(135deg, rgba(229, 107, 154, 0.12), #fff);
  }

  .btn--primary:hover:not(:disabled) {
    filter: brightness(1.04);
  }

  .btn--ghost:hover:not(:disabled) {
    background: #fff;
    border-color: rgba(229, 107, 154, 0.28);
  }

  .back-btn:hover {
    background: #fff;
    border-color: rgba(229, 107, 154, 0.35);
  }

  .header-icon-link:hover {
    color: var(--accent-deep);
  }

  .header-icon-link:hover .header-icon-link__bubble {
    border-color: rgba(229, 107, 154, 0.35);
    box-shadow: 0 4px 16px rgba(229, 107, 154, 0.14);
  }

  .footer-soft-link:hover {
    color: var(--accent-deep);
    background: #fff;
    border-color: rgba(229, 107, 154, 0.3);
  }
}

@media (min-width: 1200px) {
  :root {
    --max-w: 1380px;
  }

  .service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .home-popular__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .upload-page-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 36px;
  }
}

@media (max-width: 899px) {
  .result-compare {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .result-frame {
    margin-bottom: 0;
    border-radius: 14px;
  }

  .result-frame img {
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    max-height: 38vh;
    width: 100%;
  }

  .app-footer__buttonsline.is-result {
    flex-wrap: wrap;
    gap: 8px;
  }

  .app-footer__buttonsline.is-result .app-footer__extra {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .app-footer__buttonsline.is-result .nav-dock {
    flex: 1 1 100%;
    gap: 8px;
  }

  .app-footer__buttonsline.is-result .btn {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    min-height: 44px;
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.2;
    box-shadow: none;
  }

  .app-footer__buttonsline.is-result .app-footer__extra .btn + .btn,
  .app-footer__buttonsline.is-result .nav-dock .btn + .btn,
  .app-footer__buttonsline.is-result .app-footer__extra:not(.hidden) + .nav-dock .btn:first-child {
    border-left: 0;
  }

  .service-card__shot {
    min-height: 150px;
  }

  .service-card__desc {
    display: none;
  }

  .service-card__icon,
  .service-card__price {
    display: none;
  }

  .service-card__head {
    display: block;
  }
}

/* ——— Страница публичной оферты ——— */
body.legal-doc-page {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 228, 240, 0.9), var(--bg));
  color: var(--text);
  line-height: 1.55;
}

.legal-doc-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 18px 48px;
}

.legal-doc-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-doc-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.legal-doc-back {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-doc-toplink {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
}

.legal-doc-toplink:active {
  color: var(--accent-deep);
}

.legal-doc-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.legal-doc-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-doc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-doc h2 {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 12px;
}

.legal-doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-doc li {
  margin-bottom: 10px;
}

.legal-doc-meta {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 24px !important;
}

.legal-doc-note {
  margin-top: 32px;
  padding: 16px;
  background: rgba(241, 148, 138, 0.06);
  border: 1px solid rgba(241, 148, 138, 0.22);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text);
}

.legal-doc code {
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (min-width: 900px) {
  .legal-doc-shell {
    padding: 36px 32px 64px;
  }

  .legal-doc-title {
    font-size: 1.75rem;
  }

  .legal-doc-back:hover {
    text-decoration: underline;
  }

  .legal-doc-toplink:hover {
    color: var(--accent-deep);
    text-decoration: underline;
  }
}

/* ——— Страница контактов ——— */
body.contacts-page {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 228, 240, 0.9), var(--bg));
  color: var(--text);
  line-height: 1.5;
}

.contacts-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0)) 20px 48px;
}

.contacts-header {
  margin-bottom: 24px;
  text-align: center;
}

.contacts-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.contacts-back {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.contacts-toplink {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
}

.contacts-toplink:active {
  color: var(--accent-deep);
}

.contacts-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contacts-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.contact-card:active {
  transform: scale(0.99);
}

.contact-card--disabled {
  pointer-events: none;
  opacity: 0.65;
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card--tg .contact-card__icon {
  background: linear-gradient(145deg, #e3f4ff, #cce8ff);
  color: #229ed9;
}

.contact-card--mail .contact-card__icon {
  background: linear-gradient(145deg, #fff0f6, #ffe4ef);
  color: var(--accent-deep);
}

.contact-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-card__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.contact-card__arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contacts-note {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.contacts-note code {
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (min-width: 900px) and (hover: hover) {
  .contact-card:hover {
    border-color: rgba(229, 107, 154, 0.35);
    box-shadow: var(--shadow), 0 0 0 1px rgba(229, 107, 154, 0.08);
  }

  .contacts-back:hover {
    text-decoration: underline;
  }

  .contacts-toplink:hover {
    color: var(--accent-deep);
    text-decoration: underline;
  }
}

/* ——— Кабинет токенов ——— */
body.cabinet-page {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 82% 48% at 50% -12%, rgba(255, 228, 240, 0.55), transparent 64%),
    radial-gradient(ellipse 72% 40% at 8% 34%, rgba(251, 227, 205, 0.28), transparent 62%),
    #f7f3f6;
  color: var(--text);
}

.cabinet-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0)) 18px 48px;
}

.cabinet-header {
  margin-bottom: 20px;
  text-align: center;
}

.cabinet-header__logo-link {
  display: block;
  margin: 0 auto 14px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.cabinet-header__logo {
  display: block;
  height: clamp(52px, 16vw, 76px);
  width: auto;
  max-width: min(400px, 92%);
  margin: 0 auto;
  object-fit: contain;
}

.cabinet-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.cabinet-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cabinet-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.cabinet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 14px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-grid--code {
  margin-bottom: 6px;
}

.cabinet-auth-subtitle {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font: inherit;
  color: var(--text);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(229, 107, 154, 0.5);
  box-shadow: 0 0 0 3px rgba(229, 107, 154, 0.12);
}

.cabinet-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cabinet-logout {
  width: auto;
  padding: 0 14px;
}

.cabinet-whoami {
  margin: 2px 0 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  word-break: break-all;
}

.cabinet-sep {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 10px 0 12px;
}

.cabinet-balance-label {
  margin: 0 0 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  font-weight: 700;
}

.cabinet-balance-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cabinet-balance-hint {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.token-slider {
  width: 100%;
  margin: 10px 0 4px;
  accent-color: var(--accent);
}

.token-slider-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.token-price-preview {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.token-price-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cabinet-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.cabinet-note--legal {
  margin-top: 10px;
  font-size: 0.74rem;
}

.cabinet-note--legal a {
  color: var(--accent);
}

.cabinet-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.cabinet-gallery__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cabinet-gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cabinet-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .cabinet-gallery__thumb:hover {
    transform: translateY(-1px) scale(1.015);
    border-color: rgba(229, 107, 154, 0.45);
    box-shadow: 0 10px 22px rgba(61, 45, 54, 0.16);
  }
}

.cabinet-gallery__actions {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px;
  align-items: stretch;
}

.cabinet-gallery__actions .btn {
  min-height: 34px;
}

.cabinet-gallery__icon-btn {
  min-height: 34px;
  width: 40px;
  border-radius: 999px;
  border: 1px solid rgba(229, 107, 154, 0.34);
  background: #fff;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cabinet-gallery__icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cabinet-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 14, 18, 0.55);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 14px;
}

.cabinet-zoom-popup {
  width: min(980px, 95vw);
  max-height: 90vh;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 26px 60px rgba(20, 14, 18, 0.3);
  overflow: hidden;
}

.cabinet-zoom-popup__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.cabinet-zoom-popup__viewport {
  max-height: calc(90vh - 64px);
  overflow: auto;
  display: grid;
  place-items: center;
  background: #f6f1f4;
}

.cabinet-zoom-popup__viewport img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1600px, 95vw);
  max-height: none;
  transform-origin: center center;
}

@media (min-width: 900px) and (hover: hover) {
  .cabinet-back:hover {
    text-decoration: underline;
  }
}
