/* Kupi-Project.ru — основной стиль. Палитра и пропорции взяты со старой версии сайта. */

/* ---------- Шрифты (локально, без запросов к Google) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Material Symbols";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/material-symbols.woff2?v=4") format("woff2");
}

/* ---------- Переменные ---------- */
:root {
  --ink: #181818;
  --text: #272727;
  --muted: #6e6e6e;
  --muted-2: #7d7d7d;
  --white: #fff;
  --yellow: #ffb700;
  --yellow-soft: #ffd145;
  --yellow-btn: #f5d904;
  --yellow-card: #fee10a;
  --yellow-tab: #ffe68b;
  --green: #2c8522;
  --green-check: #82cd3c;
  --green-icon: #27c82d;
  --green-step: #87d22a;
  --online: #25d266;
  --red: #ff0505;
  --orange: #c4421c;
  --sky: #137bb8;
  --steel: #4d7a99;
  --navy: rgba(18, 63, 110, .83);
  --panel: rgba(42, 62, 90, .58);
  --panel-strong: rgba(42, 62, 90, .81);
  --glass: rgba(0, 0, 0, .45);
  --beige: #f5f2ee;
  --tab: #f2ece7;
  --footer: #343943;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .18);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .22);
  --glow-yellow: 0 0 0 3px rgba(255, 183, 0, .25), 0 8px 28px rgba(255, 183, 0, .35);
  --container: 1200px;
  --header-h: 60px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.icon {
  font-family: "Material Symbols";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 10px; top: -60px; z-index: 10000;
  background: var(--yellow); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 10px; }

.nowrap { white-space: nowrap; }

/* ---------- Заголовки секций ---------- */
.section-head { text-align: center; padding: 40px 20px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.section-title small { display: block; font-size: .7em; text-transform: none; font-weight: 600; }
.section-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin: 18px auto 30px;
  background: var(--red);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 5, 5, .45);
}
.section-lead {
  max-width: 1000px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}
.section-lead p + p { margin-top: 4px; }
.section-note { color: #141414; font-size: 20px; text-align: center; padding: 0 20px 20px; }
.section-note--top { margin-top: 20px; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--yellow-btn);
  --btn-fg: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--glow-yellow); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn--green {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  border: 2px solid #868686;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 25px;
}
.btn--green:hover { background: linear-gradient(121deg, #0abe16, #5be1ff 86%); box-shadow: 0 0 0 3px rgba(91, 225, 255, .25), 0 8px 26px rgba(10, 190, 22, .45); }
.btn--steel { --btn-bg: var(--steel); --btn-fg: #fff; border-radius: 6px; font-size: 16px; text-transform: uppercase; }
.btn--steel:hover { box-shadow: 0 8px 24px rgba(77, 122, 153, .45); filter: brightness(1.1); }
.btn--orange { --btn-bg: var(--orange); --btn-fg: #fff; }
.btn--orange:hover { box-shadow: 0 8px 26px rgba(236, 92, 56, .5); }
.btn--sky { --btn-bg: var(--sky); --btn-fg: #fff; font-weight: 600; }
.btn--sky:hover { box-shadow: 0 8px 26px rgba(37, 178, 243, .5); }
.btn--block { width: 100%; }

/* ---------- Онлайн-индикатор ---------- */
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--online);
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(37, 210, 102, .7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 210, 102, .7); }
  70% { box-shadow: 0 0 0 8px rgba(37, 210, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 210, 102, 0); }
}

/* ---------- Соцсети ---------- */
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.socials--center { justify-content: center; }
.socials a { display: block; border-radius: 10px; transition: transform .4s var(--ease), filter .3s; }
.socials a:hover { transform: scale(1.18); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.socials img { width: 40px; height: 40px; }

/* ---------- Шапка ---------- */
.hero {
  position: relative;
  color: #fff;
  background: #2a3e5a url("../img/bg-hero.webp") 50% 30% / cover no-repeat;
}
@media (max-width: 767px) {
  .hero { background-image: url("../img/bg-hero-sm.webp"); }
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 20px 0;
  max-width: 1600px;
  margin-inline: auto;
  border-bottom: 10px solid rgba(255, 255, 255, .09);
}
.topbar__item { padding: 0 20px 10px; font-weight: 300; font-size: 13px; }
.topbar__title { font-weight: 700; text-transform: uppercase; }
.topbar__big { font-size: 15px; }
a.topbar__big { display: inline-block; padding: 3px 0; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar__brand { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; }
.topbar__brand:hover { text-decoration: none !important; }
.topbar__brand img { width: 82px; height: auto; }
.topbar__brand-name { font-weight: 700; font-size: 17px; }
.topbar__hours { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.topbar__online { display: flex; flex-direction: column; gap: 4px; }
.counter { font-weight: 600; color: var(--yellow-soft); }

/* Навигация */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(39, 66, 95, .41);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(22, 40, 60, .82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 20px;
  gap: 10px;
}
.nav__brand, .nav__call, .nav__toggle { display: none; }
.nav__menu { display: flex; flex-wrap: wrap; justify-content: space-around; width: 100%; }
.nav__link {
  display: block;
  position: relative;
  padding: 8px 12px;
  color: #f1f1f1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .25px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .25s, color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav__link:hover { background: rgba(0, 0, 0, .14); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }

/* Первый экран */
.hero__body {
  max-width: var(--container);
  margin-inline: auto;
  padding: 60px 20px 20px;
}
.hero__headline { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero__title { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 20px; font-weight: 400; }
.hero__title span {
  display: inline-block;
  padding: 0 20px;
  font-size: clamp(26px, 5vw, 50px);
  line-height: 1.2;
  background: var(--glass);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero__title span:first-child { font-weight: 700; border-radius: 15px 15px 0 0; padding-top: 4px; }
.hero__title span:last-child { border-radius: 0 0 15px 15px; padding-bottom: 10px; }
.hero__pill {
  margin-bottom: 20px;
  padding: 10px 20px;
  border-radius: 15px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.25;
  font-weight: 600;
}
.hero__pill--light { font-weight: 300; }

.hero__badges { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px 30px; margin-top: 20px; }
.badge {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 20px 40px 30px 14px;
  color: #eee;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 13px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), background-color .4s, box-shadow .4s;
}
.badge:hover { background: var(--panel-strong); transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 30px rgba(130, 205, 60, .25); }
.badge .icon { color: var(--green-check); font-size: 30px; }

/* Карусель «качества» */
.hero__qualities { max-width: var(--container); margin-inline: auto; padding: 30px 20px 40px; }
.quality {
  height: 100%;
  padding: 18px 26px;
  color: #fff;
  text-align: center;
  background: rgba(158, 183, 196, .28);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 60px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .6s, box-shadow .6s;
}
.quality:hover { background: rgba(45, 88, 111, .56); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 30px rgba(0, 0, 0, .25); }
.quality__title { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.quality__text { font-weight: 600; font-size: 15px; }

/* ---------- Карусель (общий компонент) ---------- */
.carousel { --per-view: 1; --gap: 16px; position: relative; }
.carousel__track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
  min-width: 0;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color .25s, transform .25s, opacity .25s;
}
.carousel__btn:hover { background: rgba(0, 0, 0, .6); transform: scale(1.1); }
.carousel__btn .icon { font-size: 30px; }
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.carousel__dots { flex-wrap: wrap; gap: 0; }
.carousel__dot {
  display: grid;
  place-items: center;
  min-width: 24px; height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .25);
  transition: width .3s var(--ease), background-color .3s;
}
.carousel__dot:hover::before { background: rgba(0, 0, 0, .45); }
.carousel__dot[aria-current="true"]::before { width: 26px; background: var(--yellow); }
.carousel__dot[aria-current="true"] { min-width: 34px; }
.carousel--light .carousel__dot::before { background: rgba(255, 255, 255, .45); }
.carousel--light .carousel__dot[aria-current="true"]::before { background: #fff; }

.hero__qualities .carousel { --per-view: 3; --gap: 14px; }

/* Фото-галерея (карусель с лайтбоксом) */
.photo-slider { max-width: var(--container); margin: 10px auto 20px; padding-inline: 30px; }
.photo-slider .carousel { --per-view: 4; --gap: 14px; }
.photo-slider a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.photo-slider img { width: 100%; height: 220px; object-fit: cover; transition: transform .7s var(--ease); }
.photo-slider a:hover img { transform: scale(1.07); }

/* ---------- Карточки проектов ---------- */
.projects { padding-bottom: 10px; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  justify-content: space-around;
  gap: 24px 20px;
  max-width: var(--container);
  margin: 0 auto 10px;
  padding-inline: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  color: #000;
  background: rgba(224, 226, 238, .33);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 13px;
  box-shadow: 4px 5px 16px rgba(0, 0, 0, .2);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); border-color: rgba(255, 183, 0, .7); }
.card__title { padding: 10px; text-align: center; font-size: 18px; font-weight: 400; line-height: 1.3; }
.card__media { position: relative; display: block; overflow: hidden; background: #e8eaf0; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #fafafa;
  background: linear-gradient(to top, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 60%);
  cursor: zoom-in;
}
.card__zoom .icon {
  font-size: 72px;
  text-shadow: 4px 2px 6px rgba(43, 43, 43, .6);
  opacity: .9;
  transition: transform .4s var(--ease), opacity .3s;
}
.card__zoom:hover .icon, .card__zoom:focus-visible .icon { transform: scale(1.15); opacity: 1; }
.card__count {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
}
.card__specs { padding: 10px; font-size: 13px; font-weight: 300; line-height: 1.55; }
.card__specs { margin: 0; }
.card__specs dt, .card__specs dd { display: inline; margin: 0; }
.card__specs dd { font-weight: 400; }
.card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 70px;
  padding: 12px;
  color: #202020;
  background: var(--yellow-card);
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  transition: filter .3s, box-shadow .3s;
}
.card__cta:hover { filter: brightness(1.05); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .08); }

/* ---------- Калькулятор / формы на фоне ---------- */
.band { padding: 40px 20px 20px; background-position: 50%; background-size: cover; background-repeat: no-repeat; }
.band--calc { background-color: rgba(255, 255, 255, .82); background-image: url("../img/bg-calc.webp"); background-position: 50% 100%; }
.band--consult { background-image: url("../img/bg-consult.webp"); background-position: 50% 80%; }
@media (max-width: 479px) { .band--consult { background-image: url("../img/bg-consult-sm.webp"); } }

.panel {
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 30px 30px 22px;
  color: #000;
  text-align: center;
  background: linear-gradient(to right, rgba(255, 255, 246, .96) 69%, rgba(212, 237, 255, .96));
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  box-shadow: 0 7px 3px rgba(0, 0, 0, .2), 0 20px 50px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.panel__title { font-size: 25px; font-weight: 700; line-height: 1.3; }
.panel__text { margin-top: 12px; font-size: 20px; color: #141414; }
.today { color: #6d91a3; font-size: 16px; padding-top: 22px; }
.today strong { text-transform: uppercase; }

.form { text-align: left; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .form__label { display: block; margin: 20px 0 10px; padding: 0; font-weight: 600; }
.form__row { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.form__col { min-width: 0; }
.form__actions { margin-top: 14px; }
.form__hint { margin-top: 16px; color: var(--muted); font-size: 15px; text-align: center; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__inline { display: flex; gap: 14px; align-items: center; }
.form__inline .input { flex: 1; margin: 0; }
.form__inline .btn { flex: 1; }

.input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 8px 14px;
  color: #0a0a0a;
  background: #fff;
  border: 3px solid #fbbd04;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.input:focus { outline: none; border-color: var(--yellow); box-shadow: var(--glow-yellow); font-weight: 600; }
.input:user-invalid { border-color: #e03131; }
.input::placeholder { color: #999; font-weight: 400; }

/* Чекбоксы и радиокнопки */
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.35; }
.check input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  border: 3px solid var(--yellow);
  border-radius: 5px;
  background: #fff center / 80% no-repeat;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, box-shadow .3s, transform .2s;
}
.check input:checked { background-color: var(--yellow); background-image: url("../img/icons/check.svg"); }
.check input:hover { box-shadow: 0 0 0 4px rgba(255, 183, 0, .2); }
.check input:active { transform: scale(.9); }
.check input[type="radio"] { width: 24px; height: 24px; border-color: #ffbf00; border-radius: 50%; }
.check input[type="radio"]:checked { background: var(--yellow-soft); border-color: #f2a809; box-shadow: inset 0 0 0 4px #fff; }
.check--big input { width: 44px; height: 44px; border-radius: 8px; }
.check--big input:checked { background-color: #ffe344; }
.check--big span { font-size: 20px; color: #141414; align-self: center; }
.check--dark input { width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .6); background-color: rgba(0, 0, 0, .15); border-radius: 4px; }
.check--dark input:checked { background-color: var(--orange); border-color: var(--orange); }
.check--stack { display: flex; margin-bottom: 8px; }
.price-tag { color: #e03131; font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2px; }

.smeta { margin-top: 10px; }
.smeta__text { margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 300; }
.smeta__text p + p { margin-top: 10px; }

.form-success {
  padding: 24px;
  color: #fff;
  text-align: left;
  background: linear-gradient(to right, #15f015 16%, #12d4ff);
  border-radius: 14px;
  animation: pop .5s var(--ease);
}
.form-success__title { font-size: 18px; font-weight: 600; }
.form-success__text { margin-top: 16px; color: #000; font-size: 15px; }
.form-error { margin-top: 14px; padding: 14px; color: #8a1c1c; background: #ffe3e3; border-radius: 10px; font-size: 15px; }
@keyframes pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* ---------- Услуги ---------- */
.services { background: var(--beige); padding-bottom: 30px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px 22px 0;
  color: #000;
  background: #fff no-repeat;
  background-size: 52%;
  background-position: 115% 60%;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 9px -1px rgba(0, 0, 0, .2);
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.service:hover { transform: translateY(-3px); border-color: #e6c46a; box-shadow: 0 16px 36px rgba(0, 0, 0, .14); }
.service--arch { background-image: url("../img/service-arch.webp"); }
.service--build { background-image: url("../img/service-build.webp"); background-size: 40%; background-position: 104% 100%; }
.service--design { background-image: url("../img/service-design.webp"); background-position: 112% 30%; }
.service--land { background-image: url("../img/service-land.webp"); background-position: 118% 20%; }
.service--3d { background-image: url("../img/service-3d.webp"); background-position: 112% 30%; }
.service--geo { background-image: url("../img/service-geo.webp"); background-position: 112% 0; }
.service__title { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.1; max-width: 70%; }
.service__text { max-width: 58%; margin: 14px 0 20px; color: var(--muted); font-weight: 300; }
.service .btn { margin-top: auto; margin-bottom: 20px; align-self: flex-start; }

/* ---------- Как проходит работа (вкладки) ---------- */
.workflow {
  padding-bottom: 30px;
  background: url("../img/bg-work.webp") 100% 0 no-repeat;
}
.tabs { max-width: var(--container); margin-inline: auto; padding-inline: 10px; }
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.tabs__tab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 18px 24px;
  border: 0;
  border-radius: 10px;
  color: #222;
  background: var(--tab);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.tabs__tab:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .15); }
.tabs__tab[aria-selected="true"] { background: var(--yellow-tab); box-shadow: 0 0 0 2px rgba(255, 183, 0, .45), 0 8px 22px rgba(255, 183, 0, .3); }
.tabs__tab .icon { color: #1ac73d; font-size: 28px; }
.tabs__panel {
  display: flex;
  gap: 20px;
  margin: 0 10px 20px;
  padding: 40px 30px 40px 32%;
  min-height: 260px;
  background: rgba(255, 255, 255, .86) 0 50% / 30% no-repeat;
  border: 2px solid rgba(129, 129, 129, .29);
  border-radius: 13px;
  box-shadow: 0 2px 11px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeUp .45s var(--ease);
}
.tabs__panel[hidden] { display: none; }
.tabs__panel--tz { background-image: url("../img/tab-tz.webp"); }
.tabs__panel--eskiz { background-image: url("../img/tab-eskiz.webp"); background-position: 0 30%; }
.tabs__panel--draw { background-image: url("../img/service-arch.webp"); background-size: 32%; background-position: -2% 50%; }
.tabs__panel--print, .tabs__panel--ship { padding-left: 30px; }
.tabs__icon { color: var(--green-icon); font-size: 50px; }
.tabs__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #0d0d0d; }
.tabs__text { color: #000; font-weight: 300; }
.tabs__text p + p { margin-top: 12px; }
.tabs__panel .btn { margin-top: 20px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Преимущества ---------- */
.advantages { padding: 60px 0 0; background: #1d3a57 url("../img/bg-plus.webp") 50% 0 / cover; }
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.advantage {
  margin-bottom: 50px;
  padding: 36px 22px;
  color: #f3f3f3;
  text-align: center;
  background: var(--navy);
  border: 1px solid rgba(219, 219, 219, .38);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.advantage:hover { transform: translateY(-6px); border-color: rgba(255, 209, 69, .7); box-shadow: 0 0 30px rgba(255, 209, 69, .25); }
.advantage .icon { font-size: 50px; color: #fff; margin-bottom: 14px; }
.advantage__title { font-size: 18px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; }
.advantage__text { font-size: 16px; font-weight: 300; }

/* ---------- Видео ---------- */
.video {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background: #222 url("../img/bg-video.webp") 50% / cover;
}
@media (max-width: 479px) { .video { background-image: url("../img/bg-video-sm.webp"); } }
.video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .35)); }
.video__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #fff;
  background: none;
  cursor: pointer;
}
.video__btn .icon {
  font-size: 100px;
  border-radius: 50%;
  transition: color .4s, transform .4s var(--ease), text-shadow .4s;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .45);
}
.video__btn:hover .icon { color: #ff002f; transform: scale(1.1); text-shadow: 0 0 40px rgba(255, 0, 47, .6); }
.video__label { font-size: 18px; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

.docs { max-width: var(--container); margin: 0 auto; padding: 0 30px 10px; }
.docs .carousel { --per-view: 4; --gap: 20px; }
.docs__item { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 5px 2px rgba(0, 0, 0, .2); cursor: zoom-in; }
.docs__item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.docs__item:hover img { transform: scale(1.06); }

.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding: 10px 20px 30px; }
.download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #141414;
  font-size: 20px;
  text-decoration: none;
  border-radius: 12px;
  transition: color .2s, background-color .2s;
}
.download .icon { color: #f46464; font-size: 46px; }
.download:hover { color: #e44f4f; background: rgba(244, 100, 100, .08); }
.download small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- География ---------- */
.geo {
  margin-top: 0;
  padding-bottom: 40px;
  background: rgba(252, 246, 233, .98) url("../img/bg-map.webp") 50% / cover;
  position: relative;
}
.geo::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .84); }
.geo > * { position: relative; }
.geo__text { max-width: 900px; margin: 0 auto; padding: 0 20px; color: #141414; font-size: 20px; text-align: center; line-height: 1.45; }
.geo__text p + p { margin-top: 16px; }

/* ---------- Ход работы ---------- */
.steps { display: flex; flex-direction: column; align-items: center; padding: 10px 20px 20px; }
.step {
  width: 100%;
  max-width: var(--container);
  margin: 20px 0;
  padding: 20px;
  border: 2px solid #ffdb11;
  border-radius: 11px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.step:hover { transform: translateY(-3px); box-shadow: 6px 8px 22px rgba(0, 0, 0, .15), 0 0 0 4px rgba(255, 219, 17, .25); }
.step__head { display: flex; align-items: center; gap: 22px; margin-bottom: 10px; }
.step__num { position: relative; flex: none; width: 80px; height: 80px; display: grid; place-items: center; }
.step__num .icon { font-size: 80px; color: var(--green-step); }
.step__num b { position: absolute; color: #fff; font-weight: 600; font-size: 20px; margin-left: -8px; }
.step__title { font-size: 30px; font-weight: 600; color: #141414; }
.step__text { padding-left: 102px; margin-bottom: 20px; color: var(--muted-2); font-size: 16px; }
.step__media { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.step__media a { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.step__media img { max-height: 280px; width: auto; transition: transform .6s var(--ease); }
.step__media a:hover img { transform: scale(1.04); }
.step__media--big img { max-height: 400px; }
.step__form { max-width: 420px; }

/* ---------- Всегда на связи ---------- */
.contact-us { max-width: var(--container); margin: 0 auto; padding: 0 20px 30px; }
.contact-us__channels { text-align: center; font-weight: 700; font-size: 18px; color: #4a4a4a; margin-bottom: 30px; }
.contact-us__grid { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 30px; align-items: start; }
.contact-us__phone img { width: 100%; max-width: 300px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .2)); }
.contact-us__lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; }
.feature { display: flex; gap: 18px; margin-bottom: 24px; }
.feature .icon { flex: none; font-size: 50px; color: var(--green-icon); }
.feature__title { font-size: 18px; font-weight: 700; color: #0d0d0d; margin-bottom: 8px; }
.feature__text { font-weight: 300; color: #000; }

.ready { padding-bottom: 30px; }
.ready .section-note { line-height: 1.5; }

/* ---------- Подвал ---------- */
.footer-cta { padding: 60px 20px; background: url("../img/bg-calc.webp") 50% / cover; }
.footer-cta__box {
  max-width: 560px;
  margin: 0 auto;
  padding: 26px 40px;
  color: #fff;
  background: rgba(26, 61, 77, .55);
  border: 2px solid rgba(255, 255, 255, .42);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.footer-cta__title { font-size: 25px; font-weight: 400; line-height: 1.2; text-align: center; margin-bottom: 16px; }
.footer-cta__contacts { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 16px; font-size: 18px; font-weight: 300; }
.footer-cta__contacts a { text-decoration: none; }
.footer-cta__contacts a:hover { color: var(--yellow-soft); }
.footer-cta__lead { font-size: 18px; font-weight: 300; text-align: center; margin-bottom: 14px; }
.footer-cta .input { color: #fff; background: rgba(76, 130, 152, .3); border: 2px solid rgba(255, 255, 255, .35); font-size: 20px; height: 52px; }
.footer-cta .input::placeholder { color: #c2c2c2; font-weight: 600; }
.footer-cta .form__label { color: #fff; margin-top: 0; }
.footer-cta .form__row { margin: 16px 0 6px; gap: 10px 22px; }
.footer-cta .form-success__text { color: #111; }

.vacancies { background: radial-gradient(circle, #74c5ff, #2e9dd9 47%, #084f9a); color: #fff; }
.vacancies__inner { display: flex; align-items: center; gap: 30px 60px; max-width: var(--container); margin-inline: auto; padding: 24px 20px; }
.vacancies p { font-size: 18px; font-weight: 300; }

.site-footer { background: var(--footer); color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; max-width: var(--container); margin-inline: auto; padding: 30px 20px; }
.site-footer__copy { font-weight: 300; font-size: 14px; line-height: 1.7; }
.site-footer__copy a { text-decoration: none; }
.subscribe { max-width: 420px; }
.subscribe__title { font-size: 20px; }
.subscribe__text { margin: 10px 0; color: #eee; font-size: 13px; }
.subscribe .form__inline .input { border-radius: 11px; border-color: transparent; }
.site-footer__social { display: flex; flex-direction: column; gap: 8px; font-weight: 300; }

/* Боковой ярлык «Расчет стоимости» */
.side-tab {
  position: fixed;
  left: 0;
  top: 40%;
  z-index: 60;
  padding: 20px 6px;
  color: #000;
  background: #ffda09;
  border: 1px solid #bbb;
  border-left: 0;
  border-radius: 15px 0 0 15px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  transition: background-color .3s, box-shadow .3s, padding .3s;
}
.side-tab:hover { background: #ffe44d; box-shadow: var(--glow-yellow); }

/* ---------- Лайтбокс ---------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(10, 12, 16, .94);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto auto; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; color: #ccc; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; touch-action: pan-y; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transition: opacity .25s, transform .25s;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__img.is-loading { opacity: .25; transform: scale(.98); }
.lightbox__caption { min-height: 2.4em; padding: 10px 20px 4px; text-align: center; font-size: 16px; }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); transform: scale(1.08); }
.lightbox__btn .icon { font-size: 32px; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox__thumbs { display: flex; justify-content: center; gap: 8px; padding: 8px 16px 16px; overflow-x: auto; scrollbar-width: thin; }
.lightbox__thumb { flex: none; width: 72px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #222; opacity: .55; cursor: pointer; transition: opacity .2s, border-color .2s; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: .9; }
.lightbox__thumb[aria-current="true"] { opacity: 1; border-color: var(--yellow); }
.lightbox--single .lightbox__nav, .lightbox--single .lightbox__thumbs { display: none; }

/* Видео-окно */
.video-modal {
  width: min(1100px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #000;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(0, 0, 0, .8); }
.video-modal__frame { aspect-ratio: 16 / 9; width: 100%; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }
.video-modal__close { position: absolute; top: -18px; right: -18px; background: var(--yellow); color: #000; }
.video-modal__close:hover { background: #ffd145; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 320px)); }
  .services__grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .hero__qualities .carousel { --per-view: 2; }
  .docs .carousel { --per-view: 3; }
  .photo-slider .carousel { --per-view: 3; }
  .tabs__panel { padding-left: 30px; background-image: none; }
  .step__media img { max-height: 250px; }
  .nav__link { padding-inline: 6px; font-size: 13px; }
}

@media (max-width: 860px) {
  :root { --header-h: 56px; }
  .nav { background: rgba(22, 40, 60, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .nav__inner { justify-content: space-between; }
  .nav__brand { display: block; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
  .nav__toggle, .nav__call {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 10px;
    color: #fff; background: rgba(255, 255, 255, .1);
    text-decoration: none; cursor: pointer;
  }
  .nav__call { background: var(--green); }
  .nav__toggle .icon, .nav__call .icon { font-size: 28px; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 18px;
    background: rgba(41, 67, 124, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .nav__link { padding: 10px 16px; font-size: 16px; }
}

@media (max-width: 767px) {
  .topbar__item--email, .topbar__item--online { display: none; }
  .form__cols { grid-template-columns: 1fr; }
  .contact-us__grid { grid-template-columns: 1fr; }
  .contact-us__phone { display: none; }
  .step__text { padding-left: 0; }
  .step__title { font-size: 24px; }
  .step__media { flex-direction: column; }
  .step__media img { max-height: none; width: 100%; }
  .docs .carousel { --per-view: 2; }
  .photo-slider .carousel { --per-view: 2; }
  .photo-slider { padding-inline: 20px; }
  .vacancies__inner { flex-direction: column; text-align: center; }
  .site-footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__social { align-items: center; }
  .lightbox__stage { padding: 0 8px; }
  .lightbox__nav { background: rgba(0, 0, 0, .4); }
}

@media (max-width: 600px) {
  .cards {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 20px 20px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 78%; scroll-snap-align: center; }
  .card:hover { transform: none; }
  .advantages__grid { grid-template-columns: 1fr; }
  .hero__qualities .carousel { --per-view: 1; }
  .form__inline { flex-direction: column; align-items: stretch; }
  .service { background-size: 46%; background-position: 110% 100%; }
  .service__title, .service__text { max-width: 100%; }
  .service__text { max-width: 62%; }
}

@media (max-width: 479px) {
  body { font-size: 15px; }
  .topbar { justify-content: center; text-align: center; padding-top: 74px; border-bottom: 0; }
  .topbar__brand img { display: none; }
  .topbar__item { padding-inline: 10px; }
  .topbar__big { font-size: 20px; }
  .topbar .socials { justify-content: center; }
  .hero__badges { display: none; }
  .hero__title span { font-size: 24px; }
  .hero__pill { font-size: 19px; }
  .panel { padding: 22px 18px; }
  .tabs__tab { width: 100%; justify-content: center; margin-bottom: 10px; }
  .tabs__tab .icon { transform: rotate(90deg); }
  .tabs__panel { flex-direction: column; padding: 26px 18px 160px; background-position: 50% 100%; background-size: 60%; }
  .tabs__panel--tz { background-image: url("../img/tab-tz.webp"); }
  .tabs__panel--eskiz { background-image: url("../img/tab-eskiz.webp"); background-size: 70%; }
  .tabs__panel--draw { background-image: url("../img/service-arch.webp"); background-size: 60%; background-position: 50% 115%; }
  .tabs__panel--print, .tabs__panel--ship { padding-bottom: 26px; }
  .step { padding: 16px; }
  .step__head { gap: 10px; }
  .step__num { width: 60px; height: 60px; }
  .step__num .icon { font-size: 60px; }
  .step__num b { font-size: 16px; }
  .docs { padding-inline: 20px; }
  .docs .carousel { --per-view: 1; }
  .photo-slider .carousel { --per-view: 1; }
  .photo-slider img { height: 250px; }
  .footer-cta__box { padding: 22px 16px; }
  .side-tab { top: 55%; }
  .carousel__btn--prev { left: 0; }
  .carousel__btn--next { right: 0; }
}

@media (min-width: 861px) {
  .nav__menu { visibility: visible !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .carousel__track { scroll-behavior: auto; }
}

@media print {
  .nav, .side-tab, .video, .carousel__btn, .carousel__dots, .lightbox, .video-modal { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- v3: кнопки первого экрана и FAQ ---------- */
.hero__cta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-bottom: 10px; }
.hero__cta .btn { font-weight: 700; padding: 14px 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.btn--wa { --btn-bg: #187a3f; --btn-fg: #fff; }
.btn--wa:hover { box-shadow: 0 0 0 3px rgba(37, 211, 102, .3), 0 8px 26px rgba(37, 211, 102, .45); }

.faq { max-width: 900px; margin: 0 auto 30px; padding-inline: 20px; }
.faq details {
  margin-bottom: 12px;
  background: #fff;
  border: 2px solid #f0e2a8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  transition: border-color .3s, box-shadow .3s;
}
.faq details:hover { border-color: var(--yellow); }
.faq details[open] { border-color: var(--yellow); box-shadow: 0 8px 24px rgba(255, 183, 0, .18); }
.faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--yellow-tab);
  font-size: 20px; font-weight: 700;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px 18px; color: #444; font-weight: 300; }

@media (max-width: 479px) {
  .hero__cta { justify-content: stretch; }
  .hero__cta .btn { flex: 1 1 100%; }
  .faq summary { font-size: 16px; }
}

/* ---------- MAX, сообщество, живой счётчик ---------- */
.topbar__max {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 3px 10px 3px 4px;
  border-radius: 20px;
  background: rgba(91, 91, 255, .35);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s, box-shadow .25s;
}
.topbar__max:hover { background: rgba(91, 91, 255, .6); box-shadow: 0 0 16px rgba(91, 91, 255, .5); text-decoration: none !important; }
.topbar__max img { width: 20px; height: 20px; border-radius: 6px; }

.btn--max { --btn-bg: linear-gradient(120deg, #2d7fe0, #5b4bff 55%, #8a2fe6); --btn-fg: #fff; background: var(--btn-bg); }
.btn--max img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.btn--max:hover { box-shadow: 0 0 0 3px rgba(91, 91, 255, .3), 0 8px 26px rgba(91, 91, 255, .5); }
.btn--tg { --btn-bg: #186fa8; --btn-fg: #fff; font-weight: 700; padding: 14px 28px; }
.btn--tg:hover { box-shadow: 0 0 0 3px rgba(42, 171, 238, .3), 0 8px 26px rgba(42, 171, 238, .5); }

.counter { display: inline-block; min-width: 2.2em; transition: color .4s, text-shadow .4s; }
.counter.is-up { color: #7dff9b; text-shadow: 0 0 10px rgba(125, 255, 155, .6); }
.counter.is-down { color: #ffd0a0; }

.community {
  padding: 50px 20px;
  color: #fff;
  background: radial-gradient(circle at 20% 0%, #3aa8e6, #1c6fb0 45%, #0d3f73);
}
.community__inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.community__title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; text-transform: uppercase; }
.community__lead { max-width: 760px; margin: 14px auto 30px; font-size: 18px; font-weight: 300; }
.community__topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  text-align: left;
}
.community__topic {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), background-color .4s, box-shadow .4s;
}
.community__topic:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.community__topic .icon { flex: none; font-size: 34px; color: #ffd145; }
.community__topic h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.community__topic p { font-size: 14px; font-weight: 300; opacity: .9; }

.site-footer__group {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; color: #9fd8ff; font-weight: 600; text-decoration: none;
}
.site-footer__group:hover { color: #fff; }
.form-success__group { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .12); color: #111; font-size: 14px; }
.form-success__group a { font-weight: 700; color: #0d3f73; }

.max-modal {
  width: min(420px, 92vw);
  padding: 30px 26px 24px;
  border: 0;
  border-radius: 20px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.max-modal[open] { animation: pop .3s var(--ease); }
.max-modal::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.max-modal__close { position: absolute; top: -16px; right: -16px; background: var(--yellow); color: #000; }
.max-modal__logo { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 16px; box-shadow: 0 8px 24px rgba(91, 91, 255, .4); }
.max-modal__title { font-size: 24px; font-weight: 700; }
.max-modal__text { margin-top: 8px; color: var(--muted); }
.max-modal__phone { margin: 12px 0 18px; font-size: 26px; font-weight: 700; }
.max-modal__phone a { text-decoration: none; }
.max-modal__actions { display: flex; flex-direction: column; gap: 10px; }
.max-modal__actions .btn { width: 100%; }
.max-modal__hint { margin-top: 14px; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) { .community__topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .community__topics { grid-template-columns: minmax(0, 1fr); }
  .community { padding-inline: 16px; }
  .community__topic { min-width: 0; overflow-wrap: anywhere; }
  /* карточки проектов в столбик */
  .cards { display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; overflow: visible; padding: 0 20px; gap: 20px; }
  .card { flex: none; }
}
