/* =========================================================
   Twoja Firma — основные стили
   Все цвета, отступы и радиусы — в переменных :root
   ========================================================= */

:root {
  /* Цвета */
  --c-primary: #12123A;        /* тёмно-синий: кнопки, шапка-бар, подвал */
  --c-primary-hover: #22225E;
  --c-accent: #0B1A8C;         /* синий акцент: ссылки, кнопка «наверх» */
  --c-accent-hover: #1A2BB8;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F5F5;
  --c-text: #1A1A1A;
  --c-muted: #6B6B6B;
  --c-border: #E3E3E8;
  --c-success: #3A8F2E;
  --c-error: #D32F2F;
  --c-white: #FFFFFF;
  --c-overlay: rgba(10, 10, 35, .62);

  /* Типографика */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-body: 16px;
  --fs-small: 14px;
  --lh: 1.65;

  /* Радиусы */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Отступы */
  --container: 1240px;
  --gutter: 24px;
  --section-py: 100px;

  /* Шапка */
  --topbar-h: 0px;   /* верхней полосы нет; оставлено для совместимости расчётов */
  --navbar-h: 96px;

  /* Тени и анимации */
  --shadow-sm: 0 2px 10px rgba(18, 18, 58, .06);
  --shadow-md: 0 10px 30px rgba(18, 18, 58, .12);
  --shadow-lg: 0 20px 50px rgba(18, 18, 58, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .2s;
  --t-med: .35s;
  --t-slow: .8s;
}

@media (max-width: 1199px) {
  :root { --section-py: 80px; --navbar-h: 84px; }
}
@media (max-width: 767px) {
  :root { --section-py: 60px; --gutter: 16px; --navbar-h: 68px; }
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* отступ для якорей под липкой шапкой */
  scroll-padding-top: calc(var(--navbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* блокировка прокрутки (мобильное меню, модалка) */
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.sprite { display: none; }

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* ---------- Кнопки-«таблетки» ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 36px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--light {
  background: var(--c-white);
  color: var(--c-primary);
}
.btn--light:hover {
  background: transparent;
  border-color: var(--c-white);
  color: var(--c-white);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

/* лёгкая пульсация: мягкое кольцо расходится от кнопки и чуть «дышит» размер */
.btn--pulse {
  animation: btn-pulse 2.2s ease-out infinite;
}
.btn--pulse:hover { animation-play-state: paused; }
@keyframes btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); transform: scale(1); }
  50%  { transform: scale(1.03); }
  70%  { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transform: scale(1); }
}

.btn--sm {
  min-height: 44px;
  padding: 10px 24px;
  font-size: 13px;
}

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  transition: box-shadow var(--t-med) var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-md); }

/* Навигация: логотип и меню слева, контакты и иконки справа (как на образце) */
.navbar__inner {
  display: flex;
  align-items: center;
  height: var(--navbar-h);
  gap: 24px;
  transition: height var(--t-med) var(--ease);
}
/* при прокрутке шапка становится чуть ниже */
.header.is-scrolled .navbar__inner { height: calc(var(--navbar-h) - 16px); }

.logo { display: inline-flex; flex-shrink: 0; }
/* круглый логотип с синей рамкой, как на образце */
.logo img {
  width: 64px;
  height: 64px;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  object-fit: cover;
  transition: transform var(--t-med) var(--ease);
}
.logo:hover img { transform: rotate(-6deg) scale(1.04); }
.footer .logo img { width: 72px; height: 72px; border-color: rgba(255, 255, 255, .25); }

.nav {
  display: flex;
  align-items: center;
  margin-left: 32px;
}
.nav__list {
  display: flex;
  gap: 36px;
}
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 0;
  transition: color var(--t-fast);
}
/* подчёркивание при наведении / активном пункте */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--c-accent); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

/* Контакты в шапке: метка + телефон над адресом */
.hcontacts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.hcontacts__icon {
  display: inline-flex;
  color: var(--c-accent);
  font-size: 26px;
}
.hcontacts__body { line-height: 1.25; }
.hcontacts__body a {
  display: block;
  transition: color var(--t-fast);
}
.hcontacts__phone {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
}
.hcontacts__address {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
}
.hcontacts__body a:hover { color: var(--c-accent); }

/* Кнопка «Sprowadź auto» — белая «таблетка» с иконкой машины */
.hcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  height: 56px;
  margin-left: 24px;
  padding: 0 28px 0 34px;
  border: 1.5px solid #D9D9E3;
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.hcta__icon { font-size: 26px; transition: transform var(--t-med) var(--ease); }
.hcta:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hcta:hover .hcta__icon { transform: translateX(4px); }

.navbar__phone,
.burger { display: none; }

/* Бургер */
.burger {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--c-bg-alt);
  padding: 0;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility 0s linear var(--t-med);
}
.mobile-menu.is-open {
  visibility: visible;
  transition-delay: 0s;
}
.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: var(--c-overlay);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.mobile-menu.is-open .mobile-menu__overlay { opacity: 1; }

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--c-white);
  padding: 80px 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--c-bg-alt);
  font-size: 28px;
  line-height: 1;
  color: var(--c-primary);
}
.mobile-menu__list li + li { border-top: 1px solid var(--c-border); }
.mobile-menu__list a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.mobile-menu__list a:hover { color: var(--c-accent); padding-left: 6px; }

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
}
.mobile-menu__contacts a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-menu__contacts .icon { font-size: 18px; color: var(--c-accent); }

/* Соцсети */
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  color: var(--c-primary);
  font-size: 20px;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.socials a:hover {
  background: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-3px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--topbar-h) - var(--navbar-h));
  min-height: calc(100svh - var(--topbar-h) - var(--navbar-h));
  padding: 120px 0;
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* лёгкий «зум» фона при загрузке */
  animation: hero-zoom 12s var(--ease) both;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 35, .85) 0%, rgba(10, 10, 35, .55) 55%, rgba(10, 10, 35, .25) 100%);
}
@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* контент выровнен по левому краю общей сетки, ширина текста ограничена */
.hero__content > * { max-width: 720px; }

.hero__title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__subtitle {
  margin-top: 16px;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.25;
}
.hero__text {
  margin-top: 24px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: rgba(255, 255, 255, .85);
}
.hero .btn { margin-top: 40px; }

/* =========================================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ========================================================= */
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--c-bg-alt); }

.section-head {
  max-width: 820px;
  margin: 0 auto 64px;
  text-align: center;
}

/* маленькая надпись над заголовком */
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow--light { color: rgba(255, 255, 255, .7); }

/* крупный заголовок секции, средний вес */
.section-title {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--c-primary);
}
.section-title--light { color: var(--c-white); }

.section-lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--c-muted);
}

/* список с галочками */
.checklist { margin-top: 20px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
}
.checklist li + li { margin-top: 12px; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* =========================================================
   O NASZEJ FIRMIE
   ========================================================= */
.about__row {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  align-items: center;
  gap: 80px;
}
.about__row + .about__row { margin-top: 90px; }
/* чередование: в «обратном» ряду картинка справа */
.about__row--reverse { grid-template-columns: 1fr minmax(0, 420px); }
.about__row--reverse .about__media { order: 2; }

/* квадратные картинки показываем целиком (иконка в центре не обрезается) */
.about__media {
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.about__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.about__media:hover img { transform: scale(1.04); }

.about__num {
  display: block;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11, 26, 140, .28);
  margin-bottom: 12px;
}
.about__title {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-primary);
}
.about__text p { color: var(--c-muted); font-size: 17px; line-height: 1.75; text-align: justify; }
.about__text p + p { margin-top: 14px; }

/* =========================================================
   DROGA TWOJEGO AUTA — тёмный блок с вертикальным видео
   ========================================================= */
.journey {
  background:
    radial-gradient(circle at 85% 30%, rgba(11, 26, 140, .55) 0%, transparent 55%),
    linear-gradient(160deg, #0B0B22 0%, var(--c-primary) 100%);
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
}
.journey__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: center;
}
.journey__lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
}

/* этапы — вертикальная линия с номерами */
.journey__steps {
  position: relative;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.journey__steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.journey__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.journey__steps li:hover .journey__num { background: var(--c-white); border-color: var(--c-white); color: var(--c-primary); }
.journey__steps strong {
  display: block;
  color: var(--c-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.journey__steps span:not(.journey__num) {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .65);
}
.journey__body .btn { margin-top: 40px; }

/* рамка «телефона» под вертикальное видео 9:16 */
.journey__media { display: flex; justify-content: center; }
.journey__phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 10px;
  border-radius: 36px;
  background: #050510;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .55);
}
.journey__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 28px;
  background: #000;
}

/* =========================================================
   KALKULACJA POJAZDU
   ========================================================= */
.calc {
  position: relative;
  padding: 120px 0;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .85);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.calc__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;  /* в кадре и логотип на баннере, и машины целиком */
  z-index: -2;
}
.calc__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* затемнение как в hero: тёмное слева, светлее справа */
  background: linear-gradient(90deg, rgba(10, 10, 35, .85) 0%, rgba(10, 10, 35, .55) 55%, rgba(10, 10, 35, .25) 100%);
}
.calc__content { max-width: 860px; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.calc__content .btn { text-shadow: none; }
.calc__content p {
  margin: 24px auto 0;
  max-width: 700px;
  font-size: 17px;
}
.calc__content p.calc__lead {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  color: var(--c-white);
}
.calc__content p.calc__lead + p { margin-top: 14px; }
.calc__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: 40px;
}
/* =========================================================
   WIĘCEJ O NAS — ВКЛАДКИ
   ========================================================= */
.tabs-section__head { margin-bottom: 40px; }

/* Ряд вкладок: активная — синяя плашка, остальные — серый текст */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-bottom: 44px;
}
.tabs__btn {
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8A8A94;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.tabs__btn:hover { color: var(--c-accent); }
.tabs__btn.is-active {
  background: var(--c-accent);
  color: var(--c-white);
}

/* Видео слева, текст справа */
.tabs__layout {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 56px;
  align-items: start;
}
.tabs__media {
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}
.tabs__media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

/* плавная смена содержимого вкладки */
.tabs__panel.is-active { animation: tab-in .45s var(--ease) both; }
@keyframes tab-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.tabs__title {
  margin-bottom: 20px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--c-text);
}
.tabs__panel p {
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .03em;
  text-align: justify;
  color: #2E2E36;
}
.tabs__panel p + p { margin-top: 14px; }
.tabs__panel .checklist li { letter-spacing: .02em; }

/* =========================================================
   IDEALNY SAMOCHÓD — фото на всю ширину с синим затемнением
   ========================================================= */
.ideal {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 110px 0;
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}
.ideal__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;  /* машины в кадре */
  z-index: -2;
}
/* затемнение как в hero: тёмное слева под текстом, светлее справа */
.ideal__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 35, .85) 0%, rgba(10, 10, 35, .55) 55%, rgba(10, 10, 35, .25) 100%);
}
.ideal__content > * { max-width: 760px; }
.ideal__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.ideal__text {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
}
.ideal .btn { margin-top: 44px; }


/* =========================================================
   GALERIA
   ========================================================= */
.gallery__head { margin-bottom: 36px; }
.gallery__lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--c-muted);
}

/* плотная сетка миниатюр, как на образце: 6 колонок, маленькие скругления */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--c-bg-alt);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease), filter var(--t-med);
}
.gallery__item:hover img { transform: scale(1.08); filter: brightness(.85); }

/* =========================================================
   OPINIE KLIENTÓW — карточки «плиткой» (тексты разной длины)
   ========================================================= */
/* заголовок блока отзывов — чуть выше обычного */
.reviews { padding-top: calc(var(--section-py) - 40px); }
.reviews .section-head { margin-bottom: 48px; }

/* живая стрелка: подпрыгивает вниз и пульсирует кольцом */
.reviews__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 18px auto 6px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  animation: arrow-bounce 1.6s ease-in-out infinite, arrow-ring 1.6s ease-out infinite;
  transition: background-color var(--t-fast);
}
.reviews__arrow svg { width: 24px; height: 24px; }
.reviews__arrow:hover { background: var(--c-accent-hover); }
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@keyframes arrow-ring {
  0%   { box-shadow: 0 0 0 0 rgba(11, 26, 140, .45); }
  70%  { box-shadow: 0 0 0 16px rgba(11, 26, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 26, 140, 0); }
}
.reviews .section-lead { margin-top: 14px; }

.reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
}
/* ровные ряды по 3; неполный последний ряд — по центру */
.reviews__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.review {
  flex: 0 0 calc((100% - 48px) / 3);
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med) var(--ease);
}
.review:hover { box-shadow: var(--shadow-md); }

.review__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.review__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--c-white);
  font-size: 20px;
  font-weight: 600;
}
.review__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}
.review__meta {
  display: block;
  font-size: 13px;
  color: var(--c-muted);
}
/* значок Google в углу карточки */
.review__g {
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  background: conic-gradient(from -45deg, #EA4335 0 25%, #4285F4 0 50%, #34A853 0 75%, #FBBC05 0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.review__stars {
  color: #FBBC05;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}
.review__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #3D3D46;
}
/* длинный отзыв свёрнут до 7 строк (кнопку «Czytaj więcej» добавляет JS) */
.review__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review__more {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 700;
}
.review__more:hover { text-decoration: underline; }
.review__photo {
  display: block;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: zoom-in;
}
.review__photo img {
  width: 100%;
  height: auto;
  transition: transform var(--t-slow) var(--ease);
}
.review__photo:hover img { transform: scale(1.05); }

.reviews__more {
  margin-top: 24px;
  text-align: center;
}

/* =========================================================
   KONTAKT: BIURO I PLAC
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: stretch;
}
.contact__info .btn { margin-top: 36px; }

.contact__list { margin-top: 36px; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact__list li + li { margin-top: 20px; }
.contact__list small,
.write__phone small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contact__list a {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-primary);
  transition: color var(--t-fast);
}
.contact__list a:hover { color: var(--c-accent); }

.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  color: var(--c-accent);
  font-size: 22px;
}

.contact__map {
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-bg-alt);
  box-shadow: var(--shadow-md);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

/* =========================================================
   WYŚLIJ NAM E-MAIL
   ========================================================= */
.write__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.write__phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.write__phone strong {
  display: block;
  font-size: 22px;
  color: var(--c-primary);
  transition: color var(--t-fast);
}
.write__phone:hover strong { color: var(--c-accent); }
.write .contact__icon { background: var(--c-white); }

/* =========================================================
   ФОРМЫ (общие для контактной и модальной)
   ========================================================= */
.form-card {
  padding: 48px;
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-md);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}
.form__field--full { grid-column: 1 / -1; }

.form__label {
  display: block;
  margin: 0 0 8px 24px;
  font-size: 15px;
  font-weight: 500;
}

/* поле-«таблетка» со светлой рамкой */
.input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-text);
  font: inherit;
  font-size: 16px; /* 16px — iOS не зумит поле при фокусе */
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #9A9AA5; }
.input:hover { border-color: #C9C9D3; }
.input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(11, 26, 140, .1);
}
.input--area {
  height: auto;
  min-height: 140px;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  resize: vertical;
  line-height: 1.5;
}
/* ошибки валидации */
.form__error {
  display: block;
  min-height: 0;
  margin: 6px 0 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-error);
}
.form__error:empty { margin: 0; }
.form__field.has-error .input { border-color: var(--c-error); box-shadow: 0 0 0 4px rgba(211, 47, 47, .08); }
.form__field.has-error .checkbox__box { border-color: var(--c-error); }

/* чекбокс согласия */
.checkbox {
  display: flex;
  gap: 14px;
  cursor: pointer;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.checkbox__box {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border: 1.5px solid #B9B9C4;
  border-radius: 6px;
  background: var(--c-white);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.checkbox__box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--t-fast), transform var(--t-fast) var(--ease);
}
.checkbox input:checked + .checkbox__box { background: var(--c-primary); border-color: var(--c-primary); }
.checkbox input:checked + .checkbox__box::after { opacity: 1; transform: scale(1); }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.checkbox__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-muted);
}
.checkbox__text a {
  font-weight: 700;
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox__text a:hover { color: var(--c-accent); }
.text-success { color: var(--c-success); font-weight: 700; }

.form__submit {
  margin-top: 28px;
  text-align: center;
}
.form__submit .btn { min-width: 240px; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.form__alert {
  margin-bottom: 24px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(211, 47, 47, .08);
  color: var(--c-error);
  font-size: 15px;
  font-weight: 600;
}

/* поле-ловушка для ботов: скрыто от людей */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   МОДАЛЬНАЯ ФОРМА
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 58, .75);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.modal.is-open .modal__overlay { opacity: 1; }

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 56px 56px 48px;
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-text);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
/* тонкий крестик как на образце */
.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__close:hover { transform: rotate(90deg); opacity: .7; }

.modal__title {
  padding: 0 36px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: center;
  color: var(--c-text);
}
.modal__subtitle {
  margin: 10px 0 32px;
  font-size: 18px;
  color: #555560;
  text-align: center;
}

/* поля в модалке — крупнее, как на образце */
.modal .form__grid { gap: 22px 24px; margin-bottom: 26px; }
.modal .form__label { margin: 0 0 10px 24px; font-size: 16px; }
.modal .input {
  height: 54px;
  border-color: #DCDCE2;
  font-size: 17px;
}
.modal .input::placeholder { color: #85858F; }
.modal .checkbox { gap: 16px; }
.modal .checkbox__box {
  width: 28px;
  height: 28px;
  border-color: #9E9EA8;
  border-radius: 5px;
}
.modal .checkbox__text { font-size: 15px; line-height: 1.6; color: #55555F; }
.modal .form__submit { margin-top: 30px; }
.modal .form__submit .btn {
  min-width: 0;
  min-height: 60px;
  padding: 0 46px;
  font-size: 17px;
}

/* Вариант «справа»: окно размером с форму выезжает с правого края */
.modal--side {
  justify-content: flex-end;
  align-items: center;
}
.modal--side .modal__dialog {
  max-width: 640px;
  margin: auto 0;
  padding: 44px 40px 40px;
  transform: translateX(calc(100% + 48px));
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.modal--side.is-open .modal__dialog { transform: none; }

/* =========================================================
   СТРАНИЦА «DZIĘKUJEMY»
   ========================================================= */
.thanks {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--topbar-h) - var(--navbar-h));
  min-height: calc(100svh - var(--topbar-h) - var(--navbar-h));
  padding: 80px 0;
  background: var(--c-bg-alt);
  text-align: center;
}
.thanks__inner { max-width: 720px; }

/* галочка: круг и «птичка» прорисовываются по очереди */
.thanks__check {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thanks__circle {
  stroke: var(--c-success);
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw .8s var(--ease) .1s forwards;
}
.thanks__tick {
  stroke: var(--c-success);
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw .45s var(--ease) .8s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.thanks__title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-primary);
  animation: tab-in .6s var(--ease) .3s both;
}
.thanks__text {
  margin-top: 18px;
  font-size: 18px;
  color: var(--c-muted);
  animation: tab-in .6s var(--ease) .45s both;
}
.thanks__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  animation: tab-in .6s var(--ease) .6s both;
}
.thanks__actions .icon { font-size: 18px; }

/* =========================================================
   СТРАНИЦА «POLITYKA PRYWATNOŚCI»
   ========================================================= */
.legal__inner { max-width: 860px; }
.legal__updated {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--c-muted);
}
.legal h2 {
  margin: 44px 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
}
.legal p,
.legal li { color: #3D3D46; }
.legal p + p { margin-top: 12px; }
.legal ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}
.legal li + li { margin-top: 6px; }
.legal a:not(.btn) { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__back { margin-top: 56px; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 96px;
  background: rgba(8, 8, 28, .94);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  max-height: calc(100svh - 200px);
  width: auto;
  height: auto;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}
.lightbox__img.is-loading { opacity: 0; transform: scale(.97); }

.lightbox__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  margin-top: 16px;
  color: var(--c-white);
  font-weight: 600;
}
.lightbox__counter {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .6);
  font-size: var(--fs-small);
  font-weight: 500;
}

.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--c-white);
  font-size: 40px;
  line-height: 1;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 16px; right: 16px; width: 48px; height: 48px; font-size: 32px; }
.lightbox__prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(3px); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 60px;
}
.footer__about p { margin-top: 20px; max-width: 320px; }

.footer__title {
  margin-bottom: 20px;
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer__links li + li { margin-top: 10px; }
.footer__links a,
.footer__contacts a,
.footer__bottom a { transition: color var(--t-fast); }
.footer__links a:hover,
.footer__contacts a:hover,
.footer__bottom a:hover { color: var(--c-white); }

.footer__contacts li + li { margin-top: 14px; }
.footer__contacts a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer__contacts .icon { font-size: 18px; margin-top: 3px; color: var(--c-white); }

.socials--footer a {
  background: rgba(255, 255, 255, .08);
  color: var(--c-white);
}
.socials--footer a:hover {
  background: var(--c-white);
  color: var(--c-primary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* =========================================================
   Кнопка «наверх» — круглая, синяя, слева внизу
   ========================================================= */
.to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 22px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t-med) var(--ease),
              transform var(--t-med) var(--ease),
              visibility 0s linear var(--t-med),
              background-color var(--t-fast);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.to-top:hover { background: var(--c-accent-hover); transform: translateY(-3px); }

/* =========================================================
   Анимации появления при прокрутке
   ========================================================= */
/* скрываем только если JS работает (класс .js ставится скриптом) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"]  { transform: scale(.94); }
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
.js [data-reveal-delay="1"] { transition-delay: .12s; }
.js [data-reveal-delay="2"] { transition-delay: .24s; }
.js [data-reveal-delay="3"] { transition-delay: .36s; }
.js [data-reveal-delay="4"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

/* Планшет */
@media (max-width: 1199px) {
  .nav { margin-left: 20px; }
  .nav__list { gap: 24px; }
  /* узкий десктоп: без значка-метки, чтобы всё влезло в одну строку */
  .hcontacts__icon { display: none; }
  .hcontacts__phone { font-size: 15px; }
  .hcontacts__address { font-size: 12px; }
  /* узкий десктоп: кнопка только с иконкой */
  .hcta { width: 52px; height: 52px; padding: 0; margin-left: 16px; }
  .hcta__text { display: none; }
  .hcta__icon { font-size: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .about__row { gap: 48px; }
  .about__row + .about__row { margin-top: 72px; }
  .journey__grid { gap: 48px; }
  .review { flex-basis: calc((100% - 24px) / 2); }

  .tabs__layout { gap: 40px; }
  .tabs__panel p { font-size: 16px; }
  /* галерея: 2 колонки на планшете */
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .lightbox { padding: 72px 80px; }

  .contact__grid,
  .write__grid { gap: 40px; }
}

/* Планшет: блоки в одну колонку */
@media (max-width: 991px) {
  .about__row,
  .about__row--reverse { grid-template-columns: 1fr; gap: 32px; }
  .about__row--reverse .about__media { order: 0; }
  .about__media { max-width: 420px; }
  .about__text { max-width: 640px; }
  .journey__grid { grid-template-columns: 1fr; }
  .journey__media { order: -1; }
  .journey__phone { max-width: 320px; }

  .tabs__layout { grid-template-columns: 1fr; }

  .contact__grid,
  .write__grid { grid-template-columns: 1fr; }
  .contact__map,
  .contact__map iframe { min-height: 360px; }
}

/* Бургер-меню включается до 992px */
@media (max-width: 991px) {
  .nav,
  .hcontacts { display: none; }
  .hcta { width: 44px; height: 44px; margin-left: auto; }
  .hcta__icon { font-size: 22px; }

  .navbar__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-primary);
    color: var(--c-white);
    font-size: 18px;
  }
  .burger { display: block; }
  .navbar__inner { gap: 12px; }
}

/* Мобильный */
@media (max-width: 767px) {
  .logo img { width: 52px; height: 52px; }

  .hero { padding: 80px 0; }
  .hero__overlay { background: rgba(10, 10, 35, .68); }
  .hero .btn { width: 100%; max-width: 360px; }

  .section-head { margin-bottom: 44px; }
  .section-lead { font-size: 16px; }
  .about__num { font-size: 48px; }
  .about__text p { text-align: left; font-size: 16px; }
  .about__row + .about__row { margin-top: 60px; }
  .journey__steps { grid-template-columns: 1fr; gap: 14px; }
  .review { flex-basis: 100%; }
  .review { padding: 22px; }
  .reviews__more .btn { width: 100%; white-space: normal; padding: 12px 20px; font-size: 13px; }
  .journey__body .btn { width: 100%; }
  .journey__phone { max-width: 280px; }
  .calc { padding: 80px 0; min-height: 0; }
  .calc__overlay { background: rgba(10, 10, 35, .68); }
  .calc__actions .btn { width: 100%; }

  /* вкладки: горизонтальная прокрутка вместо сжатия */
  .tabs__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1) 28px;
    padding: 0 var(--gutter);
    scroll-padding-inline: var(--gutter);  /* первая вкладка не прилипает к краю */
  }
  .tabs__nav::-webkit-scrollbar { display: none; }
  .tabs__btn { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  .tabs__btn { font-size: 13px; padding: 10px 14px; }
  .tabs__title { font-size: 20px; letter-spacing: .03em; }
  .tabs__panel p { text-align: left; letter-spacing: .01em; }

  .ideal { min-height: 0; padding: 80px 0; }
  .ideal__overlay { background: rgba(10, 10, 35, .68); }
  .ideal .btn { width: 100%; padding: 0 24px; margin-top: 32px; }

  /* галерея: 1 колонка, крупные карточки не растягиваются */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* Большие телефоны: 3 колонки */
@media (min-width: 480px) and (max-width: 767px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {

  /* lightbox: стрелки внизу, фото на всю ширину */
  .lightbox { padding: 64px 12px 96px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 68px); }
  .lightbox__next { right: calc(50% - 68px); }
  .lightbox__prev:hover,
  .lightbox__next:hover { transform: none; }
  .lightbox__caption { padding: 0 4px; font-size: 14px; }


  .contact__info .btn { width: 100%; }
  .contact__list a { font-size: 16px; }
  .contact__map,
  .contact__map iframe { min-height: 300px; }


  .form-card { padding: 28px 20px; }
  .form__grid { grid-template-columns: 1fr; gap: 16px; }
  .form__label { margin-left: 20px; }
  .form__submit .btn { width: 100%; min-width: 0; }
  .write__phone strong { font-size: 20px; }

  .modal { padding: 12px; align-items: flex-start; }
  .modal__dialog,
  .modal--side .modal__dialog { padding: 56px 20px 28px; }
  .modal__title { padding: 0; }
  .modal__subtitle { margin-bottom: 24px; font-size: 16px; }
  .modal .form__grid { grid-template-columns: 1fr; gap: 16px; }
  .modal .form__submit .btn { width: 100%; }

  .thanks__actions .btn { width: 100%; }
  .thanks__text { font-size: 16px; }
  .legal h2 { font-size: 19px; margin-top: 36px; }
  .legal__back { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .to-top { left: 16px; bottom: 16px; width: 46px; height: 46px; font-size: 20px; }
}

/* =========================================================
   БАННЕР COOKIES
   ========================================================= */
.cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie[hidden] { display: none; }
.cookie__box {
  pointer-events: auto;
  width: 100%;
  max-width: 760px;
  padding: 24px 28px;
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: 0 20px 60px rgba(18, 18, 58, .28);
  animation: tab-in .4s var(--ease) both;
}
.cookie__title { font-size: 18px; font-weight: 700; color: var(--c-primary); }
.cookie__text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--c-muted); }
.cookie__text a { color: var(--c-accent); text-decoration: underline; }
.cookie__options { display: grid; gap: 10px; margin-top: 16px; }
.cookie__options[hidden] { display: none; }
.cookie__opt { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.cookie__opt input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.cookie__actions [hidden] { display: none; }

.footer__legal { display: inline-flex; gap: 24px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 767px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .cookie__box { padding: 20px; }
  .cookie__actions .btn { flex: 1 1 calc(50% - 5px); }
}

/* отступ под заголовком политики */
.legal .section-title + p { margin-top: 24px; }

/* =========================================================
   ПЛАВАЮЩАЯ КНОПКА С ТРУБКОЙ (правый нижний угол)
   ========================================================= */
.call-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 28px;
  box-shadow: var(--shadow-md);
  animation: fab-pulse 2s ease-out infinite;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.call-fab .icon { animation: fab-ring 2s ease-in-out infinite; }
.call-fab:hover { background: var(--c-accent-hover); transform: scale(1.06); }
@keyframes fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(11, 26, 140, .5), var(--shadow-md); }
  70%  { box-shadow: 0 0 0 18px rgba(11, 26, 140, 0), var(--shadow-md); }
  100% { box-shadow: 0 0 0 0 rgba(11, 26, 140, 0), var(--shadow-md); }
}
/* лёгкое «покачивание» трубки */
@keyframes fab-ring {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30%      { transform: rotate(-14deg); }
  20%, 40%      { transform: rotate(14deg); }
}
@media (max-width: 767px) {
  .call-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; font-size: 24px; }
}

/* =========================================================
   СОЦСЕТИ НА СТРАНИЦЕ «DZIĘKUJEMY» (без фона, крупные)
   ========================================================= */
.thanks__inner { max-width: 1100px; }
.thanks-social {
  margin-top: 64px;
  animation: tab-in .6s var(--ease) .75s both;
}
.thanks-social__title {
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-muted);
}
.thanks-social__grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 16px;
}
.thanks-social__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--c-primary);
  text-align: left;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.thanks-social__item:hover { background: var(--c-white); transform: translateY(-3px); }
.thanks-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 30px;
  transition: background-color var(--t-fast);
}
.thanks-social__item:hover .thanks-social__icon { background: var(--c-accent); }
.thanks-social__item strong { display: block; font-size: 20px; font-weight: 700; line-height: 1.25; }
.thanks-social__item small { display: block; white-space: nowrap; font-size: 15px; color: var(--c-muted); }

@media (max-width: 1199px) {
  .thanks-social__grid { grid-template-columns: repeat(2, auto); justify-content: center; column-gap: 48px; }
}
@media (max-width: 599px) {
  .thanks-social__grid { grid-template-columns: 1fr; justify-items: start; max-width: 320px; margin: 0 auto; }
  .thanks-social__icon { width: 56px; height: 56px; font-size: 26px; }
  .thanks-social__item strong { font-size: 18px; }
}

/* Фирменные цвета иконок соцсетей (страница «Dziękujemy») */
.thanks-social__item[data-social="youtube"] .thanks-social__icon {
  background: var(--c-white);
  color: #FF0000;                       /* красная «плашка» с белым треугольником */
  font-size: 38px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.thanks-social__item[data-social="facebook"] .thanks-social__icon {
  background: #1877F2;
  color: var(--c-white);
}
.thanks-social__item[data-social="instagram"] .thanks-social__icon {
  border-radius: 18px;
  background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  color: var(--c-white);
}
.thanks-social__item[data-social="tiktok"] .thanks-social__icon {
  background: #000;
  color: var(--c-white);
}
.thanks-social__item[data-social="tiktok"] .thanks-social__icon .icon {
  filter: drop-shadow(-2px -2px 0 #25F4EE) drop-shadow(2px 2px 0 #FE2C55);
}
/* при наведении цвет иконки не меняем — только подсветка */
.thanks-social__item:hover .thanks-social__icon { filter: brightness(1.08); }
.thanks-social__item[data-social="facebook"]:hover .thanks-social__icon { background: #1877F2; }
.thanks-social__item[data-social="tiktok"]:hover .thanks-social__icon { background: #000; }
.thanks-social__item[data-social="youtube"]:hover .thanks-social__icon { background: var(--c-white); }
