:root {
  --violet: #a045e3;
  --violet-dark: #7d2fc0;
  --violet-deep: #241b4c;
  --ink: #111;
  --muted: #808080;
  --lime: #e6ff4d;
  --radius: 30px;
  --shadow: 0 10px 30px rgba(60, 30, 110, .18);
  --font: 'Jost', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.5; color: var(--ink); background: #fff; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 900px; }
.center { text-align: center; margin-top: 40px; }
.center-text { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: 2px solid transparent; border-radius: 999px; font-weight: 600; font-size: 18px; line-height: 1.2; text-decoration: none; text-align: center; transition: background-color .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--violet); }
.btn--ghost:hover { background: var(--violet); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--lime); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--violet-deep); }
.btn--lg { padding: 18px 36px; font-size: 20px; }
.btn--sm { padding: 10px 20px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background-color .25s, box-shadow .25s; }
.header.is-scrolled, .header--solid { background: rgba(31, 12, 44, .95); box-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 17px; }
.nav a { text-decoration: none; }
.nav a:hover { color: #c18ae9; }
.header__right { display: flex; align-items: center; gap: 14px; }
.icon-link { width: 26px; height: 26px; color: #c18ae9; display: inline-flex; }
.icon-link:hover { color: #fff; }
.icon-link svg { width: 100%; height: 100%; }
.burger { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; border-radius: 2px; background: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 760px; display: flex; align-items: center; background: var(--violet-deep); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: right center; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 27, 76, .96) 0%, rgba(36, 27, 76, .8) 38%, rgba(36, 27, 76, 0) 70%), linear-gradient(0deg, #fff 0, rgba(255, 255, 255, 0) 90px); }
.hero__in { position: relative; padding-block: 140px 150px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; font-weight: 700; max-width: 640px; }
.hero__list { margin-top: 40px; display: grid; gap: 22px; font-size: 22px; }
.hero__list li { display: flex; align-items: center; gap: 18px; max-width: 520px; }
.hero__actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- sections ---------- */
.section { padding-block: 90px; }
.section__title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; font-weight: 700; text-align: center; margin-bottom: 40px; }
.section__title--light { color: #fff; }
.section__title--left { text-align: left; }
.section__sub { text-align: center; font-size: 24px; margin: -16px auto 44px; max-width: 760px; }
.section__sub--light { color: #fff; }
.section--violet { background: linear-gradient(160deg, #6a2bd9 0%, #a045e3 45%, #7b35e0 100%); }
.section--tint { background: #f6f0fc; }
.section--prodlenka { background: linear-gradient(180deg, #efe4fb 0%, #dcc7f5 100%); }
.lead { font-size: 20px; margin-bottom: 24px; }
.prose p + p, .about__text p + p { margin-top: 18px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.about__text { padding: 50px; }
.about__text h2 { font-size: 26px; margin-bottom: 28px; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cards--more { margin-top: 30px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card__media { position: relative; aspect-ratio: 366 / 218; background: #eee; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge-new { position: absolute; top: 12px; right: 12px; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #000; }
.pill { position: absolute; left: 14px; bottom: 12px; padding: 5px 16px; border-radius: 999px; background: #fff; font-size: 18px; font-weight: 500; }
.pill:empty { display: none; }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 26px; text-align: center; }
.card h3 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.card__price { margin-top: 10px; display: flex; flex-direction: column; }
.price { font-size: 22px; font-weight: 700; }
.price-old { font-size: 18px; color: var(--muted); }
.card__desc { margin-top: 14px; font-size: 16px; line-height: 1.4; }
.card__actions { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card__actions .btn { padding-inline: 12px; }
.card__actions .btn--block { grid-column: 1 / -1; }
.card--month .card__ribbon { padding: 14px 20px; background: var(--violet); color: #fff; text-align: center; }
.card--month .card__media { aspect-ratio: 330 / 196; }
.card--month .card__desc { font-size: 18px; }

.panel { margin-top: 60px; padding: 44px 50px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 24px; }
.checklist { display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 17px 1fr; gap: 20px; align-items: start; }
.checklist img { margin-top: 6px; }

/* ---------- included ---------- */
.included { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.included__media { text-align: center; }
.phone { width: 250px; margin-inline: auto; padding: 10px; border-radius: 38px; background: #111; box-shadow: var(--shadow); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; background: #000; }
.included__caption { margin-top: 16px; font-weight: 500; }
.included__more { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.socials { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.socials a { display: inline-flex; transition: transform .15s; }
.socials a:hover { transform: scale(1.1); }
/* значки не квадратные (Telegram, MAX): вписываем целиком, а не растягиваем */
.socials img { width: 48px; height: 48px; object-fit: contain; }
.socials--sm img { width: 30px; height: 30px; }
.contacts__list li > img { width: 56px; height: 56px; object-fit: contain; }

/* ---------- carousel ---------- */
.carousel { position: relative; margin-top: 30px; }
.carousel__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; }
.carousel__track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 calc((100% - 32px) / 3); aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: #ddd; }
.shot--tall { aspect-ratio: 347 / 369; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shot:hover img { transform: scale(1.04); }
.carousel__btn { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: #fff; color: var(--violet); font-size: 30px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; }

/* ---------- reviews ---------- */
.reviews { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: flex-start; }
.review { display: block; width: 400px; max-width: 100%; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.review--phone { width: 260px; padding: 9px; background: #111; border-radius: 38px; }
.review--phone img { border-radius: 29px; }
.review img { width: 100%; }

/* ---------- forms ---------- */
.questions { background-size: cover; background-position: center; }
.form { display: grid; gap: 16px; }
.form h3 { font-size: 28px; line-height: 1.2; text-align: center; }
.form__sub { text-align: center; margin-top: -6px; }
.field { display: grid; gap: 6px; font-size: 16px; }
.field input, .field select { width: 100%; height: 56px; padding: 0 18px; font: inherit; font-size: 18px; color: #000; background: #fff; border: 1px solid #c9c9c9; border-radius: 12px; }
.field input:focus, .field select:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(160, 69, 227, .25); }
.field .is-invalid, .is-invalid { border-color: #d92d2d !important; }
.form--inline { grid-template-columns: repeat(3, 1fr) auto; align-items: start; }
.form--inline .form__status, .form--inline .consent { grid-column: 1 / -1; }
.consent { font-size: 14px; line-height: 1.4; text-align: center; color: #444; }
.consent a { border-bottom: 1px solid var(--violet); text-decoration: none; }
.consent--light { color: #fff; }
.form__status { text-align: center; font-weight: 500; min-height: 0; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #157a3c; }
.form__status.is-error { color: #c62828; }
.questions .form__status { padding: 10px 16px; border-radius: 12px; background: #fff; }
.radio { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid #c9c9c9; border-radius: 12px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--violet); background: #f6edfd; }
.radio input { width: 20px; height: 20px; accent-color: var(--violet); }
.quiz__step { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.quiz__step legend { padding: 0; margin-bottom: 14px; font-size: 22px; font-weight: 600; }
.quiz__progress { text-align: center; color: var(--muted); margin-top: -8px; }
.quiz__nav { display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- modals ---------- */
.modal { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 44px 36px 32px; border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: auto; }
.modal--wide { width: min(1100px, calc(100% - 24px)); }
.modal::backdrop, .lightbox::backdrop { background: rgba(20, 10, 40, .6); backdrop-filter: blur(4px); }
.modal__close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; background: none; font-size: 34px; line-height: 1; color: #555; }
.modal__close:hover { color: #000; }
.prog { display: grid; grid-template-columns: 303px 1fr; gap: 40px; align-items: start; }
.prog__side { display: grid; gap: 20px; position: sticky; top: 0; }
.prog__img { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.prog__img img { width: 100%; }
.prog__text h3 { font-size: 24px; line-height: 1.25; padding-right: 30px; }
.prog__price { font-size: 20px; font-weight: 700; margin: 8px 0 18px; }
.prog__text p + p, .prog__text ul + p, .prog__text p + ul { margin-top: 12px; }
.prog__text { font-size: 16px; }
.prog__text ul { list-style: disc; padding-left: 22px; display: grid; gap: 4px; }
.lightbox { padding: 0; border: 0; background: none; max-width: 96vw; max-height: 96dvh; overflow: visible; }
.lightbox img { max-width: 96vw; max-height: 92dvh; border-radius: 12px; }
.lightbox .modal__close { top: -6px; right: -6px; background: #fff; border-radius: 50%; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contacts__list { display: grid; gap: 34px; }
.contacts__list li { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.contacts__list div { display: grid; gap: 4px; font-size: 20px; }
.contacts__list div > span:first-child { font-size: 18px; color: #555; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { color: var(--violet); }
.contacts__map { height: 420px; border-radius: 20px; overflow: hidden; background: #eee; }

/* ---------- footer ---------- */
.footer { background: #1f0c2c; color: #fff; padding-block: 34px; }
.footer__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #c18ae9; }

/* ---------- document page ---------- */
.page-doc .doc { padding-block: 120px 80px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin-bottom: 30px; }
.doc h2 { font-size: 24px; margin: 36px 0 14px; }
.doc h3 { font-size: 19px; margin: 20px 0 6px; }
.doc p { margin-top: 10px; font-size: 17px; }
.nav--static { display: flex !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 18px; font-size: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav:not(.nav--static) { position: fixed; inset: 68px 0 auto 0; display: none; flex-direction: column; gap: 0; padding: 10px 20px 24px; background: rgba(31, 12, 44, .98); font-size: 20px; }
  .nav.is-open { display: flex; }
  .nav:not(.nav--static) a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .header__right .btn { display: none; }
  .header { background: rgba(31, 12, 44, .95); }
  .header__in { justify-content: flex-end; }
  .hero { min-height: 0; }
  .hero__bg { background-position: 72% center; opacity: .55; }
  .hero__in { padding-block: 120px 110px; }
  .about, .included, .contacts { grid-template-columns: 1fr; }
  .about__img { order: -1; max-height: 420px; }
  .about__text { padding: 30px 24px; }
  .included { gap: 40px; }
  .section { padding-block: 60px; }
  .form--inline { grid-template-columns: 1fr; }
  .prog { grid-template-columns: 1fr; gap: 24px; }
  .prog__side { position: static; max-width: 303px; margin-inline: auto; }
  .shot { flex-basis: calc((100% - 16px) / 2); }
  .carousel__btn--prev { left: 6px; }
  .carousel__btn--next { right: 6px; }
  .panel { padding: 30px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .hero__list { font-size: 19px; }
  .hero__actions .btn { width: 100%; }
  .section__sub { font-size: 20px; }
  .shot { flex-basis: 86%; }
  .modal { padding: 44px 20px 24px; }
  .contacts__map { height: 320px; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
