/* ============================================================
   Real Estate Expert — style.css
   ============================================================ */

/* ── Global reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Montserrat', sans-serif;
}
html { scroll-behavior: smooth; }
body, html { width: 100%; }
body { background-color: #042f1f; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   HEADER (pill menu from previous version)
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px clamp(16px, 3vw, 48px);
  pointer-events: none;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 999px;
  padding: 8px 12px 8px 16px;
  box-shadow: 0 4px 32px rgba(4,47,31,.13);
  pointer-events: all;
}

/* Brand */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }

/* Обёртка полноэкранного мобильного меню — на десктопе просто прозрачная обёртка вокруг nav+actions */
.mobile-menu-panel { display: contents; }
.mobile-menu-panel-inner { display: contents; }
.mobile-menu-logo { display: none; }

/* Nav */
.main-nav {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(6px, 1.6vw, 26px);
  font-size: 13px; font-weight: 600; color: #5c7268;
}
.main-nav > a {
  position: relative; padding: 6px 4px;
  transition: color .2s;
  white-space: nowrap;
}
.main-nav > a:hover { color: #042f1f; }
.main-nav > a::after {
  content: ''; position: absolute; bottom: 0; left: 4px; right: 4px;
  height: 2px; background: #4ade80;
  border-radius: 999px; transform: scaleX(0);
  transition: transform .25s ease; transform-origin: left;
}
.main-nav > a:hover::after { transform: scaleX(1); }

/* Dropdown */
.nav-item-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 4px; margin: 0;
  color: #5c7268; background: transparent; border: 0;
  cursor: pointer; font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: color .2s;
}
.nav-dropdown-toggle svg { transition: transform .22s; flex-shrink: 0; }
.nav-dropdown-toggle:hover,
.nav-item-dropdown.is-open .nav-dropdown-toggle { color: #042f1f; }
.nav-item-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-item-dropdown::after {
  content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 20px;
}
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  display: grid; gap: 2px; min-width: 320px; padding: 8px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(220,240,230,.9);
  border-radius: 18px; box-shadow: 0 20px 60px rgba(13,43,30,.13);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  z-index: 300;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
.nav-dropdown-menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; transition: background .18s; }
.nav-dropdown-menu a:hover { background: #f0faf4; }
.nav-dropdown-title { color: #0f172a; font-weight: 700; font-size: 14px; }
.nav-dropdown-subtitle { color: #5c7268; font-size: 12px; line-height: 1.4; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.phone-link { color: #0f172a; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .2s; }
.phone-link:hover { color: #10b981; }

/* CTA button */
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(90deg, #10b981, #34d399);
  color: #042f1f; font-weight: 700; font-size: 13px;
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(16,185,129,.3);
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,185,129,.45);
  background: linear-gradient(90deg, #34d399, #4ade80);
}

/* Language selector */
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 1.5px solid rgba(4,47,31,.18);
  border-radius: 999px;
  padding: 8px 28px 8px 12px;
  font-size: 12px; font-weight: 700; color: #042f1f;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23042f1f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .2s;
}
.lang-select:hover { border-color: #10b981; }

/* Mobile toggle */
.menu-toggle {
  display: none; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  position: relative;
  background: transparent; border: 1.5px solid #cce3d5;
  border-radius: 10px; cursor: pointer; flex-shrink: 0;
  z-index: 2100;
}
.menu-toggle-line {
  position: absolute;
  width: 16px; height: 2px; background: #0f172a; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.menu-toggle-line:nth-child(1) { top: 14px; }
.menu-toggle-line:nth-child(2) { top: 21px; }
.site-header.menu-open .menu-toggle-line:nth-child(1) {
  top: 18px; transform: rotate(45deg);
}
.site-header.menu-open .menu-toggle-line:nth-child(2) {
  top: 18px; transform: rotate(-45deg);
}

/* ============================================================
   HERO — split screen
   ============================================================ */
.split-hero {
  display: flex; width: 100vw; height: 100vh;
  position: relative; padding-top: 0;
}
.hero-mobile-tabs { display: none; }
.hero-pinned-title { display: none; }
.split-panel {
  position: relative; flex: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 50px 60px 60px 60px;
  transition: flex 0.8s cubic-bezier(0.25, 1, 0.3, 1);
  overflow: hidden;
}
.panel-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; z-index: 1;
}
.split-panel.active { flex: 2.3; }
.panel-static-top {
  position: relative; z-index: 5; width: 65vw;
}
/* Main title — pushed down so header doesn't overlap */
.panel-static-top { padding-top: 110px; }

.main-title {
  font-size: 3.1rem; font-weight: 800; line-height: 1.25;
  letter-spacing: -0.02em;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.split-panel.active .main-title {
  opacity: 1; transform: translateY(0); transition-delay: 0.3s;
}
.main-title.text-light { color: #ffffff; }
.main-title.text-dark { color: #042f1f; }
.panel-left { background: linear-gradient(145deg, #042f1f, #021a13); color: #fff; }
.panel-right { background-color: #ffffff; color: #042f1f; border-left: 1px solid rgba(4,47,31,.1); }
.panel-content {
  position: relative; z-index: 5; width: 100%; max-width: 680px;
  margin-top: auto;
  transition: all 0.5s ease;
}
.split-panel:not(.active) .panel-content { opacity: 0.45; }
.split-panel.active .panel-content { opacity: 1; }
.panel-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; margin-bottom: 15px;
}
.badge-green { color: #4ade80; }
.badge-dark { color: #042f1f; }
.panel-subtitle { font-size: 1.6rem; font-weight: 700; line-height: 1.35; margin-bottom: 15px; }
.panel-desc { font-size: 0.95rem; line-height: 1.6; margin-bottom: 30px; font-weight: 500; }
.panel-left .panel-desc { color: #cbd5e1; }
.panel-right .panel-desc { color: #2d3748; }
.panel-btn {
  display: inline-block; padding: 16px 36px;
  border-radius: 30px; font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s ease; margin-bottom: 40px;
}
.split-panel:not(.active) .panel-btn { opacity: 0; pointer-events: none; }
.btn-green {
  background: linear-gradient(90deg, #10b981, #34d399);
  color: #021a13;
  box-shadow: 0 8px 24px rgba(16,185,129,.3);
}
.btn-green:hover {
  background: linear-gradient(90deg, #34d399, #4ade80);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(74,222,128,.5);
}
.btn-dark { background-color: #042f1f; color: #fff; }
.btn-dark:hover {
  background-color: #064e3b; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4,47,31,.3);
}
.panel-stats {
  display: flex; gap: 40px; border-top: 1px solid;
  padding-top: 25px;
}
.panel-left .panel-stats { border-top-color: rgba(255,255,255,.1); }
.panel-right .panel-stats { border-top-color: #e2e8f0; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.color-green { color: #4ade80; }
.color-dark { color: #042f1f; }
.stat-label { font-size: 0.8rem; line-height: 1.3; font-weight: 600; max-width: 140px; }
.panel-left .stat-label { color: #94a3b8; }
.panel-right .stat-label { color: #475569; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  padding: 120px 60px;
  background-color: #f8fafc;
  display: flex; justify-content: center; align-items: center;
}
.about-container {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: start;
}
.about-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  color: #042f1f; margin-bottom: 25px;
}
.badge-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; }
.about-logo-img {
  height: 130px; width: auto;
  display: block;
  margin-bottom: 22px;
  /* Inline SVG with cropped viewBox — aligns flush left */
}
.about-title {
  font-size: 2.4rem; font-weight: 800; line-height: 1.3;
  color: #042f1f; letter-spacing: -0.01em; margin-bottom: 35px;
}
/* "изнутри" — same gradient as "под ключ" */
.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #4ade80 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Floating button with green glow */
.about-btn {
  display: inline-block; padding: 12px 28px;
  border: 1.5px solid rgba(4,47,31,.2);
  border-radius: 30px; color: #042f1f; font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(16,185,129,.0);
  transition: all 0.3s ease;
}
.about-btn:hover {
  background: transparent;
  border-color: #4ade80;
  color: #042f1f;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25), 0 8px 24px rgba(74,222,128,.35);
  transform: translateY(-3px);
}
.about-right { display: flex; flex-direction: column; gap: 24px; }
.about-text-p { font-size: 1rem; line-height: 1.7; color: #475569; font-weight: 500; }
.about-text-p.highlight-p { font-size: 1.1rem; color: #042f1f; font-weight: 600; line-height: 1.6; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  padding: 100px 40px;
  background-color: #ffffff;
  display: flex; justify-content: center; width: 100%;
}
.services-container { width: 100%; max-width: 1200px; }
.services-header { text-align: left; margin-bottom: 48px; max-width: 800px; }
.services-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: #10b981; text-transform: uppercase;
  display: inline-block; margin-bottom: 14px;
}
.services-title {
  font-size: 2.5rem; font-weight: 800; color: #0f172a;
  line-height: 1.25; margin-bottom: 16px; letter-spacing: -0.02em;
}
.no-wrap { white-space: nowrap; color: #10b981; }
.services-subtitle { font-size: 1.05rem; line-height: 1.6; color: #475569; }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; width: 100%;
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
}
/* Floating card with green glow */
.service-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px; padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 4px 16px rgba(4,47,31,.04);
  transition: transform 0.35s cubic-bezier(0.25,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
a.service-card { text-decoration: none; }
.service-card:hover {
  background: #ffffff;
  border-color: #4ade80;
  transform: translateY(-8px);
  box-shadow: 0 16px 44px rgba(74,222,128,.38), 0 4px 12px rgba(4,47,31,.06);
}
.service-card-header { display: flex; align-items: center; gap: 16px; }
.service-number {
  width: 40px; height: 40px; background: #10b981; color: #fff;
  font-size: 0.88rem; font-weight: 700; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-card-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; line-height: 1.3; }
.service-card-text { font-size: 0.92rem; line-height: 1.65; color: #475569; }
.service-card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: #10b981; font-weight: 700; font-size: 0.9rem;
}
.service-card-link .arrow { transition: transform 0.3s ease; }
.service-card:hover .service-card-link .arrow { transform: translateX(4px); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-section {
  padding: 120px 60px; background-color: #f8fafc;
  display: flex; justify-content: center;
}
.process-container { width: 100%; max-width: 1200px; }
.process-header { max-width: 700px; margin-bottom: 60px; }
.process-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: #059669; text-transform: uppercase;
  display: inline-block; margin-bottom: 16px;
}
.process-title {
  font-size: 2.6rem; font-weight: 800; color: #0f172a;
  line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.02em;
}
.process-subtitle { font-size: 1.05rem; line-height: 1.6; color: #475569; font-weight: 500; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
/* Floating card */
.process-card {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 40px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 16px rgba(4,47,31,.04);
  transition: transform 0.4s cubic-bezier(0.25,1,0.3,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.process-card:hover {
  transform: translateY(-8px);
  border-color: #4ade80;
  box-shadow: 0 16px 44px rgba(74,222,128,.38), 0 4px 12px rgba(4,47,31,.06);
}
/* Dim siblings, highlight hovered */
.process-grid:hover .process-card { opacity: 0.6; }
.process-grid .process-card:hover { opacity: 1; }
.card-num {
  font-size: 3rem; font-weight: 900; line-height: 1;
  color: #e2e8f0; margin-bottom: 24px; transition: color 0.4s;
}
.process-card:hover .card-num { color: #10b981; }
.card-step-title { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 14px; }
.card-step-text { font-size: 0.92rem; line-height: 1.6; color: #64748b; font-weight: 500; }
.process-card.has-badge { padding-bottom: 75px; }
.opt-badge {
  position: absolute; bottom: 35px; left: 40px;
  background: #e6f7f0; color: #059669;
  font-size: 0.75rem; font-weight: 700;
  padding: 6px 14px; border-radius: 30px;
  letter-spacing: 0.02em; text-transform: lowercase;
}
/* Logo watermark in process cards */
.process-logo-bg {
  position: absolute; bottom: -8px; right: -8px;
  width: 28%; aspect-ratio: 1;
  background: url('https://realestate-expert.pl/img/logo.png') center/contain no-repeat;
  opacity: 0.06;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.34,1.56,.64,1), opacity 0.4s ease;
}
.process-card:hover .process-logo-bg {
  transform: rotate(-15deg) scale(1.1);
  opacity: 0.13;
}

/* ============================================================
   CASES
   ============================================================ */
.cases-section {
  padding: 120px 60px; background-color: #ffffff;
  display: flex; justify-content: center;
}
.cases-container { width: 100%; max-width: 1200px; }
.cases-header { margin-bottom: 60px; }
.cases-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: #059669; text-transform: uppercase;
  display: inline-block; margin-bottom: 16px;
}
.cases-title { font-size: 2.6rem; font-weight: 800; color: #0f172a; line-height: 1.2; margin-bottom: 20px; }
.cases-subtitle { font-size: 1.05rem; color: #475569; }
.cases-viewport {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch;
}
.case-main-featured {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(4,47,31,.04);
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.35s cubic-bezier(0.25,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.case-main-featured:hover {
  border-color: #4ade80;
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(74,222,128,.35);
}
.main-img-container { position: relative; height: 640px; overflow: hidden; background: #f1f5f9; width: 100%; }
.main-case-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-location-tag {
  position: absolute; top: 25px; left: 25px;
  background: rgba(15,23,42,.85); backdrop-filter: blur(8px);
  color: #fff; padding: 6px 16px; font-size: 0.75rem; font-weight: 700;
  border-radius: 30px; text-transform: uppercase;
}
.main-case-content { padding: 40px; display: flex; flex-direction: column; flex-grow: 1; }
.case-block-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 20px; }
.case-paragraph { font-size: 0.95rem; line-height: 1.6; color: #475569; margin-bottom: 16px; }
.case-outcome-box {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 16px; padding: 20px; margin-top: 30px;
  display: flex; gap: 15px;
}
.outcome-icon {
  width: 24px; height: 24px; background: #10b981; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: bold; flex-shrink: 0;
}
.outcome-text { font-size: 0.92rem; color: #166534; line-height: 1.5; }
.cases-secondary-column {
  display: flex; flex-direction: column; gap: 24px; justify-content: space-between;
}
/* Floating right cards */
.case-full-card {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 30px;
  box-shadow: 0 4px 12px rgba(4,47,31,.03);
  transition: all 0.35s cubic-bezier(0.25,1,0.3,1);
}
.case-full-card:hover {
  background: #ffffff; border-color: #4ade80;
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(74,222,128,.35);
}
.card-case-tag {
  font-size: 0.7rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; display: block; margin-bottom: 10px;
}
.card-case-title { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.card-case-desc { font-size: 0.9rem; color: #475569; line-height: 1.5; margin-bottom: 14px; }
.card-case-result {
  font-size: 0.88rem; color: #059669; font-weight: 600;
  background: rgba(16,185,129,.06); display: inline-block;
  padding: 4px 12px; border-radius: 8px;
}

/* ============================================================
   STATS / ACHIEVEMENTS
   ============================================================ */
.stats-section {
  padding: 120px 60px;
  background: linear-gradient(145deg, #042f1f, #02140d);
  display: flex; justify-content: center; align-items: center;
}
.stats-container { width: 100%; max-width: 1200px; }
.stats-header { margin-bottom: 50px; }
.stats-badge {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: #4ade80; margin-bottom: 16px;
}
.badge-line { width: 24px; height: 2px; background: #4ade80; }
.stats-main-title { font-size: 2.6rem; font-weight: 800; line-height: 1.25; color: #fff; letter-spacing: -0.01em; }
.stats-main-title .text-highlight { color: #4ade80; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.stat-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 45px 35px; text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: all 0.4s cubic-bezier(0.25,1,0.3,1);
}
.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(74,222,128,.04);
  border-color: #4ade80;
  box-shadow: 0 16px 44px rgba(74,222,128,.38), 0 15px 35px rgba(2,20,13,.4);
}
.stat-big-number {
  font-size: 4rem; font-weight: 800; color: #4ade80;
  line-height: 1; margin-bottom: 20px; letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(74,222,128,.15);
}
.stat-card-desc { font-size: 0.95rem; line-height: 1.6; color: #cbd5e1; font-weight: 500; }

@media (max-width: 640px) {
  .stats-section { padding: 70px 20px; }
  .stats-grid { gap: 16px; }
  .stat-card { padding: 28px 24px; }
  .stat-big-number { font-size: 2.6rem; margin-bottom: 10px; }
  .stat-card-desc { font-size: 0.88rem; }
}

/* ============================================================
   TEAM — slider
   ============================================================ */
.team-section {
  padding: 120px 60px; background-color: #ffffff;
  display: flex; justify-content: center;
}
.team-container { width: 100%; max-width: 1200px; display: flex; flex-direction: column; }
.team-header { max-width: 800px; margin-bottom: 60px; }
.team-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: #059669; text-transform: uppercase; display: inline-block; margin-bottom: 16px;
}
.team-title { font-size: 2.6rem; font-weight: 800; color: #0f172a; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.02em; }
.team-subtitle { font-size: 1.05rem; line-height: 1.6; color: #475569; }
.team-slider-wrapper {
  position: relative;
  padding: 20px 0;
  margin: -20px 0;
}
.team-mobile-nav { display: none; }

@media (max-width: 640px) {
  .team-grid { position: relative; }
  .team-card { display: none !important; width: 100% !important; }
  .team-card.is-active-mobile { display: flex !important; }
  .team-mobile-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-top: 24px;
  }
  .team-mobile-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid #e2e8f0; background: #fff; color: #64748b;
    font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
  }
  .team-mobile-btn:hover { background: #10b981; color: #fff; border-color: #10b981; }
  .team-mobile-counter { font-size: 0.9rem; font-weight: 700; color: #0f172a; min-width: 44px; text-align: center; }
}
.team-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25,1,0.3,1);
  will-change: transform;
}
/* Floating team card */
.team-card {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 24px; padding: 40px 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 4px 16px rgba(4,47,31,.04);
  flex: 0 0 auto; width: calc((100% - 72px) / 4);
  position: relative; z-index: 1;
  transition: transform 0.35s cubic-bezier(0.25,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease, z-index 0s;
}
@media (max-width: 900px) {
  .team-card { width: calc((100% - 24px) / 2); }
}
@media (max-width: 560px) {
  .team-card { width: 100%; padding: 32px 24px; }
}
.team-card:hover {
  border-color: #4ade80;
  box-shadow: 0 8px 24px rgba(74,222,128,.32);
  z-index: 10;
}
.team-icon-placeholder {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
  border-radius: 50%; margin-bottom: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(16,185,129,.15);
}
.inner-circle { width: 24px; height: 24px; background: #fff; border-radius: 50%; }
.team-photo-wrapper {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16,185,129,.18);
  border: 3px solid #ffffff;
  outline: 1px solid #e2e8f0;
}
.team-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-name { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.team-role { font-size: 0.9rem; font-weight: 600; color: #10b981; margin-bottom: 0; }
.team-desc { font-size: 0.9rem; line-height: 1.6; color: #64748b; font-weight: 500; }
.team-controls { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.control-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.control-btn:hover {
  background: #10b981; color: #fff; border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(74,222,128,.3), 0 8px 20px rgba(16,185,129,.35);
}
.control-btn:disabled { opacity: 0.3; cursor: default; box-shadow: none; background: #fff; color: #64748b; border-color: #e2e8f0; }

/* ============================================================
   BENEFITS / ADVANTAGES
   ============================================================ */
.benefits-section {
  padding: 120px 60px; background-color: #ffffff;
  display: flex; justify-content: center;
}
.benefits-container { width: 100%; max-width: 1200px; }
.benefits-header { text-align: left; margin-bottom: 50px; }
.benefits-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: #059669; text-transform: uppercase; display: inline-block; margin-bottom: 16px;
}
.benefits-title { font-size: 2.6rem; font-weight: 800; color: #0f172a; line-height: 1.2; letter-spacing: -0.02em; }
.benefits-list { display: flex; flex-direction: column; gap: 20px; }
/* Floating benefit card */
.benefit-row-card {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 24px; padding: 35px 40px;
  display: flex; align-items: center; gap: 40px;
  box-shadow: 0 4px 14px rgba(4,47,31,.04);
  transition: all 0.35s cubic-bezier(0.25,1,0.3,1);
}
.benefit-row-card:hover {
  border-color: #4ade80;
  transform: translateX(6px) translateY(-3px);
  box-shadow: 0 14px 40px rgba(74,222,128,.35);
}
.benefit-number {
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #6ee7b7 0%, #059669 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  min-width: 80px;
}
.benefit-content { display: flex; flex-direction: column; gap: 8px; }
.benefit-card-title { font-size: 1.2rem; font-weight: 700; color: #0f172a; }
.benefit-card-text { font-size: 0.95rem; line-height: 1.6; color: #475569; }

/* ============================================================
   REVIEWS — grid (static 4 col, slider via JS)
   ============================================================ */
.reviews-section {
  padding: 100px 40px; background-color: #ffffff;
  display: flex; justify-content: center; width: 100%;
}
.reviews-container { width: 100%; max-width: 1200px; display: flex; flex-direction: column; }
.reviews-header { text-align: left; margin-bottom: 48px; }
.reviews-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: #10b981; text-transform: uppercase; display: inline-block; margin-bottom: 14px;
}
.reviews-title { font-size: 2.5rem; font-weight: 800; color: #0f172a; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.02em; }
.reviews-subtitle { font-size: 1.05rem; color: #64748b; margin-bottom: 24px; }
/* Google badge with hover */
.google-maps-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px; border: 1px solid #e2e8f0;
  border-radius: 30px; background: #fff; color: #475569;
  font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
  transition: all 0.25s ease;
}
.google-maps-btn:hover {
  border-color: #4ade80; color: #042f1f;
  box-shadow: 0 0 0 2px rgba(74,222,128,.3), 0 6px 18px rgba(74,222,128,.2);
  transform: translateY(-2px);
}
/* Reviews slider */
.reviews-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  margin: -20px 0;
  clip-path: inset(-40px 0px -40px 0px);
}
.reviews-grid {
  display: flex; gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25,1,0.3,1);
  will-change: transform;
  margin-bottom: 36px;
}
/* Floating review card */
.review-card {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 26px;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 250px;
  box-shadow: 0 4px 12px rgba(4,47,31,.04);
  flex: 0 0 auto; width: calc((100% - 72px) / 4);
  position: relative; z-index: 1;
  transition: all 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
.review-card:hover {
  background: #ffffff; border-color: #4ade80;
  transform: translateY(-8px);
  box-shadow: 0 16px 44px rgba(74,222,128,.35);
  z-index: 10;
}
.review-user-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.avatar-blue { background: #3b82f6; }
.avatar-green { background: #22c55e; }
.avatar-red { background: #ef4444; }
.avatar-yellow { background: #f59e0b; }
.avatar-purple { background: #9c27b0; }
.avatar-teal { background: #00bcd4; }
.avatar-orange { background: #ff5722; }
.avatar-gray { background: #607d8b; }
.review-avatar-img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid #e2e8f0;
}
.review-user-info { display: flex; flex-direction: column; }
.review-user-name { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.review-date { font-size: 0.8rem; color: #94a3b8; margin-top: 2px; }
.review-stars { color: #ffb800; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-text {
  font-size: 0.9rem; line-height: 1.6; color: #475569; flex-grow: 1; padding-bottom: 15px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.review-more-link {
  display: inline-block; color: #10b981; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; margin-top: 6px; margin-bottom: 12px; background: none; border: none; padding: 0; font-family: inherit;
}
.review-more-link:hover { color: #059669; text-decoration: underline; }
.review-google-logo {
  position: absolute; bottom: 22px; right: 22px;
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; opacity: 0.8; transition: opacity 0.2s;
}
.review-card:hover .review-google-logo { opacity: 1; }
.reviews-controls { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.review-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.review-btn:hover {
  background: #f8fafc; color: #10b981; border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(74,222,128,.25);
}
.review-btn:disabled { opacity: 0.3; cursor: default; }

/* Модалка "Читать далее" для полного текста отзыва */
.review-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 10020;
  background: rgba(15, 23, 42, 0.55);
  align-items: center; justify-content: center;
  padding: 20px;
}
.review-modal-overlay.is-open { display: flex; }
.review-modal-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  width: 100%; max-width: 520px;
  max-height: 85vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(4,47,31,.25);
}
.review-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.review-modal-close:hover { background: #f8fafc; color: #10b981; border-color: #10b981; }
.review-modal-stars { color: #ffb800; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 20px; }
.review-modal-text { font-size: 1rem; line-height: 1.7; color: #334155; margin-bottom: 24px; white-space: pre-line; }
.review-modal-footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.review-modal-name { font-size: 1rem; font-weight: 700; color: #0f172a; }

@media (max-width: 640px) {
  .review-modal-box { padding: 28px 22px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 100px 40px; background-color: #ffffff;
  display: flex; justify-content: center; width: 100%;
}
.faq-container { width: 100%; max-width: 1000px; }
.faq-header { text-align: left; margin-bottom: 48px; }
.faq-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: #10b981; text-transform: uppercase; display: inline-block; margin-bottom: 14px;
}
.faq-title { font-size: 2.5rem; font-weight: 800; color: #0f172a; line-height: 1.25; letter-spacing: -0.02em; }
.faq-accordion-list { display: flex; flex-direction: column; gap: 16px; }
/* Floating FAQ card */
.faq-item {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(4,47,31,.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.faq-item:hover:not([open]) {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4,47,31,.06);
}
/* Green glow when open */
.faq-item[open] {
  border-color: #4ade80;
  box-shadow: 0 12px 36px rgba(74,222,128,.32);
  transform: translateY(-3px);
}
.faq-summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 32px;
  font-size: 1.1rem; font-weight: 700; color: #0f172a;
  cursor: pointer; position: relative; user-select: none;
  transition: color 0.3s ease;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-summary { color: #10b981; }
.faq-summary::before {
  content: ''; position: absolute; right: 32px;
  width: 20px; height: 2px; background: #10b981;
  border-radius: 2px; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.faq-summary::after {
  content: ''; position: absolute; right: 41px;
  width: 2px; height: 20px; background: #10b981;
  border-radius: 2px; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.faq-item[open] .faq-summary::before { transform: rotate(45deg); }
.faq-item[open] .faq-summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 32px 24px; font-size: 0.95rem; line-height: 1.65; color: #64748b; }

@media (max-width: 640px) {
  .faq-summary { padding: 20px 60px 20px 20px; font-size: 1rem; }
  .faq-summary::before { right: 20px; }
  .faq-summary::after { right: 29px; }
  .faq-content { padding: 0 20px 20px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 140px 60px;
  background: linear-gradient(135deg, #032519, #053b27);
  display: flex; justify-content: center; align-items: center;
  position: relative; overflow: hidden;
}
.contact-section::after {
  content: ''; position: absolute; width: 400px; height: 400px;
  background: #10b981; filter: blur(150px); opacity: 0.15;
  top: -100px; right: -100px; pointer-events: none;
}
.contact-container {
  width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 80px; align-items: center;
}
.contact-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; color: #a7f3d0; margin-bottom: 20px;
}
.contact-title { font-size: 2.8rem; font-weight: 800; line-height: 1.2; color: #fff; letter-spacing: -0.01em; margin-bottom: 24px; }
.contact-title .text-accent-light { color: #4ade80; }
.contact-subtitle { font-size: 1.05rem; line-height: 1.65; color: #cbd5e1; font-weight: 500; margin-bottom: 40px; }
.company-details { display: flex; flex-direction: column; gap: 12px; }
.detail-item { font-size: 0.95rem; color: #94a3b8; font-weight: 500; text-decoration: none; transition: color 0.3s; }
.company-name { color: #fff; font-weight: 600; }
a.contact-link:hover { color: #4ade80; }
.contact-form-side {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 28px; padding: 45px;
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
}
.premium-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.7rem; font-weight: 700; color: #94a3b8; letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 16px; }
}
.premium-form input[type="text"],
.premium-form input[type="tel"],
.premium-form textarea {
  width: 100%; background: rgba(4,31,20,.5);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  padding: 16px 20px; font-size: 0.95rem; color: #fff; font-weight: 500;
  outline: none; transition: all 0.3s cubic-bezier(0.25,1,0.3,1);
}
.premium-form input::placeholder,
.premium-form textarea::placeholder { color: rgba(255,255,255,.3); }
.premium-form input:focus,
.premium-form textarea:focus {
  border-color: #10b981; background: rgba(4,31,20,.8);
  box-shadow: 0 0 15px rgba(16,185,129,.15);
}
.policy-agreement { margin-top: 4px; }
.checkbox-container {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; position: relative; user-select: none;
}
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
  width: 18px; height: 18px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.2); border-radius: 5px;
  flex-shrink: 0; margin-top: 2px; position: relative; transition: all 0.2s;
}
.checkbox-container:hover input ~ .checkmark { border-color: #4ade80; }
.checkbox-container input:checked ~ .checkmark { background: #10b981; border-color: #10b981; }
.checkmark::after {
  content: ''; position: absolute; display: none;
  left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark::after { display: block; }
.policy-text { font-size: 0.85rem; line-height: 1.4; color: #94a3b8; font-weight: 500; }
/* Rounded submit button */
.form-submit-btn {
  width: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border: none; border-radius: 999px;
  padding: 18px; font-size: 1rem; font-weight: 700;
  color: #042f1f; cursor: pointer;
  box-shadow: 0 10px 25px rgba(16,185,129,.25);
  transition: transform 0.3s cubic-bezier(0.25,1,0.3,1), box-shadow 0.3s ease, background 0.3s;
}
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(74,222,128,.35), 0 15px 30px rgba(16,185,129,.4);
  background: linear-gradient(90deg, #34d399, #4ade80);
}
.form-submit-btn:active { transform: translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
  background-color: #02140d; padding: 80px 60px 40px;
  display: flex; justify-content: center;
}
.footer-container { width: 100%; max-width: 1200px; }
.footer-top-zone {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; padding-bottom: 40px;
}
.footer-cta-text { max-width: 650px; }
.cta-heading { font-size: 1.8rem; font-weight: 800; line-height: 1.3; color: #fff; margin-bottom: 12px; }
.cta-heading .accent-green { color: #4ade80; }
.cta-desc { font-size: 0.95rem; color: #94a3b8; line-height: 1.6; font-weight: 500; }
.footer-social-box { display: flex; gap: 16px; align-items: center; }
.social-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 30px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25,1,0.3,1);
  white-space: nowrap;
}
.btn-whatsapp {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); color: #fff;
}
.btn-whatsapp .icon-svg { fill: #fff; width: 18px; height: 18px; transition: fill 0.3s; }
.btn-whatsapp:hover {
  background: rgba(37,211,102,.15); border-color: #25d366; color: #25d366;
  box-shadow: 0 0 0 2px rgba(37,211,102,.3), 0 8px 20px rgba(37,211,102,.25);
  transform: translateY(-2px);
}
.btn-whatsapp:hover .icon-svg { fill: #25d366; }
.btn-telegram {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); color: #fff;
}
.btn-telegram .icon-svg { fill: #fff; width: 18px; height: 18px; transition: fill 0.3s; }
.btn-telegram:hover {
  background: rgba(0,136,204,.15); border-color: #0088cc; color: #0088cc;
  box-shadow: 0 0 0 2px rgba(0,136,204,.3), 0 8px 20px rgba(0,136,204,.25);
  transform: translateY(-2px);
}
.btn-telegram:hover .icon-svg { fill: #0088cc; }
.btn-action {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-action:hover {
  background: #fff; color: #02140d;
  box-shadow: 0 0 0 2px rgba(255,255,255,.4), 0 8px 20px rgba(255,255,255,.15);
  transform: translateY(-2px);
}
.footer-divider { border: none; height: 1px; background: rgba(255,255,255,.06); margin: 0; }
.footer-links-zone {
  display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 50px; padding: 60px 0;
}
.footer-col { display: flex; flex-direction: column; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-logo-img { height: 38px; width: auto; }
.brand-text { font-size: 0.9rem; line-height: 1.6; color: #94a3b8; font-weight: 500; margin-bottom: 24px; }
.brand-contacts { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-link { font-size: 0.95rem; color: #fff; font-weight: 700; text-decoration: none; transition: color 0.2s; }
.footer-contact-link:hover { color: #4ade80; }
.col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: #4ade80; margin-bottom: 20px; text-align: left; width: 100%; align-self: flex-start; }
.col-title.section-space { margin-top: 30px; }

/* Аккордеон footer — на десктопе полностью инертен, выглядит как обычные колонки */
.footer-accordion-header {
  display: contents;
  cursor: default;
  pointer-events: none;
}
.footer-accordion-header .col-title { pointer-events: auto; }
.footer-accordion-chevron { display: none; }
.footer-accordion-chevron-wrap { display: none; }
.footer-accordion-body { display: contents; }
.address-link { color: #94a3b8; transition: color .2s; text-decoration: none; display: inline-block; }
.address-link:hover { color: #4ade80; }
.footer-menu { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-menu a {
  font-size: 0.9rem; color: #94a3b8; font-weight: 500;
  display: inline-block;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}
/* Underline on hover */
.footer-menu a::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1.5px;
  background: #4ade80; transition: width 0.22s ease;
}
.footer-menu a:hover { color: #fff; transform: translateX(4px); }
.footer-menu a:hover::after { width: 100%; }
.footer-static-text { font-size: 0.9rem; line-height: 1.6; color: #94a3b8; font-weight: 500; }
.footer-static-text.company-name { color: #fff; font-weight: 600; }
.footer-static-text.nip-text { margin-bottom: 24px; }
.footer-col-company .address-link { display: block; margin-bottom: 24px; }
.footer-col-company-contacts { gap: 8px; }
.footer-bottom-bar {
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.footer-bottom-copyright { font-size: 0.8rem; color: #475569; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.footer-bottom-right { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-bottom-links { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; white-space: nowrap; }
.footer-bottom-links a { color: #475569; font-weight: 500; transition: color 0.2s ease; }
.footer-bottom-links a:hover { color: #4ade80; }
.footer-bottom-sep { color: #475569; opacity: 0.4; }
.footer-bottom-design { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #475569; font-weight: 500; white-space: nowrap; }
.footer-design-star { height: 26px; width: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto auto; border-radius: 999px; }
  .menu-toggle { display: flex; justify-self: end; }

  /* КРИТИЧНО: backdrop-filter на .header-inner создаёт свой containing block
     для position:fixed потомков — из-за этого мобильное меню растягивалось
     не на весь экран, а только на размер самого пилла-шапки.
     Убираем backdrop-filter, пока меню открыто, чтобы .mobile-menu-panel
     позиционировался относительно реального viewport. */
  .site-header.menu-open .header-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* По умолчанию панель скрыта за пределами экрана */
  .mobile-menu-panel {
    display: block;
    position: fixed; inset: 0;
    background: #ffffff;
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease;
    overflow-y: auto;
  }
  .site-header.menu-open .mobile-menu-panel {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0s, transform 0.3s ease;
  }

  .mobile-menu-panel-inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 90px 24px 60px;
    text-align: center;
  }

  /* Логотип в мобильном меню убран — освобождаем место сверху */
  .mobile-menu-logo {
    display: none;
  }

  /* Крупные центрированные пункты меню */
  .site-header .main-nav {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; width: 100%;
  }
  .main-nav > a,
  .nav-dropdown-toggle {
    font-size: 1.15rem; font-weight: 700; color: #0f172a;
    padding: 12px 4px; width: 100%;
  }
  .nav-dropdown-toggle {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: none; border: none; cursor: pointer;
  }
  .nav-item-dropdown { width: 100%; }
  .nav-dropdown-toggle svg { width: 14px; height: 9px; color: #10b981; flex-shrink: 0; }

  .nav-dropdown-menu,
  .nav-item-dropdown.is-open .nav-dropdown-menu {
    position: static; display: none;
    flex-direction: column; align-items: center;
    gap: 4px;
    margin: 6px 0 10px;
    width: 100%;
    min-width: 0; background: transparent; border: 0;
    border-radius: 0;
    box-shadow: none; opacity: 1; visibility: visible;
    pointer-events: auto; transform: none; backdrop-filter: none; transition: none;
  }
  .nav-item-dropdown.is-open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; max-width: 320px;
    padding: 10px 12px;
    text-align: center;
    white-space: normal;
  }
  .nav-dropdown-title { font-size: 0.9rem; font-weight: 600; color: #0f172a; }
  .nav-dropdown-subtitle {
    font-size: 0.75rem; color: #64748b;
    white-space: normal; text-align: center;
  }

  /* Телефон, CTA и язык — друг под другом, по центру */
  .site-header .header-actions {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; width: 100%; max-width: 320px;
  }
  .header-actions .phone-link { font-size: 1.05rem; font-weight: 700; }
  .header-actions .header-cta {
    width: 100%; text-align: center; justify-content: center;
    padding: 16px; font-size: 1rem;
  }
  .header-actions .lang-select {
    width: 100%; text-align: center; justify-content: center;
    padding: 12px 16px;
  }

  .split-hero { flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }

  /* Переключатель вкладок — объединяет два блока Hero в один для мобильной версии */
  .hero-mobile-tabs {
    display: flex; gap: 10px;
    padding: 100px 20px 16px;
    background: #042f1f;
    flex: 0 0 auto;
  }
  .hero-mobile-tab {
    flex: 1;
    padding: 13px 10px;
    border-radius: 30px;
    border: 1.5px solid rgba(255,255,255,.2);
    background: transparent;
    color: rgba(255,255,255,.65);
    font-weight: 700; font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .hero-mobile-tab.is-active {
    background: #10b981; border-color: #10b981; color: #042f1f;
  }

  /* Точки-индикаторы под вкладками — визуально подсказывают, что это 2 "страницы" и что она листается сама */
  .hero-mobile-dots {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 0 20px 16px; background: #042f1f;
    flex: 0 0 auto;
  }
  .hero-mobile-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.25);
    transition: all 0.25s ease;
  }
  .hero-mobile-dot.is-active { width: 20px; border-radius: 4px; background: #10b981; }

  /* Закреплённый заголовок — общий для обеих вкладок, не переключается */
  .hero-pinned-title {
    display: block;
    background: #042f1f;
    padding: 4px 20px 22px;
    flex: 0 0 auto;
  }
  .hero-pinned-title .main-title {
    font-size: 1.55rem; opacity: 1; transform: none; margin: 0;
  }

  /* Старые заголовки внутри панелей больше не нужны на мобильном — их роль взял на себя hero-pinned-title */
  .panel-static-top { display: none; }

  .split-panel {
    flex: 1 1 auto; min-height: 0; height: auto;
    padding: 22px 20px 28px;
    display: none;
    justify-content: center;
    overflow-y: auto;
  }
  .split-panel.mobile-tab-active { display: flex; animation: heroPanelIn 0.35s ease; }
  @keyframes heroPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .panel-content { margin-top: 0; }
  .panel-badge { margin-bottom: 12px; }
  .panel-subtitle { font-size: 1.2rem; margin-bottom: 0; }
  .panel-desc { font-size: 0.88rem; line-height: 1.5; margin-top: 8px; margin-bottom: 0; }
  .panel-stats { display: none; }
  .panel-btn { margin-top: 18px; margin-bottom: 14px; padding: 14px 30px; }

  /* Контент всегда полностью виден на мобильном — не зависит от .active (hover-логика только для десктопа) */
  .panel-content,
  .split-panel:not(.active) .panel-content { opacity: 1; }
  .panel-btn,
  .split-panel:not(.active) .panel-btn { opacity: 1; pointer-events: auto; }
  .panel-btn-link,
  .split-panel:not(.active) .panel-btn-link { opacity: 1; pointer-events: auto; }
  .main-title,
  .split-panel:not(.active) .main-title { opacity: 1; transform: none; }

  .about-container, .contact-container { grid-template-columns: 1fr; }
  .services-grid, .process-grid, .stats-grid { grid-template-columns: 1fr; }
  .cases-viewport { grid-template-columns: 1fr; }
  .cases-secondary-column { display: none; }
  .team-card { width: calc((100% - 24px) / 2); }
  .review-card { width: calc((100% - 24px) / 2); }
  .footer-top-zone { flex-direction: column; align-items: flex-start; }
  .footer-links-zone { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .split-panel { height: auto; min-height: 0; }
  .main-title { font-size: 1.5rem; }
  .about-section, .services-section, .process-section,
  .cases-section, .stats-section, .team-section,
  .benefits-section, .reviews-section, .faq-section,
  .contact-section, .main-footer { padding: 80px 20px; }
  .about-title { font-size: 1.9rem; }
  .services-title, .cases-title, .process-title,
  .team-title, .benefits-title, .reviews-title, .faq-title,
  .contact-title, .stats-main-title, .achievements-title { font-size: 1.9rem; }
  .services-subtitle, .process-subtitle, .cases-subtitle,
  .team-subtitle, .reviews-subtitle, .contact-subtitle,
  .achievements-subtitle { font-size: 0.95rem; }
  .benefit-row-card { flex-direction: column; align-items: flex-start; gap: 15px; padding: 30px; }
  .team-card, .review-card { width: 100%; }

  /* Круглые кнопки-иконки соцсетей без текста */
  .footer-social-box {
    flex-direction: row; align-items: center; justify-content: center;
    gap: 14px;
  }
  .social-btn {
    width: 52px; height: 52px; padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .social-btn span { display: none; }
  .social-btn .icon-svg { width: 20px; height: 20px; margin: 0; }
  .icon-envelope { stroke: #fff; transition: stroke 0.3s; }
  .btn-action:hover .icon-envelope { stroke: #02140d; }

  /* Компактный аккордеон вместо колонок ссылок */
  .footer-links-zone {
    display: flex; flex-direction: column;
    gap: 0; padding: 30px 0 10px;
  }
  .footer-col.brand-col { margin-bottom: 24px; }
  .footer-col-company {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-bottom-copyright { white-space: normal; }
  .footer-bottom-right { flex-direction: column; gap: 14px; }
  .footer-accordion-item {
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .footer-accordion-item:last-child { border-bottom: none; }
  .footer-accordion-header {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    background: none; border: none; cursor: pointer;
    padding: 18px 4px;
    text-align: left;
    pointer-events: auto;
  }
  .footer-accordion-header .col-title { margin: 0; }
  .footer-accordion-chevron-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(74,222,128,.12);
    border: 1px solid rgba(74,222,128,.3);
    transition: background 0.25s ease, transform 0.3s ease;
  }
  .footer-accordion-chevron {
    display: block;
    color: #4ade80;
    transition: transform 0.3s ease;
  }
  .footer-accordion-item.is-open .footer-accordion-chevron-wrap {
    background: #10b981; border-color: #10b981;
    transform: rotate(180deg);
  }
  .footer-accordion-item.is-open .footer-accordion-chevron { color: #042f1f; }
  .footer-accordion-body {
    display: block;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .footer-accordion-item.is-open .footer-accordion-body {
    max-height: 400px;
  }
  .footer-accordion-body .footer-menu,
  .footer-accordion-body .address-link,
  .footer-accordion-body .company-name,
  .footer-accordion-body .nip-text {
    padding-bottom: 18px;
  }
  .col-title.section-space { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   INTER-SECTION CTA BLOCKS
   ========================================================================== */

.site-cta-section, .site-cta-section * {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.site-cta-section {
    padding: 60px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
}

.site-cta-card {
    width: 100%;
    max-width: 1140px;
    border-radius: 24px;
    padding: 50px 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.site-cta-info {
    display: flex;
    flex-direction: column;
    max-width: 680px;
}

.site-cta-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.site-cta-badge::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background-color: #10b981;
}

.site-cta-heading {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    margin-top: 0;
}

.site-cta-description {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

.site-cta-button-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Light theme */
.cta-theme-light .site-cta-card {
    background-color: #ecf3ee;
    border: 1px solid #d5e5db;
}
.cta-theme-light .site-cta-badge { color: #10b981; }
.cta-theme-light .site-cta-heading { color: #0f172a; }
.cta-theme-light .site-cta-accent { color: #10b981; }
.cta-theme-light .site-cta-description { color: #475569; }
.cta-theme-light .site-cta-btn {
    background-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}
.cta-theme-light .site-cta-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

/* Dark theme */
.cta-theme-dark .site-cta-card {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.cta-theme-dark .site-cta-badge { color: #10b981; }
.cta-theme-dark .site-cta-heading { color: #ffffff; }
.cta-theme-dark .site-cta-accent { color: #10b981; }
.cta-theme-dark .site-cta-description { color: #cbd5e1; }
.cta-theme-dark .btn-mint-glow {
    background-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.cta-theme-dark .btn-mint-glow:hover {
    background-color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.4);
}

@media (max-width: 992px) {
    .site-cta-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 30px;
        text-align: left;
    }
    .site-cta-button-wrap {
        justify-content: flex-start;
    }
    .site-cta-btn {
        white-space: normal;
        text-align: center;
    }
    .site-cta-heading {
        font-size: 1.9rem;
    }
}

@media (max-width: 540px) {
    .site-cta-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .site-cta-btn {
        width: 100%;
        white-space: normal;
        text-align: center;
        padding: 16px 20px;
        line-height: 1.3;
    }
    .site-cta-heading {
        font-size: 1.6rem;
    }
}


/* ==========================================================================
   IPOTEKA.PHP — стили страницы ипотеки
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

.page-ipoteka .mortgage-hero-section,IPOTEKA.PHP — стили страницы ипотеки
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

.page-nedvizhimost .mortgage-hero-section, .page-ipoteka .mortgage-hero-section *, .page-nedvizhimost .mortgage-hero-section *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.page-ipoteka .mortgage-hero-section,.page-nedvizhimost .mortgage-hero-section{
    width: 100%;
    padding: 160px 20px 140px 20px;
    /* Мягкий градиент на фоне всей секции */
    background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0) 60%), #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-ipoteka .mortgage-hero-container,.page-nedvizhimost .mortgage-hero-container{
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Навигация (Хлебные крошки) */
.page-ipoteka .hero-breadcrumbs,.page-nedvizhimost .hero-breadcrumbs{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 36px;
}

.page-ipoteka .hero-breadcrumbs a,.page-nedvizhimost .hero-breadcrumbs a{
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-ipoteka .hero-breadcrumbs a:hover,.page-nedvizhimost .hero-breadcrumbs a:hover{
    color: #10b981;
}

.page-ipoteka .breadcrumbs-separator,.page-nedvizhimost .breadcrumbs-separator{
    color: #cbd5e1;
}

.page-ipoteka .breadcrumbs-current,.page-nedvizhimost .breadcrumbs-current{
    color: #0f172a;
    font-weight: 600;
}

/* Главный заголовок H1 */
.page-ipoteka .hero-main-title,.page-nedvizhimost .hero-main-title{
    font-size: 2.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.page-ipoteka .hero-title-accent,.page-nedvizhimost .hero-title-accent{
    color: #10b981;
}

/* Подзаголовок */
.page-ipoteka .hero-subtitle,.page-nedvizhimost .hero-subtitle{
    font-size: 1.05rem;
    line-height: 1.65;
    color: #475569;
    max-width: 760px;
    margin-bottom: 40px;
}

/* Группа кнопок */
.page-ipoteka .hero-buttons-group,.page-nedvizhimost .hero-buttons-group{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* Основная кнопка */
.page-ipoteka .hero-btn-primary,.page-nedvizhimost .hero-btn-primary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #10b981;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
    transition: all 0.3s ease;
}

.page-ipoteka .hero-btn-primary:hover,.page-nedvizhimost .hero-btn-primary:hover{
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.35);
}

/* Вторичная кнопка с яркой неоновой подсветкой при наведении */
.page-ipoteka .hero-btn-secondary,.page-nedvizhimost .hero-btn-secondary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    background-color: transparent;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.page-ipoteka .hero-btn-secondary:hover,.page-nedvizhimost .hero-btn-secondary:hover{
    border-color: #10b981;
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

/* ИСПРАВЛЕНО: Стильная, контрастная светлая плашка */
.page-ipoteka .hero-stats-card,.page-nedvizhimost .hero-stats-card{
    width: 100%;
    max-width: 800px;
    background: #f8fafc; /* Ультра-светлый премиальный фон вместо блёклого белого */
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 35px 20px;
    /* Глубокая мягкая тень, приподнимающая блок над общим фоном страницы */
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04); 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    position: relative;
}

/* Элемент статистики */
.page-ipoteka .stats-item,.page-nedvizhimost .stats-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Разделители между колонками */
.page-ipoteka .stats-item:not(:last-child)::after,.page-nedvizhimost .stats-item:not(:last-child)::after{
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background-color: #e2e8f0;
}

/* Крупные ярко-зелёные цифры */
.page-ipoteka .stats-number,.page-nedvizhimost .stats-number{
    font-size: 2.1rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

/* Текст описания показателей */
.page-ipoteka .stats-label,.page-nedvizhimost .stats-label{
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569; /* Сбалансированный графитовый цвет текста */
    max-width: 180px;
    line-height: 1.4;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ И ПЛАНШЕТОВ
   ========================================================================== */
@media (max-width: 768px) {
    .page-ipoteka .hero-main-title,.page-nedvizhimost .hero-main-title{
        font-size: 2.1rem;
    }
    
    .page-ipoteka .hero-buttons-group,.page-nedvizhimost .hero-buttons-group{
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .page-ipoteka .hero-btn-primary,.page-nedvizhimost .hero-btn-primary, .page-ipoteka .hero-btn-secondary, .page-nedvizhimost .hero-btn-secondary{
        width: 100%;
    }

    .page-ipoteka .hero-stats-card,.page-nedvizhimost .hero-stats-card{
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 20px;
        background: #ffffff; /* На мобильных экранах оставляем чистый фон */
    }

    .page-ipoteka .stats-item:not(:last-child)::after,.page-nedvizhimost .stats-item:not(:last-child)::after{
        display: none;
    }
}
.page-ipoteka .chaos-prevention-section,.page-nedvizhimost .chaos-prevention-section, .page-ipoteka .chaos-prevention-section *, .page-nedvizhimost .chaos-prevention-section *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Основной контейнер секции */
.page-ipoteka .chaos-prevention-section,.page-nedvizhimost .chaos-prevention-section{
    width: 100%;
    padding: 100px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.page-ipoteka .chaos-container,.page-nedvizhimost .chaos-container{
    width: 100%;
    max-width: 1140px;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Модная асимметричная сетка */
    gap: 60px;
    align-items: center;
}

/* Левая сторона: Текстовый блок */
.page-ipoteka .chaos-info-side,.page-nedvizhimost .chaos-info-side{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-ipoteka .chaos-tag,.page-nedvizhimost .chaos-tag{
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
    padding-left: 24px;
}

/* Маленькая стильная линия перед тегом */
.page-ipoteka .chaos-tag::before,.page-nedvizhimost .chaos-tag::before{
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 2px;
    background-color: #10b981;
}

.page-ipoteka .chaos-title,.page-nedvizhimost .chaos-title{
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.page-ipoteka .chaos-title-accent,.page-nedvizhimost .chaos-title-accent{
    color: #10b981;
}

.page-ipoteka .chaos-description,.page-nedvizhimost .chaos-description{
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

/* Правая сторона: Карточки преимуществ */
.page-ipoteka .chaos-cards-side,.page-nedvizhimost .chaos-cards-side{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Интерактивная карточка со скрытым ховер-эффектом */
.page-ipoteka .chaos-feature-card,.page-nedvizhimost .chaos-feature-card{
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект легкого приподнимания карточки и подсветки рамки при наведении */
.page-ipoteka .chaos-feature-card:hover,.page-nedvizhimost .chaos-feature-card:hover{
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateX(6px); /* Элегантный сдвиг вправо вместо прыжка вверх */
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

/* Круглый контейнер под аккуратную галочку */
.page-ipoteka .chaos-icon-wrapper,.page-nedvizhimost .chaos-icon-wrapper{
    width: 44px;
    height: 44px;
    background-color: rgba(16, 185, 129, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.page-ipoteka .chaos-feature-card:hover .chaos-icon-wrapper,.page-nedvizhimost .chaos-feature-card:hover .chaos-icon-wrapper{
    background-color: rgba(16, 185, 129, 0.15);
}

.page-ipoteka .chaos-check-icon,.page-nedvizhimost .chaos-check-icon{
    width: 20px;
    height: 20px;
}

/* Текст внутри карточек */
.page-ipoteka .chaos-card-content,.page-nedvizhimost .chaos-card-content{
    text-align: left;
}

.page-ipoteka .chaos-card-title,.page-nedvizhimost .chaos-card-title{
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.page-ipoteka .chaos-card-text,.page-nedvizhimost .chaos-card-text{
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ ЭКРАНЫ
   ========================================================================== */
@media (max-width: 968px) {
    .page-ipoteka .chaos-container,.page-nedvizhimost .chaos-container{
        grid-template-columns: 1fr; /* Перестраиваем в одну колонку на планшетах */
        gap: 40px;
    }
    
    .page-ipoteka .chaos-title,.page-nedvizhimost .chaos-title{
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    .page-ipoteka .chaos-prevention-section,.page-nedvizhimost .chaos-prevention-section{
        padding: 60px 16px;
    }
    
    .page-ipoteka .chaos-feature-card,.page-nedvizhimost .chaos-feature-card{
        flex-direction: column; /* Иконка встает над текстом на мелких мобилках */
        gap: 16px;
        padding: 20px;
    }
    
    .page-ipoteka .chaos-feature-card:hover,.page-nedvizhimost .chaos-feature-card:hover{
        transform: none; /* Убираем сдвиг в сторону на мобилках */
    }
}
.page-ipoteka .mortgage-types-section,.page-nedvizhimost .mortgage-types-section, .page-ipoteka .mortgage-types-section *, .page-nedvizhimost .mortgage-types-section *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Основной контейнер секции */
.page-ipoteka .mortgage-types-section,.page-nedvizhimost .mortgage-types-section{
    width: 100%;
    padding: 100px 20px;
    background-color: #f8fafc; /* Легкий контрастный фон, чтобы отделить от предыдущего белого блока */
    display: flex;
    justify-content: center;
}

.page-ipoteka .types-container,.page-nedvizhimost .types-container{
    width: 100%;
    max-width: 1140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Шапка блока (Заголовок и подзаголовок) */
.page-ipoteka .types-header,.page-nedvizhimost .types-header{
    text-align: center;
    max-width: 700px;
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ipoteka .types-tag,.page-nedvizhimost .types-tag{
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-ipoteka .types-tag::before,.page-nedvizhimost .types-tag::before{
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background-color: #10b981;
}

.page-ipoteka .types-main-title,.page-nedvizhimost .types-main-title{
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.page-ipoteka .types-subtitle,.page-nedvizhimost .types-subtitle{
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

/* Современная двухколоночная сетка */
.page-ipoteka .types-grid,.page-nedvizhimost .types-grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Интерактивная карточка программы */
.page-ipoteka .type-card,.page-nedvizhimost .type-card{
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01);
}

/* Эффект ховера: красивое приподнимание и мягкая зеленая рамка со свечением */
.page-ipoteka .type-card:hover,.page-nedvizhimost .type-card:hover{
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08);
}

/* Стильный минималистичный бокс для строгой SVG иконки */
.page-ipoteka .type-icon-box,.page-nedvizhimost .type-icon-box{
    width: 52px;
    height: 52px;
    background-color: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Подсветка иконки при ховере на саму карточку */
.page-ipoteka .type-card:hover .type-icon-box,.page-nedvizhimost .type-card:hover .type-icon-box{
    background-color: rgba(16, 185, 129, 0.1);
}

.page-ipoteka .type-card:hover .type-icon-box svg path,.page-nedvizhimost .type-card:hover .type-icon-box svg path, .page-ipoteka .type-card:hover .type-icon-box svg circle, .page-nedvizhimost .type-card:hover .type-icon-box svg circle{
    stroke: #10b981; /* Меняем цвет линий SVG на фирменный зеленый */
}

.page-ipoteka .type-icon-box svg,.page-nedvizhimost .type-icon-box svg{
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Контент внутри карточки */
.page-ipoteka .type-content,.page-nedvizhimost .type-content{
    text-align: left;
}

.page-ipoteka .type-title,.page-nedvizhimost .type-title{
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-ipoteka .type-text,.page-nedvizhimost .type-text{
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ И ПЛАНШЕТОВ
   ========================================================================== */
@media (max-width: 992px) {
    .page-ipoteka .types-grid,.page-nedvizhimost .types-grid{
        grid-template-columns: 1fr; /* Переводим в 1 колонку на средних экранах */
        gap: 20px;
    }
    
    .page-ipoteka .types-main-title,.page-nedvizhimost .types-main-title{
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    .page-ipoteka .mortgage-types-section,.page-nedvizhimost .mortgage-types-section{
        padding: 60px 16px;
    }

    .page-ipoteka .type-card,.page-nedvizhimost .type-card{
        flex-direction: column; /* Иконка встает над текстом на смартфонах */
        gap: 16px;
        padding: 24px;
    }
    
    .page-ipoteka .types-main-title,.page-nedvizhimost .types-main-title{
        font-size: 1.6rem;
    }
}
/* Полная изоляция стилей секции */
.page-ipoteka .cta-mortgage-section,.page-cases .cta-mortgage-section,.page-nedvizhimost .cta-mortgage-section,.page-ipoteka .cta-mortgage-section *,.page-cases .cta-mortgage-section *,.page-nedvizhimost .cta-mortgage-section *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.page-ipoteka .cta-mortgage-section,.page-cases .cta-mortgage-section,.page-nedvizhimost .cta-mortgage-section{
    width: 100%;
    padding: 60px 20px 100px 20px;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
}

/* Перевели на Grid для жесткой фиксации колонок */
.page-ipoteka .cta-mortgage-box,.page-cases .cta-mortgage-box,.page-nedvizhimost .cta-mortgage-box{
    width: 100%;
    max-width: 1140px;
    background-color: #022c22;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px 60px;
    
    display: grid;
    grid-template-columns: 1fr auto; /* Левая колонка забирает всё место, правая — только под размер кнопки */
    align-items: center;
    gap: 40px;
    
    box-shadow: 0 20px 40px rgba(2, 44, 34, 0.15);
    overflow: hidden; /* Защита: ничего не вылезет за пределы скруглений */
}

/* Контентный блок */
.page-ipoteka .cta-mortgage-content,.page-cases .cta-mortgage-content,.page-nedvizhimost .cta-mortgage-content{
    width: 100%;
    text-align: left;
}

.page-ipoteka .cta-mortgage-badge,.page-cases .cta-mortgage-badge,.page-nedvizhimost .cta-mortgage-badge{
    display: inline-block;
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.page-ipoteka .cta-mortgage-title,.page-cases .cta-mortgage-title,.page-nedvizhimost .cta-mortgage-title{
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.page-ipoteka .cta-mortgage-subtitle,.page-cases .cta-mortgage-subtitle,.page-nedvizhimost .cta-mortgage-subtitle{
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 620px;
}

/* Оболочка кнопки */
.page-ipoteka .cta-mortgage-action,.page-cases .cta-mortgage-action,.page-nedvizhimost .cta-mortgage-action{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Кнопка с абсолютной защитой от деформации */
.page-ipoteka .btn-green-glow,.page-cases .btn-green-glow,.page-nedvizhimost .btn-green-glow{
    display: inline-flex !important; /* Принудительный строчно-блочный тип */
    align-items: center;
    justify-content: center;
    
    /* Защитные свойства: */
    width: max-content !important;  /* Ширина строго по тексту */
    max-width: 100%;
    white-space: nowrap;            /* Запрещаем тексту переноситься или сжиматься */
    
    padding: 18px 36px !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff !important;
    background-color: #10b981 !important;
    text-decoration: none !important;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-ipoteka .btn-green-glow:hover,.page-cases .btn-green-glow:hover,.page-nedvizhimost .btn-green-glow:hover{
    background-color: #34d399 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.45);
}

/* ==========================================================================
   АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================================================= */
@media (max-width: 992px) {
.page-ipoteka .cta-mortgage-box,.page-cases .cta-mortgage-box,.page-nedvizhimost .cta-mortgage-box{
        grid-template-columns: 1fr; /* На планшетах и мобильных перестраиваем в одну колонку */
        text-align: center;
        padding: 40px;
        gap: 30px;
    }

.page-ipoteka .cta-mortgage-content,.page-cases .cta-mortgage-content,.page-nedvizhimost .cta-mortgage-content{
        text-align: center;
    }

.page-ipoteka .cta-mortgage-title,.page-cases .cta-mortgage-title,.page-nedvizhimost .cta-mortgage-title{
        font-size: 1.9rem;
    }

.page-ipoteka .cta-mortgage-action,.page-cases .cta-mortgage-action,.page-nedvizhimost .cta-mortgage-action{
        width: 100%;
        justify-content: center;
    }

.page-ipoteka .btn-green-glow,.page-cases .btn-green-glow,.page-nedvizhimost .btn-green-glow{
        width: 100% !important; /* На мобильном разрешаем занять всю ширину экрана */
        white-space: normal;    /* Разрешаем перенос текста, если экран совсем узкий */
        text-align: center;
    }
}

@media (max-width: 576px) {
.page-ipoteka .cta-mortgage-section,.page-cases .cta-mortgage-section,.page-nedvizhimost .cta-mortgage-section{
        padding: 40px 16px 80px 16px;
    }

.page-ipoteka .cta-mortgage-box,.page-cases .cta-mortgage-box,.page-nedvizhimost .cta-mortgage-box{
        padding: 30px 20px;
        border-radius: 20px;
    }

.page-ipoteka .cta-mortgage-title,.page-cases .cta-mortgage-title,.page-nedvizhimost .cta-mortgage-title{
        font-size: 1.6rem;
    }
    
.page-ipoteka .cta-mortgage-subtitle,.page-cases .cta-mortgage-subtitle,.page-nedvizhimost .cta-mortgage-subtitle{
        font-size: 0.9rem;
    }
}
.page-ipoteka .calc-section-full,.page-nedvizhimost .calc-section-full, .page-ipoteka .calc-section-full *, .page-nedvizhimost .calc-section-full *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Секция во всю ширину экрана */
.page-ipoteka .calc-section-full,.page-nedvizhimost .calc-section-full{
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #022c22; /* Наш глубокий фирменный хвойный цвет */
    padding: 90px 20px; /* Добавили "воздуха" сверху и снизу всей секции */
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.page-ipoteka .calc-inner-wrapper,.page-nedvizhimost .calc-inner-wrapper{
    width: 100%;
    max-width: 1140px;
}

/* Шапка с просторными отступами */
.page-ipoteka .calc-header-balanced,.page-nedvizhimost .calc-header-balanced{
    text-align: center;
    margin-bottom: 50px; /* Больше пространства до основной карточки */
}

.page-ipoteka .calc-badge-mini,.page-nedvizhimost .calc-badge-mini{
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 20px; /* Дали надписи "КАЛЬКУЛЯТОР" свободно дышать */
}

.page-ipoteka .calc-title-balanced,.page-nedvizhimost .calc-title-balanced{
    color: #ffffff;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.page-ipoteka .calc-subtitle-balanced,.page-nedvizhimost .calc-subtitle-balanced{
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 850px;
    margin: 0 auto;
}

/* Основная подложка */
.page-ipoteka .calc-workspace-card,.page-nedvizhimost .calc-workspace-card{
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 50px; /* Увеличили внутренние поля карточки для ощущения простора */
}

/* Сетка полей ввода и вывода */
.page-ipoteka .calc-main-layout,.page-nedvizhimost .calc-main-layout{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px; /* Сделали зазор между левой и правой колонкой больше */
    margin-bottom: 45px; /* Больше отступа перед подвалом */
}

/* Элементы ввода */
.page-ipoteka .calc-input-item,.page-nedvizhimost .calc-input-item{
    margin-bottom: 24px; /* Дали полям ввода больше вертикального зазора */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-ipoteka .calc-input-item:last-child,.page-nedvizhimost .calc-input-item:last-child{
    margin-bottom: 0;
}

.page-ipoteka .calc-fields-row,.page-nedvizhimost .calc-fields-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.page-ipoteka .calc-field-label,.page-nedvizhimost .calc-field-label{
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.page-ipoteka .calc-field-control,.page-nedvizhimost .calc-field-control{
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px; /* Чуть увеличили поля внутри инпутов */
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: all 0.25s ease;
}

.page-ipoteka .calc-field-control:focus,.page-nedvizhimost .calc-field-control:focus{
    border-color: #10b981;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Правая колонка */
.page-ipoteka .calc-display-col,.page-nedvizhimost .calc-display-col{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

/* Карточка результата (Чистая, без зеленой линии слева) */
.page-ipoteka .modern-result-display,.page-nedvizhimost .modern-result-display{
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px; /* Сделали блок результата просторнее */
    border-radius: 16px;
    text-align: center;
}

.page-ipoteka .modern-result-title,.page-nedvizhimost .modern-result-title{
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.page-ipoteka .modern-result-price,.page-nedvizhimost .modern-result-price{
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-ipoteka .modern-result-price span#monthlyPayment,.page-nedvizhimost .modern-result-price span#monthlyPayment{
    color: #34d399; 
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.page-ipoteka .modern-result-price .currency,.page-nedvizhimost .modern-result-price .currency{
    font-size: 1.2rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-left: 6px;
}

/* Кнопка */
.page-ipoteka .calc-submit-action,.page-nedvizhimost .calc-submit-action{
    background-color: #10b981;
    color: #ffffff;
    text-align: center;
    padding: 18px; /* Кнопка стала более ухватистой и объемной */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: all 0.25s ease;
}

.page-ipoteka .calc-submit-action:hover,.page-nedvizhimost .calc-submit-action:hover{
    background-color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
}

.page-ipoteka .calc-disclaimer-text,.page-nedvizhimost .calc-disclaimer-text{
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

/* Подвал калькулятора */
.page-ipoteka .calc-info-footer,.page-nedvizhimost .calc-info-footer{
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 35px; /* Увеличили отступ сверху от линии */
}

.page-ipoteka .calc-info-heading,.page-nedvizhimost .calc-info-heading{
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Две колонки для сносок */
.page-ipoteka .calc-info-grid,.page-nedvizhimost .calc-info-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Комфортный зазор между двумя сносками */
}

.page-ipoteka .calc-info-point,.page-nedvizhimost .calc-info-point{
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.page-ipoteka .calc-info-point::before,.page-nedvizhimost .calc-info-point::before{
    content: '•';
    color: #10b981;
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 1.2rem;
}

.page-ipoteka .calc-info-point strong,.page-nedvizhimost .calc-info-point strong{
    color: #cbd5e1;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================= */
@media (max-width: 992px) {
    .page-ipoteka .calc-main-layout,.page-nedvizhimost .calc-main-layout{
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-ipoteka .calc-info-grid,.page-nedvizhimost .calc-info-grid{
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ipoteka .calc-workspace-card,.page-nedvizhimost .calc-workspace-card{
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .page-ipoteka .calc-title-balanced,.page-nedvizhimost .calc-title-balanced{
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    .page-ipoteka .calc-section-full,.page-nedvizhimost .calc-section-full{
        padding: 50px 15px;
    }
    .page-ipoteka .calc-title-balanced,.page-nedvizhimost .calc-title-balanced{
        font-size: 1.6rem;
    }
    .page-ipoteka .calc-fields-row,.page-nedvizhimost .calc-fields-row{
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .page-ipoteka .modern-result-price,.page-nedvizhimost .modern-result-price{
        font-size: 2rem;
    }
}
.page-ipoteka .steps-section,.page-nedvizhimost .steps-section, .page-ipoteka .steps-section *, .page-nedvizhimost .steps-section *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.page-ipoteka .steps-section,.page-nedvizhimost .steps-section{
    background-color: #f8fafc !important;
    padding: 100px 20px !important;
    display: flex !important;
    justify-content: center !important;
}

.page-ipoteka .steps-inner-wrapper,.page-nedvizhimost .steps-inner-wrapper{
    width: 100%;
    max-width: 1140px;
}

.page-ipoteka .steps-header,.page-nedvizhimost .steps-header{
    text-align: center;
    margin-bottom: 65px;
}

.page-ipoteka .steps-badge,.page-nedvizhimost .steps-badge{
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 20px;
}

.page-ipoteka .steps-main-title,.page-nedvizhimost .steps-main-title{
    color: #0f172a;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.page-ipoteka .steps-subtitle,.page-nedvizhimost .steps-subtitle{
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.page-ipoteka .steps-grid,.page-nedvizhimost .steps-grid{
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* Карточка в покое */
.page-ipoteka .step-card,.page-nedvizhimost .step-card{
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 40px 30px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01) !important;
    cursor: pointer;
    /* Плавность анимации возврата в покой */
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    display: flex;
    flex-direction: column;
}

/* Hover state: card gets green glow and lift */
.page-ipoteka .step-card:hover,.page-nedvizhimost .step-card:hover{
    border-color: #4ade80 !important;
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(74, 222, 128, 0.35), 0 4px 12px rgba(4, 47, 31, 0.06) !important;
}

/* Hover: giant number becomes bright green */
.page-ipoteka .step-card:hover .step-giant-number,
.page-nedvizhimost .step-card:hover .step-giant-number{
    color: #10b981 !important;
    text-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

/* Цифра в покое */
.page-ipoteka .step-giant-number,.page-nedvizhimost .step-giant-number{
    position: absolute !important;
    top: 20px !important;
    right: 25px !important;
    font-size: 4.8rem !important;
    font-weight: 900 !important;
    color: #e2e8f0 !important;
    line-height: 1 !important;
    z-index: 1 !important;
    user-select: none !important;
    transition: color 0.25s ease, text-shadow 0.25s ease !important;
}

.page-ipoteka .step-card-content,.page-nedvizhimost .step-card-content{
    position: relative !important;
    z-index: 2 !important;
}

.page-ipoteka .step-card-title,.page-nedvizhimost .step-card-title{
    color: #0f172a !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
    max-width: 75% !important;
}

.page-ipoteka .step-card-text,.page-nedvizhimost .step-card-text{
    color: #475569 !important;
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
}

@media (max-width: 992px) {
    .page-ipoteka .steps-grid,.page-nedvizhimost .steps-grid{ grid-template-columns: repeat(2, 1fr) !important; }
    .page-ipoteka .steps-main-title,.page-nedvizhimost .steps-main-title{ font-size: 1.9rem; }
}

@media (max-width: 640px) {
    .page-ipoteka .steps-grid,.page-nedvizhimost .steps-grid{ grid-template-columns: 1fr !important; }
    .page-ipoteka .step-giant-number,.page-nedvizhimost .step-giant-number{ font-size: 4rem !important; }
    .page-ipoteka .step-card-title,.page-nedvizhimost .step-card-title{ max-width: 100% !important; }
}
.page-ipoteka .banks-section,.page-nedvizhimost .banks-section, .page-ipoteka .banks-section *, .page-nedvizhimost .banks-section *{ box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }
.page-ipoteka .banks-section,.page-nedvizhimost .banks-section{ background-color: #f8fafc; padding: 90px 20px 50px 20px; display: flex; justify-content: center; }
.page-ipoteka .banks-container,.page-nedvizhimost .banks-container{ width: 100%; max-width: 1140px; }
.page-ipoteka .banks-header,.page-nedvizhimost .banks-header{ text-align: center; margin-bottom: 60px; }
.page-ipoteka .banks-badge,.page-nedvizhimost .banks-badge{ color: #10b981; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; display: inline-block; margin-bottom: 16px; }
.page-ipoteka .banks-title,.page-nedvizhimost .banks-title{ color: #0f172a; font-size: 2.5rem; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.page-ipoteka .highlight-green,.page-nedvizhimost .highlight-green{ color: #10b981; }
.page-ipoteka .banks-subtitle,.page-nedvizhimost .banks-subtitle{ color: #475569; font-size: 1rem; line-height: 1.6; max-width: 780px; margin: 0 auto; }

/* Сетка банков */
.page-ipoteka .banks-grid,.page-nedvizhimost .banks-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.page-ipoteka .bank-card,.page-nedvizhimost .bank-card{ background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100px; transition: all 0.25s ease; }
.page-ipoteka .bank-logo-wrapper,.page-nedvizhimost .bank-logo-wrapper{ width: 100%; height: 35px; display: flex; align-items: center; justify-content: center; }
.page-ipoteka .bank-logo-img,.page-nedvizhimost .bank-logo-img{ max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.4; transition: all 0.25s ease; }
.page-ipoteka .bank-full-name,.page-nedvizhimost .bank-full-name{ font-size: 0.95rem; font-weight: 700; color: #475569; text-align: center; }
.page-ipoteka .bank-card:hover,.page-nedvizhimost .bank-card:hover{ border-color: #10b981; box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08); transform: translateY(-2px); }
.page-ipoteka .bank-card:hover .bank-full-name,.page-nedvizhimost .bank-card:hover .bank-full-name{ color: #10b981; }
.page-ipoteka .bank-card:hover .bank-logo-img,.page-nedvizhimost .bank-card:hover .bank-logo-img{ filter: grayscale(0%); opacity: 1; }


/* ОБНОВЛЕННЫЙ СТИЛЬ ДЛЯ ПРИМЕЧАНИЯ */
.page-ipoteka .banks-notice-box,.page-nedvizhimost .banks-notice-box{
    margin-top: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981; /* Зелёный аккуратный акцент слева */
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.page-ipoteka .banks-notice-icon,.page-nedvizhimost .banks-notice-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.page-ipoteka .banks-notice-text,.page-nedvizhimost .banks-notice-text{
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}

.page-ipoteka .banks-notice-text strong,.page-nedvizhimost .banks-notice-text strong{
    color: #0f172a;
    font-weight: 700;
}

/* Адаптив под мобилки */
@media (max-width: 1024px) { .page-ipoteka .banks-grid,.page-nedvizhimost .banks-grid{ grid-template-columns: repeat(3, 1fr); } .page-ipoteka .banks-title,.page-nedvizhimost .banks-title{ font-size: 1.9rem; } }
@media (max-width: 768px) { 
    .page-ipoteka .banks-grid,.page-nedvizhimost .banks-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; } 
    .page-ipoteka .banks-title,.page-nedvizhimost .banks-title{ font-size: 1.9rem; } 
    .page-ipoteka .banks-notice-box,.page-nedvizhimost .banks-notice-box{ padding: 20px; gap: 12px; }
}
/* На узких телефонах карточки банков остаются по 2 в ряд, а не длинной лентой друг под другом */
@media (max-width: 480px) {
    .page-ipoteka .banks-grid,.page-nedvizhimost .banks-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .page-ipoteka .bank-card,.page-nedvizhimost .bank-card{ padding: 16px 10px; min-height: 84px; }
    .page-ipoteka .bank-full-name,.page-nedvizhimost .bank-full-name{ font-size: 0.82rem; }
}
.page-ipoteka .gta-wrapper-section,.page-nedvizhimost .gta-wrapper-section, .page-ipoteka .gta-wrapper-section *, .page-nedvizhimost .gta-wrapper-section *{ box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }
.page-ipoteka .gta-wrapper-section,.page-nedvizhimost .gta-wrapper-section{ background-color: #f8fafc; padding: 20px 20px 90px 20px; display: flex; justify-content: center; width: 100%; }
.page-ipoteka .gta-main-container,.page-nedvizhimost .gta-main-container{ width: 100%; max-width: 1140px; }

/* Тёмно-зелёная плашка-капсула */
.page-ipoteka .gta-pill-box,.page-nedvizhimost .gta-pill-box{ 
    background: #09392b !important; /* Насыщенный темно-зеленый цвет */
    border-radius: 24px !important; 
    padding: 50px 60px !important; 
    display: flex !important;
    align-items: center !important; /* Центрирует кнопку вертикально относительно текста */
    justify-content: space-between !important;
    gap: 40px !important;
    width: 100% !important;
    box-shadow: 0 20px 40px rgba(9, 57, 43, 0.15);
}

.page-ipoteka .gta-pill-left,.page-nedvizhimost .gta-pill-left{ max-width: 65%; text-align: left; min-width: 0; }
.page-ipoteka .gta-pill-badge,.page-nedvizhimost .gta-pill-badge{ color: #10b981; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; display: block; margin-bottom: 16px; }
.page-ipoteka .gta-pill-title,.page-nedvizhimost .gta-pill-title{ color: #ffffff !important; font-size: 2.1rem; font-weight: 800; line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.01em; overflow-wrap: break-word; word-break: break-word; }
.page-ipoteka .gta-title-accent,.page-nedvizhimost .gta-title-accent{ color: #10b981 !important; }
.page-ipoteka .gta-pill-text,.page-nedvizhimost .gta-pill-text{ color: #cbd5e1 !important; font-size: 0.95rem; line-height: 1.6; }

/* Блок под кнопку */
.page-ipoteka .gta-pill-right,.page-nedvizhimost .gta-pill-right{ display: flex; align-items: center; justify-content: flex-end; min-width: 320px; }
.page-ipoteka .gta-pill-button,.page-nedvizhimost .gta-pill-button{ display: inline-block; background: #10b981 !important; color: #ffffff !important; text-decoration: none; padding: 18px 38px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35); transition: all 0.25s ease-in-out; text-align: center; }
.page-ipoteka .gta-pill-button:hover,.page-nedvizhimost .gta-pill-button:hover{ background: #059669 !important; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5); }

/* Адаптивность */
@media (max-width: 1024px) {
    .page-ipoteka .gta-pill-box,.page-nedvizhimost .gta-pill-box{ flex-direction: column !important; align-items: flex-start !important; padding: 40px !important; gap: 30px !important; }
    .page-ipoteka .gta-pill-left,.page-nedvizhimost .gta-pill-left{ max-width: 100%; }
    .page-ipoteka .gta-pill-right,.page-nedvizhimost .gta-pill-right{ width: 100%; justify-content: flex-start; min-width: auto; }
    .page-ipoteka .gta-pill-button,.page-nedvizhimost .gta-pill-button{ width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 768px) {
    .page-ipoteka .gta-pill-title,.page-nedvizhimost .gta-pill-title{ font-size: 1.9rem; }
}
.page-ipoteka .features-section,.page-nedvizhimost .features-section, .page-ipoteka .features-section *, .page-nedvizhimost .features-section *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.page-ipoteka .features-section,.page-nedvizhimost .features-section{
    background-color: #f8fafc;
    padding: 90px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.page-ipoteka .features-container,.page-nedvizhimost .features-container{
    width: 100%;
    max-width: 1140px;
}

.page-ipoteka .features-header,.page-nedvizhimost .features-header{
    text-align: center;
    margin-bottom: 55px;
}

.page-ipoteka .features-badge,.page-nedvizhimost .features-badge{
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 16px;
}

.page-ipoteka .features-title,.page-nedvizhimost .features-title{
    color: #0f172a;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    max-width: 850px;
    margin: 0 auto;
}

.page-ipoteka .highlight-green,.page-nedvizhimost .highlight-green{
    color: #10b981;
}

/* СЕТКА: Ровно 3 колонки на десктопе */
.page-ipoteka .features-grid,.page-nedvizhimost .features-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
}

/* Карточка преимущества */
.page-ipoteka .feature-card,.page-nedvizhimost .feature-card{
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Круглая подложка для иконок */
.page-ipoteka .feature-icon-box,.page-nedvizhimost .feature-icon-box{
    width: 50px;
    height: 50px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.page-ipoteka .feature-card-title,.page-nedvizhimost .feature-card-title{
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.page-ipoteka .feature-card-text,.page-nedvizhimost .feature-card-text{
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ИНТЕРАКТИВНАЯ ПОДСВЕТКА ПРИ НАВЕДЕНИИ (Зеленая рамка + мягкая тень-свечение) */
.page-ipoteka .feature-card:hover,.page-nedvizhimost .feature-card:hover{
    border-color: #10b981 !important;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.1) !important; /* Легкий изумрудный шлейф */
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .page-ipoteka .features-grid,.page-nedvizhimost .features-grid{
        grid-template-columns: repeat(2, 1fr) !important; /* 2 колонки на планшетах */
        gap: 20px;
    }
    .page-ipoteka .features-title,.page-nedvizhimost .features-title{
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .page-ipoteka .features-grid,.page-nedvizhimost .features-grid{
        grid-template-columns: 1fr !important; /* 1 колонка на смартфонах */
        gap: 16px;
    }
    .page-ipoteka .features-title,.page-nedvizhimost .features-title{
        font-size: 1.8rem;
    }
    .page-ipoteka .feature-card,.page-nedvizhimost .feature-card{
        padding: 28px 24px;
    }
}
/* Изоляция стилей */
.page-ipoteka .process-section,.page-nedvizhimost .process-section, .page-ipoteka .process-section *, .page-nedvizhimost .process-section *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.page-ipoteka .process-section,.page-nedvizhimost .process-section{
    background-color: #f8fafc; /* Приятный светлый фон страницы */
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.page-ipoteka .process-container,.page-nedvizhimost .process-container{
    width: 100%;
    max-width: 960px; /* Оптимальная ширина для вытянутых карточек */
}

/* Шапка */
.page-ipoteka .process-header,.page-nedvizhimost .process-header{
    text-align: center;
    margin: 0 auto 60px;
    max-width: 100%;
}

.page-ipoteka .process-badge,.page-nedvizhimost .process-badge{
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 16px;
}

.page-ipoteka .process-title,.page-nedvizhimost .process-title{
    color: #0f172a;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 18px;
}

.page-ipoteka .process-subtitle,.page-nedvizhimost .process-subtitle{
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.page-ipoteka .highlight-green,.page-nedvizhimost .highlight-green{
    color: #10b981;
}

/* Список-вертикаль */
.page-ipoteka .process-steps-list,.page-nedvizhimost .process-steps-list{
    display: flex;
    flex-direction: column;
    gap: 20px; /* Отступ между карточками */
    margin-bottom: 45px;
}

/* Стилизация горизонтальной карточки этапа */
.page-ipoteka .process-card,.page-nedvizhimost .process-card{
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Крупный номер шага слева */
.page-ipoteka .process-card-number,.page-nedvizhimost .process-card-number{
    font-size: 3.2rem;
    font-weight: 800;
    color: #10b981; /* Сочный зеленый цвет цифры */
    opacity: 0.8;
    line-height: 1;
    min-width: 70px;
    flex-shrink: 0;
}

/* Контентная часть */
.page-ipoteka .process-card-content,.page-nedvizhimost .process-card-content{
    flex-grow: 1;
    text-align: left;
}

/* Ряд с заголовком и временем */
.page-ipoteka .process-card-title-row,.page-nedvizhimost .process-card-title-row{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap; /* Чтобы на мобильных плашка переносилась */
}

.page-ipoteka .process-card-title,.page-nedvizhimost .process-card-title{
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Овальная плашка времени (1 ДЕНЬ, 2-3 ДНЯ и т.д.) */
.page-ipoteka .process-time-badge,.page-nedvizhimost .process-time-badge{
    background-color: #f0fdf4; /* Сверхсветлый мятный фон */
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    display: inline-block;
    white-space: nowrap;
}

/* Описание шага */
.page-ipoteka .process-card-text,.page-nedvizhimost .process-card-text{
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ИНТЕРАКТИВНАЯ ПОДСВЕТКА КАРТОЧКИ (Эффект выделения как на скрине) */
.page-ipoteka .process-card:hover,.page-nedvizhimost .process-card:hover{
    border-color: #10b981;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.06);
    transform: translateY(-2px);
}

/* Финальная нижняя плашка */
.page-ipoteka .process-footer-summary,.page-nedvizhimost .process-footer-summary{
    background-color: #e8f8f0; /* Легкий нежно-зеленый фон по макету */
    border-radius: 12px;
    padding: 22px 30px;
    text-align: center;
}

.page-ipoteka .process-footer-summary p,.page-nedvizhimost .process-footer-summary p{
    color: #115e59; /* Красивый темный бирюзово-зеленый оттенок текста */
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ==========================================================================
     АДАПТИВНОСТЬ ПОД ЭКРАНЫ
     ========================================================================= */
@media screen and (max-width: 768px) {
    .page-ipoteka .process-title,.page-nedvizhimost .process-title{
        font-size: 1.9rem;
    }
    .page-ipoteka .process-subtitle,.page-nedvizhimost .process-subtitle{
        font-size: 0.95rem;
    }
    .page-ipoteka .process-card,.page-nedvizhimost .process-card{
        flex-direction: column; /* Перестраиваем номер и текст в колонку */
        align-items: flex-start;
        gap: 15px;
        padding: 30px 25px;
    }
    .page-ipoteka .process-card-number,.page-nedvizhimost .process-card-number{
        font-size: 2.6rem;
        min-width: auto;
    }
    .page-ipoteka .process-card-title,.page-nedvizhimost .process-card-title{
        font-size: 1.15rem;
    }
    .page-ipoteka .process-footer-summary,.page-nedvizhimost .process-footer-summary{
        padding: 18px 20px;
    }
    .page-ipoteka .process-footer-summary p,.page-nedvizhimost .process-footer-summary p{
        font-size: 0.9rem;
    }
}
/* Изоляция и сброс стилей для блока */
.page-ipoteka .cta-light-section,.page-nedvizhimost .cta-light-section, .page-ipoteka .cta-light-section *, .page-nedvizhimost .cta-light-section *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Внешние отступы всей секции на странице */
.page-ipoteka .cta-light-section,.page-nedvizhimost .cta-light-section{
    background-color: #f8fafc; /* Общий фон сайта */
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Основная светлая карточка-контейнер */
.page-ipoteka .cta-light-container,.page-nedvizhimost .cta-light-container{
    width: 100%;
    max-width: 1140px;
    background-color: #f1f5f9; /* Мягкий светлый серо-голубой фон, чтобы карточка выделялась */
    border: 1px solid #e2e8f0; /* Аккуратный бортик */
    border-radius: 24px; /* Трендовое скругление */
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Текст слева, кнопка справа */
    gap: 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03); /* Едва заметная мягкая тень */
}

/* Текстовый блок */
.page-ipoteka .cta-light-content,.page-nedvizhimost .cta-light-content{
    flex: 1;
    text-align: left;
}

/* Верхний маленький бадж */
.page-ipoteka .cta-light-badge,.page-nedvizhimost .cta-light-badge{
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 14px;
}

/* Заголовок карточки */
.page-ipoteka .cta-light-title,.page-nedvizhimost .cta-light-title{
    color: #0f172a;
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Зеленый акцент в заголовке */
.page-ipoteka .cta-light-title .highlight-green,.page-nedvizhimost .cta-light-title .highlight-green{
    color: #10b981;
}

/* Подзаголовок-описание */
.page-ipoteka .cta-light-text,.page-nedvizhimost .cta-light-text{
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 650px;
}

/* Блок действия (кнопка) */
.page-ipoteka .cta-light-action,.page-nedvizhimost .cta-light-action{
    flex-shrink: 0;
}

/* Стильная зеленая кнопка */
.page-ipoteka .cta-light-button,.page-nedvizhimost .cta-light-button{
    display: inline-block;
    background-color: #10b981; /* Наш фирменный изумрудный */
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    padding: 18px 34px;
    border-radius: 100px; /* Полностью круглая кнопка по бокам */
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25); /* Мягкое зеленое свечение */
    transition: all 0.25s ease;
}

/* Поведение кнопки при наведении */
.page-ipoteka .cta-light-button:hover,.page-nedvizhimost .cta-light-button:hover{
    background-color: #059669; /* Чуть темнее при наведении */
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); /* Свечение становится ярче */
    transform: translateY(-1px); /* Легкий подъем вверх */
}

/* ==========================================================================
     АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
     ========================================================================= */
@media screen and (max-width: 991px) {
    .page-ipoteka .cta-light-container,.page-nedvizhimost .cta-light-container{
        padding: 40px;
    }
    .page-ipoteka .cta-light-title,.page-nedvizhimost .cta-light-title{
        font-size: 1.9rem;
    }
}

@media screen and (max-width: 768px) {
    .page-ipoteka .cta-light-container,.page-nedvizhimost .cta-light-container{
        flex-direction: column; /* Текст и кнопка встают друг под друга */
        align-items: flex-start; /* Выравнивание по левому краю */
        gap: 30px;
        padding: 35px 25px;
    }
    
    .page-ipoteka .cta-light-action,.page-nedvizhimost .cta-light-action{
        width: 100%; /* Контейнер кнопки занимает всю ширину */
    }
    
    .page-ipoteka .cta-light-button,.page-nedvizhimost .cta-light-button{
        display: block;
        text-align: center; /* Текст внутри кнопки по центру */
        width: 100%; /* Кнопка растягивается на весь экран */
        padding: 16px 20px;
    }
}
/* 1. Выстраиваем ровно 4 карточки в видимой области на ПК */
@media (min-width: 992px) {
  .page-ipoteka .reviews-slider .review-card.google-style,.page-nedvizhimost .reviews-slider .review-card.google-style{
    /* Расчет: (100% ширины контейнера - зазоры 3 * 24px) / 4 карточки */
    width: calc((100% - 72px) / 4) !important;
    flex: 0 0 calc((100% - 72px) / 4) !important;
  }
}

/* На планшетах показываем по 2 карточки */
@media (max-width: 991px) and (min-width: 577px) {
  .page-ipoteka .reviews-slider .review-card.google-style,.page-nedvizhimost .reviews-slider .review-card.google-style{
    width: calc((100% - 24px) / 2) !important;
    flex: 0 0 calc((100% - 24px) / 2) !important;
  }
}

/* На мобильных телефонах по 1 карточке */
@media (max-width: 576px) {
  .page-ipoteka .reviews-slider .review-card.google-style,.page-nedvizhimost .reviews-slider .review-card.google-style{
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* 2. Стили элементов внутри карточки Google Maps */
.page-ipoteka .review-card.google-style,.page-nedvizhimost .review-card.google-style{
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}

/* Верхушка карточки */
.page-ipoteka .google-card-header,.page-nedvizhimost .google-card-header{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
}

/* Круглые аватарки */
.page-ipoteka .google-avatar,.page-nedvizhimost .google-avatar{
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

.page-ipoteka .avatar-blue,.page-nedvizhimost .avatar-blue{ background-color: #1a73e8 !important; }
.page-ipoteka .avatar-green,.page-nedvizhimost .avatar-green{ background-color: #1e8e3e !important; }
.page-ipoteka .avatar-orange,.page-nedvizhimost .avatar-orange{ background-color: #f2994a !important; }

.page-ipoteka .google-user-info,.page-nedvizhimost .google-user-info{
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}

.page-ipoteka .google-user-name,.page-nedvizhimost .google-user-name{
  color: #0f172a !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.page-ipoteka .google-user-date,.page-nedvizhimost .google-user-date{
  color: #64748b !important;
  font-size: 0.8rem !important;
}

.page-ipoteka .google-icon,.page-nedvizhimost .google-icon{
  width: 16px !important;
  height: 16px !important;
  margin-left: auto !important;
  align-self: flex-start !important;
}

/* Фирменные желтые звезды Google */
.page-ipoteka .google-stars,.page-nedvizhimost .google-stars{
  display: flex !important;
  gap: 2px !important;
  color: #fbbc05 !important;
  font-size: 1.1rem !important;
  margin-bottom: 12px !important;
}

/* Текст отзыва наследует Montserrat без засечек */
.page-ipoteka .google-text,.page-nedvizhimost .google-text{
  font-style: normal !important;
  color: #334155 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}


/* ==========================================================================
   NEDVIZHIMOST.PHP — блок СРАВНЕНИЕ рынков (первичный vs вторичный)
   ========================================================================== */

.page-nedvizhimost .market-comparison-section {
    padding: 100px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    width: 100%;
}

.page-nedvizhimost .market-comparison-container {
    width: 100%;
    max-width: 1200px;
}

.page-nedvizhimost .market-comparison-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px;
}

.page-nedvizhimost .market-comparison-badge {
    display: inline-block;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-nedvizhimost .market-comparison-title {
    color: #0f172a;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.page-nedvizhimost .market-comparison-title .highlight-green {
    color: #10b981;
}

.page-nedvizhimost .market-comparison-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.65;
}

.page-nedvizhimost .market-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.page-nedvizhimost .market-comparison-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 4px 16px rgba(4,47,31,.04);
    transition: transform 0.35s cubic-bezier(0.25,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.page-nedvizhimost .market-comparison-card:hover {
    transform: translateY(-6px);
    border-color: #4ade80;
    box-shadow: 0 16px 44px rgba(74,222,128,.35), 0 4px 12px rgba(4,47,31,.06);
}

.page-nedvizhimost .market-comparison-label {
    display: inline-block;
    padding: 6px 14px;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 20px;
}

.page-nedvizhimost .market-comparison-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

.page-nedvizhimost .market-comparison-block {
    margin-bottom: 22px;
}

.page-nedvizhimost .market-comparison-block:last-child {
    margin-bottom: 0;
}

.page-nedvizhimost .market-comparison-subheading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.page-nedvizhimost .market-comparison-subheading::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.page-nedvizhimost .market-comparison-pros {
    color: #059669;
}

.page-nedvizhimost .market-comparison-pros::before {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

.page-nedvizhimost .market-comparison-cons {
    color: #ea580c;
}

.page-nedvizhimost .market-comparison-cons::before {
    background: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.page-nedvizhimost .market-comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-nedvizhimost .market-comparison-list li {
    position: relative;
    padding-left: 26px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.page-nedvizhimost .market-comparison-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
}

.page-nedvizhimost .market-comparison-pros + .market-comparison-list li::before {
    background: #10b981;
}

.page-nedvizhimost .market-comparison-cons + .market-comparison-list li::before {
    background: #f97316;
}

.page-nedvizhimost .market-comparison-note {
    max-width: 1140px;
    margin: 0 auto;
    padding: 26px 34px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: 20px;
    color: #064e3b;
    font-size: 0.98rem;
    line-height: 1.65;
}

.page-nedvizhimost .market-comparison-note strong {
    color: #059669;
    font-weight: 800;
}

@media (max-width: 992px) {
    .page-nedvizhimost .market-comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-nedvizhimost .market-comparison-title {
        font-size: 1.9rem;
    }
    .page-nedvizhimost .market-comparison-card {
        padding: 30px;
    }
}

@media (max-width: 540px) {
    .page-nedvizhimost .market-comparison-section {
        padding: 80px 15px;
    }
    .page-nedvizhimost .market-comparison-title {
        font-size: 1.6rem;
    }
    .page-nedvizhimost .market-comparison-heading {
        font-size: 1.25rem;
    }
    .page-nedvizhimost .market-comparison-card {
        padding: 25px 22px;
    }
}


/* ==========================================================================
   CASES — расширенные стили для нового формата
   ========================================================================== */

/* Blocks inside main featured case: Ситуация / Задача / Что мы сделали */
.case-block-item {
  display: block;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.case-block-label {
  color: #0f172a;
  font-weight: 700;
  margin-right: 6px;
}

/* Results list with green markers */
.case-results-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-results-list li {
  position: relative;
  padding-left: 24px;
  color: #0f172a;
  font-size: 0.93rem;
  line-height: 1.5;
  font-weight: 500;
}

.case-results-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

/* Client quote */
.case-quote {
  margin: 22px 0 0;
  padding: 18px 22px;
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  border-radius: 0 12px 12px 0;
  color: #064e3b;
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.55;
}

/* Featured case card — image top, content below */
.cases-section .case-main-featured {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 4px 16px rgba(4,47,31,.04);
  transition: transform 0.35s cubic-bezier(0.25,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.cases-section .case-main-featured:hover {
  transform: translateY(-6px);
  border-color: #4ade80;
  box-shadow: 0 16px 44px rgba(74,222,128,.35), 0 4px 12px rgba(4,47,31,.06);
}
.cases-section .case-main-featured .case-block-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* "Посмотреть все кейсы" button below */
.cases-view-all {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}
.cases-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background-color: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cases-view-all-btn:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}
.cases-view-all-btn svg { transition: transform 0.3s ease; }
.cases-view-all-btn:hover svg { transform: translateX(4px); }


/* Hero panel secondary link "Подробнее об услуге" */
.panel-btn-link {
  display: inline-block;
  margin: 0 0 40px 20px;
  padding: 12px 16px;
  color: #4ade80;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}
.panel-btn-link:hover {
  color: #10b981;
  transform: translateX(4px);
}
.panel-btn-link-dark {
  color: #042f1f;
}
.panel-btn-link-dark:hover {
  color: #10b981;
}
@media (min-width: 901px) {
  .split-panel:not(.active) .panel-btn-link { opacity: 0; pointer-events: none; }
}


/* ==========================================================================
   CASES.PHP — hero + slider styles
   ========================================================================== */

.page-cases .cases-hero-section {
  padding: 140px 20px 60px;
  background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0) 60%), #ffffff;
}
.page-cases .cases-hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-cases .hero-breadcrumbs {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.85rem; color: #64748b;
  margin-bottom: 24px;
}
.page-cases .hero-breadcrumbs a { color: #64748b; text-decoration: none; transition: color .2s; }
.page-cases .hero-breadcrumbs a:hover { color: #10b981; }
.page-cases .breadcrumbs-separator { color: #cbd5e1; }
.page-cases .breadcrumbs-current { color: #0f172a; font-weight: 600; }
.page-cases .cases-hero-badge {
  display: inline-block; color: #10b981; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; margin-bottom: 20px;
}
.page-cases .cases-hero-title {
  font-size: 2.8rem; font-weight: 800; color: #0f172a;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px;
}
.page-cases .cases-hero-title .highlight-green { color: #10b981; }
.page-cases .cases-hero-subtitle {
  font-size: 1.05rem; line-height: 1.65; color: #64748b;
  max-width: 700px; margin: 0 auto;
}

.page-cases .cases-full-section {
  padding: 60px 20px 100px;
  background: #f8fafc;
}
.page-cases .cases-full-container {
  max-width: 1200px; margin: 0 auto;
}
.page-cases .cases-full-slider-wrap {
  position: relative;
}
.page-cases .cases-full-slider {
  overflow: hidden;
  padding: 20px 0;
  margin: -20px 0;
  clip-path: inset(-40px 0px -40px 0px);
}
.page-cases .cases-full-track {
  display: flex; gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25,1,0.3,1);
  will-change: transform;
}

.page-cases .case-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(4,47,31,.04);
  transition: transform 0.35s cubic-bezier(0.25,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.page-cases .case-detail-card:hover {
  border-color: #4ade80;
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(74,222,128,.32);
  z-index: 10;
}
.page-cases .case-detail-card .card-case-tag {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.7rem; font-weight: 700;
  color: #64748b; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-cases .case-detail-title {
  font-size: 1.4rem; font-weight: 800; color: #0f172a;
  line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 22px;
}
.page-cases .case-detail-card .case-block-item {
  color: #475569; font-size: 0.94rem;
  line-height: 1.65; margin-bottom: 12px;
}
.page-cases .case-detail-card .case-block-label {
  color: #0f172a; font-weight: 700; margin-right: 6px;
}
.page-cases .case-detail-card .case-results-list {
  list-style: none; padding: 0; margin: 16px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.page-cases .case-detail-card .case-results-list li {
  position: relative; padding-left: 22px;
  color: #0f172a; font-size: 0.92rem;
  line-height: 1.5; font-weight: 500;
}
.page-cases .case-detail-card .case-results-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.page-cases .case-detail-card .case-quote {
  margin: 20px 0 0; padding: 16px 20px;
  background: #f0fdf4; border-left: 3px solid #10b981;
  border-radius: 0 12px 12px 0;
  color: #064e3b; font-size: 0.95rem;
  font-style: italic; line-height: 1.55;
}

.page-cases .cases-full-controls {
  display: flex; justify-content: center; align-items: center;
  gap: 20px; margin-top: 40px;
}
.page-cases .cases-full-btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #ffffff;
  color: #64748b; font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.page-cases .cases-full-btn:hover:not(:disabled) {
  background: #10b981; color: #ffffff; border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25), 0 8px 20px rgba(16,185,129,.3);
  transform: translateY(-2px);
}
.page-cases .cases-full-btn:disabled { opacity: 0.35; cursor: default; }
.page-cases .cases-full-counter {
  color: #0f172a; font-size: 1rem; font-weight: 700;
  min-width: 60px; text-align: center;
}
.page-cases .highlight-green { color: #10b981; }

@media (max-width: 900px) {
  .page-cases .cases-hero-title { font-size: 2rem; }
  .page-cases .case-detail-card { padding: 30px 25px; }
  .page-cases .case-detail-title { font-size: 1.2rem; }
}


/* ==========================================================================
   CONTACTS.PHP — hero, quick cards, managers, office
   ========================================================================== */

.page-contacts .contacts-hero-section {
  padding: 140px 20px 60px;
  background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0) 60%), #ffffff;
}
.page-contacts .contacts-hero-container {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.page-contacts .hero-breadcrumbs {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.85rem; color: #64748b;
  margin-bottom: 24px;
}
.page-contacts .hero-breadcrumbs a { color: #64748b; text-decoration: none; transition: color .2s; }
.page-contacts .hero-breadcrumbs a:hover { color: #10b981; }
.page-contacts .breadcrumbs-separator { color: #cbd5e1; }
.page-contacts .breadcrumbs-current { color: #0f172a; font-weight: 600; }
.page-contacts .contacts-hero-badge {
  display: inline-block; color: #10b981; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.15em; margin-bottom: 20px;
}
.page-contacts .contacts-hero-title {
  font-size: 2.8rem; font-weight: 800; color: #0f172a;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px;
}
.page-contacts .highlight-green { color: #10b981; }
.page-contacts .contacts-hero-subtitle {
  font-size: 1.05rem; line-height: 1.65; color: #64748b;
  max-width: 700px; margin: 0 auto;
}

/* Quick contact cards */
.page-contacts .contacts-quick-section {
  padding: 40px 20px 80px;
  background: #ffffff;
}
.page-contacts .contacts-quick-container { max-width: 1200px; margin: 0 auto; }
.page-contacts .contacts-quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.page-contacts .contact-quick-card {
  display: flex; align-items: center; gap: 18px;
  padding: 24px; border-radius: 20px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25,1,0.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.page-contacts .contact-quick-card:hover {
  transform: translateY(-4px);
  border-color: #4ade80;
  box-shadow: 0 12px 32px rgba(74,222,128,.28);
}
.page-contacts .contact-quick-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.page-contacts .contact-quick-icon svg { width: 22px; height: 22px; }
.page-contacts .contact-icon-phone { background: #ecfdf5; color: #10b981; }
.page-contacts .contact-icon-email { background: #eef2ff; color: #6366f1; }
.page-contacts .contact-icon-whatsapp { background: #dcfce7; color: #25d366; }
.page-contacts .contact-icon-telegram { background: #dbeafe; color: #0088cc; }
.page-contacts .contact-quick-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page-contacts .contact-quick-label {
  color: #64748b; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.page-contacts .contact-quick-value {
  color: #0f172a; font-weight: 700; font-size: 0.95rem;
  overflow: hidden; text-overflow: ellipsis;
}

/* Managers */
.page-contacts .managers-section {
  padding: 100px 20px;
  background: #f8fafc;
}
.page-contacts .managers-container { max-width: 1200px; margin: 0 auto; }
.page-contacts .managers-header { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.page-contacts .managers-badge {
  display: inline-block; color: #10b981; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.15em; margin-bottom: 16px;
}
.page-contacts .managers-title {
  color: #0f172a; font-size: 2.4rem; font-weight: 800;
  line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px;
}
.page-contacts .managers-subtitle {
  color: #64748b; font-size: 1.05rem; line-height: 1.65;
}
.page-contacts .managers-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.page-contacts .manager-card {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 24px; padding: 30px;
  display: flex; gap: 20px; align-items: flex-start;
  box-shadow: 0 4px 16px rgba(4,47,31,.04);
  transition: transform 0.35s cubic-bezier(0.25,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.page-contacts .manager-card:hover {
  transform: translateY(-4px);
  border-color: #4ade80;
  box-shadow: 0 14px 40px rgba(74,222,128,.3);
}
.page-contacts .manager-photo {
  width: 80px; height: 80px; border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16,185,129,.2);
  border: 2px solid #ffffff;
  outline: 1px solid #e2e8f0;
}
.page-contacts .manager-photo-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.page-contacts .manager-info { flex: 1; min-width: 0; }
.page-contacts .manager-name {
  color: #0f172a; font-size: 1.15rem; font-weight: 800;
  line-height: 1.3; margin-bottom: 4px;
}
.page-contacts .manager-role {
  color: #10b981; font-size: 0.88rem; font-weight: 600;
  margin-bottom: 14px;
}
.page-contacts .manager-contacts {
  display: flex; flex-direction: column; gap: 8px;
}
.page-contacts .manager-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #475569; font-size: 0.87rem; text-decoration: none;
  transition: color 0.2s ease;
}
.page-contacts .manager-link:hover { color: #10b981; }
.page-contacts .manager-link svg { color: #94a3b8; transition: color 0.2s ease; }
.page-contacts .manager-link:hover svg { color: #10b981; }

/* Office */
.page-contacts .office-section {
  padding: 100px 20px;
  background: #ffffff;
}
.page-contacts .office-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: center;
}
.page-contacts .office-info { }
.page-contacts .office-badge {
  display: inline-block; color: #10b981; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.15em; margin-bottom: 16px;
}
.page-contacts .office-title {
  color: #0f172a; font-size: 2.2rem; font-weight: 800;
  line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px;
}
.page-contacts .office-subtitle {
  color: #64748b; font-size: 1rem; line-height: 1.65;
  margin-bottom: 36px;
}
.page-contacts .office-details {
  display: flex; flex-direction: column; gap: 22px;
}
.page-contacts .office-detail-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.page-contacts .office-detail-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: #ecfdf5; color: #10b981;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.page-contacts .office-detail-text { display: flex; flex-direction: column; gap: 4px; }
.page-contacts .office-detail-label {
  color: #64748b; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.page-contacts .office-detail-value {
  color: #0f172a; font-size: 0.98rem; font-weight: 500;
  line-height: 1.5; text-decoration: none;
}
a.office-detail-value:hover { color: #10b981; }
.page-contacts .office-map {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(4,47,31,.1);
  height: 450px;
}
.page-contacts .office-map iframe { display: block; width: 100%; height: 100%; }

@media (max-width: 900px) {
  .page-contacts .contacts-hero-title { font-size: 2rem; }
  .page-contacts .contacts-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .page-contacts .managers-grid { grid-template-columns: 1fr; }
  .page-contacts .managers-title { font-size: 1.9rem; }
  .page-contacts .office-container { grid-template-columns: 1fr; gap: 40px; }
  .page-contacts .office-title { font-size: 1.9rem; }
}
@media (max-width: 540px) {
  .page-contacts .contacts-quick-grid { grid-template-columns: 1fr; }
  .page-contacts .manager-card { flex-direction: column; align-items: center; text-align: center; }
}


/* ==========================================================================
   FLOATING CONTACT WIDGET
   ========================================================================== */
.fc-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
}

/* Toggle button */
.fc-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  position: relative;
  animation: fc-pulse 2.2s ease-out infinite;
}
.fc-toggle:hover {
  transform: scale(1.08);
  animation-play-state: paused;
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.55), 0 6px 12px rgba(4, 47, 31, 0.2);
}
/* Stop pulsing when panel is open */
.fc-widget.is-open .fc-toggle {
  animation: none;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45), 0 4px 8px rgba(4, 47, 31, 0.15);
}
.fc-toggle-icon-open,
.fc-toggle-icon-close {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.fc-toggle-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.fc-widget.is-open .fc-toggle-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.fc-widget.is-open .fc-toggle-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Panel */
.fc-panel {
  background: linear-gradient(180deg, #042f1f 0%, #02170f 100%);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 22px;
  padding: 22px 20px 20px;
  width: 320px;
  box-shadow: 0 20px 60px rgba(2, 20, 13, 0.35), 0 0 0 1px rgba(74, 222, 128, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.3, 1), transform 0.3s cubic-bezier(0.25, 1, 0.3, 1), visibility 0s linear 0.3s;
  pointer-events: none;
}
.fc-widget.is-open .fc-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.3, 1), transform 0.3s cubic-bezier(0.25, 1, 0.3, 1), visibility 0s;
}

.fc-panel-header {
  padding: 0 8px 14px;
}
.fc-panel-title {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fc-panel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.fc-item:hover {
  background: rgba(74, 222, 128, 0.06);
}

.fc-item-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-icon-form    { background: rgba(16, 185, 129, 0.15);  color: #4ade80; }
.fc-icon-email   { background: rgba(99, 102, 241, 0.15);  color: #a5b4fc; }
.fc-icon-telegram{ background: rgba(0, 136, 204, 0.15);   color: #38bdf8; }
.fc-icon-whatsapp{ background: rgba(37, 211, 102, 0.15);  color: #4ade80; }
.fc-icon-chat    { background: rgba(139, 92, 246, 0.15);  color: #c4b5fd; }

.fc-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fc-item-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
}
.fc-item-desc {
  color: #94a3b8;
  font-size: 0.8rem;
}

.fc-panel-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 8px;
}

.fc-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  color: #4ade80;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.fc-phone:hover { color: #6ee7b7; }
.fc-phone svg { color: #4ade80; }

@media (max-width: 540px) {
  .fc-widget { bottom: 18px; right: 18px; }
  .fc-toggle { width: 54px; height: 54px; }
  .fc-panel {
    width: calc(100vw - 36px);
    max-width: 320px;
  }
}


/* ==========================================================================
   FLOATING WIDGET — pulse + modal
   ========================================================================== */

/* Pulse animation keyframes for the floating widget toggle button */
@keyframes fc-pulse {
  0%   { box-shadow: 0 12px 30px rgba(16,185,129,.45), 0 0 0 0   rgba(16,185,129,.5); }
  70%  { box-shadow: 0 12px 30px rgba(16,185,129,.45), 0 0 0 14px rgba(16,185,129,0);  }
  100% { box-shadow: 0 12px 30px rgba(16,185,129,.45), 0 0 0 0   rgba(16,185,129,0); }
}

/* Modal overlay */
.fc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 20, 13, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.fc-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s;
}

/* Modal box */
.fc-modal-box {
  background: #042f1f;
  border: 1px solid rgba(74,222,128,.15);
  border-radius: 28px;
  padding: 44px 46px;
  width: 100%;
  max-width: 540px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
  transform: translateY(24px) scale(.96);
  transition: transform .35s cubic-bezier(0.25,1,0.3,1);
}
.fc-modal-overlay.is-open .fc-modal-box {
  transform: translateY(0) scale(1);
}

.fc-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #94a3b8; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.fc-modal-close:hover {
  background: rgba(74,222,128,.1);
  color: #4ade80;
  border-color: #4ade80;
}

.fc-modal-title {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.fc-modal-subtitle {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 28px;
}

.fc-modal-form { display: flex; flex-direction: column; gap: 18px; }

.fc-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fc-modal-group {
  display: flex; flex-direction: column; gap: 7px;
}
.fc-modal-group label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #64748b;
  text-transform: uppercase;
}
.fc-modal-group input,
.fc-modal-group textarea {
  background: rgba(4,31,20,.6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  resize: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.fc-modal-group input::placeholder,
.fc-modal-group textarea::placeholder {
  color: rgba(255,255,255,.28);
}
.fc-modal-group input:focus,
.fc-modal-group textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

.fc-modal-submit {
  width: 100%;
  padding: 17px;
  background: #10b981;
  border: none;
  border-radius: 999px;
  color: #042f1f;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16,185,129,.3);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.fc-modal-submit:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16,185,129,.4);
}

@media (max-width: 640px) {
  .fc-modal-box { padding: 30px 24px; }
  .fc-modal-row { grid-template-columns: 1fr; }
}


/* ==========================================================================
   MODAL — consent checkbox
   ========================================================================== */

.fc-modal-consent {
  margin: -6px 0 4px;
}

.fc-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.fc-consent-label input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  cursor: pointer;
}

.fc-consent-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s ease;
}

.fc-consent-label:hover input ~ .fc-consent-check {
  border-color: #4ade80;
}

.fc-consent-label input:checked ~ .fc-consent-check {
  background: #10b981;
  border-color: #10b981;
}

.fc-consent-check::after {
  content: '';
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fc-consent-label input:checked ~ .fc-consent-check::after {
  display: block;
}

.fc-consent-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================================
   PAGE-BLOG — фикс зелёной полосы поверх страницы
   ========================================================================== */

.page-blog {
  background-color: #f8fafc;
}


/* ==========================================================================
   SPASIBO.PHP — страница благодарности после отправки заявки
   ========================================================================== */

.page-spasibo {
  background-color: #ffffff;
}

.page-spasibo .spasibo-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px 20px 100px;
  background: radial-gradient(circle at 50% 0%, rgba(16,185,129,.06) 0%, rgba(255,255,255,0) 60%), #ffffff;
  box-sizing: border-box;
}

.page-spasibo .spasibo-container {
  max-width: 620px;
  text-align: center;
}

.page-spasibo .spasibo-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.page-spasibo .spasibo-badge {
  display: inline-block;
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-spasibo .spasibo-title {
  color: #0f172a;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-spasibo .spasibo-text {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 40px;
}

.page-spasibo .spasibo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-spasibo .spasibo-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-spasibo .spasibo-phone:hover { color: #10b981; }

.page-spasibo .spasibo-home-btn {
  display: inline-block;
  padding: 16px 34px;
  background-color: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(16,185,129,.2);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.page-spasibo .spasibo-home-btn:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,150,105,.3);
}

@media (max-width: 540px) {
  .page-spasibo .spasibo-title { font-size: 1.7rem; }
  .page-spasibo .spasibo-actions { flex-direction: column; gap: 16px; }
}


/* ==========================================================================
   ACHIEVEMENTS — блок "Наши достижения" (дипломы/сертификаты)
   Используется на index.php (под командой) и onas.php (под командой)
   ========================================================================== */

.achievements-section {
  padding: 100px 60px;
  background-color: #f8fafc;
  display: flex;
  justify-content: center;
}
.about-page-wrapper .achievements-section {
  padding: 0 0 90px;
  background-color: transparent;
  display: block;
}

.achievements-container {
  width: 100%;
  max-width: 1200px;
}
.about-page-wrapper .achievements-container {
  max-width: 100%;
}

.achievements-header {
  max-width: 800px;
  margin-bottom: 44px;
}
.achievements-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  color: #059669; text-transform: uppercase; display: inline-block; margin-bottom: 16px;
}
.achievements-title {
  font-size: 2rem; font-weight: 800; color: #0f172a;
  line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.02em;
}
.achievements-subtitle {
  font-size: 1rem; line-height: 1.6; color: #475569;
}

.achievements-slider-wrap {
  position: relative;
}
.achievements-slider-wrap .achievements-track-wrap {
  overflow: hidden;
  padding: 12px 0;
  margin: -12px 0;
}
.achievements-track {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25,1,0.3,1);
  will-change: transform;
}

.achievement-card {
  flex: 0 0 auto;
  width: 240px;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(4,47,31,.04);
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease, transform 0.35s cubic-bezier(0.25,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.achievement-card:hover {
  border-color: #4ade80;
  box-shadow: 0 16px 44px rgba(74,222,128,.32), 0 4px 12px rgba(4,47,31,.06);
}
.achievement-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.achievement-card-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.achievement-card:hover .achievement-card-zoom {
  opacity: 1;
  transform: scale(1);
}

.achievements-slider-wrap .achievements-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 48px;
}
.achievements-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.achievements-btn:hover {
  background: #10b981; color: #fff; border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(74,222,128,.3), 0 8px 20px rgba(16,185,129,.35);
}
.achievements-btn:disabled { opacity: 0.3; cursor: default; box-shadow: none; background: #fff; color: #64748b; border-color: #e2e8f0; }

/* Fullscreen lightbox viewer (shared across all pages) */
.achievement-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 20, 13, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.achievement-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}
.achievement-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25,1,0.3,1);
}
.achievement-lightbox.is-open .achievement-lightbox-img {
  transform: scale(1);
}
.achievement-lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.achievement-lightbox-close:hover {
  background: rgba(74,222,128,.15);
  color: #4ade80;
  border-color: #4ade80;
}
.achievement-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}
.achievement-lightbox-nav:hover {
  background: rgba(74,222,128,.15);
  color: #4ade80;
  border-color: #4ade80;
}
.achievement-lightbox-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.achievement-lightbox-prev { left: 16px; }
.achievement-lightbox-next { right: 16px; }
.achievement-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .achievement-lightbox-nav { width: 42px; height: 42px; font-size: 1.1rem; }
  .achievement-lightbox-prev { left: 8px; }
  .achievement-lightbox-next { right: 8px; }
}

@media (max-width: 768px) {
  .achievements-section { padding: 80px 20px; }
  .about-page-wrapper .achievements-section { padding: 0 0 60px; }
  .achievement-card { width: 170px; height: 230px; }
}


/* ==========================================================================
   ВИДЕО-ВИДЖЕТ ПРИВЕТСТВИЯ (bottom-left) — круглая кнопка + карточка
   ========================================================================== */

.req-greet-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9997;
  display: flex;
  align-items: flex-end;
}

/* Свёрнутое состояние: пульсирующий кружок с превью-видео */
.req-greet-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #10b981;
  box-shadow: 0 8px 24px rgba(16,185,129,.45);
  cursor: pointer;
  position: relative;
  background: #042f1f;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  flex-shrink: 0;
}
.req-greet-circle.is-visible {
  opacity: 1;
  animation: req-greet-pulse 2.4s ease-out infinite;
}
.req-greet-circle:hover {
  transform: scale(1.07);
  animation-play-state: paused;
  box-shadow: 0 12px 30px rgba(16,185,129,.6);
}
.req-greet-widget.expanded .req-greet-circle { display: none; }
.req-greet-circle video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.req-greet-play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,47,31,0.25);
  color: #ffffff;
}
.req-greet-circle.video-error {
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
}
.req-greet-circle.video-error video { display: none; }
.req-greet-circle.video-error .req-greet-play-icon { background: transparent; }

@keyframes req-greet-pulse {
  0%   { box-shadow: 0 8px 24px rgba(16,185,129,.45), 0 0 0 0 rgba(16,185,129,.5); }
  70%  { box-shadow: 0 8px 24px rgba(16,185,129,.45), 0 0 0 14px rgba(16,185,129,0); }
  100% { box-shadow: 0 8px 24px rgba(16,185,129,.45), 0 0 0 0 rgba(16,185,129,0); }
}

/* Развёрнутое состояние: карточка с видео */
.req-greet-card {
  display: none;
  width: 240px;
  background: linear-gradient(180deg, #042f1f 0%, #02170f 100%);
  border: 1px solid rgba(74,222,128,.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(2,20,13,.55);
  animation: req-greet-in 0.3s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}
.req-greet-widget.expanded .req-greet-card { display: block; }

@keyframes req-greet-in {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.req-greet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}
.req-greet-lang-switch { display: flex; gap: 4px; }
.req-greet-lang-btn {
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.req-greet-lang-btn:hover { color: rgba(255,255,255,.8); }
.req-greet-lang-btn.active { background: #10b981; color: #042f1f; }
.req-greet-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 20px; cursor: pointer; line-height: 1; transition: color 0.2s ease;
}
.req-greet-close:hover { color: #ffffff; }

.req-greet-video-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}
.req-greet-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }

.req-greet-actions {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.req-greet-btn-primary, .req-greet-btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer; border: none;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
}
.req-greet-btn-primary { background: #10b981; color: #042f1f; }
.req-greet-btn-primary:hover { background: #34d399; }
.req-greet-btn-outline {
  background: transparent; color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.2);
}
.req-greet-btn-outline:hover { border-color: rgba(74,222,128,.6); background: rgba(74,222,128,.08); }

@media (max-width: 540px) {
  .req-greet-widget { bottom: 18px; left: 18px; }
  .req-greet-circle { width: 56px; height: 56px; }
  .req-greet-card { width: 200px; }
}


/* ==========================================================================
   ПОЛНОЭКРАННОЕ ДЕМО-ВИДЕО С ФОРМОЙ (после клика "Смотреть полное видео")
   ========================================================================== */

.req-demo-overlay {
  position: fixed; inset: 0;
  background: rgba(2,20,13,.92);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10002;
  padding: 20px;
  box-sizing: border-box;
}
.req-demo-overlay.is-open { display: flex; }

.req-demo-content {
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(16,185,129,.1) 100%);
  border: 1px solid rgba(74,222,128,.15);
  border-radius: 26px;
  width: 100%; max-width: 1080px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
}

.req-demo-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0;
  background: #042f1f;
  z-index: 2;
}
.req-demo-header h3 { font-size: 15px; font-weight: 700; color: #ffffff; margin: 0; }
.req-demo-close {
  background: none; border: none; color: #ffffff; font-size: 24px;
  cursor: pointer; opacity: .55; transition: all .25s ease; line-height: 1;
}
.req-demo-close:hover { opacity: 1; transform: rotate(90deg); }

.req-demo-body {
  display: flex;
  min-height: 380px;
}

.req-demo-video-col {
  flex: 1.3;
  background: #000;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-width: 0;
}
.req-demo-video-col video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

.req-demo-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.req-demo-play-overlay svg {
  width: 60px; height: 60px; padding: 18px;
  background: #10b981; border-radius: 50%;
  box-shadow: 0 10px 30px rgba(16,185,129,.4);
  transition: transform 0.25s ease;
}
.req-demo-play-overlay:hover svg { transform: scale(1.08); }
.req-demo-play-overlay.hidden { display: none; }

.req-demo-progress-wrap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0));
}
.req-demo-progress-track {
  flex: 1; height: 4px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden;
}
.req-demo-progress-fill { height: 100%; width: 0%; background: #10b981; transition: width 0.15s linear; }
.req-demo-timer { font-size: 11px; color: rgba(255,255,255,.75); white-space: nowrap; }

.req-demo-form-col {
  flex: 1;
  padding: 32px 30px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}

.req-demo-form-teaser {
  text-align: center;
  color: rgba(255,255,255,.6);
}
.req-demo-form-teaser p { font-size: 13.5px; line-height: 1.6; margin: 14px 0 18px; }
.req-demo-teaser-btn {
  background: transparent;
  border: 1.5px solid rgba(74,222,128,.4);
  color: #4ade80;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
}
.req-demo-teaser-btn:hover { background: rgba(74,222,128,.1); border-color: #4ade80; }

.req-demo-form-panel { display: none; }
.req-demo-form-panel.visible { display: block; animation: req-greet-in 0.35s cubic-bezier(0.175,0.885,0.32,1.275) forwards; }
.req-demo-form-teaser.hidden { display: none; }

.req-demo-form-title { font-size: 19px; font-weight: 800; color: #ffffff; margin-bottom: 8px; }
.req-demo-form-sub { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5; margin-bottom: 22px; }
.req-demo-form { display: flex; flex-direction: column; gap: 12px; }
.req-demo-form input[type="text"],
.req-demo-form input[type="tel"] {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 13.5px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}
.req-demo-form input::placeholder { color: rgba(255,255,255,.3); }
.req-demo-form input:focus { border-color: #10b981; }
.req-demo-consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: rgba(255,255,255,.5); line-height: 1.4; cursor: pointer;
}
.req-demo-consent input { margin-top: 2px; accent-color: #10b981; }
.req-demo-form-submit {
  background: #10b981; color: #042f1f;
  border: none; border-radius: 10px;
  padding: 13px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
  transition: background 0.2s ease;
}
.req-demo-form-submit:hover { background: #34d399; }

@media (max-width: 768px) {
  .req-demo-body { flex-direction: column; }
  .req-demo-video-col { min-height: 220px; }
  .req-demo-content { max-width: 100%; }
}
@media (max-width: 480px) {
  .req-demo-header { padding: 16px 18px; }
  .req-demo-form-col { padding: 20px 18px; }
}


/* ==========================================================================
   IPOTEKA.PHP — модальное окно калькулятора (кнопка "Рассчитать платёж" в Hero)
   ========================================================================== */

.req-calc-overlay {
  position: fixed; inset: 0;
  background: rgba(2,20,13,.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10003;
  padding: 20px;
  box-sizing: border-box;
}
.req-calc-overlay.is-open { display: flex; }

.req-calc-modal {
  background: #022c22;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 26px;
  width: 100%; max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 44px 50px;
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
}

.req-calc-close {
  position: absolute;
  top: 20px; right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.req-calc-close:hover {
  background: rgba(74,222,128,.12); color: #4ade80; border-color: #4ade80;
}

.req-calc-modal-header {
  margin-bottom: 28px;
}
.req-calc-modal-title {
  font-size: 1.6rem; font-weight: 800; color: #ffffff;
  line-height: 1.3; letter-spacing: -0.02em;
  margin: 10px 0 8px;
}
.req-calc-modal-sub {
  font-size: 0.95rem; color: #cbd5e1; line-height: 1.5;
}

.req-calc-modal .calc-main-layout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 44px !important;
  align-items: stretch;
}

.req-calc-modal .modern-result-price span#modalMonthlyPayment {
  color: #34d399;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.req-calc-modal .calc-submit-action {
  font-size: 0.92rem;
  white-space: nowrap;
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 768px) {
  .req-calc-modal { padding: 30px 24px; }
  .req-calc-modal .calc-main-layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  .req-calc-modal-title { font-size: 1.3rem; }
  .req-calc-modal .calc-submit-action { white-space: normal; }
}
