/* =========================================================================
   Блоки лендинга ниже первого экрана
   ========================================================================= */

.section { padding-block: 60px; }

.section--dark { position: relative; background: var(--ink-900); overflow: hidden; }
.section--dark::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 43, 232, .13) 0%, rgba(160, 43, 232, 0) 68%);
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }

.section--tint { background: var(--ink-800); }

/* Полоса с кнопкой расчёта между блоками */
.cta-band {
  padding-block: 44px;
  background: var(--ink-900);
  text-align: center;
}

/* Заголовки блоков */
.section-head { max-width: 780px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px 8px;
  border-radius: 999px;
  background: var(--grad);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

.section-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  color: #fff;
}
.section-title em { font-style: normal; color: var(--cream-2); }

.section-sub {
  margin-top: 16px;
  max-width: 58ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(240, 229, 210, .62);
}
.section-head--center .section-sub { margin-inline: auto; }

/* =========================================================================
   Гарантии
   ========================================================================= */
.guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.guarantee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px 28px;
  border: 1px solid rgba(240, 229, 210, .1);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(240, 229, 210, .055), rgba(240, 229, 210, .015));
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.guarantee:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 31, 182, .38);
}

.guarantee__icon {
  width: 44px; height: 44px;
  background: var(--grad);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.guarantee__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--cream);
}
.guarantee__note {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(240, 229, 210, .6);
}
.guarantee__note b { color: var(--cream); font-weight: 600; }

/* Слово основателя */
.founder-note {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 44px);
  align-items: center;
  margin-top: 32px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(240, 229, 210, .1);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(240, 229, 210, .06), rgba(240, 229, 210, .015));
}
.founder-note__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--r-lg);
}
.founder-note__quote {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--cream);
}
.founder-note__quote::before {
  content: "";
  display: block;
  width: 34px; height: 3px;
  margin-bottom: 20px;
  border-radius: 3px;
  background: var(--grad);
}
.founder-note__sign { margin-top: 20px; }
.founder-note__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.founder-note__role { font-size: 13.5px; color: var(--sand); }

/* =========================================================================
   Галерея работ
   ========================================================================= */
.works {
  columns: 4;
  column-gap: 12px;
}
.work {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink-700);
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
  position: relative;
}
.work img {
  width: 100%;
  height: auto;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 9, 8, .5), rgba(11, 9, 8, 0) 45%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.work:hover img { transform: scale(1.04); }
.work:hover::after { opacity: 1; }

/* =========================================================================
   Видеоотзывы
   ========================================================================= */
.clips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(228px, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 229, 210, .28) transparent;
}
.clips::-webkit-scrollbar { height: 6px; }
.clips::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(240, 229, 210, .28); }

.clip {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--ink-700);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  aspect-ratio: 9 / 16;
}
.clip img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 9, 8, .55), rgba(11, 9, 8, 0) 50%);
}
.clip:hover img { transform: scale(1.05); }

.clip__play {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8);
  transition: transform .25s var(--ease);
}
.clip:hover .clip__play { transform: scale(1.1); }
.clip__play svg { width: 20px; height: 20px; margin-left: 3px; color: #fff; }

.clips-hint {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(240, 229, 210, .42);
}

/* Текстовые отзывы */
.reviews-sub {
  margin-top: 44px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--cream);
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.shot {
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--ink-700);
  overflow: hidden;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform .5s var(--ease);
}
.shot:hover img { transform: scale(1.04); }

/* =========================================================================
   Блок расчёта
   ========================================================================= */
.calc {
  position: relative;
  padding: clamp(36px, 5vw, 68px) clamp(24px, 4vw, 64px);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #f6ecda 0%, #e4d5ba 100%);
  color: var(--ink-900);
  overflow: hidden;
}
.calc::before {
  content: "";
  position: absolute;
  right: -80px; bottom: -140px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 31, 182, .18) 0%, rgba(227, 31, 182, 0) 70%);
}
.calc__inner { position: relative; z-index: 1; max-width: 640px; }

.calc__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
}
.calc__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}
.calc__sub {
  margin-top: 14px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(27, 23, 20, .7);
}
.calc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.calc__phone {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-900);
}
.calc__phone span { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 400; color: rgba(27, 23, 20, .58); }

/* =========================================================================
   Подвал
   ========================================================================= */
.footer {
  padding-block: 60px 28px;
  background: var(--ink-900);
  border-top: 1px solid rgba(240, 229, 210, .1);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.footer__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.footer__value { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--cream); }
.footer__value a:hover { color: #fff; }
.footer__phone {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .02em;
}
.footer__about { margin-top: 18px; max-width: 42ch; font-size: 14px; line-height: 1.6; color: rgba(240, 229, 210, .55); }
.footer .socials { margin-top: 14px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(240, 229, 210, .1);
  font-size: 13px;
  color: rgba(240, 229, 210, .42);
}

/* =========================================================================
   Лайтбокс
   ========================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 5, 4, .93);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__stage {
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox__stage img {
  max-width: min(100%, 1100px);
  max-height: calc(100svh - clamp(80px, 14vw, 150px));
  width: auto; height: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.lightbox__stage iframe {
  width: min(100%, calc((100svh - clamp(80px, 14vw, 150px)) * 0.5625));
  aspect-ratio: 9 / 16;
  max-height: calc(100svh - clamp(80px, 14vw, 150px));
  border: 0;
  border-radius: var(--r-lg);
  background: #000;
}

.lightbox__caption {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  max-width: min(90%, 620px);
  font-size: 13.5px;
  text-align: center;
  color: rgba(240, 229, 210, .6);
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid rgba(240, 229, 210, .18);
  border-radius: 50%;
  background: rgba(240, 229, 210, .07);
  color: var(--cream);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(240, 229, 210, .18); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__prev { left: 18px; top: 50%; margin-top: -23px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -23px; }
.lightbox__prev:hover { transform: translateX(-3px); }
.lightbox__next:hover { transform: translateX(3px); }
.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next { display: none; }

/* =========================================================================
   Адаптив блоков
   ========================================================================= */
@media (max-width: 1100px) {
  .works { columns: 3; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .founder-note { grid-template-columns: minmax(0, 1fr); }
  .founder-note__photo { aspect-ratio: 16 / 9; object-position: 50% 32%; }
  .calc__actions .btn { width: 100%; }
  .shots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}

@media (max-width: 760px) {
  .works { columns: 2; }
}

@media (max-width: 560px) {
  .works { columns: 2; }
  .cta-band .btn { width: 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .clips { grid-auto-columns: minmax(200px, 78%); }
}
