/* Khan's Build Group – v2 (clean, fast, SEO-friendly) */

:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --text: #222525;
  --muted: rgba(34, 37, 37, 0.88);
  --muted-2: rgba(34, 37, 37, 0.72);
  --border: rgba(16, 48, 36, 0.16);

  --primary: #2c3136;   /* тёмно-серый для акцентов */
  --primary-2: #1f2327;
  --accent: #c9a962;    /* мягкое золото */
  --success: #2e7d5b;
  --warning: #f6a623;

  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);

  --radius: 16px;
  --radius-lg: 22px;
  --container: 1160px;
  --ring: 0 0 0 4px rgba(27, 92, 70, 0.24);
}

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

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  overflow-wrap: break-word;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
/* Убираем задержку 300ms на тач-устройствах для кнопок и ссылок */
@media (hover: none) and (pointer: coarse) {
  .btn, .fab, .opt, a[href], button, [role="button"],
  .profile-admin-tab, .carousel__btn, .carousel__dot,
  .lang-btn, .profile-btn-role, .profile-admin-settings-toggle {
    touch-action: manipulation;
  }
}

/* На мобильных AOS не запускается — элементы с data-aos остаются с opacity:0 из aos.css. Показываем контент сразу. */
@media (max-width: 640px) {
  [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* Режим техработ: показываем только экран «Ведутся технические работы» */
body.maintenance-on > .skip,
body.maintenance-on > header,
body.maintenance-on > main,
body.maintenance-on > .footer,
body.maintenance-on > .mobile-bar,
body.maintenance-on > .floating-actions,
body.maintenance-on > #profileModal,
body.maintenance-on > #contactModal,
body.maintenance-on > .cookie-bar {
  display: none !important;
}
.maintenance-overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  color: var(--text);
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.maintenance-on .maintenance-overlay {
  display: flex !important;
}
.maintenance-overlay__inner {
  text-align: center;
  max-width: 400px;
  margin: auto;
}
.maintenance-overlay__title {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--text);
}
.maintenance-overlay__sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}
.maintenance-login {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.maintenance-login__hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.maintenance-login .field {
  margin-bottom: 12px;
}
.maintenance-login .field label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.maintenance-login .field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px; /* iOS не зумит при фокусе */
}
.maintenance-login button[type="submit"] {
  margin-top: 8px;
}

/* Офлайн: полоса при потере интернета */
.offline-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--warning);
  color: #222;
  padding: 12px max(20px, env(safe-area-inset-left)) 12px max(20px, env(safe-area-inset-right));
  padding-top: max(12px, env(safe-area-inset-top));
  text-align: center;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}
.offline-bar p {
  margin: 0;
}

/* Баннер согласия на cookie */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 14px max(20px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
}
.cookie-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cookie-bar__text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: break-word;
}
.cookie-bar__text a {
  color: var(--primary);
  text-decoration: underline;
}
.cookie-bar__text a:hover {
  text-decoration: none;
}
.cookie-bar__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}
.cookie-bar__btn {
  flex-shrink: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--muted);
  background: var(--bg);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  overflow-wrap: break-word;
  -webkit-overflow-scrolling: touch;
}
.section__title,
h2.section__title,
.conditions-tagline,
.hero h2 {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 9999;
}
.skip:focus {
  left: max(12px, env(safe-area-inset-left));
  outline: none;
  box-shadow: var(--ring);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: visible;
}
.topbar .container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-width: 0;
  min-height: 52px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 320px;
  flex-shrink: 1;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand > span:last-of-type {
  min-width: 0;
  overflow: visible;
}
.logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #0b1f17 url("logo.jpeg") center/cover no-repeat;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(217, 177, 92, 0.85);
}
.logo::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.brand h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.navlinks a {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  white-space: nowrap;
}
.navlinks a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.navcta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2px;
  background: rgba(0, 0, 0, 0.02);
}
.lang-btn {
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.lang-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}
.lang-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f7f5;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: #eceae5;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e0c98a 100%);
  border-color: rgba(0, 0, 0, 0.12);
  color: #222222;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e0c98a 0%, var(--accent) 100%);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(31, 91, 70, 0.4);
  color: var(--primary);
}
.btn-ghost:hover {
  background: rgba(31, 91, 70, 0.04);
  border-color: rgba(31, 91, 70, 0.6);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.mobile {
  display: none;
  padding: 12px 0 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mobile.open {
  display: block;
}
.mobile a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--text);
  min-height: 44px;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 15px;
}
.mobile a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}
.mobile .lang-switcher .lang-btn {
  min-height: 44px;
  min-width: 44px;
}
.mobile button.profile-link-mobile {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 14px;
  justify-content: flex-start;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.mobile button.profile-link-mobile:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero {
  position: relative;
  padding: max(48px, calc(20px + env(safe-area-inset-top))) 0 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  background-color: #0a1210;
  background-image:
    linear-gradient(135deg, rgba(4, 10, 16, 0.88), rgba(4, 10, 16, 0.7)),
    url("hero-bg.jpeg");
  background-size: auto, cover;
  background-position: 0 0, center;
  background-repeat: repeat, no-repeat;
  color: #f5f5f5;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 10, 16, 0.5) 0%, rgba(15, 35, 55, 0.4) 50%, rgba(4, 10, 16, 0.6) 100%);
  background-size: 200% 200%;
  animation: heroGradient 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero .container,
.hero .hero-grid {
  position: relative;
  z-index: 1;
}
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  /* фон уже на .hero — не дублируем загрузку изображения */
}
.hero * {
  color: inherit;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  max-width: 42rem;
  text-align: left;
}
.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  line-height: 1.4;
}
.k-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}
.hero h2 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-weight: 800;
}
.hero-tagline {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}
.hero p.lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
  margin-top: 4px;
}
.hero-offer {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-proof {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.hero-actions .btn {
  background: rgba(255, 255, 255, 0.95);
  color: #222222;
  border-color: rgba(255, 255, 255, 0.3);
}
.hero-actions .btn:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e0c98a 100%);
  color: #222222;
  border-color: rgba(255, 255, 255, 0.3);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
.pill b {
  color: #ffffff;
  font-weight: 700;
}
.check {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.5);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 6px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(40deg);
}

.section {
  padding: 44px 0;
}
.section h2 {
  position: relative;
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 999px;
  margin-top: 8px;
  margin-bottom: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section p.sub {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.5;
}
/* Единое выравнивание контента секций по левому краю на всех устройствах */
.section > .container {
  text-align: left;
}
.section h2,
.section .section__title,
.section p.sub,
.conditions-tagline {
  text-align: left;
}
.find-us__title,
.find-us__sub {
  text-align: left;
}
.about__block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.about__sub {
  margin-top: 0;
}
.about-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.about-card {
  padding: 0;
}
.about-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35em;
  font-weight: 600;
}
.about-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}
.section--muted {
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Промежуточные CTA */
.cta-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-block__text {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--muted);
}
.cta-block__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.cta-block .btn { min-height: 44px; }

/* Срочность над формой заявки */
.contact-urgency {
  margin: 0 0 1.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(27, 92, 70, 0.08);
  border: 1px solid rgba(27, 92, 70, 0.2);
  border-radius: var(--radius);
  text-align: center;
}

/* Двухшаговая форма: шаг 1 (квалификация) и шаг 2 (контакты) */
.lead-form__step1 { display: block; }
.lead-form__step2 { display: block; }
.lead-form__step2[hidden] { display: none !important; }
.lead-form__success[hidden] { display: none !important; }
.lead-form__step-title {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}
.lead-form__step1 .field { margin-bottom: 1rem; }
.lead-form__step1 .btn { margin-top: 0.5rem; }
.lead-form__success {
  padding: 1rem 0;
  text-align: center;
}
.lead-form__success-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.lead-form__success-text {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.lead-form__success .btn { min-height: 44px; }
.lead-form__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Блок «Избавим от главных страхов» */
.fears-block .section__title { margin-bottom: 0.35em; }
.fears-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .fears-grid { grid-template-columns: repeat(3, 1fr); }
}
.fears-item {
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fears-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.fears-item__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.fears-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5em;
}
.fears-item__text {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Команда */
.team-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.team-card {
  text-align: center;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.team-card__photo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card__name {
  font-size: 1rem;
  margin: 0 0 0.25em;
  font-weight: 600;
  color: var(--text);
}
.team-card__role {
  font-size: 0.875rem;
  color: var(--muted-2);
  margin: 0 0 0.75em;
}
.team-card__quote {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  font-style: italic;
  line-height: 1.45;
}

/* Видео от основателя */
.founder-video {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.founder-video__title {
  font-size: 1.125rem;
  margin: 0 0 0.35em;
  font-weight: 600;
  color: var(--text);
}
.founder-video__sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.founder-video__embed {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.founder-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.founder-video__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted-2);
  text-align: center;
  background: var(--surface-2);
}

/* Отзывы с карт */
/* Отзывы недели (с датами, перед виджетом карт) */
.reviews-week {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.reviews-week__title {
  font-size: 1.125rem;
  margin: 0 0 0.35em;
  font-weight: 600;
  color: var(--text);
}
.reviews-week__sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.reviews-week__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 500px) {
  .reviews-week__grid { grid-template-columns: repeat(2, 1fr); }
}
.reviews-week__card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.reviews-week__avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(27, 92, 70, 0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reviews-week__body { min-width: 0; }
.reviews-week__quote {
  margin: 0 0 6px;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.45;
  font-style: italic;
}
.reviews-week__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.reviews-from-maps {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.reviews-from-maps__title {
  font-size: 1.125rem;
  margin: 0 0 0.35em;
  font-weight: 600;
  color: var(--text);
}
.reviews-from-maps__sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.reviews-from-maps__embed {
  min-height: 120px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1rem;
}
.reviews-from-maps__placeholder {
  font-size: 0.9375rem;
  color: var(--muted-2);
  margin: 0;
  text-align: center;
}

/* Фильтры портфолио */
.cases-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
  justify-content: center;
}
.cases-filter {
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cases-filter:hover {
  background: var(--surface-2);
  color: var(--text);
}
.cases-filter--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.case-budget {
  margin: 0.5em 0 0.75em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.calc-formula {
  margin: 0.5em 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Понятные условия */
.conditions-tagline {
  margin: 0 0 0.35em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.conditions-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 520px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .conditions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
.conditions-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.conditions-card h3 {
  margin: 0 0 0.35em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.conditions-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Блок «Где нас найти» */
.find-us__title {
  font-size: 22px;
  margin-bottom: 8px;
}
.find-us__sub {
  margin: 0 0 20px;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.5;
}
.find-us__map-wrap {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.find-us__map {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.find-us__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.find-us__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.find-us__link:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
/* До и после — новый блок с вашими фото */
.ba {
  max-width: 920px;
  margin: 0 auto;
}
.ba__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.ba__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ba__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.ba__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.ba__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .ba__row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.find-us__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.grid-3 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
#services .grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid-3--six {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(27, 92, 70, 0.16);
  padding: 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(27, 92, 70, 0.24);
  background: #ffffff;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Кейсы: карточка с изображением */
.card--case .card__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--surface-2);
}
.card--case .card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card--case:hover .card__img img {
  transform: scale(1.03);
}
.card--case .card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card--case .card__body h3 { margin: 0; }
.card--case .card__body p { margin: 0; }
.card--case .card__body .tagrow { margin: 0; margin-top: 4px; }

/* Отзывы: доказательства (фото / скриншот сообщения) */
.review-proof {
  margin-bottom: 10px;
}
.review-proof--photo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(27, 92, 70, 0.2);
}
.review-proof--message {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.review-proof__bubble {
  display: block;
  font-style: italic;
}
.review-proof__meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* Отзывы: доказательство (фото / скриншот), цитата и аватар */
.card--review {
  position: relative;
}
.review-proof {
  margin-bottom: 10px;
}
.review-proof--photo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(27, 92, 70, 0.2);
}
.review-proof--message {
  background: linear-gradient(135deg, #e7f5ec 0%, #d4edda 100%);
  border: 1px solid rgba(27, 92, 70, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.review-proof__bubble {
  display: block;
  font-style: italic;
}
.review-proof__meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.card--review .review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(27, 92, 70, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 10px;
}
.card--review .review-quote {
  font-style: italic;
  border-left: 3px solid rgba(27, 92, 70, 0.35);
  padding-left: 14px;
  margin: 0;
  color: var(--text);
}

.card h3 {
  margin: 18px 18px 6px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.card p {
  margin: 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.card .tagrow {
  margin: 12px 18px 18px 18px;
  line-height: 1.4;
}
.card p a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(27, 92, 70, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.card p a:hover {
  color: var(--primary-2);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.card p a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
  display: inline-block;
}
.tag a {
  color: inherit;
  text-decoration: none;
}
.tag:hover {
  border-color: rgba(27, 92, 70, 0.25);
  background: rgba(27, 92, 70, 0.04);
  color: var(--text);
}
.tag-btn {
  cursor: pointer;
  border: 1px solid rgba(27, 92, 70, 0.2);
  background: rgba(27, 92, 70, 0.03);
  color: var(--text);
  font: inherit;
  transition: all 0.2s ease;
  margin: 0;
}
.tag-btn:hover {
  border-color: var(--accent);
  background: rgba(201, 169, 98, 0.1);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.tag-btn:active {
  transform: translateY(0);
}
.tag-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.steps {
  display: grid;
  gap: 12px;
}
.steps--six .step {
  grid-template-columns: 38px 1fr;
  padding: 10px 12px;
  gap: 10px;
}
.steps--six .step .n {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.steps--six .step h4 {
  font-size: 13px;
}
.steps--six .step p {
  font-size: 12px;
}
/* Этапы с фото */
.steps.steps--with-img .step {
  grid-template-columns: 80px 38px 1fr;
  align-items: start;
}
.steps--with-img .step__img {
  grid-row: 1 / -1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
}
.steps--with-img .step__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 639px) {
  .steps.steps--with-img .step {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .steps--with-img .step__img {
    grid-row: auto;
    max-height: 160px;
  }
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--surface);
}
.step .n {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(27, 92, 70, 0.12);
  border: 1px solid rgba(27, 92, 70, 0.3);
  font-weight: 800;
  color: var(--primary);
}
.step h4 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}
.step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.calc {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(27, 92, 70, 0.16);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.calc .head {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.calc .head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.calc .head h2 {
  color: var(--text);
  line-height: 1.3;
}
.calc-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.opt-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.calc-by-projects {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.calc-trust-anchor {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.calc-example {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.calc-after-measure {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
}
.calc-disclaimer {
  margin: 4px 0 0;
  color: rgba(34, 37, 37, 0.6);
  font-size: 11px;
  line-height: 1.5;
}
.form-error {
  margin: 8px 0 12px;
  color: #b52;
  font-size: 14px;
  line-height: 1.4;
}
.form-error:empty,
.form-error[hidden] { display: none !important; }
.form-hint {
  margin: 4px 0 12px;
  color: var(--muted, rgba(34, 37, 37, 0.65));
  font-size: 13px;
  line-height: 1.4;
}
.form-disclaimer {
  margin: 10px 0 0;
  color: rgba(34, 37, 37, 0.65);
  font-size: 12px;
  line-height: 1.45;
}
.form-disclaimer a {
  color: var(--primary);
  text-decoration: underline;
}
.form-disclaimer a:hover {
  color: var(--success);
}
.tagrow-spaced {
  margin-top: 14px;
}
.contact-card.contact-card .contact-card__title,
.contact-card.contact-card h3.contact-card__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.contact-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.contact-card__grid .contact-card__btn--calc {
  grid-column: 1 / -1;
}
.contact-card__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  box-sizing: border-box;
  gap: 2px;
  text-align: center;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact-card__btn-main {
  display: block;
  font-size: 15px;
}
.contact-card__btn-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.contact-card__btn:hover .contact-card__btn-sub {
  color: var(--text);
}
.contact-card__btn:hover {
  background: rgba(201, 169, 98, 0.12);
  border-color: var(--accent);
  color: var(--primary);
}
.contact-card__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-card__btn--tel {
  min-height: 56px;
}
.contact-card__btn--wa {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.35);
  color: #1a5c34;
  font-size: 16px;
}
.contact-card__btn--wa:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.5);
}
.contact-card__btn--calc {
  min-height: 48px;
  font-size: 15px;
  background: var(--surface-2);
  border-color: var(--border);
  border-style: dashed;
}
.contact-card__btn--calc:hover {
  background: rgba(27, 92, 70, 0.06);
  border-color: rgba(27, 92, 70, 0.25);
  color: var(--primary);
}
.contact-card__schedule {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 380px) {
  .contact-card__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }
  .topbar {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}
@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
  .topbar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}
@media (max-width: 360px) {
  .container {
    padding-inline: 12px;
  }
  .topbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
  .section h2 {
    font-size: 20px;
  }
  .tagrow .tag {
    font-size: 11px;
    padding: 6px 10px;
  }
  .card h3 {
    font-size: 14px;
  }
}
.mobile-bar-btn {
  width: 100%;
}
.tagrow-extras {
  gap: 10px;
}
.tag-checkbox {
  cursor: pointer;
}
@media (max-width: 860px) {
  .tag-checkbox {
    min-height: 44px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}
.calc .body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

/* Contact section – clearer borders and grouping */
#contact .split {
  gap: 18px;
}

#contact .card {
  border-width: 1.5px;
  border-color: rgba(0, 0, 0, 0.28);
  background: #ffffff;
  padding: 16px 18px;
}

#contact form.card {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

#contact .card:nth-of-type(2) {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#contact .field {
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#contact .field:last-of-type {
  border-bottom: none;
}

#contact .control {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.32);
}

#contact .tagrow {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  margin-top: 12px;
}


.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.control {
  width: 100%;
  min-height: 44px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #ffffff;
  outline: none;
  font-size: 16px;
}
.control:focus-visible {
  box-shadow: var(--ring);
  border-color: rgba(27, 92, 70, 0.6);
}
/* iOS не зумит при фокусе, если у input/select/textarea font-size >= 16px */
input.control, select.control, textarea.control {
  font-size: 16px;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.opt {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.opt:hover {
  transform: translateY(-1px);
  background: #f7f7f5;
  border-color: rgba(0, 0, 0, 0.18);
}
.opt[aria-checked="true"] {
  border-color: rgba(27, 92, 70, 0.5);
  box-shadow: 0 0 0 3px rgba(27, 92, 70, 0.15);
  background: rgba(27, 92, 70, 0.06);
}
.opt .t {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.opt .d {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.calc-result-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.result {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 92, 70, 0.2);
  background: rgba(27, 92, 70, 0.04);
}
.result .price {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}
.result .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.result .meta b {
  color: var(--text);
  font-weight: 700;
}

.faq {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  text-align: left;
}
details {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  text-align: left;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  text-align: left;
}
details p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.footer {
  padding: 28px 0 22px;
  border-top: 1px solid rgba(16, 48, 36, 0.12);
  margin-top: 12px;
  background: #111a17;
  color: #f5f1e8;
  text-align: left;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: start;
  text-align: left;
}
.footer h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(245, 241, 232, 0.9);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer p,
.footer a {
  margin: 0;
  color: rgba(245, 241, 232, 0.8);
  font-size: 14px;
  line-height: 1.6;
}
.footer p {
  margin-bottom: 6px;
}
.footer p:last-child {
  margin-bottom: 0;
}
.footer a {
  display: inline-block;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
/* Служебный вход — внизу страницы, виден всегда */
.footer-admin-wrap {
  margin-top: 14px;
  margin-bottom: 0;
}
.footer-admin-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--muted-2);
  cursor: pointer;
  text-decoration: none;
}
.footer-admin-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fineprint {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 12px;
}

.mobile-bar {
  display: none;
}

/* Одна кнопка «Контакты» справа внизу */
.floating-actions {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 85;
  pointer-events: none;
}
.floating-actions > * {
  pointer-events: auto;
}
.floating-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.floating-actions__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.floating-actions__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.floating-actions__btn--single {
  background: linear-gradient(135deg, #c9a962, #b8954a);
  color: #0a1210;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 110;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.contact-modal--open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.contact-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.contact-modal__dialog {
  position: relative;
  flex-shrink: 0;
  max-width: 420px;
  width: 100%;
  max-height: min(85vh, calc(100dvh - 32px));
  margin: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  padding: 18px 18px max(20px, env(safe-area-inset-bottom));
  padding-top: max(18px, env(safe-area-inset-top));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.contact-modal__dialog .contact-modal__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.contact-modal__close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.contact-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}
.contact-modal__close {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.contact-modal__dialog h2 {
  margin: 0 0 6px;
  padding-right: 48px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}
.contact-modal__text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.contact-modal__actions {
  display: grid;
  gap: 10px;
}
.contact-modal__actions .btn,
.contact-modal__actions .contact-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Профиль: админка + личный кабинет (на том же сайте) */
body.profile-modal-open,
body.contact-modal-open {
  overflow: hidden !important;
  touch-action: none;
}
.profile-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.profile-modal--open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.profile-modal--open .profile-modal__dialog {
  flex-shrink: 0;
}
.profile-modal.profile-admin-fullscreen .profile-modal__dialog {
  position: fixed;
  inset: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.profile-modal.profile-admin-fullscreen .profile-modal__backdrop {
  display: none;
}
.profile-modal.profile-admin-fullscreen .profile-modal__close {
  display: none !important;
}
#profileAdminDashboard {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 20px 24px 28px;
  overflow: hidden;
}
#profileAdminDashboard .profile-admin-header {
  flex-shrink: 0;
}
#profileAdminDashboard .profile-admin-tabs {
  flex-shrink: 0;
}
#profileAdminDashboard .profile-admin-tab-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
#profileAdminDashboard .profile-admin-tab-panel--active {
  display: flex;
  flex-direction: column;
}
.profile-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(243, 243, 241, 0.92);
}
.profile-modal__dialog {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: min(85vh, calc(100dvh - 32px));
  margin: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.profile-modal__dialog > .profile-modal__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  padding: max(20px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
.profile-modal__dialog:not(:has(.profile-modal__scroll)) {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(20px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
.profile-modal__close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.profile-modal__close:hover {
  background: var(--surface-2);
  color: var(--text);
}
.profile-modal__close {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.profile-modal__title {
  margin: 0 0 6px;
  padding-right: 48px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}
.profile-modal__sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
/* Админка: цвета как на сайте, читаемость */
.profile-admin-fullscreen .profile-modal__dialog,
#profileAdminDashboard {
  background: var(--surface);
  color: var(--text);
}
#profileAdminDashboard .profile-stat__label,
#profileAdminDashboard .profile-admin-filters label,
#profileAdminDashboard .profile-admin-settings-form label {
  color: var(--muted);
}
#profileAdminDashboard .profile-stat__value,
#profileAdminDashboard .profile-conv-value {
  color: var(--primary);
}
#profileAdminDashboard .profile-stage-badge {
  background: rgba(246, 166, 35, 0.2);
  color: var(--warning);
}
#profileAdminDashboard .profile-agreement-badge {
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid var(--border);
}
#profileAdminDashboard .profile-admin-table th {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
#profileAdminDashboard .profile-admin-table td {
  border-color: var(--border);
  color: var(--text);
}
#profileAdminDashboard .profile-admin-table tbody tr:hover {
  background: var(--surface-2);
}
#profileAdminDashboard .profile-pending-count {
  background: var(--warning);
  color: var(--surface);
}
#profileAdminDashboard .profile-log-date {
  color: var(--muted-2);
}
.profile-screen {
  display: block;
}
.profile-screen--hidden {
  display: none !important;
}
.profile-actions,
.profile-form .field + .field {
  margin-top: 12px;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-actions .btn,
.profile-btn-role {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  font-size: 15px;
  text-align: center;
  border-radius: 10px;
}
.profile-screen--choice .profile-actions {
  margin-top: 8px;
}
.profile-screen--choice .profile-modal__sub {
  margin-bottom: 16px;
}
.profile-form .field label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
}
.profile-form .field input,
.profile-form .field select,
.profile-form .field textarea {
  font-size: 16px;
}
.profile-form .field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.profile-form .field input::placeholder {
  color: var(--muted-2);
}
.profile-form button[type="submit"] {
  margin-top: 14px;
}
.profile-btn-back {
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.profile-forgot-code {
  margin: 12px 0 0;
  font-size: 14px;
}
.profile-demo-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.profile-code-sent {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(246, 166, 35, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(246, 166, 35, 0.3);
}
.profile-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.profile-link-btn:hover {
  color: var(--primary);
}
.profile-admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.profile-stat {
  background: var(--surface-2);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.profile-stat__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.profile-stat__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.profile-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.profile-admin-header .profile-modal__title {
  margin: 0;
}
.profile-admin-logout {
  font-size: 13px;
  padding: 6px 12px;
}
.profile-admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.profile-admin-tab {
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 8px 8px 0 0;
}
.profile-admin-tab:hover {
  color: var(--text);
}
.profile-admin-tab--active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}
.profile-admin-tab-panel {
  display: none;
}
.profile-admin-tab-panel--active {
  display: block;
}
.profile-admin-stats--compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.profile-admin-stats--compact .profile-stat {
  padding: 8px 10px;
}
.profile-admin-stats--compact .profile-stat__value {
  font-size: 18px;
}
.profile-admin-stats--full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.profile-admin-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text);
}
.profile-filter-label,
.profile-filter-date-label {
  color: var(--muted);
  white-space: nowrap;
}
.profile-filter-label {
  margin-right: 2px;
}
.profile-filter-date-label {
  margin-left: 4px;
  margin-right: 2px;
}
.profile-filter-date-label:first-of-type {
  margin-left: 0;
}
.profile-filter-sep {
  color: var(--muted-2);
  margin: 0 2px;
}
.profile-filter-select,
.profile-filter-date {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
}
.profile-filter-select:focus,
.profile-filter-date:focus {
  outline: none;
  border-color: var(--primary);
}
.profile-filter-date {
  min-width: 130px;
  max-width: 150px;
}
.profile-filter-reset {
  font-size: 13px;
  padding: 6px 12px;
  margin-left: 4px;
}
.profile-export-btn {
  font-size: 13px;
  padding: 6px 12px;
}
.profile-admin-backup-hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.profile-admin-stats-full h3,
.profile-admin-stats-by-stage h3,
.profile-admin-stats-by-day h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.profile-admin-stats-by-stage,
.profile-admin-stats-by-day {
  margin-bottom: 20px;
}
.profile-stats-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-stats-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-stats-list--days li {
  font-size: 14px;
}
.profile-admin-settings-form h3 {
  margin: 16px 0 6px;
  font-size: 16px;
  color: var(--text);
}
.profile-admin-settings-form h3:first-of-type,
.profile-admin-technical__title {
  margin-top: 0;
}
.profile-admin-technical__title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}
.profile-admin-warning {
  padding: 12px 14px;
  border-radius: var(--radius, 10px);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.4;
}
.profile-admin-warning--maintenance {
  background: rgba(246, 166, 35, 0.15);
  border: 1px solid rgba(246, 166, 35, 0.4);
  color: #1a1a1a;
}
.profile-admin-warning--supabase {
  background: rgba(27, 92, 70, 0.08);
  border: 1px solid rgba(27, 92, 70, 0.25);
  color: var(--text);
}
.profile-admin-warning--supabase code {
  font-size: 12px;
  padding: 1px 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
}
.profile-admin-technical .profile-admin-settings-desc {
  margin-bottom: 16px;
}
.profile-admin-settings-form .profile-admin-settings-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.profile-admin-settings-success {
  padding: 10px 14px;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--success);
  background: rgba(46, 125, 91, 0.1);
  border: 1px solid rgba(46, 125, 91, 0.3);
  border-radius: 8px;
}
.profile-admin-settings-hint-box {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.profile-admin-settings-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.profile-admin-settings-hint--warning {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(246, 166, 35, 0.08);
  border: 1px solid rgba(246, 166, 35, 0.3);
  border-radius: 6px;
  color: var(--text);
}
.profile-admin-settings-hint code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}
.profile-admin-settings-toggles {
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-admin-settings-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.profile-admin-settings-toggle:hover {
  background: var(--surface);
  border-color: var(--muted);
}
.profile-admin-settings-toggle .toggle-label {
  flex: 1;
  line-height: 1.4;
}
.profile-admin-settings-toggle .toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.profile-admin-settings-toggle .toggle-switch {
  flex-shrink: 0;
  display: inline-block;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: #c53030;
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 10px rgba(197, 48, 48, 0.4);
}
.profile-admin-settings-toggle .toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.profile-admin-settings-toggle .toggle-input:checked + .toggle-switch {
  background: var(--success);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 12px rgba(46, 125, 91, 0.5);
}
.profile-admin-settings-toggle .toggle-input:checked + .toggle-switch::after {
  transform: translateX(22px);
}
.profile-admin-settings-toggle .toggle-input:focus-visible + .toggle-switch {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.profile-admin-settings-form button[type="submit"] {
  margin-top: 4px;
}
/* Конверсия и источники */
.profile-admin-conversion h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  color: var(--text);
}
.profile-admin-conversion h3:first-child {
  margin-top: 0;
}
.profile-conversion-metrics {
  margin-bottom: 24px;
}
.profile-conversion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.profile-conv-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.profile-conv-card--accent {
  background: rgba(31, 91, 70, 0.06);
  border-color: rgba(31, 91, 70, 0.25);
}
.profile-conv-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.profile-conv-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.profile-conversion-sources,
.profile-conversion-referrers {
  margin-bottom: 24px;
}
.profile-conversion-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.profile-conversion-table {
  min-width: 480px;
}
.profile-conv-source {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  word-break: break-all;
}
.profile-referrer-list {
  max-height: 280px;
  overflow-y: auto;
}
.profile-referrer-url {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  max-width: 70%;
}
.profile-conversion-log {
  margin-bottom: 24px;
}
.profile-visits-log {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-family: ui-monospace, monospace;
}
.profile-visit-row {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
}
.profile-visit-row:last-child {
  border-bottom: none;
}
.profile-visit-time {
  color: var(--muted-2);
  white-space: nowrap;
}
.profile-visit-ref {
  color: var(--muted);
  word-break: break-all;
}
.profile-visit-utm {
  color: var(--primary);
  white-space: nowrap;
}
.profile-admin-pending-wrap {
  margin-bottom: 20px;
  padding: 14px;
  background: rgba(246, 166, 35, 0.08);
  border: 1px solid rgba(246, 166, 35, 0.3);
  border-radius: 12px;
}
.profile-admin-pending-wrap h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.profile-pending-count {
  display: inline-block;
  min-width: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warning);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.profile-admin-pending-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.profile-admin-pending-list {
  max-height: 200px;
  overflow-y: auto;
}
.profile-pending-empty {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  color: var(--muted);
}
.profile-pending-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.profile-pending-item:last-child {
  border-bottom: none;
}
.profile-pending-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.profile-pending-item__date {
  font-size: 12px;
  color: var(--muted);
}
.profile-pending-item__stage {
  margin-bottom: 8px;
  color: var(--muted);
}
.profile-approve-btn {
  padding: 8px 16px;
  font-size: 14px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.profile-approve-btn:hover {
  filter: brightness(1.05);
}
.profile-stage-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(246, 166, 35, 0.2);
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
}
.profile-approve-btn-inline {
  padding: 6px 12px;
  font-size: 13px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.profile-approve-btn-inline:hover {
  filter: brightness(1.05);
}
.profile-admin-list-wrap h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.profile-admin-table-hint {
  display: none;
  margin: 0 0 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 8px;
}
@media (max-width: 860px) {
  .profile-admin-table-hint {
    display: block;
  }
}
.profile-admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.profile-admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}
.profile-admin-table thead {
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.profile-admin-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}
.profile-admin-table td.profile-admin-cell {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.profile-admin-table tbody tr.profile-admin-row:hover {
  background: var(--surface-2);
}
.profile-admin-table tbody tr:last-child td {
  border-bottom: none;
}
.profile-admin-cell .profile-stage-select {
  min-width: 140px;
}
.profile-admin-cell .profile-client-log--compact {
  max-width: 280px;
  max-height: 120px;
  overflow-y: auto;
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}
.profile-admin-cell .profile-client-log--compact li {
  margin-bottom: 4px;
}
.profile-admin-list {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.profile-admin-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.profile-admin-item:last-child {
  border-bottom: none;
}
.profile-admin-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.profile-admin-item__head strong {
  flex: 1;
}
.profile-admin-item__date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.profile-admin-item__details {
  margin-bottom: 6px;
  color: var(--muted);
}
.profile-admin-item__utm {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.profile-admin-item__agreement {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.profile-agreement-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent);
}
.profile-agreement-btn,
.profile-agreement-revoke {
  font-size: 12px;
  padding: 4px 10px;
}
.profile-admin-item__stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.profile-stage-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 160px;
}
.profile-notify-btn {
  padding: 6px 12px;
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.profile-notify-btn:hover {
  background: var(--border);
}
.profile-stage-type {
  font-size: 13px;
  color: var(--muted);
}
.profile-link-mobile {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .topbar .brand {
    max-width: 260px;
  }
  .navlinks {
    gap: 12px;
  }
  .navlinks a {
    padding: 8px 8px;
  }
}

@media (max-width: 860px) {
  .navlinks,
  .navcta .hide-mobile {
    display: none;
  }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .topbar .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }
  .topbar .nav {
    min-width: 0;
    flex-shrink: 0;
    padding: 10px 0;
    gap: 10px;
  }
  .topbar .navcta {
    flex-shrink: 0;
    gap: 8px;
  }
  .topbar .navcta .btn {
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
    min-height: 44px;
  }
  .topbar .brand {
    min-width: 0;
    flex: 0 0 auto;
    gap: 0;
    flex-shrink: 0;
  }
  .topbar .brand > span:not(.logo) {
    display: none;
  }
  .topbar .logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }
  .mobile-bar a,
  .mobile-bar button {
    font-size: 14px;
    padding-left: 14px;
    padding-right: 14px;
    min-width: 0;
  }
  .hero {
    padding-top: max(56px, calc(20px + env(safe-area-inset-top)));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .hero h2 {
    font-size: clamp(24px, 6vw, 36px);
  }
  .hero p.lead {
    font-size: 15px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    min-height: 44px;
  }
  .pill {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }
  .section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .section h2 {
    font-size: 22px;
  }
  .cookie-bar__text {
    min-width: 0;
  }
  .cookie-bar {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .radio-grid {
    grid-template-columns: 1fr;
  }
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 14px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
  .mobile-bar a,
  .mobile-bar button {
    flex: 1 1 0;
    min-height: 44px;
    min-width: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Кнопка «Контакты» выше mobile-bar на мобильных */
  .floating-actions {
    bottom: max(72px, calc(56px + env(safe-area-inset-bottom)));
  }
  .floating-actions__btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* На мобильных: нет горизонтального скролла, отступ снизу под фиксированные кнопки */
@media (max-width: 860px) {
  main {
    overflow-x: hidden;
    padding-bottom: max(80px, env(safe-area-inset-bottom));
  }
}
body.mobile-menu-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  main {
    overflow-x: hidden;
  }
  .section {
    padding: 24px 0;
  }
  .section h2 {
    font-size: 22px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero .kicker {
    font-size: 12px;
    padding: 8px 12px;
  }
  .calc .head,
  .calc .body {
    padding: 12px;
  }
  .calc-title {
    font-size: 16px;
  }
  #contact .card {
    padding: 14px;
  }
  #contact .field {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .find-us__links {
    flex-direction: column;
  }
  .find-us__link {
    justify-content: center;
    min-height: 44px;
  }
  .cookie-bar__btn {
    width: 100%;
    min-height: 44px;
  }
  .profile-modal--open {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .profile-modal__dialog {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
    border-radius: 16px;
    max-height: min(80svh, 85vh, calc(100dvh - 24px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .profile-modal__title {
    padding-right: 48px;
  }
  .contact-modal--open {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .contact-modal__dialog {
    max-width: none;
    width: 100%;
    border-radius: 16px;
    max-height: min(80svh, 85vh, calc(100dvh - 24px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .contact-modal__dialog .contact-modal__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .contact-modal__dialog h2 {
    padding-right: 48px;
  }
  details {
    padding: 10px 12px;
  }
  summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 4px 0;
  }
  .step {
    padding: 12px;
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }
  .step .n {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .opt {
    min-height: 44px;
    padding: 10px 12px;
  }
  .result {
    padding: 12px;
  }
  .result .price {
    font-size: 20px;
  }
  .card h3 {
    font-size: 15px;
    margin-left: 14px;
    margin-right: 14px;
  }
  .card p,
  .card .tagrow {
    margin-left: 14px;
    margin-right: 14px;
  }
  .card .tagrow {
    margin-bottom: 14px;
  }
  .footer {
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }
  .footer-grid {
    gap: 12px;
  }
}

/* Отзывы: выравнивание и отступы, чтобы ничего не прилипало */
#reviews .container {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
#reviews .sub {
  margin-bottom: 1.25rem;
}
#reviews .carousel {
  margin-top: 1.5rem;
}
#reviews .card--review {
  padding: 1.25rem;
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 0;
}
#reviews .card--review .review-avatar {
  margin-bottom: 0.75rem;
}
#reviews .card--review .review-quote {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
#reviews .carousel__nav {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}
#reviews .cta-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* Carousel styles */
.carousel {
  position: relative;
  margin-top: 18px;
}
.carousel__track {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel__slide {
  display: none;
  width: 100%;
  animation: fadeIn 0.4s ease;
}
.carousel__slide--active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.carousel__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .carousel__container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.carousel__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.carousel-swipe-hint {
  display: none;
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .carousel-swipe-hint {
    display: block;
  }
}
.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.carousel__btn:hover:not(:disabled) {
  background: #f7f7f5;
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.carousel__btn:active:not(:disabled) {
  transform: translateY(0);
}
.carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.carousel__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .carousel__dot {
    padding: 18px;
    margin: -18px 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}
.carousel__dot--active {
  width: 24px;
  background: var(--accent);
}
.carousel__dot:hover:not(.carousel__dot--active) {
  background: rgba(0, 0, 0, 0.25);
  transform: scale(1.2);
}
.carousel__dot--active:hover {
  background: var(--accent);
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
  .carousel__slide {
    transition: none;
  }
}

