/* Карточка ипотеки как кнопка */
.ipoteka-card {
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
  transition: transform 0.18s;
  overflow: hidden;
}
.ipoteka-card:hover,
.ipoteka-card:focus {
  transform: translateY(-4px) scale(1.025);
  outline: none;
}
.ipoteka-card:active {
  transform: scale(0.98);
}
.ipoteka-card:focus-visible {
  outline: 2px solid #e53935;
  outline-offset: 2px;
}
/* Кнопки "Подать заявку" для ипотеки */
.ipoteka-btn {
  width: 100%;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ipoteka-btn:hover {
  transform: translateY(-2px);
}
.ipoteka-btn:active {
  background: #b71c1c;
}
.catalog-show-btn {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.8rem;
  background: var(--red);
  border: none;
  transition:
    filter 0.18s,
    transform 0.22s cubic-bezier(0.4, 1.4, 0.6, 1),
    background 0.18s;
  cursor: pointer;
}
.catalog-show-btn:hover,
.catalog-show-btn:focus {
  filter: brightness(1.08);
  transform: scale(1.06) translateY(-2px);
}
.catalog-show-btn:active {
  filter: brightness(0.93);
  transform: scale(0.97);
}
:root {
  --bg: #1a2f1a; /* тёмно-зелёный для загородной атмосферы */
  --bg2: #2d4a2d;
  --card: rgba(255, 255, 255, 0.12);
  --card2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.18);
  --text: #f0f5f0;
  --muted: rgba(240, 245, 240, 0.75);
  --muted2: rgba(240, 245, 240, 0.6);
  --red: #ff3b3b; /* фирменный красный */
  --green: #4ade80; /* более яркий зелёный */
  --nature-green: #22c55e;
  --earth-brown: #a16207;
  --sky-blue: #0ea5e9;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius2: 28px;
  --blur: 16px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  max-width: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Arial,
    'Noto Sans',
    'Helvetica Neue',
    sans-serif;
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(1400px 700px at 30% -5%, rgba(34, 197, 94, 0.15), transparent 60%),
    radial-gradient(1000px 600px at 80% 10%, rgba(161, 98, 7, 0.12), transparent 50%),
    radial-gradient(800px 400px at 60% 90%, rgba(14, 165, 233, 0.08), transparent 40%),
    linear-gradient(135deg, var(--bg) 0%, #0f1f0f 50%, #1a2f1a 100%);
  filter: blur(120px) saturate(1.2);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(2000px 1000px at 50% 50%, rgba(34, 197, 94, 0.15), transparent 70%),
    radial-gradient(1500px 800px at 20% 20%, rgba(161, 98, 7, 0.12), transparent 60%);
  filter: blur(20px);
  z-index: -2;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
input::placeholder,
textarea::placeholder {
  color: rgba(248, 250, 252, 0.52);
  opacity: 1;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(60px) saturate(1.8);
  background: linear-gradient(180deg, rgba(26, 47, 26, 0.95), rgba(26, 47, 26, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 28px;
  width: auto;
}
.brand .name {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand .tag {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}
.menu {
  display: flex;
  gap: 14px;
  align-items: center;
}
.menu a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}
.menu a:hover {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.menu .cta {
  background: var(--red);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(255, 59, 59, 0.25);
}
.menu .cta:hover {
  filter: brightness(1.03);
}
.catalog-header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-left: 1rem;
  padding-left: 0.5rem;
}
.catalog-header-nav .header-nav-link {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.catalog-header-nav .header-nav-link {
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .catalog-header-nav {
    gap: 0.6rem;
  }
  .catalog-header-nav .header-nav-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
  }
}
.hamburger {
  display: none;
}
@media (max-width: 980px) {
  .menu {
    display: none;
  }
  .hamburger {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
  }
}

.mobile-drawer {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer a {
  display: block;
  padding: 14px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-drawer a:last-child {
  border-bottom: none;
}
.mobile-drawer a b {
  color: var(--text);
}

[data-mobile-label] {
  display: none;
}

footer a:not(:has(.fab)):not(:has(.messenger-logo)),
footer button:not([type='submit']) {
  color: #f8fafc !important;
  font-weight: 700 !important;
  transition:
    color 0.2s ease,
    transform 0.2s ease !important;
}

footer a:not(:has(.fab)):not(:has(.messenger-logo)):hover,
footer button:not([type='submit']):hover {
  color: #ef4444 !important;
  transform: scale(1.04);
}

footer a:has(.fab),
footer a:has(.messenger-logo) {
  color: #f8fafc !important;
  transform: none !important;
}

footer a:has(.fab):hover,
footer a:has(.messenger-logo):hover {
  color: #f8fafc !important;
  transform: none !important;
}

footer div[style*='font-size: 0.85rem'][style*='Предварительный расчет'] {
  text-align: right !important;
  width: 100% !important;
  display: block !important;
  margin-left: auto !important;
}

.messenger-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: block;
}

.messenger-logo-gray {
  filter: grayscale(1) brightness(1.1);
  transition: filter 0.25s ease;
}

a:hover .messenger-logo-gray {
  filter: none;
}

/* Shared mobile rescue layer for pages assembled with heavy inline styles. */
@media (max-width: 900px) {
  header[data-mobile-nav='home'] {
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 1rem 2rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    flex-wrap: nowrap !important;
  }

  header[data-mobile-nav='home'] nav[data-mobile-primary-nav] {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    overflow: visible !important;
    width: auto !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
  }

  header[data-mobile-nav='home'] [data-mobile-primary] {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.8rem !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  header[data-mobile-nav='home'] [data-mobile-hidden] {
    display: none !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn] {
    display: inline-flex !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.9rem !important;
    padding: 0.68rem 0.92rem !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    align-items: center !important;
    gap: 0.55rem !important;
  }

  header[data-mobile-nav='home'] [data-desktop-label] {
    display: none !important;
  }

  header[data-mobile-nav='home'] [data-mobile-label] {
    display: inline !important;
  }

  header[data-mobile-nav='home'] nav > a {
    position: static !important;
    min-height: auto !important;
  }

  header[data-mobile-nav='home'] nav > a::before {
    content: none !important;
  }

  header[data-mobile-nav='home'] nav > a::after {
    content: none !important;
  }

  header[data-mobile-nav='home'] > a img {
    height: 70px !important;
    max-width: 102px !important;
    filter: none !important;
  }

  [data-mobile-sidebar] {
    display: none;
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    min-width: 320px;
  }

  main,
  section,
  article,
  div,
  form {
    min-width: 0;
  }

  header[style*='position: fixed'],
  header[style*='position:fixed'] {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 0 0 22px 22px !important;
    overflow: hidden !important;
  }

  header[style*='position: fixed'] > a,
  header[style*='position:fixed'] > a {
    flex: 0 0 auto;
  }

  header[style*='position: fixed'] > a img,
  header[style*='position:fixed'] > a img {
    height: 44px !important;
    max-width: 122px !important;
  }

  header[style*='position: fixed'] nav,
  header[style*='position:fixed'] nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 2px 6px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    scroll-snap-type: x proximity !important;
  }

  header[style*='position: fixed'] nav::-webkit-scrollbar,
  header[style*='position:fixed'] nav::-webkit-scrollbar {
    display: none !important;
  }

  header[style*='position: fixed'] nav > a,
  header[style*='position:fixed'] nav > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0.68rem 1rem !important;
    text-align: center !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    border-radius: 15px !important;
    backdrop-filter: blur(16px) !important;
    scroll-snap-align: start !important;
  }

  header[style*='position: fixed'] [data-mobile-menu-btn],
  header[style*='position:fixed'] [data-mobile-menu-btn] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    line-height: 1 !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }

  header[style*='position: fixed'] [data-mobile-menu-btn] span:first-child,
  header[style*='position:fixed'] [data-mobile-menu-btn] span:first-child {
    display: block !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    line-height: 1 !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    scroll-snap-align: start !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn] span:first-child {
    opacity: 1;
    display: block !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn]::before {
    content: none !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn]::after {
    content: none !important;
  }

  header[style*='position: fixed'] nav > a[href^='tel:'],
  header[style*='position:fixed'] nav > a[href^='tel:'] {
    min-height: 42px !important;
    justify-content: center !important;
    padding: 0.68rem 1rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
  }

  header[style*='position: fixed'] nav > a[href*='yandex.ru/maps'],
  header[style*='position:fixed'] nav > a[href*='yandex.ru/maps'] {
    grid-column: auto;
  }

  header[style*='position: fixed'] nav > div,
  header[style*='position:fixed'] nav > div {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    gap: 6px !important;
    text-align: left !important;
    scroll-snap-align: start !important;
  }

  header[style*='position: fixed'] nav > div > span:first-child,
  header[style*='position:fixed'] nav > div > span:first-child {
    display: none !important;
  }

  header[style*='position: fixed'] nav > div > a[href^='tel:'],
  header[style*='position:fixed'] nav > div > a[href^='tel:'] {
    flex: 0 0 auto !important;
    padding: 0.68rem 0.95rem !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
    color: #f8fafc !important;
  }

  header[style*='position: fixed'] nav > div a[title],
  header[style*='position:fixed'] nav > div a[title] {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  header[style*='position: fixed'] nav > div a[title] span,
  header[style*='position:fixed'] nav > div a[title] span {
    font-size: 0.78rem !important;
  }

  main > div[style*='padding-top: 100px'] {
    padding-top: 108px !important;
  }

  main[style*='padding-top: 110px'],
  main[style*='padding-top:110px'] {
    padding-top: 108px !important;
  }

  .container[style*='padding-top: 80px'] {
    padding-top: 104px !important;
  }

  [style*='max-width: 1400px'],
  [style*='max-width:1400px'],
  [style*='max-width: 1300px'],
  [style*='max-width:1300px'],
  [style*='max-width: 1200px'],
  [style*='max-width:1200px'] {
    width: min(100%, 100%) !important;
  }

  [style*='grid-template-columns: 2fr 1fr 1fr'],
  [style*='grid-template-columns:2fr 1fr 1fr'],
  [style*='grid-template-columns: repeat(3, minmax(0, 1fr))'],
  [style*='grid-template-columns:repeat(3, minmax(0, 1fr))'] {
    grid-template-columns: 1fr !important;
  }

  [style*='min-width: 320px'],
  [style*='min-width:320px'],
  [style*='min-width: 340px'],
  [style*='min-width:340px'],
  [style*='min-width: 260px'],
  [style*='min-width:260px'],
  [style*='min-width: 240px'],
  [style*='min-width:240px'] {
    min-width: 0 !important;
  }

  .carousel-wrapper-outer {
    padding: 0 14px 18px !important;
  }

  .home-carousel {
    min-height: 380px !important;
    height: 380px !important;
    max-height: none !important;
    border-radius: 1.2rem !important;
  }

  .carousel-slide {
    position: absolute !important;
    inset: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0.78rem !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] {
    width: calc(100% - 2.2rem) !important;
    max-width: 25rem !important;
    margin: auto !important;
    padding: clamp(0.9rem, 3vw, 1.15rem) clamp(0.9rem, 3vw, 1.1rem) clamp(0.82rem, 2.7vw, 1rem) !important;
    border-radius: 1rem !important;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.94)) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34) !important;
    z-index: 2 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .carousel-slide[data-slide='0'] > div[style*='max-width: 520px'] {
    width: calc(100% - 1.6rem) !important;
    max-width: 27rem !important;
    padding: clamp(0.98rem, 3.2vw, 1.2rem) clamp(0.96rem, 3vw, 1.18rem) clamp(0.9rem, 2.8vw, 1.08rem) !important;
  }

  .carousel-slide[data-slide='0'] > div[style*='max-width: 520px'] h2 {
    font-size: clamp(1.5rem, 7.4vw, 1.92rem) !important;
    margin-bottom: 0.72rem !important;
  }

  .carousel-slide[data-slide='0'] > div[style*='max-width: 520px'] div[style*='margin-bottom: 1.6rem'] {
    font-size: 0.86rem !important;
    line-height: 1.36 !important;
    margin-bottom: 0.8rem !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] h2 {
    min-height: 0 !important;
    display: block !important;
    font-size: clamp(1.42rem, 6.6vw, 1.92rem) !important;
    line-height: 1.01 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 0.62rem !important;
    text-align: left !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] p {
    min-height: 0 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.16em !important;
    margin-bottom: 0.42rem !important;
    opacity: 0.82 !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] div[style*='margin-bottom: 1.6rem'] {
    min-height: 0 !important;
    font-size: clamp(0.82rem, 3.4vw, 0.92rem) !important;
    line-height: 1.32 !important;
    margin-bottom: 0.72rem !important;
    gap: 0.2rem !important;
    text-align: left !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] .carousel-cta {
    width: 100% !important;
    min-height: clamp(40px, 10vw, 46px) !important;
    padding: 0.72rem 0.95rem !important;
    font-size: clamp(0.88rem, 3.4vw, 0.98rem) !important;
    box-shadow: 0 12px 24px rgba(229, 57, 53, 0.28) !important;
  }

  .carousel-side-image {
    display: none !important;
  }

  .carousel-side-image img {
    display: none !important;
  }

  .carousel-btn {
    display: none !important;
  }

  .carousel-dots {
    bottom: 0.72rem !important;
    gap: 0.45rem !important;
  }

  footer {
    padding: 22px 16px 18px !important;
  }

  footer > div[style*='display: flex'] {
    flex-direction: column !important;
    gap: 22px !important;
  }

  footer > div[style*='display: flex'] > div {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    text-align: left !important;
  }

  footer img[alt='ПРОСТО'] {
    max-width: 124px !important;
    margin-bottom: 12px !important;
  }

  footer div[style*='font-size: 0.8rem'][style*='max-width: 320px'] {
    max-width: none !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
  }

  footer > div > div:first-child > div[style*='display: flex'][style*='gap: 20px'] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    font-size: 0.95rem !important;
  }

  footer > div > div:first-child > div[style*='display: flex'][style*='gap: 20px'][style*='font-size: 0.9rem'] {
    display: none !important;
  }

  footer > div > div:first-child > div[style*='display: flex'][style*='gap: 20px'] a {
    color: #f8fafc !important;
    line-height: 1.24 !important;
    padding: 0.08rem 0 !important;
  }

  footer > div > div:first-child > div:nth-of-type(5) {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 2px auto 8px !important;
  }

  footer div[style*='height: 1px'][style*='max-width: 600px'] {
    max-width: none !important;
    margin-bottom: 14px !important;
  }

  footer div[style*='text-transform: uppercase'] {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.015em !important;
  }

  footer div[style*='text-transform: uppercase'],
  footer form#consult-form,
  footer div#consult-form-result,
  footer label:has(input[name='privacy_consent']) {
    display: none !important;
  }

  footer form {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  footer form input,
  footer form button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
  }

  footer form .uniform-form-control {
    font-size: 1rem !important;
    padding: 12px 16px !important;
    border-radius: 1rem !important;
  }

  footer form button {
    font-size: 0.95rem !important;
    border-radius: 0.95rem !important;
    padding: 11px 16px !important;
  }

  footer [style*='justify-content: flex-end'] {
    justify-content: flex-start !important;
  }

  footer [style*='text-align: right']:not(div[style*='Предварительный расчет']) {
    text-align: left !important;
  }

  footer label {
    align-items: flex-start !important;
    font-size: 0.72rem !important;
    line-height: 1.32 !important;
  }

  footer [style*='font-size: 1.35rem'] {
    font-size: 1.12rem !important;
    line-height: 1.2 !important;
  }

  footer [style*='display: flex'][style*='gap: 20px'],
  footer [style*='display: flex'][style*='gap: 10px'] {
    row-gap: 10px !important;
  }

  footer > div > div:last-child {
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: right !important;
  }

  footer > div > div:last-child > div {
    margin-bottom: 10px !important;
    text-align: right !important;
  }

  footer > div > div:last-child a[href^='tel:'],
  footer > div > div:last-child a[href^='mailto:'] {
    display: block !important;
    margin-bottom: 8px !important;
  }

  footer > div > div:last-child > div[style*='font-size: 0.75rem'] {
    margin-bottom: 2px !important;
    color: rgba(248, 250, 252, 0.62) !important;
    justify-content: flex-end !important;
  }

  footer > div > div:last-child a[href^='tel:'] {
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    text-align: right !important;
  }

  footer > div > div:last-child a[href^='mailto:'] {
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    text-align: right !important;
  }

  footer > div > div:last-child > div[style*='display: flex'][style*='gap: 12px'] {
    justify-content: flex-end !important;
    margin-top: 10px !important;
  }

  footer > div > div:last-child > div[style*='Мы в соцсетях'] {
    text-align: right !important;
    width: 100% !important;
    margin-left: auto !important;
  }

  footer > div > div:last-child > div[style*='display: flex'][style*='gap: 12px'] a {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
  }

  footer a[href='privacy.html'] {
    display: inline-block !important;
    margin-top: 10px !important;
    font-size: 0.92rem !important;
  }

  [style*='padding: 3rem 2rem 4rem'],
  [style*='padding:3rem 2rem 4rem'],
  [style*='padding: 2rem; max-width: 1200px'],
  [style*='padding:2rem; max-width:1200px'] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .back-btn {
    top: 78px !important;
    left: 12px !important;
    width: 42px !important;
    height: 42px !important;
    backdrop-filter: blur(18px) !important;
  }
}

@media (max-width: 560px) {
  header[data-mobile-nav='home'] nav[data-mobile-primary-nav] {
    gap: 6px !important;
  }

  header[data-mobile-nav='home'] nav > a {
    min-height: auto !important;
    padding: 0.16rem 0 !important;
    font-size: 0.74rem !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn] {
    min-width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    font-size: 0.88rem !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn] span:first-child {
    font-size: 1.2rem !important;
  }

  header[style*='position: fixed'] [data-mobile-menu-btn],
  header[style*='position:fixed'] [data-mobile-menu-btn] {
    font-size: 0.88rem !important;
  }

  header[style*='position: fixed'] [data-mobile-menu-btn] span:first-child,
  header[style*='position:fixed'] [data-mobile-menu-btn] span:first-child {
    font-size: 1.2rem !important;
  }

  footer {
    padding: 20px 14px 16px !important;
  }

  footer > div > div:first-child > div[style*='display: flex'][style*='gap: 20px'] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
  }

  footer div[style*='font-size: 0.8rem'][style*='max-width: 320px'] {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }

  footer div[style*='text-transform: uppercase'] {
    font-size: 0.88rem !important;
  }

  footer form .uniform-form-control {
    min-height: 44px !important;
    font-size: 1rem !important;
  }

  footer form button {
    min-height: 44px !important;
    font-size: 0.92rem !important;
  }

  footer [style*='font-size: 1.35rem'] {
    font-size: 1.04rem !important;
  }

  footer > div > div:last-child a[href^='tel:'] {
    font-size: 1.12rem !important;
  }

  footer > div > div:last-child a[href^='mailto:'] {
    font-size: 0.94rem !important;
  }

  header[style*='position: fixed'] nav,
  header[style*='position:fixed'] nav {
    gap: 7px !important;
  }

  header[style*='position: fixed'] nav > a[href*='yandex.ru/maps'],
  header[style*='position:fixed'] nav > a[href*='yandex.ru/maps'] {
    grid-column: auto;
  }

  .container[style*='padding-top: 80px'] {
    padding-top: 100px !important;
  }

  main > div[style*='padding-top: 100px'] {
    padding-top: 104px !important;
  }

  main[style*='padding-top: 110px'],
  main[style*='padding-top:110px'] {
    padding-top: 104px !important;
  }

  header[style*='position: fixed'],
  header[style*='position:fixed'] {
    padding: 10px 12px 10px !important;
  }

  header[style*='position: fixed'] nav > a,
  header[style*='position:fixed'] nav > a {
    min-height: 40px !important;
    padding: 0.62rem 0.86rem !important;
    font-size: 0.86rem !important;
    border-radius: 14px !important;
  }

  header[style*='position: fixed'] nav > a[href^='tel:'],
  header[style*='position:fixed'] nav > a[href^='tel:'] {
    font-size: 0.88rem !important;
  }

  header[style*='position: fixed'] nav > div > span:first-child,
  header[style*='position:fixed'] nav > div > span:first-child {
    display: none !important;
  }

  header[style*='position: fixed'] nav > div > a[href^='tel:'],
  header[style*='position:fixed'] nav > div > a[href^='tel:'] {
    padding: 0.62rem 0.82rem !important;
    font-size: 0.86rem !important;
  }

  .back-btn {
    top: 74px !important;
  }

  .carousel-slide {
    padding: 0.95rem !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] {
    width: calc(100% - 4px) !important;
    padding: 1rem 0.95rem 0.92rem !important;
    border-radius: 1rem !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] h2 {
    font-size: clamp(1.38rem, 8.6vw, 1.82rem) !important;
    max-width: 11ch !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] div[style*='margin-bottom: 1.6rem'] {
    font-size: 0.86rem !important;
    line-height: 1.36 !important;
  }

  .home-carousel {
    min-height: 350px !important;
    height: 350px !important;
    border-radius: 1.05rem !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] .carousel-cta {
    min-height: 38px !important;
    font-size: 0.84rem !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] {
    width: calc(100% - 1.1rem) !important;
    max-width: 22rem !important;
    margin: auto !important;
  }

  .carousel-slide[data-slide='0'] > div[style*='max-width: 520px'] {
    width: calc(100% - 1rem) !important;
    max-width: 23.2rem !important;
    padding: 0.96rem 0.92rem 0.88rem !important;
  }

  .carousel-slide[data-slide='0'] > div[style*='max-width: 520px'] h2 {
    font-size: clamp(1.34rem, 7.2vw, 1.72rem) !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] h2 {
    font-size: clamp(1.22rem, 6.7vw, 1.52rem) !important;
  }

  .carousel-slide > div[style*='max-width: 520px'] div[style*='margin-bottom: 1.6rem'] {
    font-size: 0.76rem !important;
    line-height: 1.28 !important;
  }

  .catalog-title-main,
  h1[style*='font-size: 3.5rem'],
  h1[style*='font-size: 3rem'],
  h1[style*='font-size: 2.5rem'],
  h2[style*='font-size: 2.5rem'],
  h2[style*='font-size: 2.3rem'] {
    font-size: clamp(1.8rem, 9vw, 2.4rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
  }

  p[style*='font-size: 1.2rem'],
  div[style*='font-size: 1.2rem'] {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  div[style*='font-size: 3.8rem'],
  div[style*='font-size: 3rem'] {
    font-size: clamp(2rem, 11vw, 2.8rem) !important;
  }

  p[style*='font-size: 2rem'] {
    font-size: 1.1rem !important;
    line-height: 1.45 !important;
  }

  .ipoteka-card,
  .catalog-item,
  .review-card {
    border-radius: 1.25rem !important;
  }

  .carousel-prev,
  .carousel-next {
    width: 42px !important;
    height: 42px !important;
  }

  [style*='display: grid'][style*='grid-template-columns: 1fr 1fr'],
  [style*='display:grid'][style*='grid-template-columns: 1fr 1fr'] {
    grid-template-columns: 1fr !important;
  }

  [style*='display: flex'][style*='gap: 48px'],
  [style*='display:flex'][style*='gap:48px'],
  [style*='display: flex'][style*='gap: 2rem'],
  [style*='display:flex'][style*='gap:2rem'] {
    gap: 16px !important;
  }

  [style*='max-width: 400px'],
  [style*='max-width:400px'],
  [style*='max-width: 420px'],
  [style*='max-width:420px'],
  [style*='max-width: 500px'],
  [style*='max-width:500px'],
  [style*='max-width: 600px'],
  [style*='max-width:600px'] {
    max-width: 100% !important;
  }

  [style*='padding: 1.5rem'],
  [style*='padding:1.5rem'] {
    padding: 1rem !important;
  }
}

@media (max-width: 380px) {
  header[data-mobile-nav='home'] > a img {
    height: 34px !important;
    max-width: 90px !important;
  }

  header[data-mobile-nav='home'] nav > a {
    min-height: auto !important;
    padding: 0.14rem 0 !important;
    font-size: 0.68rem !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn] {
    min-width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    font-size: 0.82rem !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn] span:first-child {
    font-size: 1.08rem !important;
  }

  header[style*='position: fixed'] [data-mobile-menu-btn],
  header[style*='position:fixed'] [data-mobile-menu-btn] {
    font-size: 0.82rem !important;
  }

  header[style*='position: fixed'] [data-mobile-menu-btn] span:first-child,
  header[style*='position:fixed'] [data-mobile-menu-btn] span:first-child {
    font-size: 1.08rem !important;
  }

  header[style*='position: fixed'] > a img,
  header[style*='position:fixed'] > a img {
    height: 34px !important;
    max-width: 96px !important;
  }

  header[style*='position: fixed'] nav > a,
  header[style*='position:fixed'] nav > a {
    min-height: 38px !important;
    font-size: 0.8rem !important;
    padding: 0.56rem 0.72rem !important;
  }

  header[style*='position: fixed'] nav > div a[title],
  header[style*='position:fixed'] nav > div a[title] {
    width: 30px !important;
    height: 30px !important;
  }

  main > div[style*='padding-top: 100px'] {
    padding-top: 96px !important;
  }

  main[style*='padding-top: 110px'],
  main[style*='padding-top:110px'],
  .container[style*='padding-top: 80px'] {
    padding-top: 94px !important;
  }
}

/* iPhone/Safari-safe mobile header layout.
   Two rows are more reliable than a single fixed flex row with horizontal scrolling. */
@media (max-width: 900px) {
  header[data-mobile-nav='home'] {
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
    padding-right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
    padding-bottom: 10px !important;
    padding-left: calc(env(safe-area-inset-left, 0px) + 12px) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  header[data-mobile-nav='home'] > a {
    flex: 0 0 auto !important;
  }

  header[data-mobile-nav='home'] > a img,
  header[style*='position: fixed'] > a img,
  header[style*='position:fixed'] > a img {
    height: 44px !important;
    width: auto !important;
    max-width: 116px !important;
  }

  header[data-mobile-nav='home'] nav[data-mobile-primary-nav],
  header[style*='position: fixed'] nav,
  header[style*='position:fixed'] nav {
    order: 2 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 2px 0 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    scroll-snap-type: x proximity !important;
  }

  header[data-mobile-nav='home'] nav[data-mobile-primary-nav]::-webkit-scrollbar,
  header[style*='position: fixed'] nav::-webkit-scrollbar,
  header[style*='position:fixed'] nav::-webkit-scrollbar {
    display: none !important;
  }

  header[data-mobile-nav='home'] nav > a,
  header[style*='position: fixed'] nav > a,
  header[style*='position:fixed'] nav > a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    min-height: 40px !important;
    padding: 0.62rem 0.9rem !important;
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
  }

  header[data-mobile-nav='home'] [data-mobile-menu-btn],
  header[style*='position: fixed'] [data-mobile-menu-btn],
  header[style*='position:fixed'] [data-mobile-menu-btn] {
    flex: 0 0 auto !important;
    margin-left: 2px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .container[style*='padding-top: 80px'] {
    padding-top: 126px !important;
  }
}

@media (max-width: 560px) {
  header[data-mobile-nav='home'] {
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  }

  header[data-mobile-nav='home'] > a img,
  header[style*='position: fixed'] > a img,
  header[style*='position:fixed'] > a img {
    height: 40px !important;
    max-width: 104px !important;
  }

  header[data-mobile-nav='home'] nav > a,
  header[style*='position: fixed'] nav > a,
  header[style*='position:fixed'] nav > a {
    min-height: 38px !important;
    padding: 0.56rem 0.8rem !important;
    font-size: 0.82rem !important;
  }

  .container[style*='padding-top: 80px'] {
    padding-top: 118px !important;
  }
}

@media (max-width: 380px) {
  header[data-mobile-nav='home'] > a img,
  header[style*='position: fixed'] > a img,
  header[style*='position:fixed'] > a img {
    height: 36px !important;
    max-width: 94px !important;
  }

  header[data-mobile-nav='home'] nav > a,
  header[style*='position: fixed'] nav > a,
  header[style*='position:fixed'] nav > a {
    min-height: 36px !important;
    padding: 0.5rem 0.7rem !important;
    font-size: 0.76rem !important;
  }

  .container[style*='padding-top: 80px'] {
    padding-top: 112px !important;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1480px;
  }

  .carousel-wrapper-outer {
    max-width: 1520px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero {
  padding: 52px 0 22px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    var(--shadow),
    0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  backdrop-filter: blur(30px) saturate(1.3);
}
.glass {
  backdrop-filter: blur(60px) saturate(1.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.hero-left {
  padding: 26px;
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(26, 47, 26, 0.4), rgba(15, 31, 15, 0.8)),
    radial-gradient(600px 300px at 70% 30%, rgba(34, 197, 94, 0.2), transparent 60%),
    linear-gradient(45deg, #1a2f1a 0%, #2d4a2d 100%);
  backdrop-filter: blur(40px) saturate(1.4);
}
.hero-left:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 280px at 15% 30%, rgba(255, 59, 59, 0.25), transparent 60%);
  pointer-events: none;
}
.hero-left > * {
  position: relative;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}
.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 59, 59, 0.16);
}
h1 {
  margin: 14px 0 10px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.8px;
}
@media (max-width: 520px) {
  h1 {
    font-size: 40px;
  }
}
h1 .red {
  color: var(--red);
}
.lead {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.55;
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}
.btn.primary {
  background: var(--red);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 59, 59, 0.25);
}
.btn:hover {
  filter: brightness(1.03);
}
.small {
  font-size: 13px;
  color: var(--muted2);
}

.hero-right {
  padding: 18px;
}
.stat {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  margin-bottom: 12px;
}
.stat .label {
  color: var(--muted2);
  font-size: 12px;
}
.stat .value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
}
.stat .value .red {
  color: var(--red);
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.badge {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.section {
  padding: 28px 0;
}
.section h2 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.4px;
}
.section h2 .red {
  color: var(--red);
}
.section p.sub {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tile {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(var(--blur));
}
.tile h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 59, 59, 0.14);
  border: 1px solid rgba(255, 59, 59, 0.25);
  margin-bottom: 10px;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.project-card .img {
  height: 200px;
  background: #111;
  position: relative;
}
.project-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card .chip {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(13, 15, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
}
.project-card .chip b {
  color: #fff;
}
.project-card .body {
  padding: 16px;
}
.project-card .title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}
.project-card .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted2);
  font-size: 13px;
}
.project-card .actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
}
.tab.active {
  background: rgba(255, 59, 59, 0.18);
  border-color: rgba(255, 59, 59, 0.28);
  color: var(--text);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.table th,
.table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  text-align: left;
}
.table th {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
}
.table td {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.table tr:last-child td {
  border-bottom: none;
}

.footer {
  margin-top: 26px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.footer .cols {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}
@media (max-width: 980px) {
  .footer .cols {
    grid-template-columns: 1fr;
  }
}
.footer b {
  color: var(--text);
}
.footer a {
  color: rgba(233, 238, 245, 0.85);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.35);
  z-index: 100;
  padding: 18px;
}
.modal.open {
  display: grid;
  place-items: center;
}
.modal .box {
  width: min(720px, 100%);
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal .content {
  padding: 18px;
}

/* Единый стиль модалки политики конфиденциальности на всех страницах */
#privacy-modal {
  align-items: center !important;
  justify-content: center !important;
  padding: 28px !important;
  box-sizing: border-box;
  background: rgba(8, 12, 16, 0.32) !important;
  backdrop-filter: blur(24px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.25) !important;
  animation: privacy-fade 0.25s ease;
}

#privacy-modal > div {
  background: rgba(24, 28, 36, 0.38) !important;
  /* Эффект стекла */
  backdrop-filter: blur(28px) saturate(1.35) brightness(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.35) brightness(1.12);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 22px !important;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.42),
    0 12px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  overflow: hidden;
  transform: scale(0.97);
  animation: privacy-pop 0.28s ease forwards;
}

#privacy-modal > div > div:first-child {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#privacy-modal > div > div:first-child > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex: 1 1 auto !important;
  width: 100% !important;
}

#privacy-modal > div > div:first-child img {
  height: 126px !important;
  width: auto !important;
}

#privacy-modal h3 {
  color: #f8fafc !important;
  letter-spacing: 0.1px;
  flex: 1 1 auto !important;
  width: 100% !important;
  text-align: right !important;
  margin-left: auto !important;
}

#privacy-modal button {
  color: #f8fafc !important;
  display: none !important;
}

#privacy-modal iframe {
  background: transparent;
}

#privacy-modal a,
#privacy-modal strong {
  color: #e53935;
}

@keyframes privacy-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes privacy-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.field label {
  font-size: 12px;
  color: var(--muted2);
}
.field input,
.field textarea,
.field select {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.uniform-form-control {
  padding: 12px 16px !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #f8fafc !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.uniform-form-control::placeholder {
  color: rgba(248, 250, 252, 0.42) !important;
}
.uniform-form-control:focus {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.uniform-form-control:focus-visible {
  border-color: rgba(255, 255, 255, 0.24) !important;
  outline: none !important;
}
.uniform-form-control option {
  color: #111827;
}
@media (max-width: 768px) {
  .uniform-form-control {
    min-height: 46px !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    border-radius: 1rem !important;
  }
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.notice {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.5;
}
.notice a {
  color: rgba(233, 238, 245, 0.85);
  text-decoration: underline;
}
/* === КАРУСЕЛЬ (carousel) === */
.carousel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
  color: #fff;
  box-shadow: 0 18px 35px rgba(229, 57, 53, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.carousel-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(229, 57, 53, 0.5);
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}
.carousel-side-image {
  width: 44%;
  max-width: 520px;
  height: 72%;
  min-height: 240px;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  background: rgba(15, 23, 42, 0.35);
}
.carousel-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: #4ade80;
  width: 16px;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}
.home-carousel {
  position: relative;
  width: 100%;
  min-height: 400px;
  height: 60vh;
  max-height: 590px;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.carousel-wrapper-outer {
  padding: 1rem 7rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 3.5rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  z-index: 0;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}
@media (min-height: 900px) {
  .home-carousel {
    min-height: 450px !important;
    height: 55vh !important;
    max-height: 620px !important;
  }
}
@media (max-width: 900px) {
  .carousel-wrapper-outer {
    padding: 1rem 1.5rem !important;
  }
}
@media (max-width: 480px) {
  .carousel-wrapper-outer {
    padding: 0.5rem 0.5rem !important;
  }
}
@media (max-width: 768px) {
  .home-carousel {
    height: 280px !important;
  }
  .carousel-side-image {
    width: 40% !important;
    min-height: 180px !important;
  }
  .carousel-btn {
    width: 40px !important;
    height: 40px !important;
    left: 1rem !important;
    right: auto;
  }
  .carousel-btn-next {
    left: auto !important;
    right: 1rem !important;
  }
  .carousel-dot {
    width: 10px !important;
    height: 10px !important;
  }
  .carousel-dot.active {
    width: 14px !important;
  }
  .carousel-slide h3 {
    font-size: 1.8rem !important;
  }
  .carousel-slide p {
    font-size: 0.95rem !important;
  }
}
@media (max-width: 480px) {
  .home-carousel {
    height: 220px !important;
  }
  .carousel-side-image {
    display: none !important;
  }
  .carousel-btn {
    width: 36px !important;
    height: 36px !important;
  }
  .carousel-slide h3 {
    font-size: 1.3rem !important;
  }
  .carousel-slide p {
    font-size: 0.85rem !important;
  }
}
.catalog-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.catalog-tagline {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: rgba(248, 250, 252, 0.85);
  max-width: 260px;
}
