/* =============================================
   region-77.ru — Adaptive stylesheet
   ============================================= */

:root {
  --blue: #005DB0;
  --blue-light: #29ABE2;
  --gradient: linear-gradient(135deg, #005DB0 0%, #29ABE2 100%);
  --gradient-h: linear-gradient(to right, #005DB0 0%, #29ABE2 100%);
  --text: #2D2C29;
  --text-mid: #4F4F4F;
  --text-muted: #7F7F7F;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --shadow: 0 4px 32px rgba(0, 93, 176, 0.12);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.10);
  --radius: 6px;
  --radius-lg: 12px;
  --trans: 0.22s ease;
  --navbar-height: 96px;
  --hero-top-gap: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Ubuntu', Arial, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity var(--trans), transform var(--trans);
  text-align: center;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; }

.btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.85;
}
.btn-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn-primary {
  background: var(--gradient-h);
  color: var(--white);
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

.btn-red {
  background: #D32F2F;
  color: var(--white);
  width: 100%;
  padding: 16px;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 24px;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #DDE3EC;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--trans);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--blue-light); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237F7F7F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }

.checkbox-wrap, .radio-wrap { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-wrap input, .radio-wrap input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }
.checkbox-wrap span, .radio-wrap span { font-size: 13px; color: var(--text-mid); line-height: 1.4; }
.checkbox-wrap span a, .radio-wrap span a { color: var(--blue); text-decoration: underline; }
.checkbox-wrap span a:hover, .radio-wrap span a:hover { color: var(--blue-light); }

.radio-group { display: flex; gap: 20px; }

.form-status { margin-top: 10px; font-size: 14px; min-height: 20px; }
.form-status.sending { color: var(--text-muted); }
.form-status.success { color: #118500; }
.form-status.error { color: #C1272D; }

/* ===== Section headings ===== */
.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 40px;
}
.section-head { margin-bottom: 48px; }
.section-head.centered { text-align: center; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: box-shadow var(--trans);
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.16); }

/* Top row: logo | tagline | contacts */
.nav-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0 8px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo img { height: 60px; width: auto; }
.nav-logo-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-mid);
  max-width: 220px;
}

.nav-tagline {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
  text-align: center;
  display: none;
}

.nav-contacts {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-email {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  font-size: 16px;
  white-space: nowrap;
}
.nav-phone svg, .nav-email svg { flex-shrink: 0; color: var(--blue); }

/* Bottom row: links | button */
.nav-bottom {
  display: none;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #DDE3EC;
  padding: 6px 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--blue);
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover { background: var(--bg); }

.nav-cta {
  width: 100%;
  background: #D32F2F;
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--trans);
  white-space: nowrap;
  text-align: center;
  display: none;
}
.nav-cta:hover { opacity: 0.88; }

.nav-cta-bar {
  display: none;
}

.nav-cta-mobile {
  background: #D32F2F;
  color: var(--white);
  border: none;
  padding: 9px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid #DDE3EC;
  padding: 8px 0;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--text);
  padding: 11px 24px;
  font-size: 15px;
  border-bottom: 1px solid #EEF1F6;
}
.nav-mobile-menu a:last-child { border: none; }
.nav-mobile-menu a:hover { background: var(--bg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: max(120px, calc(var(--navbar-height) + var(--hero-top-gap))) 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/snjat_kommercheskuju_nedvizhimost_00.jpg') center center / cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,93,176,0.72) 0%, rgba(41,171,226,0.62) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.hero-text { color: var(--white); }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(26px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--white);
}
.hero-title em { font-style: normal; color: #FFE066; }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}
.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hero-feature-icon {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.hero-feature-icon svg { display: block; }
.hero-feature-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.45;
  padding-top: 4px;
}
.hero-feature-text strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* Hero Form Card */
.hero-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.hero-form-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.5;
}
.hero-form-bullets {
  list-style: none;
  margin-bottom: 20px;
}
.hero-form-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 6px;
  line-height: 1.4;
}
.hero-form-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

section[id] {
  scroll-margin-top: calc(var(--navbar-height) + 16px);
}

/* =============================================
   USP STRIP
   ============================================= */
.usp-strip {
  background: var(--gradient-h);
  padding: 48px 0;
  color: var(--white);
}
.usp-strip .section-title { color: var(--white); text-align: center; }
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.usp-item {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.service-item {
  background: rgba(255,255,255,0.1);
  border-left: 3px solid rgba(255,255,255,0.6);
  padding: 14px 18px;
  font-size: 15px;
  color: rgba(255,255,255,0.95);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* =============================================
   ADVANTAGES
   ============================================= */
.advantages { padding: 72px 0; background: var(--bg); }

.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.adv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.adv-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.adv-text { display: none !important; }

/* Render card text from data attribute to avoid third-party DOM text rewrites */
.advantages .adv-card::after {
  content: attr(data-adv);
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: #4F4F4F;
  visibility: visible;
  opacity: 1;
  -webkit-text-fill-color: #4F4F4F;
}

/* =============================================
   DRONE
   ============================================= */
.drone-section {
  position: relative;
  padding: 120px 0;
  min-height: 520px;
  background: #B0C4D8;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.drone-aerial-bg {
  position: absolute;
  width: 220%;
  height: 220%;
  top: -60%;
  left: -30%;
  background: url('../images/26049236897_889b122703_b.jpg') center center / cover no-repeat;
  opacity: 0.65;
  transform: rotate(-20deg);
  pointer-events: none;
}
.drone-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  z-index: 0;
}
.drone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.drone-content { flex: 1; }
.drone-heading {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 14px;
}
.drone-heading strong {
  display: block;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}
.drone-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}
.drone-360-img {
  display: block;
  width: 200px;
  height: auto;
  margin-top: 28px;
}
.drone-img-wrap { flex-shrink: 0; }
.drone-img-wrap img {
  display: block;
  width: 100%;
  max-width: 460px;
}

@media (min-width: 768px) {
  .drone-inner { flex-direction: row; align-items: center; gap: 60px; }
  .drone-img-wrap { width: 420px; }
}

/* =============================================
   PROCESS
   ============================================= */
.process { padding: 72px 0; background: var(--white); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: box-shadow var(--trans);
}
.step:hover { box-shadow: var(--shadow-card); }
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text { font-size: 15px; color: var(--text-mid); padding-top: 10px; line-height: 1.5; }

/* =============================================
   DEALS SLIDER
   ============================================= */
.deals { padding: 72px 0; background: var(--bg); }

.deals-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.deals-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #DDE3EC;
  background: var(--white);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans);
  flex-shrink: 0;
}
.deals-arrow:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.deals-counter {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  min-width: 56px;
  text-align: center;
}

.deal-slides { position: relative; }
.deal-slide { display: none; }
.deal-slide.active { display: flex; flex-direction: column; gap: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }

.deal-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #e0e7f0;
}

.deal-info { padding: 24px; }
.deal-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.deal-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.deal-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 4px;
}
.deal-list li::before { content: '→'; color: var(--blue-light); font-weight: 700; flex-shrink: 0; }

/* =============================================
   REVIEWS
   ============================================= */
.reviews { padding: 72px 0; background: var(--white); }

.reviews-slider { position: relative; }
.review-slide { display: none; }
.review-slide.active { display: block; }

.review-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.review-quote {
  font-size: 72px;
  line-height: 0.6;
  color: var(--blue-light);
  opacity: 0.35;
  font-family: Georgia, serif;
  margin-bottom: 16px;
  display: block;
}
.review-text { font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 24px; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 700; color: var(--text); }
.review-role { font-size: 13px; color: var(--text-muted); }

.reviews-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}
.review-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid #DDE3EC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans), border-color var(--trans);
}
.review-btn:hover { background: var(--gradient); border-color: transparent; }
.review-btn:hover svg { stroke: var(--white); }
.review-btn svg { stroke: var(--text-mid); }

.reviews-dots { display: flex; gap: 6px; }
.reviews-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #DDE3EC;
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
}
.reviews-dot.active { background: var(--blue); transform: scale(1.3); }

/* =============================================
   REVIEW FORM
   ============================================= */
.review-form-section {
  padding: 48px 0;
  background: var(--bg);
}
.review-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

/* =============================================
   ADDITIONAL SERVICES (PARTNERS)
   ============================================= */
.services-extra {
  padding: 72px 0;
  background: var(--white);
}
.services-extra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-extra-item {
  padding: 18px 20px;
  border-left: 3px solid var(--blue-light);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--text-mid);
}
.service-extra-item strong { color: var(--blue); }

/* =============================================
   CTA SECTIONS
   ============================================= */
.cta-section {
  padding: 72px 0;
}
.cta-section.blue {
  background: var(--gradient);
  color: var(--white);
}
.cta-section.blue .section-title { color: var(--white); }
.cta-section.blue .section-subtitle { color: rgba(255,255,255,0.85); }

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.cta-form-wrap {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.cta-form-wrap .section-title { color: var(--text); text-align: left; font-size: 22px; margin-bottom: 6px; }
.cta-form-wrap .section-subtitle { text-align: left; font-size: 14px; }

/* =============================================
   CONSULT SECTION
   ============================================= */
.consult-section {
  padding: 72px 0;
  background: var(--bg);
}
.consult-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.consult-text .section-title { color: var(--text); }
.consult-feature { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.consult-feature-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--gradient);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.consult-feature-text { font-size: 15px; color: var(--text-mid); }
.consult-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.consult-form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,93,176,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 900;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--blue-light); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0A1F3D;
  color: rgba(255,255,255,0.8);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo { width: 130px; height: auto; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-requisites { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 10px; line-height: 1.5; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,0.75); transition: color var(--trans); }
.footer-nav a:hover { color: var(--white); }

.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.footer-phone { font-size: 18px; font-weight: 700; color: var(--white); }
.footer-email { color: rgba(255,255,255,0.75); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-privacy-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
  transition: color var(--trans);
}
.footer-privacy-btn:hover { color: rgba(255,255,255,0.8); }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }

.footer-callback-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans);
  align-self: flex-start;
}
.footer-callback-btn:hover { background: rgba(255,255,255,0.18); }

/* =============================================
   MODALS
   ============================================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 60px rgba(0,0,0,0.25);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-mid);
  transition: background var(--trans);
  line-height: 1;
}
.modal-close:hover { background: #e0e7f0; }

.modal-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.modal-subtitle { font-size: 14px; color: var(--text-mid); margin-bottom: 24px; }

.privacy-content { max-height: 400px; overflow-y: auto; font-size: 13px; color: var(--text-mid); line-height: 1.7; padding-right: 8px; }
.privacy-content h3 { font-size: 14px; font-weight: 700; color: var(--text); margin: 16px 0 6px; }
.privacy-content p { margin-bottom: 8px; }

@media (max-width: 767px) {
  .nav-burger { margin-right: 20px; }
  .nav-logo-text { font-size: 13px; max-width: 160px; }
}

/* =============================================
   TABLET (768px+)
   ============================================= */
@media (min-width: 768px) {

  .nav-logo-text { display: block; }
  .nav-tagline { display: block; }
  .nav-contacts { display: flex; }
  .nav-bottom { display: flex; }
  .nav-cta { display: block; }
  .nav-cta-bar { display: none; }
  .nav-burger { display: none; }
  .nav-mobile-menu { display: none !important; }

  .hero-inner { flex-direction: row; align-items: center; gap: 48px; }
  .hero-text { flex: 1; }
  .hero-form { flex: 0 0 380px; }

  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .services-list { grid-template-columns: repeat(3, 1fr); }

  .adv-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { display: grid; grid-template-columns: repeat(2, 1fr); }

  .deal-slide.active { flex-direction: row; }
  .deal-photo { width: 50%; aspect-ratio: auto; min-height: 380px; }
  .deal-info { flex: 1; }

  .services-extra-grid { grid-template-columns: repeat(2, 1fr); }

  .consult-inner { flex-direction: row; align-items: flex-start; }
  .consult-text { flex: 1; }
  .consult-form-card { flex: 0 0 380px; }

  .footer-inner { flex-direction: row; gap: 48px; }
  .footer-brand { flex: 1; }
  .footer-nav { flex: 1; }
  .footer-contacts { flex: 1; }

  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =============================================
   DESKTOP (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  :root { --hero-top-gap: 32px; }
  .hero { padding-top: max(160px, calc(var(--navbar-height) + var(--hero-top-gap))); }

  .usp-grid { grid-template-columns: repeat(5, 1fr); }

  .adv-grid { grid-template-columns: repeat(3, 1fr); }

  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { flex-direction: column; align-items: flex-start; text-align: left; }
  .step-text { padding-top: 0; }

  .services-extra-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   UTILS
   ============================================= */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--gradient-h);
  border-radius: 2px;
  opacity: 0.3;
}

/* =============================================
   FIX: CTA form card text on blue background
   ============================================= */
.cta-section.blue .cta-form-wrap .section-title { color: var(--text); }
.cta-section.blue .cta-form-wrap .section-subtitle { color: var(--text-mid); margin-bottom: 16px; }

/* =============================================
   REVIEW AVATAR PHOTO
   ============================================= */
.review-avatar-photo { background: none; overflow: hidden; }
.review-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================
   SERVICES PHOTO GRID
   ============================================= */
.services-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
.services-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #e0e7f0;
  box-shadow: var(--shadow-card);
}

/* Service icon */
.service-extra-item { display: flex; flex-direction: column; gap: 10px; }
.service-icon { width: 40px; height: 40px; object-fit: contain; }

/* =============================================
   DRONE SAMPLE IMAGE
   ============================================= */
.drone-sample-img {
  display: block;
  max-width: 370px;
  width: 100%;
  margin: 28px auto 0;
}

/* =============================================
   CLIENTS LOGOS CARD
   ============================================= */
.clients-logos-card {
  background: var(--white);
  border: 1px solid #DDE3EC;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-top: 44px;
}
.clients-logos-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 36px;
}
.clients-logos img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.75;
  transition: opacity var(--trans);
}
.clients-logos img:hover { opacity: 1; }

@media (min-width: 768px) {
  .services-photos { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   SERVICES VISUAL SECTION (standalone, after Advantages)
   ============================================= */
.services-visual-section {
  background: var(--bg);
  padding: 80px 0;
}

/* =============================================
   SERVICES VISUAL ROWS (alternating photo + text)
   ============================================= */
.services-visual {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 0;
}
.services-visual-row {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.services-photo-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}
.services-photo-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 14px 14px 40px rgba(0,0,0,0.22);
}
.photo-bracket-br {
  padding-right: 14px;
  padding-bottom: 14px;
}
.photo-bracket-br::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border: 3px solid var(--blue);
  border-radius: var(--radius);
  z-index: 0;
}
.photo-bracket-tl {
  padding-left: 14px;
  padding-top: 14px;
}
.photo-bracket-tl::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border: 3px solid var(--blue);
  border-radius: var(--radius);
  z-index: 0;
}
.services-visual-text p {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.3px;
}
.services-visual-text strong { color: var(--blue); }

/* =============================================
   SERVICES ICONS ROW
   ============================================= */
.services-icons-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
  padding-top: 40px;
  border-top: 1px solid #DDE3EC;
}
.service-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.service-icon-item img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.service-icon-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.service-icon-item span {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .services-visual-row { flex-direction: row; align-items: center; gap: 56px; }
  .services-visual-row.photo-right { flex-direction: row-reverse; }
  .services-photo-wrap { width: 416px; }
  .services-icons-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .services-icons-row { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================
   КАТАЛОГ ОБЪЕКТОВ (catalog.php)
   ============================================= */
.catalog-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: calc(var(--navbar-height) + 32px) 0 40px;
  overflow: hidden;
}
.catalog-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/snjat_kommercheskuju_nedvizhimost_00.jpg') center center / cover no-repeat;
  z-index: 0;
}
.catalog-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,93,176,0.82) 0%, rgba(41,171,226,0.72) 100%);
}
.catalog-hero-inner { position: relative; z-index: 1; color: var(--white); max-width: 640px; }
.catalog-hero-title { font-size: clamp(24px, 4vw, 36px); font-weight: 700; margin-bottom: 12px; }
.catalog-hero-sub { font-size: 16px; opacity: 0.92; margin-bottom: 24px; line-height: 1.5; }
.catalog-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.catalog-hero-actions .btn { width: auto; padding: 14px 26px; }

.catalog-section { padding: 56px 0 72px; }

.catalog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.catalog-tab {
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1.5px solid #DDE3EC;
  background: var(--white);
  color: var(--text-mid);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.catalog-tab.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.catalog-tab:not(.active):hover { border-color: var(--blue-light); }

.catalog-panel { display: none; }
.catalog-panel.active { display: block; }

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.catalog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--trans), transform var(--trans);
}
.catalog-card:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14); transform: translateY(-2px); }
.catalog-card-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.catalog-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-card-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; background: var(--bg);
}
.catalog-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
}
.catalog-card-badge-sale { background: #D32F2F; }
.catalog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.catalog-card-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; }
.catalog-card:hover .catalog-card-title { color: var(--blue); }
.catalog-card-loc { font-size: 13px; color: var(--text-muted); }
.catalog-card-metro { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; margin-top: 2px; }
.metro-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; flex-shrink: 0; }
.metro-name { font-weight: 700; }
.catalog-card-area { font-size: 15px; font-weight: 700; color: var(--blue); margin-top: auto; padding-top: 6px; }

.catalog-promo {
  grid-column: 1 / -1;
  background: var(--gradient-h);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.catalog-promo-title { font-size: 19px; font-weight: 700; }
.catalog-promo-text { font-size: 14px; opacity: 0.92; }
.catalog-promo .btn { width: auto; padding: 12px 24px; flex-shrink: 0; }

.catalog-empty {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-mid);
}
.catalog-empty .btn { width: auto; margin-top: 16px; padding: 12px 24px; }

@media (min-width: 768px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-promo { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   СТРАНИЦА ОБЪЕКТА (object.php)
   ============================================= */
.object-content { padding: calc(var(--navbar-height) + 28px) 0 64px; }
.object-back { display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.object-title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 10px; }
.object-subtitle { font-size: 15px; color: var(--text-mid); margin-bottom: 24px; }

.object-layout { display: flex; flex-direction: column; gap: 32px; }
.object-left { min-width: 0; }
.object-right { display: flex; flex-direction: column; gap: 20px; }

/* Галерея */
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.gallery-counter {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(20,20,20,0.65); color: var(--white);
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
  flex: 0 0 auto; width: 100px; height: 72px; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--bg);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--blue); }
.gallery-thumb-more {
  position: relative;
}
.gallery-thumb-more::after {
  content: attr(data-more);
  position: absolute; inset: 0; background: rgba(20,20,20,0.55);
  color: var(--white); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gallery-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

.object-description { margin-top: 32px; }
.object-description h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.object-description p { font-size: 15px; line-height: 1.7; color: var(--text-mid); }

/* Карточки условий/характеристик — зафиксированный вид, см. память
   figma_variant_b_applied.md. НЕ менять радиусы/цвета/шаг строк без
   явного запроса заказчика (макет утверждён вручную). */
.terms-card, .specs-card {
  background: var(--white);
  padding: 20px 24px 8px;
}
.terms-card { border-radius: 12px; border: 1px solid #E6E6E6; }
.specs-card { border-radius: 8px; border: 1px solid #DDE3EC; }

.terms-title { font-size: 16px; font-weight: 700; color: #212121; margin-bottom: 12px; }
.terms-price { font-size: 22px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.specs-title { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }

.terms-row, .specs-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 4px; margin: 0 -24px;
}
.terms-row { min-height: 36px; padding-left: 24px; padding-right: 24px; }
.specs-row { min-height: 46px; padding-left: 24px; padding-right: 24px; }
.terms-row:nth-child(odd), .specs-row:nth-child(odd) { background: #F5F7FA; }
.terms-row span, .specs-row span { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.specs-row span { font-size: 14px; }
.terms-row strong, .specs-row strong { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }
.specs-row strong { font-size: 14px; }

.agent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #E6E6E6;
  padding: 20px 24px 24px;
}
.agent-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agent-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.agent-avatar-fallback {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-muted);
}
.agent-name { font-size: 15px; font-weight: 700; color: var(--text); }
.agent-phone-line { font-size: 14px; color: var(--text-mid); }
.agent-call-btn { display: block; text-align: center; }

.object-not-found { padding: calc(var(--navbar-height) + 60px) 0 80px; text-align: center; }
.object-not-found h1 { font-size: 24px; margin-bottom: 12px; }
.object-not-found p { color: var(--text-mid); margin-bottom: 20px; }
.object-not-found .btn { width: auto; display: inline-block; padding: 12px 24px; }

@media (min-width: 1024px) {
  .object-layout { flex-direction: row; align-items: flex-start; }
  .object-left { flex: 1 1 auto; min-width: 0; }
  .object-right { flex: 0 0 380px; }
}

/* Активный пункт главного меню (сейчас — только «Каталог объектов» на catalog.php) */
.nav-links a.nav-link-active { background: var(--bg); font-weight: 700; }

/* На сверхузких экранах (320px) три вкладки каталога с паддингом 24px
   не помещаются в ряд и распирают страницу по горизонтали. */
@media (max-width: 359px) {
  .catalog-tab { padding: 12px 14px; }
}

/* =============================================
   LEGAL PAGES — политика/оферта/согласия (черновики, см. план работы:
   не в меню, не проиндексированы, ждут согласования с заказчиком).
   ============================================= */
.legal-page { padding: calc(var(--navbar-height) + 32px) 0 80px; }
.legal-page-content { max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: var(--text-mid); }
.legal-page-content h1 { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.legal-page-content h2 { font-size: 19px; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.legal-page-content p { margin-bottom: 12px; }
.legal-page-content ul, .legal-page-content ol { margin: 0 0 12px 20px; }
.legal-page-content li { margin-bottom: 4px; }
.legal-page-content strong { color: var(--text); }
.legal-page-content hr { border: none; border-top: 1px solid #E6E6E6; margin: 24px 0; }
.legal-page-content blockquote {
  background: var(--bg); border-left: 3px solid var(--blue); padding: 12px 16px;
  margin: 16px 0; font-size: 14px; color: var(--text-mid); border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-page-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.legal-page-content th, .legal-page-content td { border: 1px solid #DDE3EC; padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-page-content th { background: var(--bg); font-weight: 700; color: var(--text); }
.legal-page-content a { color: var(--blue); }
.legal-page-draft-note {
  max-width: 760px; margin: 0 auto 24px; padding: 12px 16px; border-radius: var(--radius);
  background: #FFF7E6; border: 1px solid #F5C767; color: var(--text); font-size: 13px;
}

/* =============================================
   ACCESSIBILITY: видимый фокус с клавиатуры + reduced motion
   Правило намеренно в конце файла — та же специфичность (0,1,0), что и
   у ".form-input { outline: none }" выше, побеждает по порядку в каскаде.
   ============================================= */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================
   COOKIE BANNER — максимально компактный, одна строка на десктопе
   ============================================= */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: rgba(255,255,255,0.9);
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: 560px;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text {
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  min-width: 180px;
}
.cookie-banner-text a { color: var(--blue-light); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-banner-btn {
  flex-shrink: 0;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}
.cookie-banner-btn:hover { background: var(--blue-light); border-color: var(--blue-light); }
.cookie-banner-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}
.cookie-banner-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white); }

body.cookie-banner-visible .scroll-top { bottom: 84px; }
@media (max-width: 480px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  body.cookie-banner-visible .scroll-top { bottom: 104px; }
}

/* =============================================
   THANKS PAGE — фон как у баннера каталога (фото + синий градиент)
   ============================================= */
.thanks-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--navbar-height) + 40px) 0 60px;
  overflow: hidden;
}
.thanks-section-bg {
  position: absolute;
  inset: 0;
  background: url('../images/snjat_kommercheskuju_nedvizhimost_00.jpg') center center / cover no-repeat;
  z-index: 0;
}
.thanks-section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,93,176,0.82) 0%, rgba(41,171,226,0.72) 100%);
}
.thanks-card {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.thanks-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--white);
  color: #D32F2F;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.thanks-card .section-title { color: var(--white); margin-bottom: 12px; }
.thanks-text {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  margin-bottom: 32px;
}
.thanks-btn-primary { padding: 14px 36px; margin-bottom: 16px; }
.thanks-link-secondary {
  display: block;
  font-size: 14px;
  color: var(--white);
  text-decoration: underline;
  opacity: 0.85;
}
.thanks-link-secondary:hover { opacity: 1; }
