/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
  --bg: #0F1523;
  --bg2: #141D2E;
  --bg3: #1A2439;
  --bg4: #202D44;
  --accent: #F97316;
  --accent2: #EA6B0E;
  --white: #FFFFFF;
  --gray: #94A3B8;
  --gray2: #64748B;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.28s ease;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

/* ===========================
   TYPOGRAPHY
   =========================== */
.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 16px;
  color: var(--gray);
  margin-top: 12px;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); transform: translateY(-1px); }

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 40px; width: auto; }

.header__nav ul { display: flex; gap: 32px; }
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color var(--transition);
}
.header__nav a:hover { color: var(--white); }

.header__right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: color var(--transition);
}
.header__phone:hover { color: var(--accent); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: #0a0f1c;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 16px 24px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .btn-primary { display: block; text-align: center; margin-top: 16px; }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--bg) url('../pic/hero_bg.jpg') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,15,30,0.97) 45%, rgba(10,15,30,0.55) 75%, rgba(10,15,30,0.15) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 60px; display: flex; flex-direction: column; justify-content: center; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
}
.hero__content {}

.hero__label {
  display: inline-block;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(25px, 3.38vw, 47px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero__title span { color: var(--accent); }

.hero__sub {
  font-size: 16px;
  color: var(--gray);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 480px;
}
.hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.hero__badge img { width: 28px; height: 28px; flex-shrink: 0; }
.hero__badge-text { font-size: 13px; font-weight: 500; color: var(--gray); line-height: 1.4; }
.hero__badge-text strong { display: block; color: var(--white); font-size: 14px; font-weight: 600; }

.hero__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
  padding-top: 68px;
}
.hero__man {
  height: 100%;
  max-height: none;
  width: auto;
  object-fit: contain;
  object-position: top right;
  filter: drop-shadow(0 0 40px rgba(249,115,22,0.15));
}

/* ===========================
   SECTION BASE
   =========================== */
.section { padding: 80px 0; }
.section--dark { background: var(--bg2); }
.section--darker { background: #0b1020; }

.section__head { margin-bottom: 48px; }
.section__head.center { text-align: center; }

/* ===========================
   SERVICES
   =========================== */
.services { background: var(--bg2); }

.services-slider { padding-bottom: 40px; }
.services-slider .swiper-slide { height: auto; }

.service-card {
  height: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover { border-color: var(--border2); transform: translateY(-4px); }

.service-card__img {
  height: 220px;
  overflow: hidden;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.05); }

.service-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.service-card__desc { font-size: 14px; color: var(--gray); line-height: 1.65; flex: 1; margin-bottom: 20px; }
.service-card__btn { margin-top: auto; align-self: flex-start; }

/* Swiper custom navigation */
.swiper-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.swiper-btn {
  width: 46px; height: 46px;
  border: 1.5px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.swiper-btn img { width: 18px; height: 18px; }
.swiper-btn:hover { border-color: var(--accent); background: rgba(249,115,22,0.08); }
.swiper-btn.swiper-button-disabled { opacity: 0.3; pointer-events: none; }

.swiper-pagination-custom { flex: 1; display: flex; gap: 6px; align-items: center; }
.swiper-pagination-custom .swiper-pagination-bullet {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--border2);
  transition: width var(--transition), background var(--transition);
  opacity: 1;
}
.swiper-pagination-custom .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--accent);
}

/* ===========================
   CASES
   =========================== */
.cases { background: var(--bg); }

.cases__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.cases__number {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.cases__number-label { font-size: 16px; color: var(--gray); margin-top: 8px; }

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  cursor: pointer;
  width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(15,21,35,0.10); }
.case-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.case-card__img {
  height: 300px;
  overflow: hidden;
}
.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.case-card:hover .case-card__img img { transform: scale(1.05); }
.case-card__body {
  padding: 16px 18px 18px;
}
.case-card__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.case-card__meta { font-size: 13px; color: var(--gray); display: flex; gap: 16px; flex-wrap: wrap; }
.case-card__meta span::before { content: ''; }

/* ===========================
   ABOUT
   =========================== */
.about {
  background: var(--bg2) url('../pic/about_bg.jpg') center/cover no-repeat;
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 26, 0.85);
}
.about .container { position: relative; z-index: 1; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background var(--transition), border-color var(--transition);
}
.about-card:hover { background: rgba(255,255,255,0.07); border-color: var(--border2); }
.about-card__icon { width: 48px; height: 48px; margin-bottom: 18px; }
.about-card__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.about-card__text { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* ===========================
   REVIEWS
   =========================== */
.reviews { background: var(--bg); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition);
}
.review-card:hover { border-color: var(--border2); transform: translateY(-2px); }

.review-card__platform { display: flex; align-items: center; gap: 10px; }
.review-card__platform img { height: 28px; width: auto; }
.review-card__stars { color: #FFC107; font-size: 15px; letter-spacing: 2px; }
.review-card__text { font-size: 14px; color: var(--gray); line-height: 1.7; flex: 1; }
.review-card__author { font-size: 14px; font-weight: 600; color: var(--white); }

/* ===========================
   CTA FORM SECTION
   =========================== */
.cta-form {
  position: relative;
  background: var(--bg2) url('../pic/form_bg.jpg') center/cover no-repeat;
  padding: 80px 0;
  overflow: hidden;
}
.cta-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9,14,26,0.96) 50%, rgba(9,14,26,0.8) 100%);
}
.cta-form .container { position: relative; z-index: 1; }

.cta-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-form__left {}
.cta-form__title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.cta-form__title span { color: var(--accent); }
.cta-form__sub { font-size: 15px; color: var(--gray); margin-bottom: 32px; line-height: 1.7; }

.cta-form__benefits { display: flex; flex-direction: column; gap: 12px; }
.cta-form__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray);
}
.cta-form__benefit::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.cta-form__right {}

/* Embedded form container */
.amo-embed {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 200px;
}

/* Custom form (popup B and CTA fallback) */
.custom-form { display: flex; flex-direction: column; gap: 14px; }
.custom-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-field {}
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--gray); margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid var(--border);
  color: var(--white);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray2); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input.error,
.form-field textarea.error { border-color: #EF4444; }
.field-error { font-size: 12px; color: #EF4444; margin-top: 4px; }

/* File upload */
.file-upload {
  border: 2px dashed var(--border2);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.file-upload:hover,
.file-upload.drag-over { border-color: var(--accent); background: rgba(249,115,22,0.05); }
.file-upload input[type="file"] {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  pointer-events: none; /* клики обрабатываются через JS на .file-upload */
  width: 0; height: 0;
}
.file-upload__list { position: relative; z-index: 2; }
.file-upload__icon { width: 32px; height: 32px; margin: 0 auto 10px; }
.file-upload__text { font-size: 14px; color: var(--gray); }
.file-upload__text span { color: var(--accent); font-weight: 600; }
.file-upload__hint { font-size: 12px; color: var(--gray2); margin-top: 4px; }
.file-upload__list { text-align: left; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.file-upload__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  background: rgba(255,255,255,0.04);
  padding: 6px 10px;
  border-radius: 6px;
}
.file-upload__item-remove {
  margin-left: auto;
  color: var(--gray2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color var(--transition);
}
.file-upload__item-remove:hover { color: #EF4444; }

/* Checkbox */
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 2px solid var(--border2);
  border-radius: 4px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.form-check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 9px;
}
.form-check input[type="checkbox"].error { border-color: #EF4444; }
.form-check.has-error .form-check__label { color: #EF4444; }
.form-check__label { font-size: 13px; color: var(--gray); line-height: 1.5; }
.form-check__label a { color: var(--accent); text-decoration: underline; }

/* Form submit */
.form-submit { width: 100%; padding: 15px; font-size: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.form-success__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.form-success__text { font-size: 15px; color: var(--gray); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #080C14;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.footer__logo img { height: 38px; width: auto; }
.footer__phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.footer__phone:hover { color: var(--accent); }

.footer__body {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
}

.footer__col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray2); margin-bottom: 18px; }

.footer-nav, .footer-services { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-services a {
  font-size: 14px;
  color: var(--gray);
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-services a:hover { color: var(--white); }

.footer-services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }

.footer-contacts { display: flex; flex-direction: column; gap: 14px; }
.footer-contacts__item { display: flex; flex-direction: column; gap: 3px; }
.footer-contacts__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray2); }
.footer-contacts__value { font-size: 14px; color: var(--gray); }
.footer-contacts__value a { color: var(--gray); transition: color var(--transition); }
.footer-contacts__value a:hover { color: var(--white); }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--gray);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--border2); }
.footer-social img { width: 20px; height: 20px; }

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 13px; color: var(--gray2); }
.footer__policy { font-size: 13px; color: var(--gray2); text-decoration: underline; transition: color var(--transition); }
.footer__policy:hover { color: var(--gray); }

/* ===========================
   POPUP SHARED
   =========================== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.popup.active { display: flex; }
.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.82);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

/* ===========================
   POPUP A — SERVICE DETAIL
   =========================== */
.popup-service__modal {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.popup-service__scroll {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
}
.popup-service__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.popup-service__close:hover { background: rgba(0,0,0,0.12); }

/* Layout: image left, content right */
.popup-service__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 420px;
}
.popup-service__left {
  flex-shrink: 0;
}
.popup-service__img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  display: block;
}
.popup-service__right {
  padding: 36px 36px 28px;
  color: #111;
  display: flex;
  flex-direction: column;
}
.popup-service__title { font-size: 20px; font-weight: 800; margin-bottom: 14px; color: #0F1523; line-height: 1.3; }
.popup-service__desc { font-size: 14px; line-height: 1.75; color: #555; margin-bottom: 20px; }
.popup-service__list-title { font-size: 13px; font-weight: 700; color: #0F1523; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.popup-service__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}
.popup-service__list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.popup-service__list li::before {
  content: '';
  width: 6px; height: 6px;
  background: #F97316;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* Bottom: meta + CTA */
.popup-service__bottom {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.popup-service__meta {
  display: flex;
  gap: 32px;
  flex: 1;
}
.popup-service__meta-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.popup-service__meta-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.popup-service__meta-value {
  font-size: 16px;
  font-weight: 800;
  color: #0F1523;
  white-space: nowrap;
}
.popup-service__cta {
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.popup-service__cta:hover { background: var(--accent2); }

/* ===========================
   POPUP — CASE DETAIL
   =========================== */
.popup-case__modal {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.popup-case__scroll {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
}
.popup-case__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.popup-case__close:hover { background: rgba(0,0,0,0.12); }
.popup-case__img {
  width: 100%;
  height: min(58vh, 520px);
  min-height: 320px;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.popup-case__body {
  padding: 28px 32px 32px;
  color: #0f1523;
}
.popup-case__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  color: #0f1523;
}
.popup-case__meta {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) 1fr;
  gap: 18px;
}
.popup-case__meta-block {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 14px 16px;
}
.popup-case__meta-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.popup-case__meta-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f1523;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .popup-service__layout { grid-template-columns: 1fr; }
  .popup-service__img { height: 180px; min-height: unset; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .popup-service__right { padding: 16px; }
  .popup-service__bottom { flex-direction: column; align-items: stretch; }
  .popup-service__cta { width: 100%; text-align: center; }
  /* popup –10% on mobile */
  .popup-service__modal { max-width: 94vw; }
  .popup-service__scroll { max-height: 88vh; }
  .popup-service__title { font-size: 17px; }
  .popup-service__desc { font-size: 13px; }
  .popup-service__list li { font-size: 13px; }
  .popup-service__meta-value { font-size: 14px; }
  .popup-service__cta { font-size: 14px; padding: 11px 20px; }
  .popup-case__modal { max-width: 94vw; }
  .popup-case__scroll { max-height: 88vh; }
  .popup-case__img { height: 220px; min-height: unset; }
  .popup-case__body { padding: 18px 16px 20px; }
  .popup-case__title { font-size: 17px; }
  .popup-case__meta { grid-template-columns: 1fr; gap: 10px; }
  .popup-case__meta-block { padding: 12px 14px; }
  .popup-case__meta-value { font-size: 13px; }
}

/* ===========================
   POPUP B — FORM
   =========================== */
.popup-form__modal {
  position: relative;
  z-index: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.popup-form__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  font-size: 20px;
  color: var(--gray);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 20;
}
.popup-form__close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.popup-form__title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.popup-form__sub { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.popup-form__messengers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.popup-form__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.popup-form__messenger:hover {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.35);
  color: var(--accent);
}
.popup-form__messenger img {
  display: block;
  flex-shrink: 0;
}

/* ===========================
   FIXED BUTTON
   =========================== */
.fixed-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.fixed-btn.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.fixed-btn button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(249,115,22,0.45);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.fixed-btn button:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(249,115,22,0.5); }
.fixed-btn button svg { width: 18px; height: 18px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__body { grid-template-columns: 1fr 1fr; }
  .footer__body > :nth-child(2) { grid-column: span 2; }
  .cta-form__inner { gap: 40px; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__content { max-width: 100%; }
  .hero__badges { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .cta-form__inner { grid-template-columns: 1fr; }
  .cta-form__left { max-width: 540px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .header__nav, .header__right .btn-primary { display: none; }
  .burger { display: flex; }
  .header__right .header__phone { font-size: 14px; }
  .hero__badges { grid-template-columns: 1fr; max-width: 340px; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn-primary, .hero__btns .btn-outline { width: fit-content; }
  .cases__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__body { grid-template-columns: 1fr; }
  .footer__body > :nth-child(2) { grid-column: span 1; }
  .footer-services__grid { grid-template-columns: 1fr; }
  .popup-form__modal { padding: 28px 20px 24px; }
  .custom-form__row { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fixed-btn { bottom: 20px; right: 20px; }
  .footer { padding: 36px 0 20px; }
  .footer__top { margin-bottom: 24px; }
  .footer__body { gap: 24px; }
  .footer__bottom { margin-top: 24px; padding-top: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__label { font-size: 11px; }
  .hero__title { font-size: 23px; }
  .popup-service__modal { border-radius: var(--radius); }
  .popup-service__body { padding: 20px; }
  .popup {
    top: var(--app-vv-top, 0);
    bottom: auto;
    min-height: var(--app-vh, 100dvh);
    height: var(--app-vh, 100dvh);
    padding: 16px;
    align-items: center !important;
    justify-content: center !important;
  }
  .popup-form__modal {
    max-height: calc(var(--app-vh, 100dvh) - 32px);
    border-radius: var(--radius-lg);
    margin: 0;
  }
  .popup-case__modal {
    max-height: calc(var(--app-vh, 100dvh) - 32px);
    margin: 0;
  }
  .popup-case__scroll {
    max-height: calc(var(--app-vh, 100dvh) - 32px);
  }
}

/* ===========================
   AMOCRM FORM OVERRIDE
   =========================== */
/* Белый фон формы AmoCRM вписывается в тёмный .amo-embed */
.amo-embed iframe { border-radius: 8px; }

/* ===========================
   SCROLL REVEAL INITIAL STATE
   =========================== */
.service-card,
.case-card,
.about-card,
.review-card {
  will-change: opacity, transform;
}

/* ===========================
   FORM FIELD — убираем border outline у input в popup B
   =========================== */
.popup-form__modal .form-field input,
.popup-form__modal .form-field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.popup-form__modal .form-field input:focus,
.popup-form__modal .form-field textarea:focus {
  background: rgba(255,255,255,0.08);
}
/* Ошибки в попапе — специфичность выше */
.popup-form__modal .form-field input.error,
.popup-form__modal .form-field textarea.error {
  border-color: #EF4444 !important;
}
/* Checkbox в попапе — не перебиваем общий input-стиль */
.popup-form__modal .form-field input[type="checkbox"] {
  background: transparent !important;
  border-color: rgba(255,255,255,0.35) !important;
}
.popup-form__modal .form-field input[type="checkbox"]:checked {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 9px !important;
}

/* ===========================
   HERO — padding top на мобиле меньше
   =========================== */
@media (max-width: 768px) {
  .hero .container { padding-top: 88px; padding-bottom: 48px; }
  .hero__visual { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
}

/* ===========================
   CASES — min-height для карточек
   =========================== */
.case-card__img { min-height: 220px; }

/* ===========================
   SWIPER — скрываем disabled кнопки корректно
   =========================== */
.swiper-btn.swiper-button-disabled { opacity: 0.25; pointer-events: none; cursor: default; }

/* ===========================
   FOOTER — mobile social column
   =========================== */
@media (max-width: 480px) {
  .footer-social { flex-direction: column; }
  .footer-social a { justify-content: center; }
}

/* ===========================
   SECTION BACKGROUNDS (NEW ТЗ)
   =========================== */
.services { background: #ffffff !important; }
.cases    { background: #ffffff !important; }
.reviews  { background: #ffffff !important; }
/* about: dark bg from base CSS (about_bg.jpg + overlay) */
/* cta-form: form_bg.jpg from base CSS */

/* Spacing — reduce gaps between sections by 2× */
.services { padding-bottom: 40px; }
.cases    { padding-top: 40px; padding-bottom: 40px; }
.about    { padding-top: 40px; padding-bottom: 40px; }
.reviews  { padding-top: 40px; }

/* White-section text colors */
.services .section-title,
.cases .section-title,
.reviews .section-title { color: #0f1523; }

.about .section-title    { color: #ffffff; }
.about .section-subtitle { color: rgba(255,255,255,0.7); }

.services .section-subtitle,
.cases .section-subtitle,
.reviews .section-subtitle { color: #64748b; }

/* Cases: font-size –15% */
.cases .section-title { font-size: clamp(22px, 2.975vw, 36px); }

.cases .cases__number { color: var(--accent); }
.cases .cases__number-label { color: #64748b; }

/* Service cards on white bg */
.services .service-card {
  background: #f8fafc;
  border-color: rgba(0,0,0,0.08);
  color: #0f1523;
}
.services .service-card:hover { border-color: rgba(249,115,22,0.3); }
.services .service-card__title { color: #0f1523; }
.services .service-card__desc  { color: #64748b; }

/* Case cards on white bg */
.cases .case-card { background: #f8fafc; }
.cases .case-card__title { color: #0f1523; }
.cases .case-card__meta  { color: #64748b; }

/* About section — dark bg, overlay shown */

/* Review cards on white bg */
.reviews .review-card {
  background: #f8fafc;
  border-color: rgba(0,0,0,0.07);
  color: #0f1523;
}
.reviews .review-card:hover { border-color: rgba(249,115,22,0.25); }
.reviews .review-card__text   { color: #4b5563; }
.reviews .review-card__author { color: #0f1523; }
.reviews .review-card__date   { color: #94a3b8; }

/* Swiper nav on white bg */
.services .swiper-btn,
.cases .swiper-btn,
.reviews .swiper-btn {
  border-color: rgba(0,0,0,0.15);
}
.services .swiper-btn:hover,
.cases .swiper-btn:hover,
.reviews .swiper-btn:hover {
  border-color: var(--accent);
  background: rgba(249,115,22,0.08);
}
/* cases & reviews use dark strelka.svg on white bg — no filter needed */
.reviews .swiper-btn { opacity: 1; }

.services .swiper-pagination-custom .swiper-pagination-bullet,
.cases .swiper-pagination-custom .swiper-pagination-bullet,
.reviews .swiper-pagination-custom .swiper-pagination-bullet { background: rgba(0,0,0,0.15); }

/* CTA form — form_bg.jpg shown via base CSS overlay */
.cta-form .cta-form__title { color: #ffffff; }
.cta-form .cta-form__sub   { color: #94a3b8; }

/* ===========================
   HEADER SOCIAL ICONS
   =========================== */
.header__social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--gray);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.header__social-link:hover {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.3);
  color: var(--accent);
}
@media (max-width: 768px) {
  .header__social { display: none; }
}

/* ===========================
   HERO — NEW CONTENT CLASSES
   =========================== */
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.hero__pill {
  display: inline-block;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 20px;
}

.hero__form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero__tel-input {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  padding: 13px 16px;
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition);
}
.hero__tel-input:focus { border-color: var(--accent); }
.hero__tel-input::placeholder { color: rgba(255,255,255,0.35); }

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.btn-orange:hover { background: var(--accent2); transform: translateY(-1px); }

.hero__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.hero__icon-btn--tg:hover  { background: rgba(39,161,231,0.15); border-color: rgba(39,161,231,0.4); color: #29a8eb; }
.hero__icon-btn--wa:hover  { background: rgba(37,211,102,0.15); border-color: rgba(37,211,102,0.4); color: #25d366; }

/* ===========================
   HERO — ICON BLOCKS
   =========================== */
.hero__icon-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.hero__icon-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hero__icon-block-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 2px;
}
.hero__icon-block-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 18px;
  line-height: 1.5;
}
.hero__icon-block-text strong {
  color: var(--white);
  font-weight: 700;
}
.hero__icon-block-text span {
  color: var(--gray);
}

/* img inside hero icon buttons */
.hero__icon-btn img { display: block; }
/* img inside header social links */
.header__social-link img { display: block; }

.hero__consent {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  line-height: 1.5;
}
.hero__consent a { color: rgba(255,255,255,0.55); text-decoration: underline; transition: color var(--transition); }
.hero__consent a:hover { color: var(--accent); }

.hero__features {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__feature {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero__feature strong {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero__feature span {
  font-size: 13px;
  color: var(--gray);
}

@media (max-width: 768px) {
  .hero__form-row { flex-direction: column; align-items: stretch; }
  .hero__tel-input { min-width: unset; }
  .hero__icon-btn  { width: 100%; }
  .hero__features  { gap: 20px; }
}

/* ===========================
   SERVICES — NEW CARD CLASSES
   =========================== */
.service-card__for {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 8px;
}
.service-card__for strong { color: #0f1523; }

.service-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.service-card__meta-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service-card__meta-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.service-card__meta-value {
  font-size: 15px;
  font-weight: 800;
  color: #0f1523;
}

/* Equal-height row alignment across cards — values from measured render */
.service-card__title { min-height: 69px; }
.service-card__body > p.service-card__for:nth-of-type(1) { min-height: 62px; }
.service-card__body > p.service-card__for:nth-of-type(2) { min-height: 104px; }

/* ===========================
   SERVICES — mobile card –10%
   =========================== */
@media (max-width: 599px) {
  .services .service-card__img { height: 198px; }
  .services .service-card__body { padding: 16px; }
  .services .service-card__title { font-size: 15px; min-height: unset; }
  .services .service-card__for { font-size: 12px; min-height: unset; }
  .services .service-card__body > p.service-card__for:nth-of-type(1) { min-height: unset; }
  .services .service-card__body > p.service-card__for:nth-of-type(2) { min-height: unset; }
  .services .service-card__meta-value { font-size: 14px; }
  .services .service-card__btn { font-size: 13px; padding: 10px 18px; }
}

/* ===========================
   CASES — NEW CARD CLASSES
   =========================== */
.case-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.case-card__detail {
  font-size: 13px;
  color: #64748b;
  line-height: 1.42;
  margin-bottom: 3px;
}
.case-card__detail strong { color: #0f1523; }

/* ===========================
   ABOUT — NEW LAYOUT
   =========================== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about__photo {
  position: sticky;
  top: 90px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 8px 32px rgba(249,115,22,0.1));
}

@media (max-width: 1024px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__photo { display: none; }
  .about__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .about__cards { grid-template-columns: 1fr; }
}

/* ===========================
   REVIEWS — NEW CARD STRUCTURE
   =========================== */
.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.review-card__author-info { display: flex; flex-direction: column; gap: 2px; }
.review-card__date { font-size: 12px; color: #94a3b8; }

/* Reviews swiper — 3 visible on desktop, 2 on tablet, 1 on mobile */
.reviews-swiper { padding-bottom: 8px; }

/* ===========================
   CTA FORM — DARK OVERRIDES
   =========================== */
.cta-form .cta-form__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-form .cta-form__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #cbd5e1;
}
.cta-form .cta-form__benefit::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 22px;
  text-align: center;
}

/* ===========================
   ABOUT — REDESIGN (ekran4)
   =========================== */
.about__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.about-card-h {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background 0.25s, border-color 0.25s;
}
.about-card-h:hover { background: rgba(255,255,255,0.12); border-color: rgba(249,115,22,0.35); }
.about-card-h__icon { width: 44px; height: 44px; flex-shrink: 0; margin-top: 2px; filter: brightness(0) invert(1); opacity: 0.85; }
.about-card-h__title { font-size: 15px; font-weight: 700; color: #ffffff; margin-bottom: 8px; line-height: 1.35; }
.about-card-h__text { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.65; }

@media (max-width: 768px) { .about__grid2 { grid-template-columns: 1fr; } }

/* ===========================
   HERO FORM — inline success
   =========================== */
.hero__form-success {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.hero__form-success img { width: 24px; height: 24px; flex-shrink: 0; }

/* ===========================
   POPUP — success icon img
   =========================== */
.form-success__icon img { width: 52px; height: 52px; }

/* ===========================
   CASES — CARD EQUAL HEIGHTS
   =========================== */
#cases-swiper .swiper-slide { height: auto; display: flex; }
#cases-swiper .swiper-wrapper { align-items: stretch; }
#cases-swiper {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
#cases-swiper:active { cursor: grabbing; }
.case-card { height: 100%; display: flex; flex-direction: column; }
.case-card__body { flex: 1; display: flex; flex-direction: column; min-height: 214px; }
.case-card__title { flex: 1; line-height: 1.24; }
.case-card__body > div.case-card__detail:nth-of-type(1) { min-height: 52px; }
.case-card__body > div.case-card__detail:nth-of-type(2) { min-height: 64px; margin-top: auto; padding-top: 4px; }

/* ===========================
   REVIEWS — EQUAL HEIGHTS + ARROWS
   =========================== */
.reviews .swiper-slide { height: auto; display: flex; }
.review-card { height: 100%; }

/* ===========================
   POPUP SERVICE — fix photo white gaps on mobile
   =========================== */
.popup-service__scroll {
  overflow-x: hidden; /* clip image corners to border-radius */
}
@media (max-width: 640px) {
  .popup-service__left {
    width: 100%;
    overflow: hidden;
    line-height: 0; /* remove inline gap below img */
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .popup-service__img {
    border-radius: 0; /* parent handles corners */
  }
  .popup-service__layout {
    gap: 0; /* no gap between photo and content */
  }
}

/* ===========================
   CASES — mobile card –10%
   =========================== */
@media (max-width: 599px) {
  .cases .case-card__img { height: 180px; min-height: unset; }
  .cases .case-card__body { padding: 13px 14px 14px; min-height: unset; }
  .cases .case-card__title { font-size: 14px; }
  .cases .case-card__category { font-size: 10px; }
  .cases .case-card__detail { font-size: 12px; line-height: 1.45; margin-bottom: 4px; }
  .cases .case-card__body > div.case-card__detail:nth-of-type(1) { min-height: unset; }
  .cases .case-card__body > div.case-card__detail:nth-of-type(2) { min-height: unset; padding-top: 4px; }
}

/* ===========================
   FORM SUCCESS — mobile
   =========================== */
@media (max-width: 599px) {
  .form-success { padding: 20px 16px; }
  .form-success__title { font-size: 17px; }
  .form-success__text { font-size: 13px; }
  .form-success__icon img { width: 44px; height: 44px; }
}
