/* Фотоэхо — основной стиль */
:root {
  --c1: #0891b2;
  --c2: #4f46e5;
  --c3: #c026d3;
  --grad: linear-gradient(135deg, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%);
  --grad-soft: linear-gradient(135deg, #e0f7fa 0%, #e8e9ff 55%, #fbe8fd 100%);
  --ink: #1a1230;
  --ink-2: #4a4060;
  --muted: #6e6585;
  --line: #ebe5f3;
  --bg: #ffffff;
  --bg-2: #faf7fd;
  --card: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(20, 30, 90, .22);
  --shadow-lg: 0 30px 60px -20px rgba(20, 30, 90, .35);
  --wrap: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); text-decoration: none; }
a:hover { color: var(--c2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 19px; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit; text-align: center;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .6); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(79, 70, 229, .7); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--c1); border-color: #c7d2fe; transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--c1); }
.btn--white:hover { color: var(--c2); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c1); background: #eef2ff; }
.header__cta { padding: 11px 20px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(79, 70, 229, .18), rgba(8, 145, 178, .10) 45%, transparent 70%);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 38, 211, .14), transparent 65%); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__text .lead { max-width: 560px; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.chips li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chips li::before { content: "✓"; color: var(--c2); margin-right: 6px; font-weight: 800; }
.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5;
  background: var(--grad); padding: 6px;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; animation: breathe 9s ease-in-out infinite alternate; }
.hero__badge {
  position: absolute; left: -24px; bottom: 40px; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero__badge b { display: block; font-size: 15px; }
.hero__badge span { font-size: 13px; color: var(--muted); }
.hero__badge i { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 20px; }
.hero__note { position: absolute; right: 14px; top: 14px; background: rgba(26, 18, 48, .6); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Шапка внутренних страниц */
.page-hero { background: var(--grad-soft); padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 820px; }
.page-hero .lead { max-width: 720px; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--c1); }

/* Сетки и карточки */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo .card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.card--photo .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card--photo:hover .card__img img { transform: scale(1.05); }
.card--photo .card__body { padding: 24px 26px 26px; flex: 1; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--c1); background: #e0f2fe; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Шаги */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; }
.steps li::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.steps h3 { font-size: 18px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Разделение текст + фото */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.crosslist { list-style: none; padding: 0; }
.crosslist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.crosslist li::before {
  content: "✕"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fde2e7; color: #be123c; font-size: 12px; font-weight: 800; display: grid; place-items: center;
}

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px; display: flex; flex-direction: column; }
.plan--accent { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.plan__label { position: absolute; top: -14px; left: 30px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan__desc { color: var(--muted); font-size: 15px; min-height: 48px; }
.plan__price { font-size: 40px; font-weight: 800; margin: 10px 0 4px; }
.plan__price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.plan li { padding-left: 28px; position: relative; font-size: 15px; margin-bottom: 10px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--c2); font-weight: 800; }

/* Примечание */
.note { background: var(--grad-soft); border-radius: var(--radius); padding: 26px 30px; }
.note p:last-child { margin: 0; }
.note--plain { background: var(--bg-2); border: 1px solid var(--line); }

/* FAQ */
.faq { max-width: 860px; }
.faq--center { margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: #eef2ff; color: var(--c1); display: grid; place-items: center; font-size: 20px; font-weight: 700; transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq__body { padding: 0 24px 20px; color: var(--ink-2); }
.faq .faq__body p:last-child { margin: 0; }

/* Призыв */
.cta { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 32px; padding: 64px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); margin: 0; }
.cta .btn-row { justify-content: flex-end; position: relative; z-index: 1; }

/* Документы */
.doc { max-width: 860px; }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.doc td { border: 1px solid var(--line); padding: 10px 14px; vertical-align: top; overflow-wrap: anywhere; }
.doc td:first-child { width: 40%; color: var(--muted); }

/* Реквизиты и контакты */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.req { width: 100%; border-collapse: collapse; }
.req td { overflow-wrap: anywhere; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req td:first-child { color: var(--muted); width: 42%; padding-right: 16px; }
.req tr:last-child td { border-bottom: 0; }

/* Форма */
.form-wrap { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.req-mark { color: var(--c2); }
.input, .select, .textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #d4d8ea; border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px rgba(8, 145, 178, .12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #e11d48; }
.field__error { display: none; color: #e11d48; font-size: 14px; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.field__hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c1); cursor: pointer; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; font-size: 15px; }
.alert--error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.alert[hidden] { display: none; }
.form-wrap .aside-card { position: sticky; top: 96px; }
.aside-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.aside-card h3 { font-size: 19px; }

/* Подвал */
.footer { background: #0d1326; color: #c9c1db; padding: 64px 0 32px; margin-top: 0; font-size: 15px; }
.footer a { color: #c9c1db; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9a90b0; }

/* Появление при прокрутке */
.reveal { transform: translateY(14px); transition: transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Адаптив */
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .header.is-open .nav a { padding: 12px 14px; font-size: 17px; }
  .header.is-open .nav .nav__cta { display: flex; margin-top: 8px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
.nav .nav__cta { display: none; }
.nav a.nav__cta, .nav a.nav__cta:hover { color: #fff; background: var(--grad); justify-content: center; }
@media (max-width: 960px) {
  .hero__grid, .split, .form-wrap, .cta { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 72px; }
  .hero__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__badge { left: 12px; }
  .grid--3, .grid--4, .steps, .plans, .contacts { grid-template-columns: 1fr 1fr; }
  .cta { padding: 48px 32px; }
  .cta .btn-row { justify-content: flex-start; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1, h2 { -webkit-hyphens: auto; hyphens: auto; }
  .wrap { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4, .steps, .plans, .contacts, .row-2, .footer__grid { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .btn-row .btn { width: 100%; }
  .lead { font-size: 17px; }
  .plan__desc { min-height: 0; }
  .cta { border-radius: 24px; padding: 40px 22px; }
  .page-hero { padding: 44px 0 40px; }
  .logo span { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
