:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", sans-serif;
  --primary: #91599c;
  --dark: #240169;
  --muted: #465fac;
  --soft: #eaeff8;
  --card: #ffffff;
  --line: #d8e0f2;
  --shadow: 0 14px 34px rgba(36, 1, 105, 0.1);
  --shadow-soft: 0 10px 26px rgba(36, 1, 105, 0.08);
  --radius-lg: 22px;
  --radius-xl: 32px;
}
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { color: var(--dark); background: var(--soft); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.site-header { position: sticky; top: 0; background: rgba(234, 239, 248, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); z-index: 20; }
.header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 20px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--dark); }
.logo__icon { color: var(--primary); font-size: 1.2rem; }
.nav { display: flex; justify-content: center; gap: 22px; font-size: 0.95rem; color: var(--muted); }
.header__actions { display: flex; align-items: center; gap: 18px; font-size: 0.95rem; }
.header__phone { font-weight: 600; }
.link { color: var(--primary); font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border-radius: 999px; border: none; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 12px 24px rgba(145, 89, 156, 0.28); }
.button--ghost { background: transparent; border: 1px solid var(--primary); color: var(--primary); box-shadow: none; }
.hero { padding: 96px 0; background: var(--soft); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -40px auto -40px;
  height: 420px;
  background:
    radial-gradient(closest-side, rgba(145, 89, 156, 0.18), transparent 70%),
    radial-gradient(closest-side, rgba(36, 1, 105, 0.12), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: center; }
.hero__label { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero__content h1 { font-size: clamp(2.15rem, 3.2vw, 3.35rem); margin-bottom: 18px; letter-spacing: -0.02em; line-height: 1.05; }
.hero__text { color: var(--muted); margin-bottom: 32px; max-width: 520px; font-size: 1.05rem; }
.hero__image { position: relative; background: #d8e0f2; border-radius: var(--radius-xl); height: 440px; display: grid; place-items: center; color: rgba(36, 1, 105, 0.55); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(36, 1, 105, 0.08); }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__circle { position: absolute; border: 1px solid #cfd6ee; border-radius: 50%; }
.hero__circle--top { width: 60px; height: 60px; right: -18px; top: 30px; }
.hero__circle--bottom { width: 50px; height: 50px; left: -20px; bottom: 40px; background: rgba(145, 89, 156, 0.12); }
.section { padding: 46px 0; background: #fff; }
.section--soft { background: var(--soft); }
.section--compact { padding: 32px 0; }
.section__header { margin-bottom: 34px; max-width: 820px; }
.section__header h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -0.015em; line-height: 1.15; }
.section__header p { color: var(--muted); }
.policy { display: grid; gap: 16px; color: var(--dark); }
.policy h3 { margin-top: 12px; font-size: 1.15rem; color: var(--dark); }
.policy p { color: var(--muted); line-height: 1.7; }
.policy ul { padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.policy li { line-height: 1.6; }
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; align-items: center; }
.about__image { background: #d8e0f2; border-radius: var(--radius-xl); height: 420px; display: grid; place-items: center; color: rgba(36, 1, 105, 0.55); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(36, 1, 105, 0.08); }
.about__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__divider { height: 1px; background: var(--line); margin: 18px 0; }
.about__label { text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.about__list { display: grid; gap: 10px; color: var(--dark); padding-left: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: start; }
.card { background: var(--card); padding: 22px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border: 1px solid rgba(36, 1, 105, 0.08); display: grid; gap: 12px; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(36, 1, 105, 0.14); }
.cards--products { align-items: stretch; }
.cards--products .card { position: relative; padding-left: 28px; height: 100%; display: flex; flex-direction: column; }
.cards--products .card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 999px;
  background: rgba(145, 89, 156, 0.18);
}
.cards--products .card__meta { margin-top: auto; }
.card ul { display: grid; gap: 8px; color: var(--muted); padding-left: 18px; }
.badge { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(145, 89, 156, 0.14); color: var(--primary); font-size: 0.8rem; width: max-content; }
.card__meta { display: flex; gap: 12px; color: var(--muted); font-size: 0.85rem; }
.card__price { color: var(--primary); font-weight: 600; }
.card--center { text-align: center; background: #f4f6ff; }
.card__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: #fff; align-items: center; justify-content: center; margin: 0 auto; color: var(--primary); }
.card--price ul { padding-left: 18px; color: var(--muted); }
.clients-list { display: grid; gap: 14px; }
.clients-list__item { display: grid; grid-template-columns: 64px 1fr 120px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.clients-list__item:last-child { border-bottom: none; }
.clients-list__label { font-weight: 600; color: var(--primary); letter-spacing: 0.08em; font-size: 0.9rem; }
.clients-list__body h3 { margin-bottom: 6px; }
.clients-list__body p { color: var(--muted); }
.clients-list__rule { height: 1px; background: transparent; width: 100%; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.gallery-grid__item { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); background: var(--card); border: 1px solid rgba(36, 1, 105, 0.08); transition: transform 180ms ease, box-shadow 180ms ease; }
.gallery-grid__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery-grid__item img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery-modal { position: fixed; inset: 0; background: rgba(12, 10, 22, 0.75); display: none; align-items: center; justify-content: center; z-index: 40; padding: 24px; }
.gallery-modal.is-open { display: flex; }
.gallery-modal__image { max-width: min(90vw, 980px); max-height: 80vh; border-radius: 18px; box-shadow: var(--shadow); object-fit: contain; background: #fff; }
.gallery-modal__nav, .gallery-modal__close { position: absolute; border: none; background: rgba(255, 255, 255, 0.9); color: var(--dark); width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 28px; display: grid; place-items: center; }
.gallery-modal__close { top: 24px; right: 24px; font-size: 30px; }
.gallery-modal__nav--prev { left: 24px; }
.gallery-modal__nav--next { right: 24px; }
@media (max-width: 720px) { .gallery-modal__nav--prev, .gallery-modal__nav--next { top: auto; bottom: 24px; } }
.speaker { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.contact__details { margin: 16px 0 24px; display: grid; gap: 6px; color: var(--muted); }
.contact__form { background: var(--card); padding: 26px; border-radius: 20px; box-shadow: var(--shadow-soft); border: 1px solid rgba(36, 1, 105, 0.08); display: grid; gap: 16px; }
.contact__form .span-2 { grid-column: 1 / -1; }
.contact__form input, .contact__form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9d6d2; font-family: inherit; }
.contact__form input[type="checkbox"] { width: 18px; height: 18px; padding: 0; border-radius: 4px; accent-color: var(--primary); }
.contact__form .consent-row { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.contact__form .consent-row span { line-height: 1.4; }
.contact__form input.is-invalid, .contact__form textarea.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }
.contact__form .button:disabled { background: #b8b5c4; box-shadow: none; cursor: not-allowed; color: #f6f6f8; }
.contact__error { grid-column: 1 / -1; background: rgba(192, 57, 43, 0.1); color: #7b241c; padding: 12px 16px; border-radius: 14px; font-size: 0.95rem; }
.field-error { display: block; margin-top: 6px; color: #7b241c; font-size: 0.9rem; }
.site-footer { padding: 14px 0; background: #240169; color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer__inner { display: grid; gap: 0; }
.footer__top { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.footer__brand { font-size: 1rem; letter-spacing: 0.01em; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.footer__policy { justify-self: end; max-width: none; text-align: right; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.footer__policy-link { color: #fff; font-weight: 500; letter-spacing: 0; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; padding: 6px 10px; display: inline-flex; font-size: 0.8rem; line-height: 1.2; }
.footer__policy-link:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); }
.contact__success { grid-column: 1 / -1; background: rgba(36, 1, 105, 0.1); color: var(--dark); padding: 12px 16px; border-radius: 14px; font-size: 0.95rem; }
@media (max-width: 960px) {
  .header__inner { grid-template-columns: 1fr; text-align: center; gap: 14px; padding: 14px 0; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 14px; font-size: 0.9rem; }
  .header__actions { justify-content: center; gap: 12px; }
  .speaker { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .site-header { position: static; }
  .header__inner { padding: 10px 0; }
  .nav { gap: 10px; }
  .section { padding: 31px 0; }
  .section--compact { padding: 24px 0; }
  .hero { padding: 66px 0; }
  .about { gap: 24px; }
  .about__image { height: 260px; border-radius: 22px; }
  .about__divider { margin: 12px 0; }
  .card { padding: 18px; border-radius: 18px; }
  .clients-list__item { grid-template-columns: 48px 1fr; gap: 10px; }
  .clients-list__rule { display: none; }
  .contact__form { padding: 18px; border-radius: 16px; }
  .site-footer { padding: 12px 0; }
  .footer__top { grid-template-columns: 1fr; gap: 8px; }
  .footer__brand { font-size: 0.95rem; }
  .footer__policy { justify-self: start; text-align: left; justify-content: flex-start; }
  .footer__policy-link { padding: 5px 9px; font-size: 0.78rem; }
  .header__phone, .contact__details, .site-footer { overflow-wrap: anywhere; }
}
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
