/* ============================================
   ФомиКом — Professional corporate landing
   Montserrat, light theme, vertical photos
   ============================================ */

:root {
  --red: #c0392b;
  --red-hover: #a93226;
  --red-light: #fdf2f0;
  --red-glow: rgba(192, 57, 43, 0.15);
  --dark: #1a1a2e;
  --dark-soft: #2c2c44;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --bg-gray: #f4f4f6;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

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

h1, h2, h3, h4, h5 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

/* ═══════════════════════════
   Buttons
   ═══════════════════════════ */
.btn {
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 11px 28px;
  font-size: 0.9rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.btn-lg { padding: 14px 36px; font-size: 0.95rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn-primary-dark {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-primary-dark:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline-dark:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-white {
  background: #fff;
  color: var(--dark);
  border: 2px solid #fff;
  font-weight: 700;
}
.btn-white:hover {
  background: var(--bg-gray);
  border-color: var(--bg-gray);
  color: var(--dark);
}

.btn-outline-light {
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════
   Navbar
   ═══════════════════════════ */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.navbar-brand { padding: 0; }

.brand-mark {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.brand-mark span { font-weight: 400; color: var(--red); }

.navbar-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.nav-phone {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-phone i { color: var(--red); }
.nav-phone:hover { color: var(--red); }
.nav-email {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-email i { color: var(--red); }
.nav-email:hover { color: var(--red); }

.nav-vk {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.nav-vk img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.nav-vk:hover {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 67, 48, 0.12);
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text) !important;
  padding: 8px 14px !important;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--red) !important;
}

.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ═══════════════════════════
   Hero
   ═══════════════════════════ */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(160deg, #fff 0%, var(--bg-gray) 60%, var(--red-light) 100%);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-image img {
  width: 100%;
  display: block;
}

/* ═══════════════════════════
   Specs strip
   ═══════════════════════════ */
.specs {
  padding: 56px 0;
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.specs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, #2a1520 60%, var(--red-hover) 100%);
  opacity: 0.95;
}
.specs .container {
  position: relative;
  z-index: 1;
}

.spec-item {
  text-align: center;
}

.spec-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.spec-icon svg {
  width: 38px;
  height: 38px;
}
.spec-item:hover .spec-icon {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(192, 57, 43, 0.4);
}

.spec-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.spec-label strong {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ═══════════════════════════
   Sections
   ═══════════════════════════ */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: linear-gradient(135deg, var(--dark) 0%, #2a1520 100%); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

.section-head-light h2 { color: #fff; }
.section-head-light h2::after { background: var(--red); }
.section-head-light .section-desc { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════
   Advantages 01-06
   ═══════════════════════════ */
.adv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
}
.adv-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--red);
}

.adv-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 14px;
  transition: var(--transition);
}
.adv-card:hover .adv-num { opacity: 1; }

.adv-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.adv-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ═══════════════════════════
   Stats
   ═══════════════════════════ */
.stat-block {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-percent {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
}
.stat-block p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ═══════════════════════════
   Audience
   ═══════════════════════════ */
.audience-block {
  text-align: center;
  padding: 28px 20px;
}
.audience-icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.audience-block h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.audience-block p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ═══════════════════════════
   Location cards — VERTICAL PHOTOS FULL
   ═══════════════════════════ */
.loc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.loc-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--red);
}

.loc-photo {
  /* NO fixed height — let vertical photos display fully */
  overflow: hidden;
  background: var(--bg-gray);
}
.loc-photo img {
  width: 100%;
  height: auto;        /* full vertical photo */
  display: block;
  transition: transform 0.4s ease;
}
.loc-card:hover .loc-photo img {
  transform: scale(1.03);
}

.loc-info {
  padding: 16px;
  flex: 1;
}
.loc-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.loc-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* Locations map */
.locations-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 550px;
}
.locations-map iframe,
.locations-map > ymaps,
.locations-map > div {
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 767.98px) {
  .locations-map {
    height: 90vh;
  }
}

/* ═══════════════════════════
   Packages
   ═══════════════════════════ */
.pkg-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  position: relative;
  transition: var(--transition);
}
.pkg-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.pkg-featured {
  border-color: var(--red);
}
.pkg-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pkg-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  background: var(--bg-gray);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.pkg-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.pkg-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.pkg-count {
  font-size: 0.95rem;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.pkg-count strong {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
}

.pkg-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.pkg-list li {
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  padding-left: 22px;
}
.pkg-list li::before {
  content: '\F272'; /* bi-check2 */
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* Expandable extra locations */
.pkg-list-extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
.pkg-list-extra.is-open {
  max-height: 400px;
  opacity: 1;
  margin-bottom: 8px;
}
.pkg-list-extra li {
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.pkg-list-extra.is-open li {
  transform: translateY(0);
  opacity: 1;
}

.pkg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 18px;
  transition: var(--transition);
}
.pkg-toggle:hover {
  color: var(--red-hover);
}
.pkg-toggle i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}
.pkg-toggle.is-open i {
  transform: rotate(180deg);
}

/* ═══════════════════════════
   Portfolio
   ═══════════════════════════ */
.work-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.work-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.work-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-gray);
}
.work-thumb--video {
  background: #000;
}
.work-thumb--external {
  text-decoration: none;
}
.work-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.work-video-embed {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}
.work-card:hover .work-thumb img { transform: scale(1.04); }

.work-thumb-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
  padding: 9px 10px;
  color: #fff;
  background: rgba(18, 20, 28, 0.7);
  backdrop-filter: blur(4px);
}

.work-thumb-status.is-loading {
  background: linear-gradient(90deg, rgba(18,20,28,0.7) 0%, rgba(34,38,52,0.85) 50%, rgba(18,20,28,0.7) 100%);
  background-size: 220% 100%;
  animation: workStatusPulse 1.4s ease infinite;
}

.work-thumb-status.is-error {
  background: rgba(120, 20, 20, 0.78);
}

@keyframes workStatusPulse {
  0% { background-position: 0 0; }
  100% { background-position: -220% 0; }
}

.work-open-vk {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
}
.work-open-vk:hover {
  color: #111;
  background: #fff;
}

@media (min-width: 769px) {
  .work-video-embed {
    height: 550px;
  }
}

.work-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 3rem;
  opacity: 0.7;
  transition: var(--transition);
}
.work-card:hover .work-play {
  opacity: 1;
  background: rgba(192, 57, 43, 0.45);
}

.work-info { padding: 20px; }
.work-info h4 { font-size: 1rem; margin-bottom: 4px; }
.work-info p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

.portfolio-more-wrap {
  margin-top: 24px;
  text-align: center;
}

.portfolio-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

/* ═══════════════════════════
   Request form
   ═══════════════════════════ */
.req-form {
  display: none !important;
}

.req-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}
.req-form .form-control::placeholder { color: rgba(255,255,255,0.45); }
.req-form .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  box-shadow: none;
  color: #fff;
}

.form-note {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.form-note a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
}
.form-success i { font-size: 3rem; color: #4caf50; margin-bottom: 16px; }
.form-success h3 { color: #fff; margin-bottom: 8px; }
.form-success p { color: rgba(255,255,255,0.6); }

.phone-cta {
  text-align: center;
  color: #fff;
  max-width: 680px;
  margin: 0 auto;
  padding: 4px 0;
}
.phone-cta h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.phone-cta p {
  color: rgba(255,255,255,0.72);
  margin: 0 auto 22px;
  max-width: 560px;
  line-height: 1.6;
}
.phone-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 260px;
  margin-top: 4px;
}
.phone-cta__note {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

/* ═══════════════════════════
   Process — card grid
   ═══════════════════════════ */
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  height: 100%;
  transition: var(--transition);
}
.step-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--red);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  opacity: 0.25;
  line-height: 1;
  transition: var(--transition);
}
.step-card:hover .step-num { opacity: 1; }

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--dark);
  transition: var(--transition);
}
.step-card:hover .step-icon {
  background: var(--red);
  color: #fff;
}

.step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════
   About
   ═══════════════════════════ */
.about-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

#about h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
#about h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-top: 12px;
  border-radius: 2px;
}
#about p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ═══════════════════════════
   Blog
   ═══════════════════════════ */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}

.blog-thumb { overflow: hidden; }
.blog-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }

.blog-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-body time {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
}
.blog-body h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: auto;
}

.blog-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 16px;
  transition: var(--transition);
}
.blog-card:hover .blog-more { gap: 8px; }

/* ═══════════════════════════
   Footer
   ═══════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand span { font-weight: 400; color: var(--red); }

.footer-about {
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.footer-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li { margin-bottom: 8px; }
.footer-nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-nav a:hover { color: #fff; }

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.footer-contact-list i { margin-top: 3px; color: var(--red); }
.footer-contact-list a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: var(--transition);
}
.footer-contact-list a:hover { color: #fff; }

.footer-cta-text {
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: var(--transition);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

.footer-legal {
  margin-top: 14px;
  padding: 14px 0 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-legal h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.footer-legal__content {
  color: rgba(255,255,255,0.58);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-line;
}

/* ═══════════════════════════
   Contacts + Yandex Map
   ═══════════════════════════ */
.contacts-section {
  position: relative;
  overflow: hidden;
}

.contacts-map-wrap {
  width: 100%;
  height: 500px;
}
.contacts-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contacts-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.contacts-card {
  pointer-events: auto;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  max-width: 380px;
}

.contacts-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.contacts-card h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 10px;
  border-radius: 2px;
}

.contacts-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contacts-item:last-of-type {
  margin-bottom: 0;
}

.contacts-item > i {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.contacts-item:hover > i {
  background: var(--red);
  color: #fff;
}

.contacts-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 1px;
}

.contacts-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}
a.contacts-value:hover {
  color: var(--red);
}

.lazy-media {
  display: block;
  width: 100%;
  height: auto;
}

.lazy-media.is-lazy {
  filter: blur(10px);
  transform: scale(1.01);
  transition: filter .35s ease, transform .35s ease;
}

.lazy-media.is-loaded {
  filter: none;
  transform: none;
}

@media (max-width: 991px) {
  .contacts-map-wrap {
    height: 360px;
  }
  .contacts-overlay {
    position: static;
    height: auto;
    display: block;
    pointer-events: auto;
    padding: 16px 0 0;
  }
  .contacts-card {
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.82);
  }
}

@media (max-width: 575px) {
  .contacts-map-wrap {
    height: 300px;
  }
  .contacts-card {
    padding: 24px 20px;
  }
}

/* ═══════════════════════════
   Blog
   ═══════════════════════════ */
#blog .section-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

#blog .row.g-4 {
  margin-top: 24px;
  justify-content: center;
}

.blog-card {
  height: 100%;
  max-width: none;
  width: 100%;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card__thumb {
  display: block;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  background: #f2f4f7;
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-card h3 a {
  color: var(--dark);
  text-decoration: none;
}

.blog-card p {
  color: var(--text);
  margin-bottom: 14px;
  flex: 1;
}

.blog-card__more {
  text-decoration: none;
  color: var(--red);
  font-weight: 700;
}

.blog-card__more i {
  margin-left: 6px;
}

.blog-more-wrap {
  margin-top: 24px;
  text-align: center;
}

.blog-empty {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px dashed rgba(0,0,0,0.15);
  text-align: center;
  color: var(--text-light);
}

.blog-post-wrap {
  max-width: 920px;
}

.blog-post-back {
  margin-bottom: 14px;
}

.blog-post-back .btn i {
  margin-right: 6px;
}

.blog-post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.blog-post-date {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.blog-post-head h1 {
  margin-bottom: 10px;
}

.blog-post-lead {
  color: #586176;
  font-size: 1.05rem;
}

.blog-post-cover {
  margin: 18px 0 22px;
}

.blog-post-cover img {
  width: 100%;
  border-radius: 12px;
}

.blog-post-content h2,
.blog-post-content h3 {
  margin-top: 1.2rem;
}

.blog-post-content p,
.blog-post-content li {
  line-height: 1.7;
}

/* ═══════════════════════════
   Cookie Consent
   ═══════════════════════════ */
.cookie-consent[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(13, 16, 24, 0.48);
}

.cookie-consent__panel {
  width: 100%;
  max-width: 1040px;
  background: rgba(20, 23, 31, 0.97);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.25);
}

.cookie-consent h2,
.cookie-modal h2,
.cookie-category h3 {
  margin: 0;
}

.cookie-consent h2 {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.cookie-consent p,
.cookie-modal p {
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-consent p {
  margin: 0 0 6px;
}

.cookie-consent a,
.cookie-modal a {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent__actions,
.cookie-modal__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.cookie-btn {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-weight: 700;
}
.cookie-btn:hover,
.cookie-btn:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(13, 16, 24, 0.62);
}

.cookie-modal__panel {
  width: min(720px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow-y: auto;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.32);
}

.cookie-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.cookie-modal__head h2 {
  color: var(--dark);
  font-size: 1.35rem;
}

.cookie-modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  font-size: 1.5rem;
  line-height: 1;
}

.cookie-modal__lead {
  color: var(--text-light);
  margin-bottom: 16px;
}

.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.cookie-category h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.cookie-category p {
  margin: 0;
  color: var(--text-light);
}

.cookie-toggle {
  font-size: 0.86rem;
  color: var(--text-light);
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 56px;
  height: 30px;
}
.cookie-switch input {
  position: absolute;
  opacity: 0;
}
.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d4d7df;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-switch span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
}
.cookie-switch input:checked + span {
  background: var(--red);
}
.cookie-switch input:checked + span::after {
  transform: translateX(26px);
}
.cookie-switch input:focus-visible + span,
.cookie-modal__close:focus-visible,
.footer-link-button:focus-visible,
.cookie-external .btn:focus-visible {
  outline: 3px solid rgba(192,57,43,0.35);
  outline-offset: 3px;
}

.cookie-modal__actions {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  margin-top: 18px;
}
.cookie-modal__actions .cookie-btn {
  border-color: var(--dark);
  color: var(--dark);
}
.cookie-modal__actions .cookie-btn:hover,
.cookie-modal__actions .cookie-btn:focus-visible {
  background: var(--dark);
  color: #fff;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.35);
  font: inherit;
  cursor: pointer;
}
.footer-link-button:hover {
  color: rgba(255,255,255,0.6);
}

.cookie-external {
  min-height: 240px;
  width: 100%;
}
.cookie-external--map,
.contacts-map-wrap .cookie-external {
  height: 100%;
}
.cookie-external__placeholder {
  min-height: 240px;
  height: 100%;
  border: 1px dashed rgba(18, 23, 34, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.cookie-external__placeholder h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--dark);
}
.cookie-external__placeholder p {
  max-width: 520px;
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .cookie-consent {
    padding: 10px;
  }
  .cookie-consent__panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cookie-consent__actions,
  .cookie-modal__actions {
    grid-template-columns: 1fr;
  }
  .cookie-modal {
    padding: 10px;
  }
  .cookie-modal__panel {
    padding: 18px;
  }
  .cookie-category {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .cookie-consent__panel,
  .cookie-modal__panel {
    padding: 14px;
  }
}

/* ═══════════════════════════
   Scroll-to-top
   ═══════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ═══════════════════════════
   Responsive
   ═══════════════════════════ */
@media (max-width: 991px) {
  .hero { padding: 64px 0 60px; }
  .hero-image { margin-top: 40px; text-align: center; }
  .hero-image img { max-width: 400px; }
  .section { padding: 64px 0; }
  .process-step { width: 110px; padding: 10px; }
  .navbar-contacts {
    gap: 12px;
  }
  .nav-phone,
  .nav-email {
    font-size: 0.88rem;
  }
}

@media (max-width: 767px) {
  .hero { padding: 52px 0 40px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-lead { font-size: 1rem; }
  .hero-buttons .btn { text-align: center; min-width: min(220px, 100%); }
  .navbar .container {
    gap: 10px;
  }
  .navbar-contacts {
    display: grid;
    gap: 4px;
    justify-items: end;
  }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }

  .process-grid { gap: 8px; justify-content: center; }
  .process-step { width: calc(33.33% - 8px); }
  .process-arrow { display: none !important; }

  .about-img { margin-bottom: 32px; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .blog-card {
    max-width: 320px;
  }

  .blog-card__thumb {
    max-height: 360px;
  }
}

.policy-page .policy-wrap {
  max-width: 860px;
}

.policy-page h1 {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  margin-bottom: 18px;
}

.policy-page .policy-content {
  color: var(--text);
  line-height: 1.8;
}

.policy-page .policy-content h2 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

@media (max-width: 575px) {
  .process-step { width: calc(50% - 8px); }
  .spec-icon { width: 60px; height: 60px; }
  .spec-icon svg { width: 32px; height: 32px; }
}
