/* ================================================
   Shared / Utility
   ================================================ */

/* Mobile font bump — unified readable sizes */
@media(max-width:768px){
  /* Body text: 17px minimum */
  p,li,
  .advantages__text,
  .types__desc,
  .quiz__option span,
  .quiz__subtitle,
  .video-carousel p,
  .portfolio__tag,
  .reviews p,
  .about li,
  .faq__answer p,
  .contact-form p,
  .footer p,.footer__desc,
  .ba2__sub,
  .sketch__sub{font-size:17px!important}

  /* Sub-headings: 20px */
  .advantages__title,
  .faq__question,
  .types__price,
  .ba2__form-title,
  .sketch__tool{font-size:18px!important}

  /* Types card names — bigger on mobile */
  .types__name{font-size:26px!important}

  /* Section descriptions: 18px */
  .section__desc,
  .video-carousel .container>p,
  .portfolio .container>p,
  .reviews .container>p,
  .about .container>p{font-size:18px!important}

  /* Quiz question */
  .quiz__question{font-size:22px!important}

  /* Form inputs */
  .form__input,.form__textarea,
  .quiz__input,.quiz__phone,.quiz__name-input{font-size:17px!important}
}

.topbar__address-short{display:none}
@media(max-width:768px){.topbar__address-full{display:none}.topbar__address-short{display:inline}
.topbar__phone,.footer__link[href^="tel:"]{text-decoration:underline;text-underline-offset:3px}}

[id] {
  scroll-margin-top: 30px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.section-title {
  font-size: 33px;
  font-weight: 700;
  color: #0800dd;
  line-height: 1.25;
  margin-bottom: 32px;
}

.section-title--hero {
  font-size: 52px;
  font-weight: 400;
  color: #262626;
  text-align: center;
  line-height: 1.1;
}
.section-title--hero span {
  font-weight: 700;
}

.section-subtitle {
  font-size: 19px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 36px;
  transition: background .2s, transform .15s;
  cursor: pointer;
}

.btn--yellow {
  background: #ffc200;
  color: #000;
}

.btn--yellow:hover {
  background: #e6af00;
  transform: translateY(-1px);
}

.btn--white {
  background: #fff;
  color: #0800dd;
  border: 2px solid #0800dd;
}

.btn--white:hover {
  background: #0800dd;
  color: #fff;
}

.btn--gradient {
  background: linear-gradient(90deg, #0800dd 0%, #6300db 100%);
  color: #fff;
}

.btn--gradient:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ================================================
   Advantages (shared for both sections)
   ================================================ */
.advantages {
  padding: 60px 0 48px;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.advantages__card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.advantages__icon {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.advantages__icon svg,
.advantages__icon img {
  width: 100%;
  height: 100%;
}

.advantages__title {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  line-height: 1.3;
}

.advantages__text {
  font-size: 17px;
  color: #333;
  line-height: 1.65;
}

/* ================================================
   Types of Glazing
   ================================================ */
.types {
  padding: 56px 0 64px;
  background: #f8f8ff;
}

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

.types__card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.types__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.types__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.types__body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.types__name {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.25;
}

.types__price {
  font-size: 20px;
  font-weight: 700;
  color: #0800dd;
  margin-bottom: 12px;
}

.types__price span {
  font-size: 24px;
}

.types__desc {
  font-size: 17px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.types__btn {
  align-self: flex-start;
}

/* ================================================
   Quiz
   ================================================ */
.quiz {
  padding: 56px 0 64px;
}

.quiz__box {
  max-width: 800px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, .1);
  padding: 36px 40px 40px;
  position: relative;
}

.quiz__progress {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}

.quiz__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0800dd 0%, #6300db 100%);
  border-radius: 3px;
  transition: width .3s ease;
  width: 0;
}

.quiz__step-number {
  font-size: 14px;
  color: #717171;
  margin-bottom: 24px;
}

.quiz__step {
  display: none;
}

.quiz__step.active {
  display: block;
}

.quiz__question {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  line-height: 1.35;
}

.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quiz__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 17px;
  color: #111;
}

.quiz__option:hover {
  border-color: #0800dd;
  background: rgba(8, 0, 221, .04);
}

.quiz__option.selected {
  border-color: #0800dd;
  background: rgba(8, 0, 221, .07);
}

.quiz__option input[type="radio"],
.quiz__option input[type="checkbox"] {
  accent-color: #0800dd;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.quiz__option input:checked + span {
  font-weight: 600;
}

.quiz__field {
  margin-bottom: 10px;
}

.quiz__input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: #111;
  transition: border-color .2s;
  background: #fff;
}

.quiz__input:focus {
  outline: none;
  border-color: #0800dd;
}

.quiz__hint {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.quiz__phone,
.quiz__name-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 18px;
  color: #111;
  transition: border-color .2s;
  background: #faf9f6;
  margin-bottom: 12px;
}

.quiz__phone:focus,
.quiz__name-input:focus {
  outline: none;
  border-color: #0800dd;
  background: #fff;
}

.quiz__phone.error {
  border-color: #e74c3c;
}

.quiz__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz__fields .quiz__phone,
.quiz__fields .quiz__name-input {
  margin-bottom: 0;
}

.quiz__submit {
  width: 100%;
  padding: 18px 36px;
  font-size: 17px;
  font-weight: 700;
  margin-top: 16px;
}

.quiz__subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.quiz__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.quiz__consent input {
  margin-top: 2px;
  accent-color: #0800dd;
  flex-shrink: 0;
}

.quiz__consent a {
  color: #0800dd;
}

.quiz__consent a:hover {
  color: #0600b8;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 16px;
}

.quiz__btn-prev,
.quiz__btn-next {
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  transition: background .2s, transform .15s;
  cursor: pointer;
}

.quiz__btn-prev {
  background: #f0f0f0;
  color: #333;
}

.quiz__btn-prev:hover:not(:disabled) {
  background: #e0e0e0;
}

.quiz__btn-prev:disabled {
  opacity: .4;
  cursor: default;
}

.quiz__btn-next {
  background: #ffc200;
  color: #000;
  margin-left: auto;
}

.quiz__btn-next:hover {
  background: #e6af00;
  transform: translateY(-1px);
}

.quiz__success {
  display: none;
  text-align: center;
  padding: 48px 0;
}

.quiz__success.active {
  display: block;
}

.quiz__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0800dd 0%, #6300db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz__success-icon svg {
  width: 32px;
  height: 32px;
}

.quiz__success-title {
  font-size: 28px;
  font-weight: 700;
  color: #0800dd;
  margin-bottom: 12px;
}

.quiz__success p {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}

/* ================================================
   Video Carousel
   ================================================ */
.video-carousel {
  padding: 56px 0 64px;
  background: #f8f8ff;
}

.video-carousel__slider {
  position: relative;
}

.video-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.video-carousel__track::-webkit-scrollbar {
  display: none;
}

.video-carousel__item {
  flex: 0 0 calc((100% - 20px) / 2);
  min-width: 280px;
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
}

.video-carousel__item:hover .video-carousel__play {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-carousel__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.video-carousel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 194, 0, .9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
  pointer-events: none;
}

.video-carousel__play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #000;
  margin-left: 3px;
}

.video-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 28px;
  line-height: 1;
  padding-bottom: 2px;
  transition: background .2s;
  z-index: 2;
  cursor: pointer;
}

.video-carousel__btn:hover {
  background: #f0f0f0;
}

.video-carousel__btn--prev {
  left: -16px;
}

.video-carousel__btn--next {
  right: -16px;
}

.video-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.video-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #888;
  transition: background .2s;
  cursor: pointer;
  position: relative;
}

.video-carousel__dot::after {
  content: '';
  position: absolute;
  inset: -14px -3px;
}

.video-carousel__dot.active {
  background: #0800dd;
}

/* ================================================
   Portfolio
   ================================================ */
.portfolio {
  padding: 56px 0 64px;
}

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

.portfolio__card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.portfolio__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .15);
}

.portfolio__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 15px;
  color: #555;
  order: -1;
  margin-bottom: 8px;
}

.portfolio__type {
  font-size: 19px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 14px;
}

.portfolio__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0800dd;
}

.portfolio__tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.portfolio__tag--warm {
  color: #c45000;
}

.portfolio__tag--cold {
  color: #0800dd;
}

.portfolio__btn {
  margin-top: auto;
  padding: 10px 24px;
  font-size: 14px;
  align-self: flex-start;
}

/* ================================================
   About Company
   ================================================ */
.about {
  padding: 56px 0 64px;
  background: #f8f8ff;
}

.about__inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.about__carousel {
  flex: 0 0 45%;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.about__track::-webkit-scrollbar {
  display: none;
}

.about__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.about__slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.about__carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 26px;
  line-height: 1;
  padding-bottom: 2px;
  transition: background .2s;
  z-index: 2;
  cursor: pointer;
}

.about__carousel-btn:hover {
  background: #fff;
}

.about__carousel-btn--prev {
  left: 12px;
}

.about__carousel-btn--next {
  right: 12px;
}

.about__carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.about__carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #888;
  transition: background .2s;
  cursor: pointer;
}

.about__carousel-dot.active {
  background: #0800dd;
}

.about__title-mobile {
  display: none;
  margin-bottom: 0;
}

.about__info {
  flex: 1;
}

.about__facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about__fact {
  padding: 12px 0 12px 24px;
  position: relative;
  font-size: 18px;
  color: #222;
  line-height: 1.55;
}

.about__fact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0800dd;
}

.about__fact:last-child {
  margin-bottom: 0;
}

.about__fact-number {
  display: inline;
  font-weight: 800;
  color: #0800dd;
  font-size: 22px;
  white-space: nowrap;
}

/* ================================================
   Reviews
   ================================================ */
.reviews {
  padding: 56px 0 64px;
}

.reviews__slider {
  position: relative;
}

.reviews__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.reviews__slide {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  background: #fff;
}

.reviews__slide img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.reviews__slide--vertical img,
.reviews__slide--horizontal img {
  object-fit: cover;
}

/* Если у компании задан reviews_aspect — слайды фиксированы по соотношению,
   а сами скрины contain-ятся (на разной высоте остаётся белый фон). */
.reviews--fixed-aspect .reviews__slide {
  aspect-ratio: var(--reviews-aspect);
  border-radius: 16px;
  overflow: hidden;
}
.reviews--fixed-aspect .reviews__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;       /* выравниваем все скрины по верху, белое поле — снизу */
}

.reviews__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 28px;
  line-height: 1;
  padding-bottom: 2px;
  transition: background .2s;
  z-index: 2;
  cursor: pointer;
}

.reviews__btn:hover {
  background: #f0f0f0;
}

.reviews__btn--prev {
  left: -16px;
}

.reviews__btn--next {
  right: -16px;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.reviews__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #888;
  transition: background .2s;
  cursor: pointer;
  position: relative;
}

.reviews__dot::after {
  content: '';
  position: absolute;
  inset: -14px -3px;
}

.reviews__dot.active {
  background: #0800dd;
}

/* ================================================
   FAQ
   ================================================ */
.faq {
  padding: 56px 0 64px;
  background: #f8f8ff;
}

.faq__list {
  max-width: 100%;
}

.faq__item {
  border-bottom: 1px solid #ddd;
}

.faq__item:first-child {
  border-top: 1px solid #ddd;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 500;
  color: #0800dd;
  cursor: pointer;
  user-select: none;
  transition: color .2s;
}

.faq__question:hover {
  color: #6300db;
}

.faq__arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__arrow::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #0800dd;
  border-bottom: 2px solid #0800dd;
  transform: rotate(-45deg);
  margin-top: 4px;
  transition: transform .3s;
}

.faq__item.active .faq__arrow::after {
  transform: rotate(45deg);
  margin-top: -4px;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding: 0 0 18px;
}

.faq__answer p {
  font-size: 17px;
  color: #333;
  line-height: 1.6;
}

.faq__answer a {
  color: #0800dd;
  text-decoration: underline;
}

.faq__answer a:hover {
  color: #6300db;
}

/* ================================================
   Contact Form
   ================================================ */
.contact-form {
  padding: 56px 0 64px;
}

.contact-form__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, .1);
  padding: 32px;
  overflow: hidden;
}

.contact-form__photo {
  grid-row: 1 / -1;
}

.contact-form__photo img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.contact-form__title {
  font-size: 28px;
  font-weight: 700;
  color: #0800dd;
  margin-bottom: 8px;
}

.contact-form__subtitle {
  font-size: 17px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-form__row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form__row > * {
  flex: 1;
  min-width: 0;
}

.form__field {
  margin-bottom: 16px;
}

.form__input,
.form__textarea {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: #f4f5f7;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: #111;
  transition: border-color .2s, background .2s;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: #0800dd;
  background: #fff;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #717171;
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__file {
  position: relative;
}

.form__file input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.form__file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.form__file-label:hover {
  border-color: #0800dd;
  color: #0800dd;
}

.form__file-label svg {
  width: 18px;
  height: 18px;
}

.form__file-name {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0800dd;
  flex-shrink: 0;
  margin-top: 1px;
}

.form__checkbox a {
  color: #0800dd;
}

.form__checkbox a:hover {
  color: #6300db;
}

.form__submit {
  display: block;
  width: 100%;
  padding: 16px 36px;
  background: #ffc200;
  color: #000;
  font-size: 17px;
  font-weight: 700;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
  cursor: pointer;
}

.form__submit:hover {
  background: #e6af00;
  transform: translateY(-1px);
}

.form__success {
  display: none;
  text-align: center;
  padding: 48px 0;
}

.form__success.active {
  display: block;
}

.form__success h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0800dd;
  margin-bottom: 12px;
}

.form__success p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}
.form__success-icon {
  margin-bottom: 16px;
}

/* File upload spinner */
.form__file-spinner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form__file-spinner::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin .6s linear infinite;
}
.form__file-preview {
  position: relative;
}

/* Submit button spinner */
.form__btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: form-spin .6s linear infinite;
  vertical-align: middle;
}
@keyframes form-spin { to { transform: rotate(360deg); } }

/* ================================================
   Footer
   ================================================ */
.footer {
  background: linear-gradient(90deg, #0800dd 0%, #6300db 100%);
  padding: 40px 0 32px;
  color: #fff;
}

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

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__logo {
  margin-bottom: 8px;
}

.footer__logo img {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
}

.footer__text {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
}

.footer__heading {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer__link,
.footer__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #fff;
  transition: color .2s;
}

.footer__link:hover {
  color: #ffc200;
}

.footer__max {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__link svg,
.footer__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

.footer__policy {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
}

.footer__policy:hover {
  color: #ffc200;
}

/* ================================================
   Popups — Base
   ================================================ */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s, visibility .3s;
}

.popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
}

.popup__wrapper {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  transform: scale(.95);
  transition: transform .3s;
}

.popup.active .popup__wrapper {
  transform: scale(1);
}

.popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  line-height: 1;
  z-index: 2;
}
.popup__close:hover {
  background: rgba(0,0,0,0.7);
}


.popup__title {
  font-size: 26px;
  font-weight: 700;
  color: #0800dd;
  margin-bottom: 20px;
  padding-right: 32px;
}

/* ================================================
   Popup — Video
   ================================================ */
.popup-video {
  background: rgba(0, 0, 0, .85);
}

.popup-video .popup__wrapper {
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.popup-video .popup__close {
  top: -44px;
  right: 0;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
}

.popup-video .popup__close:hover {
  background: rgba(255, 255, 255, .3);
  color: #fff;
}

.popup-video--vertical .popup__wrapper {
  max-width: 400px;
  width: auto;
  height: 85vh;
  aspect-ratio: 9 / 16;
}

.popup-video--vertical .popup__close {
  top: 8px;
  right: -48px;
}

.popup-video--horizontal .popup__wrapper {
  max-width: 800px;
  width: 90%;
  aspect-ratio: 16 / 9;
}

.popup-video__body {
  width: 100%;
  height: 100%;
}

.popup-video__body video,
.popup-video__body iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
  display: block;
}

/* ================================================
   Popup — Privacy
   ================================================ */
.popup-privacy {
  z-index: 1100;
}

.popup-privacy .popup__wrapper {
  max-width: 640px;
}

.popup-privacy__body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 18px 0 8px;
}

.popup-privacy__body p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 8px;
}

.popup-privacy__body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 10px;
}

.popup-privacy__body li {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.popup-privacy__date {
  margin-top: 18px;
  font-size: 13px;
  font-style: italic;
  color: #717171;
}

/* ================================================
   Popup — Consult / Form
   ================================================ */
.popup-consult .popup__wrapper {
  max-width: 480px;
}

.popup-consult .form__input,
.popup-consult .form__textarea {
  background: #ecf1f7;
}

.popup-consult .form__input:focus,
.popup-consult .form__textarea:focus {
  background: #fff;
}

/* === Popup со списком офисов === */
.popup-offices .popup__wrapper {
  max-width: 520px;
}
.popup-offices__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.popup-offices__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #f4f6fb;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #1a1a1a;
}
.popup-offices__item svg {
  flex: 0 0 auto;
  color: #0800dd;
  margin-top: 2px;
}
.popup-offices__footer {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid #e6e8ee;
}
.popup-offices__phone {
  font-size: 22px;
  font-weight: 700;
  color: #0800dd;
  text-decoration: none;
}
.popup-offices__hours {
  font-size: 14px;
  color: #555;
}

/* ================================================
   Popup — Portfolio "Хочу такое же"
   ================================================ */
.popup-portfolio .popup__wrapper {
  max-width: 720px;
}

.popup-portfolio__inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.popup-portfolio__preview {
  flex: 0 0 260px;
}

.popup-portfolio__image {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.popup-portfolio__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-top: 10px;
  line-height: 1.35;
}

.popup-portfolio__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 14px;
}

.popup-portfolio__meta .portfolio__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0800dd;
}

.popup-portfolio__meta .portfolio__tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.popup-portfolio__meta .portfolio__tag--warm {
  color: #c45000;
}

.popup-portfolio__meta .portfolio__tag--cold {
  color: #0800dd;
}

.popup-portfolio__form-wrap {
  flex: 1;
  min-width: 0;
}

.popup-portfolio__form .form__textarea {
  min-height: 80px;
}

.form__file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.form__file-preview {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
}

.form__file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form__file-preview--doc {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border: 1px solid #ddd;
}

.form__file-preview-ext {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
}

.form__file-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

/* ================================================
   RESPONSIVE — 1280px
   ================================================ */
@media (max-width: 1280px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .advantages__icon {
    width: 80px;
    height: 80px;
  }

  .about__inner {
    gap: 36px;
  }

  .contact-form__inner {
    padding: 32px;
    grid-template-columns: 240px 1fr;
    gap: 0 36px;
  }
}

/* ================================================
   RESPONSIVE — 1024px
   ================================================ */
@media (max-width: 1024px) {
  .advantages__icon {
    width: 72px;
    height: 72px;
  }

  .types__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .video-carousel__item {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: 240px;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about__carousel {
    display: none;
  }

  .about__inner {
    flex-direction: column;
    gap: 0;
  }

  .about__title-mobile {
    display: block;
    margin-bottom: 0;
  }

  .about__info .section-title {
    display: none;
  }

  .reviews__slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .reviews__btn--prev {
    left: 8px;
  }

  .reviews__btn--next {
    right: 8px;
  }

  .footer__grid {
    gap: 24px;
  }
}

/* ================================================
   RESPONSIVE — 768px
   ================================================ */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  /* Advantages */
  .advantages {
    padding: 44px 0 36px;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .advantages__icon {
    width: 64px;
    height: 64px;
  }

  .advantages__title {
    font-size: 20px;
  }

  .advantages__text {
    font-size: 16px;
  }

  /* Types */
  .types {
    padding: 44px 0 48px;
  }

  .types__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .types__name {
    font-size: 22px;
  }

  .types__desc {
    font-size: 16px;
  }

  /* Quiz */
  .quiz {
    padding: 44px 0 48px;
  }

  .quiz__box {
    padding: 24px 20px 28px;
    max-width: 100%;
  }

  .quiz__question {
    font-size: 20px;
  }

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

  .quiz__btn-prev,
  .quiz__btn-next {
    padding: 12px 24px;
    font-size: 16px;
  }

  /* Video carousel */
  .video-carousel {
    padding: 44px 0 48px;
  }

  .video-carousel__item {
    flex: 0 0 100%;
    min-width: 0;
  }

  .video-carousel__btn {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }

  .video-carousel__btn--prev {
    left: 4px;
  }

  .video-carousel__btn--next {
    right: 4px;
  }

  /* Portfolio */
  .portfolio {
    padding: 44px 0 48px;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .portfolio__type {
    font-size: 17px;
  }

  .portfolio__meta {
    font-size: 14px;
  }

  /* About */
  .about {
    padding: 44px 0 48px;
  }

  .about__inner {
    flex-direction: column;
    gap: 0;
  }

  .about__title-mobile {
    display: block;
    order: -1;
    margin-bottom: 0;
  }

  .about__info .section-title {
    display: none;
  }

  .about__info {
    order: 1;
  }

  /* Reviews */
  .reviews {
    padding: 44px 0 48px;
  }

  .reviews__slide {
    flex: 0 0 75%;
  }

  .reviews__btn--prev {
    left: 4px;
  }

  .reviews__btn--next {
    right: 4px;
  }

  /* FAQ */
  .faq {
    padding: 44px 0 48px;
  }

  .faq__question {
    font-size: 18px;
    padding: 16px 0;
  }

  .faq__answer p {
    font-size: 16px;
  }

  /* Contact form */
  .contact-form {
    padding: 44px 0 48px;
  }

  .contact-form__inner {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    padding: 28px 20px;
  }

  .contact-form__photo {
    grid-row: 1;
    align-self: center;
  }

  .contact-form__photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    aspect-ratio: 1;
  }

  .contact-form__header {
    align-self: center;
  }

  .contact-form__title {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .contact-form__subtitle {
    font-size: 15px;
    margin-bottom: 0;
  }

  .contact-form__form {
    grid-column: 1 / -1;
  }

  .contact-form__row {
    flex-direction: column;
    gap: 0;
  }

  /* Footer */
  .footer {
    padding: 32px 0 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Popup Portfolio */
  .popup-portfolio .popup__close {
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    z-index: 2;
  }

  .popup-portfolio .popup__close:hover {
    background: rgba(0, 0, 0, .7);
    color: #fff;
  }

  .popup-portfolio .popup__wrapper {
    max-width: 100%;
    width: 94%;
  }

  .popup-portfolio__inner {
    flex-direction: column;
    gap: 16px;
  }

  .popup-portfolio__preview {
    flex: none;
  }

  .popup-portfolio__image {
    width: 100%;
    height: auto;
    max-height: 280px;
    aspect-ratio: auto;
  }

  .popup-portfolio__title {
    margin-top: 8px;
    font-size: 16px;
  }

  .popup-portfolio__meta {
    margin-top: 6px;
  }

  /* Popups */
  .popup__wrapper {
    padding: 28px 20px;
    width: 94%;
  }

  .popup__title {
    font-size: 22px;
  }

  .popup-video--vertical .popup__wrapper {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 85vh;
  }

  .popup-video--horizontal .popup__wrapper {
    max-width: 100%;
    width: 100%;
  }

  .popup-video .popup__close {
    top: -40px;
    right: 4px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .popup-video--vertical .popup__close {
    right: 8px;
    top: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, .5);
  }
}

/* ================================================
   RESPONSIVE — 480px
   ================================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 25px;
    margin-bottom: 20px;
  }

  /* Advantages */
  .advantages {
    padding: 36px 0 28px;
  }

  .advantages__icon {
    width: 52px;
    height: 52px;
  }

  .advantages__title {
    font-size: 19px;
  }

  .advantages__text {
    font-size: 15px;
  }

  /* Types */
  .types {
    padding: 36px 0 40px;
  }

  .types__name {
    font-size: 20px;
  }

  .types__price {
    font-size: 17px;
  }

  .types__price span {
    font-size: 21px;
  }

  .types__desc {
    font-size: 15px;
  }

  .types__body {
    padding: 16px 16px 20px;
  }

  /* Quiz */
  .quiz {
    padding: 36px 0 40px;
  }

  .quiz__box {
    padding: 20px 16px 24px;
  }

  .quiz__question {
    font-size: 18px;
  }

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

  .quiz__option {
    padding: 12px 14px;
    font-size: 16px;
  }

  .quiz__nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .quiz__btn-prev,
  .quiz__btn-next {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .quiz__btn-next {
    margin-left: 0;
  }

  /* Video carousel */
  .video-carousel {
    padding: 36px 0 40px;
  }

  .video-carousel__item {
    flex: 0 0 100%;
    min-width: 0;
  }

  .video-carousel__play {
    width: 44px;
    height: 44px;
  }

  .video-carousel__play::after {
    border-width: 8px 0 8px 14px;
  }

  /* Portfolio */
  .portfolio {
    padding: 36px 0 40px;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio__body {
    padding: 14px 16px 16px;
  }

  /* About */
  .about {
    padding: 36px 0 40px;
  }

  .about__fact {
    font-size: 16px;
    padding: 10px 0 10px 20px;
  }

  .about__fact-number {
    font-size: 18px;
  }

  /* Reviews */
  .reviews {
    padding: 36px 0 40px;
  }

  .reviews__slide {
    flex: 0 0 85%;
  }

  .reviews__btn {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }

  /* FAQ */
  .faq {
    padding: 36px 0 40px;
  }

  .faq__question {
    font-size: 17px;
    padding: 14px 0;
  }

  .faq__answer p {
    font-size: 15px;
  }

  /* Contact form */
  .contact-form {
    padding: 28px 0 40px;
  }

  .contact-form__inner {
    padding: 24px 16px;
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .contact-form__photo img {
    width: 64px;
    height: 64px;
  }

  .contact-form__title {
    font-size: 20px;
  }

  .contact-form__subtitle {
    font-size: 14px;
  }

  .form__input,
  .form__textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  .form__submit {
    padding: 14px 28px;
    font-size: 17px;
  }

  /* Footer */
  .footer {
    padding: 28px 0 20px;
  }

  .footer__link,
  .footer__item {
    font-size: 16px;
  }

  .footer__heading {
    font-size: 17px;
  }

  /* Popups */
  .popup__wrapper {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .popup__title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .popup__close {
    width: 44px;
    height: 44px;
    font-size: 30px;
    top: 10px;
    right: 10px;
  }

  /* Hero → Advantages gap */
  .hero {
    margin-bottom: -30px;
  }

  .section-title--hero {
    font-size: 32px;
  }
}

/* ========== BA2 (До/После) ========== */
.ba2{padding:80px 0;clip-path:inset(0 0 0 -100%)}
.ba2__container{max-width:1328px;margin:0 auto;padding:0 24px;position:relative}
@media(max-width:1441px){.ba2__container{max-width:1200px}}
@media(max-width:375px){.ba2__container{padding:0 10px}}
.ba2__title{font-size:64px;font-family:'TT',sans-serif;font-weight:400;color:#262626;line-height:110%;text-align:center;margin-bottom:12px}
.ba2__title span{font-weight:700}
.ba2__meter{display:flex;align-items:center;gap:16px;margin-bottom:36px;padding:0 4px}
.ba2__meter-label{font-size:16px;font-family:'TT',sans-serif;font-weight:600;color:#888;white-space:nowrap;flex-shrink:0;letter-spacing:0.3px;text-transform:uppercase}
.ba2__meter-track{flex:1;height:6px;border-radius:3px;background:#e8e5df;position:relative;overflow:hidden}
.ba2__meter-fill{position:absolute;inset:0;border-radius:3px;background:linear-gradient(90deg,#ffc200,#e6af00);transform:scaleX(0);transform-origin:left;transition:transform 0.08s ease-out}
.ba2__meter-val{font-size:22px;font-family:'TT',sans-serif;font-weight:700;color:#222;min-width:52px;text-align:right;flex-shrink:0;transition:color 0.3s}
.ba2__meter-val.is-zero{color:#bbb}
.ba2__wrap{position:relative;border-radius:16px;height:420px;overflow:hidden;user-select:none;-webkit-user-select:none;box-shadow:0 12px 48px rgba(8,0,221,0.12),0 2px 8px rgba(0,0,0,0.06)}
.ba2__layer{position:absolute;inset:0}
.ba2__layer img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.ba2__before{z-index:2;clip-path:inset(0 97% 0 0)}
.ba2__tag{position:absolute;bottom:16px;padding:6px 18px;border-radius:20px;font-size:14px;font-family:'TT',sans-serif;font-weight:600;letter-spacing:0.5px;text-transform:uppercase;pointer-events:none}
.ba2__tag--before{left:25%;background:rgba(100,100,100,0.85);color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ba2__tag--after{right:25%;background:#ffc200;color:#000;font-weight:700}
.ba2__line{position:absolute;top:0;bottom:0;left:3%;z-index:10;width:3px;transform:translateX(-50%);background:#fff;box-shadow:0 0 12px rgba(0,0,0,0.3);pointer-events:none}
.ba2__grip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 16px rgba(0,0,0,0.2);pointer-events:auto;cursor:col-resize}
.ba2__track{position:relative;margin:16px 0 0;height:56px}
.ba2__track-rail{position:absolute;top:50%;left:0;right:0;height:4px;background:#e8e5df;border-radius:2px;transform:translateY(-50%)}
.ba2__track-fill{position:absolute;top:50%;left:0;height:4px;background:linear-gradient(90deg,#ffc200,#e6af00);border-radius:2px;transform:translateY(-50%);width:3%;transition:width 0.08s ease-out}
.ba2__handle{position:absolute;top:50%;left:3%;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:50%;background:#ffc200;display:flex;align-items:center;justify-content:center;cursor:grab;box-shadow:0 4px 20px rgba(0,0,0,0.35);z-index:11;touch-action:none}
.ba2__sub{font-size:20px;font-family:'TT',sans-serif;color:#888;text-align:left;margin-top:8px}
.ba2__form-card{margin:20px 0 0;background:#fff;border-radius:16px;padding:18px 24px 16px;box-shadow:0 6px 32px rgba(8,0,221,0.07),0 2px 6px rgba(0,0,0,0.04)}
.ba2__form-title{font-family:'TT',sans-serif;font-weight:600;font-size:17px;color:#262626;text-align:left;margin-bottom:14px;line-height:130%}
.ba2__row{display:flex;gap:10px;align-items:stretch}
.ba2__drop{border:2px dashed #e5e2dd;border-radius:12px;padding:0 14px;cursor:pointer;transition:border-color .2s,background .2s;background:#faf9f6;position:relative;flex:1;min-width:0}
.ba2__drop:hover,.ba2__drop.is-over{border-color:#0800dd;background:#f0f0ff}
.ba2__drop-inner{display:flex;align-items:center;gap:10px;height:100%;min-height:46px}
.ba2__drop-icon{flex-shrink:0;color:#0800dd}
.ba2__drop-icon svg{width:24px;height:24px}
.ba2__drop-text{font-family:'TT',sans-serif;font-size:13px;color:#888;line-height:130%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ba2__drop-text span{color:#0800dd;cursor:pointer}
.ba2__drop-input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ba2__previews{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ba2__previews:empty{display:none}
.ba2__thumb{position:relative;width:52px;height:52px;border-radius:8px;overflow:hidden;background:#f2f0ed}
.ba2__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ba2__thumb-del{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background:rgba(0,0,0,0.6);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;line-height:1;transition:background .2s}
.ba2__thumb-del:hover{background:rgba(8,0,221,0.9)}
.ba2__error{font-family:'TT',sans-serif;font-size:13px;color:#e74c3c;margin-top:6px;display:none}
.ba2__phone{width:200px;flex-shrink:0;height:46px;border:2px solid #e5e2dd;border-radius:12px;padding:0 14px;font-family:'TT',sans-serif;font-weight:600;font-size:15px;color:#262626;background:#faf9f6;transition:border-color .2s;outline:none}
.ba2__phone:focus{border-color:#0800dd}
.ba2__phone::placeholder{color:#aaa;font-family:'TT',sans-serif;font-weight:400}
.ba2__submit{height:46px;padding:0 24px;border-radius:25px;background:#ffc200;color:#000;font-family:'TT',sans-serif;font-weight:700;font-size:15px;border:none;cursor:pointer;transition:background .2s,transform .15s;white-space:nowrap;flex-shrink:0}
.ba2__submit:hover{background:#e6af00;transform:translateY(-1px)}
.ba2__submit:hover{opacity:0.9}
.ba2__submit:disabled{opacity:0.5;cursor:not-allowed}
.ba2__agree{font-family:'TT',sans-serif;font-size:11px;color:#888;text-align:left;margin-top:10px;line-height:140%;display:flex;gap:8px;align-items:flex-start}
.ba2__agree span{color:#888}
.ba2__agree a{color:#0800dd;text-decoration:underline}
.ba2__consent{margin-top:2px;flex-shrink:0;cursor:pointer}
.ba2__thumb-loader{position:absolute;inset:0;background:rgba(0,0,0,0.45);display:flex;align-items:center;justify-content:center;border-radius:8px}
.ba2__thumb-spin{display:block;width:20px;height:20px;border:2.5px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:ba2-spin .6s linear infinite}
@keyframes ba2-spin{to{transform:rotate(360deg)}}
@media(max-width:1441px){.ba2{padding:48px 0}.ba2__wrap{height:380px}.ba2__track{height:48px;margin-top:10px}.ba2__meter{margin-bottom:24px}.ba2__sub{font-size:18px;margin-top:6px}.ba2__form-card{margin-top:16px}}
@media(max-width:1100px){.ba2{padding:36px 0}.ba2__wrap{height:340px}.ba2__track{height:44px;margin-top:8px}.ba2__meter{margin-bottom:16px}.ba2__meter-label{font-size:14px}.ba2__meter-val{font-size:20px}.ba2__sub{font-size:16px;margin-top:4px}.ba2__form-card{margin-top:12px;padding:14px 18px 12px}.ba2__form-title{font-size:15px;margin-bottom:10px}.ba2__phone{width:170px}.ba2__submit{padding:0 18px;font-size:14px}}
@media(max-width:767.98px){.ba2{padding:48px 0}.ba2__sub{font-size:16px;text-align:center}.ba2__wrap{height:auto;aspect-ratio:16/9;border-radius:12px;cursor:default}.ba2__grip{display:none}.ba2__tag{font-size:11px;padding:5px 12px;bottom:12px}.ba2__tag--before{left:20%}.ba2__tag--after{right:20%}.ba2__meter{gap:10px}.ba2__meter-label{font-size:12px}.ba2__meter-val{font-size:18px;min-width:44px}.ba2__handle{width:48px;height:48px}.ba2__form-card{padding:20px 16px 18px;border-radius:16px;margin-top:20px;max-width:100%}.ba2__form-title{font-size:18px;margin-bottom:16px}.ba2__row{flex-direction:column;gap:10px}.ba2__drop{padding:16px 14px}.ba2__drop-inner{min-height:auto}.ba2__drop-icon svg{width:28px;height:28px}.ba2__drop-text{font-size:14px;white-space:normal}.ba2__phone{width:100%;height:48px;font-size:16px}.ba2__submit{height:48px;font-size:16px;width:100%}.ba2__thumb{width:56px;height:56px}}

/* ========== BA3 (До/после видео) ========== */
.ba3{padding:80px 0;clip-path:inset(0 0 0 -100%)}
.ba3__container{max-width:1328px;margin:0 auto;padding:0 24px;position:relative}
@media(max-width:1441px){.ba3__container{max-width:1200px}}
@media(max-width:375px){.ba3__container{padding:0 10px}}
.ba3__body{max-width:960px;margin:0 auto}
.ba3__meter{display:flex;align-items:center;gap:16px;margin-bottom:36px;padding:0 4px}
.ba3__meter-label{font-size:16px;font-family:'TT',sans-serif;font-weight:600;color:#888;white-space:nowrap;flex-shrink:0;letter-spacing:0.3px;text-transform:uppercase}
.ba3__meter-track{flex:1;height:6px;border-radius:3px;background:#e8e5df;position:relative;overflow:hidden}
.ba3__meter-fill{position:absolute;inset:0;border-radius:3px;background:linear-gradient(90deg,#ffc200,#e6af00);transform:scaleX(0);transform-origin:left;transition:transform 0.08s ease-out}
.ba3__meter-val{font-size:22px;font-family:'TT',sans-serif;font-weight:700;color:#222;min-width:52px;text-align:right;flex-shrink:0;transition:color 0.3s}
.ba3__meter-val.is-zero{color:#bbb}
.ba3__video-wrap{position:relative;border-radius:16px;overflow:hidden;box-shadow:0 12px 48px rgba(8,0,221,0.12),0 2px 8px rgba(0,0,0,0.06)}
.ba3__video{width:100%;display:block}
.ba3__video--mobile{display:none}
@media(max-width:767.98px){.ba3__video--desktop{display:none}.ba3__video--mobile{display:block}}
.ba3__form-card{margin:20px 0 0;background:#fff;border-radius:16px;padding:18px 24px 16px;box-shadow:0 6px 32px rgba(8,0,221,0.07),0 2px 6px rgba(0,0,0,0.04)}
.ba3__form-title{font-family:'TT',sans-serif;font-weight:600;font-size:17px;color:#262626;text-align:center;margin-bottom:14px;line-height:130%}
.ba3__row{display:flex;gap:10px;align-items:stretch}
.ba3__drop{border:2px dashed #e5e2dd;border-radius:12px;padding:0 14px;cursor:pointer;transition:border-color .2s,background .2s;background:#faf9f6;position:relative;flex:1;min-width:0}
.ba3__drop:hover,.ba3__drop.is-over{border-color:#0800dd;background:#f0f0ff}
.ba3__drop-inner{display:flex;align-items:center;gap:10px;height:100%;min-height:46px}
.ba3__drop-icon{flex-shrink:0;color:#0800dd}
.ba3__drop-icon svg{width:24px;height:24px}
.ba3__drop-text{font-family:'TT',sans-serif;font-size:13px;color:#888;line-height:130%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ba3__drop-text span{color:#0800dd;cursor:pointer}
.ba3__drop-input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ba3__previews{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ba3__previews:empty{display:none}
.ba3__thumb{position:relative;width:52px;height:52px;border-radius:8px;overflow:hidden;background:#f2f0ed}
.ba3__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ba3__thumb-del{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background:rgba(0,0,0,0.6);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;line-height:1;transition:background .2s}
.ba3__thumb-del:hover{background:rgba(8,0,221,0.9)}
.ba3__error{font-family:'TT',sans-serif;font-size:13px;color:#e74c3c;margin-top:6px;display:none}
.ba3__phone{width:200px;flex-shrink:0;height:46px;border:2px solid #e5e2dd;border-radius:12px;padding:0 14px;font-family:'TT',sans-serif;font-weight:600;font-size:15px;color:#262626;background:#faf9f6;transition:border-color .2s;outline:none}
.ba3__phone:focus{border-color:#0800dd}
.ba3__phone::placeholder{color:#aaa;font-family:'TT',sans-serif;font-weight:400}
.ba3__submit{height:46px;padding:0 24px;border-radius:25px;background:#ffc200;color:#000;font-family:'TT',sans-serif;font-weight:700;font-size:15px;border:none;cursor:pointer;transition:background .2s,transform .15s;white-space:nowrap;flex-shrink:0}
.ba3__submit:hover{background:#e6af00;transform:translateY(-1px)}
.ba3__submit:disabled{opacity:0.5;cursor:not-allowed}
.ba3__agree{font-family:'TT',sans-serif;font-size:11px;color:#888;text-align:left;margin-top:10px;line-height:140%;display:flex;gap:8px;align-items:flex-start}
.ba3__agree span{color:#888}
.ba3__agree a{color:#0800dd;text-decoration:underline}
.ba3__consent{margin-top:2px;flex-shrink:0;cursor:pointer}
.ba3__thumb-loader{position:absolute;inset:0;background:rgba(0,0,0,0.45);display:flex;align-items:center;justify-content:center;border-radius:8px}
.ba3__thumb-spin{display:block;width:20px;height:20px;border:2.5px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:ba3-spin .6s linear infinite}
.ba3__form-body.is-hide{display:none}
@keyframes ba3-spin{to{transform:rotate(360deg)}}
@media(max-width:1441px){.ba3{padding:48px 0}.ba3__meter{margin-bottom:24px}.ba3__form-card{margin-top:16px}}
@media(max-width:1100px){.ba3{padding:36px 0}.ba3__meter{margin-bottom:16px}.ba3__meter-label{font-size:14px}.ba3__meter-val{font-size:20px}.ba3__form-card{margin-top:12px;padding:14px 18px 12px}.ba3__form-title{font-size:15px;margin-bottom:10px}.ba3__phone{width:170px}.ba3__submit{padding:0 18px;font-size:14px}}
@media(max-width:767.98px){.ba3{padding:48px 0}.ba3__video-wrap{border-radius:12px}.ba3__meter{gap:10px}.ba3__meter-label{font-size:12px}.ba3__meter-val{font-size:18px;min-width:44px}.ba3__form-card{padding:20px 16px 18px;border-radius:16px;margin-top:20px;max-width:100%}.ba3__form-title{font-size:18px;margin-bottom:16px}.ba3__row{flex-direction:column;gap:10px}.ba3__drop{padding:16px 14px}.ba3__drop-inner{min-height:auto}.ba3__drop-icon svg{width:28px;height:28px}.ba3__drop-text{font-size:14px;white-space:normal}.ba3__phone{width:100%;height:48px;font-size:16px}.ba3__submit{height:48px;font-size:16px;width:100%}.ba3__thumb{width:56px;height:56px}}

/* ========== SKETCH (Эскиз) ========== */
.sketch{padding:80px 0;background:#faf9f6}
.sketch__container{max-width:1328px;margin:0 auto;padding:0 24px}
.sketch__title{font-size:64px;font-family:'TT',sans-serif;font-weight:400;color:#262626;line-height:110%;text-align:center;margin-bottom:12px}
.sketch__title span{font-weight:700;color:#0800dd}
.sketch__sub{font-size:20px;font-family:'TT',sans-serif;color:#888;text-align:center;margin-bottom:36px}
.sketch__body{max-width:960px;margin:0 auto}
.sketch__toolbar{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.sketch__tool{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:12px;border:2px solid #e8e5df;background:#fff;font-family:'TT',sans-serif;font-weight:600;font-size:14px;color:#262626;cursor:pointer;transition:all .2s;user-select:none;-webkit-user-select:none}
.sketch__tool:hover{border-color:#0800dd;color:#0800dd}
.sketch__tool--active{border-color:#ffc200;background:#ffc200;color:#000}
.sketch__tool--active:hover{color:#000}
.sketch__tool svg{flex-shrink:0}
.sketch__canvas-wrap{position:relative;margin-bottom:24px;border-radius:16px;border:2px solid #e8e5df;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,0.06)}
.sketch__canvas{width:100%;cursor:crosshair;touch-action:auto;display:block}
.sketch__text-input{position:absolute;border:2px dashed #0800dd;background:rgba(255,255,255,0.9);font-family:'TT',sans-serif;font-weight:600;font-size:16px;color:#0800dd;padding:4px 8px;outline:none;border-radius:8px;min-width:60px;z-index:2}
.sketch__hint{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:opacity .3s;z-index:1}
.sketch__hint.is-hidden{opacity:0}
.sketch__hint-bg{position:absolute;top:0;left:0;width:100%;height:100%}
.sketch__hint-center{display:flex;flex-direction:column;align-items:center;gap:12px;z-index:2}
.sketch__hint-text{font-family:'TT',sans-serif;font-weight:600;font-size:16px;color:#888}
.sketch__drop{border:2px dashed #e5e2dd;border-radius:12px;padding:0 12px;cursor:pointer;transition:border-color .2s,background .2s;background:#faf9f6;position:relative;flex-shrink:0}
.sketch__drop:hover{border-color:#0800dd;background:#f0f0ff}
.sketch__drop-inner{display:flex;align-items:center;gap:8px;height:100%;min-height:46px}
.sketch__drop-icon{flex-shrink:0;color:#0800dd}
.sketch__drop-icon svg{width:20px;height:20px}
.sketch__drop-text{font-family:'TT',sans-serif;font-size:12px;color:#888;line-height:130%;white-space:nowrap}
.sketch__drop-text span{color:#0800dd;cursor:pointer}
.sketch__file-input{position:absolute;inset:0;opacity:0;cursor:pointer}
.sketch__previews{display:flex;flex-wrap:wrap;gap:8px;margin:8px auto 0}
.sketch__thumb{position:relative;width:48px;height:48px;border-radius:8px;overflow:hidden}
.sketch__thumb img{width:100%;height:100%;object-fit:cover}
.sketch__thumb-loader{position:absolute;inset:0;background:rgba(0,0,0,0.4);display:flex;align-items:center;justify-content:center;border-radius:8px}
.sketch__thumb-spin{width:18px;height:18px;border:2.5px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:sketch-spin .6s linear infinite}
.sketch__thumb-del{position:absolute;top:2px;right:2px;width:16px;height:16px;background:rgba(0,0,0,.6);color:#fff;border-radius:50%;font-size:11px;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;padding:0}
.sketch__form{display:flex;gap:12px;margin:0 auto 8px}
.sketch__phone{flex:1;height:56px;border-radius:16px;border:2px solid #e8e5df;padding:0 20px;font-family:'TT',sans-serif;font-weight:400;font-size:18px;color:#262626;outline:none;transition:border-color .2s;background:#fff}
.sketch__phone:focus{border-color:#0800dd}
.sketch__submit{height:56px;padding:0 36px;border-radius:25px;background:#ffc200;color:#000;font-family:'TT',sans-serif;font-weight:700;font-size:18px;border:none;cursor:pointer;transition:background .2s,transform .15s;white-space:nowrap}
.sketch__submit:hover{background:#e6af00;transform:translateY(-1px)}
.sketch__submit:hover{opacity:.9}
.sketch__submit:disabled{opacity:.5;cursor:not-allowed}
.sketch__label{display:flex;align-items:flex-start;gap:8px;margin:0 auto;font-size:13px;color:#888;font-family:'TT',sans-serif;line-height:1.4}
.sketch__label a{color:#0800dd;cursor:pointer}
.sketch__checkbox{margin-top:2px;flex-shrink:0}
@media(max-width:1441px){.sketch{padding:48px 0}.sketch__container{max-width:1200px}.sketch__title{font-size:50px}.sketch__body{max-width:700px}}
@media(max-width:767.98px){.sketch{padding:48px 0}.sketch__title{font-size:32px;font-weight:600}.sketch__title span{font-weight:600}.sketch__sub{font-size:16px;margin-bottom:24px}.sketch__body{max-width:100%}.sketch__toolbar{gap:4px}.sketch__tool{padding:6px 10px;font-size:12px;border-radius:8px}.sketch__form{flex-direction:column;gap:10px}.sketch__phone{height:56px;min-height:56px;box-sizing:border-box;font-size:17px;font-weight:400;border-radius:16px;padding:0 16px}.sketch__submit{height:56px;min-height:56px;box-sizing:border-box;font-size:17px;border-radius:25px;width:100%}.sketch__hint-bg{display:none}.sketch__hint{display:flex;align-items:center;justify-content:center}.sketch__hint-center{align-items:center;text-align:center}.sketch__drop{padding:12px 14px}.sketch__drop-inner{min-height:40px;gap:10px}.sketch__drop-icon svg{width:24px;height:24px}.sketch__drop-text{font-size:14px}.sketch__previews{justify-content:flex-start}}

/* === Form validation errors (унифицированные сообщения под полями) === */
.field-error{display:block;width:100%;flex-basis:100%;color:#e53e3e;font-size:13px;line-height:1.3;margin-top:6px;font-weight:500}
input.error,textarea.error{border-color:#e53e3e!important;outline-color:#e53e3e!important;box-shadow:0 0 0 1px #e53e3e}
.form__field{display:block}
/* Контейнеры с flex-row, в которых может появиться .field-error — переносим на новую строку. */
.form__checkbox,.ba2__agree,.ba3__agree,.quiz__consent,.quiz2__consent,.quiz__fields,.quiz2__fields,.ba2__row,.ba3__row,.qt-fields,.qt-consent,.qt-consent-text,.quiz2__upload{flex-wrap:wrap}
/* Чтобы текст согласия не съезжал под чекбокс — растягиваем span на остаток ширины */
.form__checkbox>span,.ba2__agree>span,.ba3__agree>span,.sketch__label>span,.quiz__consent>span,.quiz2__consent>span,.qt-consent>span{flex:1 1 0;min-width:0}
/* Подсветка контейнера consent-чекбокса при ошибке: красная рамка + дрожание */
input[type="checkbox"].error{outline:2px solid #e53e3e;outline-offset:3px;border-radius:2px}
.form__checkbox:has(input.error),.ba2__agree:has(input.error),.ba3__agree:has(input.error),.sketch__label:has(input.error),.quiz__consent:has(input.error),.quiz2__consent:has(input.error),.qt-consent:has(input.error){border:2px solid #e53e3e;background:rgba(229,62,62,.10);border-radius:8px;padding:8px;animation:consent-shake .4s}
@keyframes consent-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
