/* Front page «ЭКЗАМЕН»: warm palette, big wordmark, ticker, smooth reveal on scroll. */
:root { --ink: #2e241b; --head: #33291f; --muted: #7c6e61; --accent: #aa603d; --accent-dark: #8e4b2e; --soft: #f6e9df; --paper: #f5efe6; --card: #fffdfa; --line: #e5dacc; --green: #476645; --display: "Unbounded", "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif; --serif: Georgia, "Times New Roman", serif; --ease: cubic-bezier(.2, .8, .2, 1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.ld { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.ld-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100% - 1180px) / 2)); background: #f5efe6d9; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid #e3d8ca; transition: padding .3s var(--ease), box-shadow .3s var(--ease); }
.ld-scrolled .ld-header { padding-block: 9px; box-shadow: 0 10px 30px #6f503a14; }
.ld-brand { display: grid; text-decoration: none; }
.ld-brand b { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: .09em; color: var(--head); transition: color .2s; }
.ld-brand:hover b { color: var(--accent); }
.ld-brand span { margin-top: 5px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #a26040; }
.ld-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 600; }
.ld-nav a { color: #6f5c4c; text-decoration: none; position: relative; }
.ld-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.ld-nav a:hover { color: var(--head); } .ld-nav a:hover::after { transform: scaleX(1); }
.ld-actions { display: flex; align-items: center; gap: 14px; }
.ld-link { font-weight: 700; font-size: 14px; color: var(--accent-dark); text-decoration: none; }
.ld-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--accent); transition: background .18s, box-shadow .25s var(--ease), transform .15s var(--ease); }
.ld-btn:hover { background: var(--accent-dark); box-shadow: 0 14px 30px #aa603d40; }
.ld-btn:active { transform: scale(.98); }
.ld-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff3d 50%, transparent 65%); transform: translateX(-120%); animation: ld-shine 3.4s 1.2s infinite; pointer-events: none; }
.ld-btn-small { min-height: 40px; padding: 0 18px; border-radius: 11px; font-size: 14px; }
.ld-btn-ghost { background: var(--card); color: var(--accent-dark); border-color: #d9ccbc; }
.ld-btn-ghost:hover { background: var(--soft); box-shadow: none; }
.ld-btn-ghost::after { display: none; }
@keyframes ld-shine { 55%, 100% { transform: translateX(120%); } }
.ld-ticker { overflow: hidden; background: var(--head); color: #f3d9c6; padding: 11px 0; }
.ld-ticker-track { display: flex; width: max-content; animation: ld-marquee 46s linear infinite; }
.ld-ticker-track span { white-space: pre; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.ld-ticker:hover .ld-ticker-track { animation-play-state: paused; }
@keyframes ld-marquee { to { transform: translateX(-50%); } }
main { padding: 0 max(20px, calc((100% - 1180px) / 2)); }
.ld-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 72px 0 56px; }
.ld-eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: #f0e1d4; color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ld-hero h1 { margin: 6px 0 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -1.6px; color: var(--ink); }
.ld-lead { max-width: 560px; margin: 0 0 28px; font-size: 18px; color: var(--muted); }
.ld-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ld-small { margin: 14px 0 0; font-size: 13px; color: #9a8a7b; }
.ld-hero-copy > * { animation: ld-rise .8s var(--ease) both; }
.ld-hero-copy > *:nth-child(2) { animation-delay: .08s; } .ld-hero-copy > *:nth-child(3) { animation-delay: .16s; } .ld-hero-copy > *:nth-child(4) { animation-delay: .24s; } .ld-hero-copy > *:nth-child(5) { animation-delay: .3s; }
.ld-hero-card { padding: 22px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px #6f503a1f, 0 2px 6px #6f503a0d; animation: ld-rise .9s .2s var(--ease) both, ld-float 7s 1.2s ease-in-out infinite; }
@keyframes ld-float { 50% { transform: translateY(-8px); } }
@keyframes ld-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.ld-mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; } .ld-mock-head b { font-family: var(--serif); font-weight: 500; font-size: 20px; } .ld-mock-head span { font-size: 12px; color: var(--muted); }
.ld-mock-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: #fbf4eb; font-size: 14px; font-weight: 600; }
.ld-mock-row em { font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #f0e1d4; color: var(--accent-dark); white-space: nowrap; }
.ld-mock-row em.ld-ok { background: #eaf3e9; color: var(--green); } .ld-mock-row em.ld-due { background: #fbe3dc; color: #a54034; }
.ld-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ld-mock-stats div { padding: 12px; border-radius: 14px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ld-mock-stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ld-mock-stats .ld-acc { background: var(--accent); border-color: var(--accent); color: #f6dccb; } .ld-mock-stats .ld-acc b { color: #fff; }
.ld-section { padding: 56px 0; }
.ld-section h2, .ld-final h2 { margin: 0 0 28px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.8px; }
.ld-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-feature { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 26px #6f503a0d; transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .7s var(--ease); }
.ld-feature:hover { transform: translateY(-5px); box-shadow: 0 22px 44px #6f503a1f; }
.ld-feature.ld-wide { grid-column: span 2; }
.ld-feature.ld-accent { grid-column: span 2; background: var(--accent); border-color: var(--accent); color: #f6dccb; }
.ld-feature.ld-accent h3 { color: #fff; } .ld-feature.ld-accent .ld-num { color: #f6dccb; background: #ffffff26; }
.ld-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--accent); font-weight: 800; font-size: 13px; }
.ld-feature h3 { margin: 14px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; color: var(--head); }
.ld-feature p { margin: 0; font-size: 14px; color: inherit; opacity: .9; }
.ld-feature:not(.ld-accent) p { color: var(--muted); }
.ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ld-steps li { position: relative; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.ld-steps b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--head); color: #f3d9c6; font-family: var(--display); font-size: 18px; }
.ld-steps h3 { margin: 16px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.ld-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.ld-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--head); box-shadow: 0 30px 70px #6f503a26; }
.ld-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ld-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #2b221a; }
.ld-video-frame video a { color: #f3d9c6; }
.ld-video-soon { display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; color: #f3d9c6; background: radial-gradient(circle at 30% 20%, #4a3a2c, #2b221a 70%); }
.ld-video-soon strong { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 32px); color: #fff; }
.ld-video-soon p { max-width: 520px; margin: 0; font-size: 15px; }
.ld-play { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); position: relative; box-shadow: 0 0 0 0 #aa603d80; animation: ld-pulse 2.4s infinite; }
.ld-play::after { content: ''; position: absolute; left: 34px; top: 26px; border-left: 24px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
@keyframes ld-pulse { 70% { box-shadow: 0 0 0 22px #aa603d00; } 100% { box-shadow: 0 0 0 0 #aa603d00; } }
.ld-honest { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ld-pros, .ld-cons { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.ld-pros h3, .ld-cons h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.ld-pros ul, .ld-cons ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ld-pros li, .ld-cons li { position: relative; padding-left: 30px; font-size: 15px; }
.ld-pros li::before, .ld-cons li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ld-pros li::before { content: '✓'; background: #eaf3e9; color: var(--green); }
.ld-cons { background: #fbf4eb; } .ld-cons li { color: #6f5c4c; }
.ld-cons li::before { content: '!'; background: #f0e1d4; color: var(--accent-dark); }
.ld-narrow { max-width: 860px; }
.ld-faq { border-bottom: 1px solid var(--line); }
.ld-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-family: var(--serif); font-size: 21px; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); font-family: Inter, Arial, sans-serif; font-size: 20px; transition: transform .3s var(--ease); }
.ld-faq[open] summary::after { transform: rotate(45deg); }
.ld-faq p { margin: 0 0 18px; color: var(--muted); font-size: 16px; max-width: 720px; animation: ld-rise .4s var(--ease); }
.ld-final { margin: 40px 0 70px; padding: 54px 40px; border-radius: 30px; background: var(--head); color: #f3d9c6; text-align: center; }
.ld-final h2 { color: #fff; margin-bottom: 12px; }
.ld-final p { max-width: 600px; margin: 0 auto 26px; font-size: 17px; }
.ld-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px max(20px, calc((100% - 1180px) / 2)); font-size: 13px; color: #9a8a7b; border-top: 1px solid #e3d8ca; }
.ld-footer a { color: var(--accent-dark); }
.ld-reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.ld-reveal.ld-in { opacity: 1; transform: none; }
.ld-feature.ld-reveal.ld-in:hover { transform: translateY(-5px); }
.ld-btn:focus-visible, .ld-nav a:focus-visible, .ld-link:focus-visible, .ld-faq summary:focus-visible { outline: 3px solid #b87c4f; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ld-hero-copy > *, .ld-hero-card, .ld-ticker-track, .ld-btn::after, .ld-play { animation: none !important; }
  .ld-reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 1000px) {
  .ld-nav { display: none; }
  .ld-actions { margin-left: auto; }
  .ld-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; }
  .ld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ld-brand b { font-size: 19px; } .ld-brand span { display: none; }
  .ld-link { display: none; }
  .ld-grid, .ld-honest { grid-template-columns: 1fr; }
  .ld-feature.ld-wide, .ld-feature.ld-accent { grid-column: auto; }
  .ld-lead { font-size: 16px; }
  .ld-cta .ld-btn { width: 100%; }
  .ld-final { padding: 40px 22px; border-radius: 22px; }
  .ld-video-frame { border-radius: 18px; }
}

/* Тарифы (app/tariffs.php) */
.ld-tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.ld-tariff { display: flex; flex-direction: column; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 26px #6f503a0d; }
.ld-tariff h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--head); }
.ld-tariff-price { margin: 10px 0 14px; display: flex; align-items: baseline; gap: 8px; }
.ld-tariff-price b { font-size: 32px; font-weight: 800; color: var(--accent-dark); letter-spacing: -.01em; }
.ld-tariff-price span { color: var(--muted); font-size: 14px; }
.ld-tariff ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ld-tariff li { position: relative; padding-left: 26px; font-size: 15px; }
.ld-tariff li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #eaf3e9; color: var(--green); }
.ld-tariff-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.ld-tariff-top { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 18px 40px #aa603d40; }
.ld-tariff-top h3, .ld-tariff-top .ld-tariff-price b { color: #fff; }
.ld-tariff-top .ld-tariff-price span, .ld-tariff-top .ld-tariff-note { color: #fbe9dc; }
.ld-tariff-top li::before { background: #ffffff33; color: #fff; }
.ld-tariff-contact { margin-top: 18px; text-align: center; color: var(--muted); }
.ld-tariffs-one { grid-template-columns: minmax(0, 440px); justify-content: center; }
.ld-tariffs-one .ld-tariff { padding: 30px 32px; }

/* Контакт на главной (3.12.1) */
.ld-nav-contact { color: var(--accent-dark) !important; font-weight: 700; }
.ld-final-contact { margin-top: 18px; font-size: 15px; }
.ld-final-contact a { color: inherit; font-weight: 700; }
.ld-mobile-contact { display: none; }
@media (max-width: 1000px) { .ld-mobile-contact { display: inline-flex; color: var(--accent-dark); font-weight: 700; } }
