:root{
  --brand-blue: #1f5eff;
  --text: #1b1f2a;
  --muted: #6b7280;
  --hero-bg: #dbe9ff;
  --pill-bg: #f3f4f6;
  --stroke: rgba(16, 24, 40, .08);
  --radius-xl: 44px;
}
.bg-blue{
    background:#2C3E50;
}
body.site-wrapper {
  padding-top: 86px; 
}
body.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.vzor-quote {
  position: relative;
  margin: 32px 0;
  padding: 28px 28px 22px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid #e3e8ef;
  border-left: 5px solid #ff7a00;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  overflow: hidden;
}

.vzor-quote::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 84px;
  line-height: 1;
  color: rgba(255, 122, 0, 0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

.vzor-quote p {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
}

.vzor-quote footer {
  margin-top: 16px;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

@media (max-width: 768px) {
  .vzor-quote {
    margin: 24px 0;
    padding: 22px 18px 18px 20px;
    border-radius: 12px;
  }

  .vzor-quote::before {
    top: 8px;
    right: 12px;
    font-size: 60px;
  }

  .vzor-quote p {
    font-size: 16px;
    line-height: 1.65;
  }

  .vzor-quote footer {
    font-size: 13px;
  }
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}
/* Делаем всю карточку кликабельной без синей рамки */
.port-card {
  display: flex;
  color: #fff;
  cursor: pointer;
}

/* Обертка для кнопки */
.port-card__action {
  margin-top: 20px;
  overflow: hidden; /* Скрываем кнопку, когда она опущена вниз */
  height: 0;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(20px);
}

.port-card__btn {
  background: var(--brand-blue);
  color: #fff;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  display: inline-flex;
  align-items: center;
  pointer-events: none; /* Чтобы клик обрабатывался карточкой <a> */
}

/* При наведении на карточку показываем кнопку */
.port-card:hover .port-card__action {
  height: 40px; /* Высота кнопки + отступы */
  opacity: 1;
  transform: translateY(0);
}

.port-card:hover .port-card__btn i {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}


*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  font-family: "Google Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}


/* ===== Smart Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  /* Начальное состояние - без тени */
  box-shadow: none;
}

/* Класс, когда шапка прилипла при скролле вверх */
.site-header.is-pinned {
  box-shadow: 0 4px 24px rgba(16, 24, 40, 0.06);
}

/* Класс, когда мы скроллим вниз (шапка уезжает вверх) */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Отступ для main, чтобы контент не залезал под фиксированную шапку */
body {
  padding-top: 86px; 
}

/* Иконка мессенджера (квадратная, скругленная) */
.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f3f4f6; /* Или градиент, как на макете */
  color: var(--brand-blue);
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.header-icon-btn:hover {
  transform: translateY(-2px);
  background: #e9eefb;
}

/* Иконка телефона */
.header-phone-icon {
  font-size: 20px;
  color: #6b7280;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: #374151;
  max-width: 480px;
}

/* На больших экранах прячем кнопку меню позже (d-xl-none) */
@media (max-width: 1199.98px) {
  .hero-title { font-size: clamp(28px, 3.2vw, 42px); }
}

/* Header */
.brand__mark{
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 26px;
  color: var(--brand-blue);
  user-select: none;
}
.brand__o{
  display: inline-block;
  transform: translateY(1px);
}

.nav-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: #111827;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}
.nav-pill:hover{
  transform: translateY(-1px);
  border-color: var(--stroke);
}
.nav-pill.is-active{
  background: #e9eefb;
  border-color: rgba(31,94,255,.18);
  color: #0b1c4d;
}

.header-phone{
  font-weight: 600;
  color: #111827;
}
.header-link{
  color: var(--muted);
  text-decoration: none;
}
.header-link:hover{ text-decoration: underline; }

/* Hero cards */
.hero-card{
  height: 100%;
  background: var(--hero-bg);
  border-radius: var(--radius-xl);
  padding: 46px 44px 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31,94,255,.08);
}

.hero-title{
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-btn{
  background: #fff;
  border: 1px solid rgba(16,24,40,.10);
  box-shadow: 0 10px 24px rgba(16,24,40,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16,24,40,.10);
}
.hero-btn:active{ transform: translateY(0); }

.hero-note{
  color: #111827;
  font-weight: 500;
}
.hero-note__star{
  color: var(--muted);
  margin-right: 6px;
}

.hero-rating{
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-rating__score{
  font-size: 44px;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
}
.hero-rating__stars{
  color: #f5b301;
  letter-spacing: 2px;
}
.hero-rating__caption{
  margin-top: 2px;
  color: #374151;
  font-size: 14px;
}

.hero-mouse{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  opacity: .8;
}
.mouse{
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(17,24,39,.35);
  position: relative;
}
.mouse::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 6px;
  border-radius: 99px;
  background: rgba(17,24,39,.35);
  transform: translateX(-50%);
  animation: wheel 1.35s ease-in-out infinite;
}
@keyframes wheel{
  0%{ transform: translate(-50%, 0); opacity: .9; }
  60%{ transform: translate(-50%, 8px); opacity: .2; }
  100%{ transform: translate(-50%, 0); opacity: .9; }
}

/* Right photo */
.hero-photo{
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(16,24,40,.08);
  background: #f3f4f6;
}

.hero-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Видео заполнит контейнер без искажений */
  display: block;
  transform: scale(1.02);
}

.hero-photo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
}


.hero-badge{
  position: absolute;
  left: 26px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16,24,40,.10);
  box-shadow: 0 14px 32px rgba(16,24,40,.18);
  max-width: 320px;
}
.hero-badge__avatar{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, #c7d2fe, #93c5fd),
    linear-gradient(135deg, rgba(31,94,255,.25), rgba(255,138,0,.18));
  border: 1px solid rgba(16,24,40,.10);
}
.hero-badge__title{ font-weight: 600; line-height: 1.1; }
.hero-badge__sub{ color: #374151; line-height: 1.1; margin-top: 2px; }
.u-underline{ text-decoration: underline; text-underline-offset: 3px; }


/* ===== Services Hub Section ===== */
.services-hub {
  background: #ffffff;
}

/* Base Card Style */
.hub-card {
  display: flex;
  flex-direction: column;
  background: #dbe9ff; /* Тот же цвет, что в макете */
  border-radius: var(--radius-xl); /* Используем 44px из :root */
  padding: 36px 36px 32px 36px;
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s ease;
  position: relative;
  /* Для кликабельности всей карточки скрываем outline при фокусе,
     но добавляем стилизацию для доступности */
  outline: none;
}

.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .08);
}
.hub-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(31,94,255,.2);
}

/* Icon */
.hub-card__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hub-card__icon img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
.hub-card__title {
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 600;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hub-card__desc {
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Fake Button inside Link */
.hub-card__btn-wrapper {
  margin-top: auto;
}

.hub-card__btn {
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  /* Тени и транзишены для ховера */
  box-shadow: 0 4px 12px rgba(16, 24, 40, .04);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
  display: inline-flex;
  align-items: center;
  pointer-events: none; /* Клик ловит сама карточка, а не кнопка */
}

/* Эффект кнопки при наведении на всю карточку */
.hub-card:hover .hub-card__btn,
.hub-card:focus-visible .hub-card__btn {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .15);
}

/* Изменяем цвет стрелочки внутри кнопки */
.hub-card__btn i {
  transition: transform .25s ease;
}
.hub-card:hover .hub-card__btn i {
  transform: translateX(4px);
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .hub-card {
    padding: 30px 24px 28px;
    border-radius: 32px;
  }
}


.floaty{
  animation: floaty 4.6s ease-in-out infinite;
}
@keyframes floaty{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Reveal animation on scroll (без библиотек) */
.reveal-on-scroll{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.is-inview{
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1{ transition-delay: .12s; }

/* Responsive tweaks */
@media (max-width: 991.98px){
  .hero-card{ padding: 34px 26px 24px; }
  .hero-badge{ left: 16px; bottom: 16px; }
}
/* Spacing helper */
.py-lg-6 { padding-top: 4.25rem; padding-bottom: 4.25rem; }

.pain-section {
  background: #2C3E50;
  overflow: hidden;
}

.pain-visual {
  position: relative;
  width: 340px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-visual__glow {
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,220,255,0.55) 0%, rgba(200,220,255,0) 70%);
  filter: blur(18px);
  z-index: 0;
  animation: glow-pulse 3.4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.08); }
}

.pain-visual__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
}

.pain-visual.is-inview .pain-visual__img {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
  transition-delay: 0.1s;
}

.pain-visual.is-inview .pain-visual__img {
  animation: cam-idle 5s ease-in-out 1s infinite;
}
@keyframes cam-idle {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  30%       { transform: rotate(-1.2deg) translateY(-3px); }
  70%       { transform: rotate(0.8deg) translateY(2px); }
}

.pain-content {
  max-width: 560px;
}

.section-title {
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2c3e50;
}

.pain-text {
  font-size: 18px;
  line-height: 1.72;
  color: #fff;
}
.pain-text p { margin-bottom: 20px; }

.pain-text__last {
  color: #fff;
  font-style: italic;
}

/* ===== Pricing Section ===== */
.pricing-section {
  background: #fff;
}

.pricing-desc {
  font-size: 17px;
  line-height: 1.65;
  color: #374151;
  max-width: 520px;
  padding-top: 6px;
}
.pricing-desc strong {
  font-weight: 700;
  color: #111827;
}

/* Card base */
.price-card {
  border-radius: 28px;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
  cursor: default;
}
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(16, 24, 40, .10);
}

.price-card--blue {
  background: #dbe9ff;
}

.price-card--featured {
  background: #2850BB;
  color:#fff;
}


.price-card__label {
  font-size: 14px;
  font-weight: 400;
  color: #374151;
  margin-bottom: 8px;
  letter-spacing: 0;
}
.price-card--featured .price-card__label {
  color: #fff;
}

/* Big title */
.price-card__title {
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 600;
  line-height: 1;
  color: #111827;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.price-card--featured .price-card__title{
    color:#fff;
}
/* Price */
.price-card__price {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
}
.price-card--featured .price-card__price{
    color:#fff;
}
/* Includes label */
.price-card__includes {
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 10px;
}

/* Feature list */
.price-card__list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  flex-grow: 1;
}
.price-card--featured .price-card__includes {
    color:#fff;
}
.price-card__list li {
  font-size: 15px;
  color: #374151;
  line-height: 1.55;
  margin-bottom: 5px;
}
.price-card--featured .price-card__list li{
    color:#fff;
}
/* Buttons */
.price-card__btn {
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .18s ease, box-shadow .18s ease;
  display: inline-flex;
  align-items: center;
}
.price-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 24, 40, .12);
}

/* Outline button (синие карточки) */
.price-card__btn--outline {
  background: #fff;
  color: #111827;
  border: 1px solid rgba(16, 24, 40, .12);
  transition: all .25s cubic-bezier(0.22, 1, 0.36, 1);
}

.price-card__btn--outline:hover {
  background: #111827;     /* Становится тёмной */
  color: #ffffff;          /* Текст становится белым */
  border-color: #111827;   /* Рамка сливается с фоном */
  transform: translateY(-2px); /* Чуть больше поднимается */
  box-shadow: 0 8px 20px rgba(17, 24, 39, .15); /* Добавляем тень от кнопки */
}

/* Изменяем цвет стрелочки при наведении */
.price-card__btn--outline:hover i {
  color: #ffffff;
}


/* Dark button (featured жёлтая карточка) */
.price-card__btn--dark {
  background: #111827;
  color: #fff;
  border: none;
}
.price-card__btn--dark:hover {
  background: #1f2937;
  color: #fff;
}

.reveal-delay-2 { transition-delay: .24s; }

.warranty-section {
  background: #2C3E50;
}

.w-card {
  border-radius: 28px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
.w-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .09);
}

/* Founder card */
.w-card--founder {
  background: #ebe8e3;
  position: relative;
  overflow: hidden;
  flex-direction: row;
  align-items: flex-end;
  gap: 0;
  padding: 38px 0 0 38px;
  min-height: 340px;
}

.w-founder__content {
  flex: 1 1 0;
  min-width: 0;
  padding-bottom: 38px;
  padding-right: 24px;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Badge */
.w-founder__badge {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(16,24,40,.1);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 20px;
  width: fit-content;
}

.w-founder__title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.w-founder__text {
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 24px;
}

.w-founder__author {
  margin-top: auto;
}
.w-founder__name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.w-founder__role {
  font-size: 14px;
  color: #6b7280;
  margin-top: 2px;
}

/* Founder photo */
.w-founder__photo {
  flex: 0 0 auto;
  width: 42%;
  align-self: flex-end;
  position: relative;
  z-index: 1;
}
.w-founder__photo img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0 0 28px 0;

}
.w-card--founder.is-inview .w-founder__photo img {
  clip-path: inset(0% 0 0 0);
  opacity: 1;
}

/* Step cards */
.w-card--step {
  background: #ffffff;
  min-height: 220px;
}

.w-step__number {
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: #1b2b4b;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  /* Счётчик анимируется через JS */
  transition: color .3s ease;
}

.w-step__title {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
  flex-grow: 1;
}

.w-step__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  padding-top: 12px;
  border-top: 1px solid rgba(16,24,40,.07);
}

/* Mobile */
@media (max-width: 991.98px) {
  .w-card--founder {
    flex-direction: column;
    padding: 28px 24px 0;
    min-height: auto;
  }
  .w-founder__photo {
    width: 70%;
    margin: 20px auto 0;
  }
  .w-founder__photo img {
    height: 280px;
    border-radius: 0;
  }
  .w-founder__content {
    padding-right: 0;
    padding-bottom: 4px;
  }
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  background: #ffffff;
}

.port-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* Задаем пропорции как в макете */
  display: flex;
  align-items: flex-end; /* Текст прижимается к низу */
  /* Анимация при наведении */
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s ease;
  background: #e5e7eb;
}

.port-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
}

.port-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

/* При наведении картинка плавно увеличивается (эффект зума) */
.port-card:hover .port-card__img {
  transform: scale(1.05);
}

/* Тёмный градиент для читаемости текста */
.port-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}

/* Контейнер для текста */
.port-card__content {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: 100%;
  color: #ffffff;
}

.port-card__title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.2;
}

.port-card__price {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.port-card__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Для мобильных устройств делаем карточки чуть квадратнее */
@media (max-width: 767.98px) {
  .port-card {
    aspect-ratio: 1 / 1;
  }
}


/* ===== Calculator Section ===== */
.calc-section {
  background: #f5f6f8;
}

.calc-card {
  background: #22261e;
  border-radius: 32px;
  padding: 44px 44px 44px 44px;
  position: relative;
  overflow: hidden;
}

/* Deco camera SVG top-right */
.calc-deco {
  position: absolute;
  top: 16px;
  right: 28px;
  width: 140px;
  opacity: .55;
  pointer-events: none;
  animation: cam-idle 6s ease-in-out infinite;
}
.calc-deco svg { width: 100%; height: auto; display: block; }

.calc-inner {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.calc-left { flex: 1 1 460px; }

.calc-title {
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calc-field { display: flex; flex-direction: column; gap: 8px; }

.calc-label {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
  letter-spacing: 0;
}

.calc-select-wrap {
  position: relative;
}

.calc-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 42px 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  font-family: "Google Sans", sans-serif;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.calc-select:focus {
  border-color: #b5c84a;
  box-shadow: 0 0 0 3px rgba(181,200,74,.18);
}

.calc-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #6b7280;
  pointer-events: none;
  line-height: 1;
}

/* Result card */
.calc-result {
  flex: 0 0 240px;
  background: #d6f750;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.calc-result__label {
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
}

.calc-result__price {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.15;
  transition: transform .2s ease, opacity .2s ease;
}

/* Анимация смены цены */
.calc-result__price.is-updating {
  transform: scale(0.94);
  opacity: 0;
}

.calc-result__sub {
  font-size: 13px;
  color: #374151;
  margin-top: 4px;
}

.calc-result__btn {
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background .18s ease, transform .18s ease;
}
.calc-result__btn:hover {
  background: #1f2937;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .calc-card { padding: 28px 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { flex: 1 1 100%; }
  .calc-deco { width: 80px; top: 10px; right: 14px; }
}

/* ===== Reviews Section ===== */
.reviews-section {
  background: #fff;
}

.reveal-delay-3 { transition-delay: .36s; }

/* Card */
.rv-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9 / 16;
  background: #e5e7eb;
  display: block;
  /* Hover scale */
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s ease;
}
.rv-card:hover {
  transform: scale(1.025);
  box-shadow: 0 20px 48px rgba(16, 24, 40, .18);
}
.rv-card:hover .rv-card__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(255,255,255,1);
}
.rv-card:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Thumbnail */
.rv-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}
.rv-card:hover .rv-card__img {
  transform: scale(1.04);
}

/* Dark overlay gradient */
.rv-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.02) 40%,
    rgba(0,0,0,.55) 100%
  );
  pointer-events: none;
}

/* Play button */
.rv-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #111827;
  transition: transform .25s ease, background .2s ease;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.rv-card__play i {
  margin-left: 3px; /* optical centering */
}

/* REC badge */
.rv-card__rec {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,.55);
  border-radius: 999px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}
.rv-card__rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: rec-blink 1.2s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* Timer */
.rv-card__timer {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,.45);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Bottom link */
.rv-card__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
}
.rv-card__link {
  font-size: 13px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .85;
}

/* ===== Video Modal ===== */
.rv-modal {
  background: #111827;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.rv-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background .18s ease;
}
.rv-modal__close:hover { background: rgba(255,255,255,.25); }

.rv-modal__name {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 10;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.rv-modal__role {
  position: absolute;
  top: 34px;
  left: 18px;
  z-index: 10;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

.rv-modal__video {
  width: 100%;
  display: block;
  max-height: 80vh;
  object-fit: cover;
  background: #000;
}

/* Modal размер — 9:16 portrait */
#videoModal .modal-sm {
  max-width: 360px;
}
#videoModal .modal-content {
  border-radius: 22px;
  overflow: hidden;
}

/* ===== FAQ Section ===== */
.faq-section {
  background: #ffffff;
}

/* Custom Accordion override */
.custom-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(16, 24, 40, .15);
  --bs-accordion-border-width: 0 0 1px 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 20px;
  --bs-accordion-btn-icon-width: 0; /* скрываем дефолтную иконку */
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: #111827;
  --bs-accordion-active-bg: transparent;
}

.custom-accordion .accordion-item {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(16, 24, 40, 0.15); /* Явная линия снизу */
  background: transparent;
  border-radius: 0; /* Убираем скругления, чтобы линия была ровной */
}

/* Чтобы у открытого элемента не появлялась двойная линия */
.custom-accordion .accordion-item:last-child {
  border-bottom: 1px solid rgba(16, 24, 40, 0.15);
}


.custom-accordion .accordion-button {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  background: transparent;
  box-shadow: none !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s ease;
}

.custom-accordion .accordion-button:hover {
  color: var(--brand-blue);
}

.custom-accordion .accordion-button::after {
  display: none; /* Убираем дефолтную галочку Bootstrap */
}

/* Custom Icon ↗ */
.accordion-icon {
  font-size: 18px;
  color: #111827;
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), color .2s ease;
}

/* Анимация при открытии аккордеона: стрелка крутится вниз ↓ */
.custom-accordion .accordion-button:not(.collapsed) .accordion-icon {
  transform: rotate(135deg);
  color: var(--brand-blue);
}

.custom-accordion .accordion-body {
  padding: 0 0 24px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

/* FAQ Button */
.faq-btn {
  background: #2a3441;
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: transform .18s ease, background .18s ease;
}
.faq-btn:hover {
  background: #1b222a;
  color: #fff;
  transform: translateY(-1px);
}


/* ===== Contacts Section ===== */
.contacts-section {
  background: #ffffff;
  padding-bottom: 80px; /* Больше отступ перед футером */
}

/* Typography override for contacts */
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-text {
  font-size: 16px;
  color: #111827;
  font-weight: 400;
}

.contacts-text--bold {
  font-size: 16px;
  color: #111827;
  font-weight: 600;
}

.contacts-link {
  text-decoration: none;
  transition: color .2s ease;
}
.contacts-link:hover {
  color: var(--brand-blue);
}

.contacts-desc {
  font-size: 18px;
  line-height: 1.5;
  color: #374151;
  max-width: 580px;
}

/* Button */
.contacts-btn {
  background: #2a3441;
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: transform .18s ease, background .18s ease;
}
.contacts-btn:hover {
  background: #1b222a;
  color: #fff;
  transform: translateY(-1px);
}

/* Map Wrapper */
.map-wrapper {
  width: 100%;
  height: 400px;
  background: #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  /* Мягкая тень как на скриншоте */
  box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
}

/* Чтобы iframe полностью заполнял контейнер и принимал его скругления */
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .map-wrapper {
    height: 320px;
  }
}
/* ===== Footer ===== */
.site-footer {
  background: #f8f9fa; /* Светло-серый фон как в макете */
  border-top: 1px solid rgba(16, 24, 40, .05);
}

.footer-desc {
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  font-weight: 500;
  margin-bottom: 0;
}

.footer-policy {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-policy:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

/* Navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 10px; /* Выравнивание по базовой линии логотипа */
}

.footer-nav__link {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-nav__link:hover {
  color: var(--brand-blue);
}

/* Phone */
.footer-phone {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  padding-top: 8px; /* Выравнивание по базовой линии навигации */
  transition: color .2s ease;
}
.footer-phone:hover {
  color: var(--brand-blue);
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
  .footer-nav {
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
  }
  .footer-phone {
    padding-top: 0;
  }
  .footer-policy {
    margin-top: 24px !important;
  }
}

/* ===== Callback Modal ===== */
.cb-modal {
  border-radius: 28px;
  border: none;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(16, 24, 40, .14);
}

.cb-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  opacity: .5;
  transition: opacity .2s ease;
}
.cb-modal__close:hover { opacity: 1; }

.cb-modal__title {
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.cb-modal__desc {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
}

.cb-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.cb-input {
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 24, 40, .12);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cb-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(31,94,255,.12);
}

.cb-btn {
  background: var(--brand-blue);
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  transition: background .2s ease;
}
.cb-btn:hover {
  background: #0b4aeb;
  color: #fff;
}

.cb-policy {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.4;
}
.cb-policy a {
  color: #6b7280;
  text-decoration: underline;
}
.cb-policy a:hover { color: var(--brand-blue); }


/* ===== News Cards ===== */
.news-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  position: relative;
  outline: none;
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
  border-color: transparent;
}

.news-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Зум картинки при ховере */
.news-card:hover .news-card__img {
  transform: scale(1.05);
}

.news-card__body {
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card__date {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 12px;
}

.news-card__title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.news-card__desc {
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 24px;
}

.news-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.news-card:hover .news-card__link i {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}
/* ===== Contacts Section ===== */
.contacts-section {
  background: #f8fafc; /* Легкий серый фон, чтобы отделить от белых блоков */
}

/* Иконки в кружочках */
.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e9eefb;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.d-flex:hover .contact-icon-box {
  transform: scale(1.05);
  background: var(--brand-blue);
  color: #fff;
}

.contact-icon-box--small {
  width: 36px;
  height: 36px;
  font-size: 16px;
  background: transparent;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}

/* Тексты */
.contact-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-value {
  font-size: 18px;
  color: #111827;
  font-weight: 500;
  line-height: 1.4;
}

/* Ссылки (телефон и почта) */
.contact-link {
  transition: color 0.2s ease;
}
.contact-link:hover {
  color: var(--brand-blue);
}

/* Обертка для карты */
.map-wrapper {
  border-radius: 24px;
  overflow: hidden;
  height: 480px;
  width: 100%;
  position: relative;
  background: #e5e7eb;
  /* Убираем синюю рамку при фокусе на iframe яндекса */
  outline: none;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  filter: grayscale(0.2) contrast(1.1); /* Делаем карту чуть более стильной, убирая лишнюю пестроту */
}

@media (max-width: 991.98px) {
  .map-wrapper {
    height: 350px;
  }
}
@media (max-width: 575.98px) {
  .hero-mouse { display: none; }
}

/* ===== Project Page ===== */
.project-hero {
  background: #ffffff;
}

.project-price {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 8px;
}
.project-price span {
  font-weight: 600;
  color: #111827;
}
.project-hero h1{
    font-size:2rem;
}
.project-lead {
  font-size: 16px;
  color: #4b5563;
}

.project-gallery__main {
  border-radius: 24px;
  overflow: hidden;
  background: #e5e7eb;
}
.project-gallery__main-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.project-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-thumb {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  width: 96px;
  height: 72px;
  cursor: pointer;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border .2s ease;
  border: 2px solid transparent;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-thumb.is-active {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px rgba(31, 94, 255, .3);
}
.project-thumb:hover {
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .project-gallery__main-img {
    max-height: 320px;
  }
  .project-thumb {
    width: 80px;
    height: 60px;
  }
}

/* ===== About hero ===== */
.about-hero {
  background: #f9fafb;
}

.about-hero .hero-title {
  font-size: 32px;
  font-weight: 700;
}

.about-hero .hero-lead {
  font-size: 18px;
  color: #4b5563;
}

.about-hero .hero-text {
  font-size: 15px;
  color: #4b5563;
}

.about-hero-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

/* статблоки */
.about-stat {
  min-width: 120px;
}
.about-stat__value {
  font-size: 22px;
  font-weight: 700;
}
.about-stat__label {
  font-size: 13px;
  color: #6b7280;
}

/* ===== Timeline ===== */
.timeline-section {
  background: #ffffff;
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 720px;
}

.timeline-item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: 6px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2563eb; /* ваш основной цвет */
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-line {
  position: absolute;
  left: 11px;
  top: 30px;
  width: 2px;
  height: calc(100% + 8px);
  background: linear-gradient(to bottom, rgba(148, 163, 184, .9), rgba(148, 163, 184, .1));
}

.timeline-card {
  background: #f9fafb;
  border-radius: 20px;
  padding: 16px 18px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.timeline-year {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-text {
  font-size: 14px;
  color: #4b5563;
}

/* Последний элемент — линия покороче */
.timeline-item:last-child .timeline-line {
  height: 24px;
}

@media (max-width: 575.98px) {
  .timeline {
    max-width: 100%;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-card {
    font-size: 14px;
  }
}
/* ===== News Single Page ===== */

.news-main-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.btn-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.news-sidebar-link:hover h6 {
  color: var(--bs-primary); /* Или ваш фирменный цвет */
  transition: color 0.2s ease;
}

/* ===== Typography (общие стили для контента из админки) ===== */
.typography {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151; /* Темно-серый текст */
}

.typography p {
  margin-bottom: 1.5rem;
}

.typography h2, .typography h3, .typography h4 {
  color: #111827;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.typography h2 { font-size: 1.75rem; }
.typography h3 { font-size: 1.5rem; }

.typography ul, .typography ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.typography li {
  margin-bottom: 0.5rem;
}

/* Стили для картинок в тексте, добавленных через редактор */
.typography img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}

.typography blockquote {
  border-left: 4px solid var(--bs-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #4b5563;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
}
/* ===== Блок Отзывов ===== */
.reviews-grid {
  /* На мобильных телефонах делаем 2 колонки */
  column-count: 2;
  /* Уменьшаем отступ между колонками на мобильных, чтобы скрины не были слишком мелкими */
  column-gap: 0.75rem; 
}

/* Для мобильных устройств уменьшаем отступ снизу у каждой карточки */
.review-item {
  break-inside: avoid;
  margin-bottom: 0.75rem !important; 
}

@media (min-width: 576px) {
  .reviews-grid { 
    column-count: 2; 
    column-gap: 1.5rem; /* Возвращаем стандартный отступ для планшетов */
  }
  .review-item {
    margin-bottom: 1.5rem !important;
  }
}

@media (min-width: 992px) {
  /* На десктопах делаем 4 колонки */
  .reviews-grid { 
    column-count: 4; 
  }
}

.review-item {
  break-inside: avoid; /* Чтобы картинка не разрывалась на две колонки */
}

/* Стили карточки и ховера */
.review-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  border: 1px solid #eaeaea;
}




/* Стили карточки и ховера */
.review-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  border: 1px solid #eaeaea;
}

.review-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.review-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37, 99, 235, 0.6); /* Фирменный синий цвет с прозрачностью */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-link:hover .review-overlay {
  opacity: 1;
}

/* Для GLightbox: делаем фон чуть прозрачным, чтобы сайт просвечивал */
.glightbox-container .goverlay {
  background: rgba(15, 23, 42, 0.9);
}
