/* Shared public-site design. Homepage composition lives in home.css. */
:root {
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #fff;
  --white: #fff;
  --surface: #f5f5f7;
  --line: #d2d2d7;
  --accent: #0066cc;
  --blue: #0071e3;
  --dark: #1d1d1f;
  --bronze: #6e6e73;
  --radius: 980px;
  font-family: var(--font-ui);
  color-scheme: light;
}
html { scroll-padding-top: 88px; }
body { -webkit-font-smoothing: antialiased; }
.shell { width: min(1120px, calc(100% - 48px)); }
p { line-height: 1.65; }
h1, h2, h3, .article-card h2, .article-card h3, .large-link,
.booking-process h2, .diagnostic-source h2, .meeting-outcomes h2,
.legal-body h2, .contact-grid h2 {
  font-family: var(--font-ui);
  font-weight: 600;
}
h1, h2 { letter-spacing: -.035em; line-height: 1.07; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { letter-spacing: -.02em; }
em { color: inherit; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: .875rem; font-weight: 600; }
.small { color: var(--muted); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.inline-link, .back-link, .article-more, .large-link { color: var(--accent); }
.inline-link { border-bottom: 0; gap: 10px; font-size: .95rem; }
.inline-link:hover, .back-link:hover, .large-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.button {
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  border-radius: var(--radius); padding: 14px 23px; min-height: 48px;
  font-size: .94rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  gap: 12px; transition: background .15s, border-color .15s;
}
.button:hover { background: var(--accent); border-color: var(--accent); transform: none; }
.button-outline { background: transparent; color: var(--accent); border-color: var(--blue); }
.button-outline:hover { background: var(--blue); color: #fff; }
.button-light { background: #fff; color: var(--accent); border-color: #fff; }
.button-light:hover { background: #e8e8ed; border-color: #e8e8ed; }
.button-small { min-height: 44px; padding: 10px 18px; font-size: .82rem; }

.site-header {
  position: sticky; top: 0; background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(0,0,0,.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.header-inner { height: 64px; gap: 24px; }
.wordmark { font-size: .9rem; font-weight: 600; letter-spacing: -.025em; }
.wordmark span { color: var(--muted); font-weight: 400; }
.desktop-nav { gap: 24px; font-size: .76rem; }
.header-cta { border: 0; font-size: .8rem; gap: 8px; color: var(--accent); padding-block: 12px; }
.mobile-menu > summary { min-height: 44px; justify-content: center; }
.mobile-menu nav { background: #fff; border-color: var(--line); box-shadow: 0 12px 24px #00000008; }
.site-footer { background: var(--surface); color: var(--ink); padding-top: 48px; }
.footer-top { padding-bottom: 36px; gap: 36px; }
.footer-top > div > p, .footer-links, .footer-bottom { color: var(--muted); font-size: .78rem; }
.footer-links { gap: 14px; line-height: 1.6; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-color: var(--line); font-size: .72rem; }
.footer-top > div, .footer-bottom p { min-width: 0; overflow-wrap: anywhere; }

.diagnostic-page { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 64px; padding-block: 64px 88px; }
.diagnostic-copy, .application-panel { min-width: 0; }
.diagnostic-copy h1 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1.08; }
.diagnostic-copy .hero-lead { font-size: 1.12rem; }
.diagnostic-source h2, .booking-process h2 { font-size: 1.15rem; letter-spacing: -.015em; }
.diagnostic-source li, .booking-process ol { font-size: .96rem; }
.booking-process { border-color: var(--line); }
.application-panel { margin-top: 0; padding: 36px; background: var(--surface); border: 0; border-radius: 24px; }
.application-panel h2, .application-success h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -.03em; }
.application-panel > div > p:not(.eyebrow) { font-size: .94rem; }
.application-panel > .button, .application-panel > .small { margin-top: 22px; }
label:not(.checkbox-row) { font-size: .875rem; font-weight: 500; }
input:not([type=checkbox]), select, textarea {
  background: #fff; color: var(--ink); border-color: #86868b; border-radius: 12px;
  min-height: 52px; font-size: 1rem; padding: 14px 16px;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.checkbox-row { font-size: .82rem; line-height: 1.6; }
.checkbox-row input { accent-color: var(--blue); }
.field-hint, .field-error, .application-panel .small { font-size: .78rem; }
.telegram-fallback { border-color: var(--line); }
.telegram-fallback textarea { background: #fff; border-radius: 12px; font-size: .94rem; }
.notice { background: #f2f7fc; color: #354b62; border-color: var(--blue); border-radius: 0 12px 12px 0; }
.person-line strong { font-weight: 600; }

.blog-hero { padding-block: 64px 44px; }
.blog-hero h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); margin-bottom: 0; }
.blog-list .article-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.article-card { background: var(--surface); border: 0; border-radius: 24px; padding: 32px; min-height: 300px; }
.article-card:hover { background: #ededf0; }
.article-card h2, .article-card h3 { font-size: clamp(1.55rem,2.4vw,2rem); line-height: 1.16; letter-spacing: -.025em; }
.article-card .eyebrow { font-size: .8rem; margin-bottom: 24px; }
.article-card > p:not(.eyebrow) { font-size: .95rem; }
.article-more { font-size: .9rem; }
.empty-state { border: 0; border-radius: 24px; background: var(--surface); padding: 40px; }
.article-header { max-width: 900px; padding-block: 64px 44px; }
.article-header h1 { font-size: clamp(2.25rem,4.7vw,3.75rem); line-height: 1.1; overflow-wrap: anywhere; }
.article-excerpt { font-size: 1.18rem; line-height: 1.6; }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.7rem,3vw,2.25rem); line-height: 1.18; }
.article-body h3 { font-size: 1.35rem; }
.article-body blockquote { background: var(--surface); border-color: var(--blue); border-radius: 0 16px 16px 0; }
.article-cta { background: var(--surface); border-radius: 24px; padding: 40px; }
.article-cta h2 { font-size: clamp(1.8rem,3.4vw,2.75rem); }
.legal-page { max-width: 900px; padding-block: 56px 88px; }
.legal-page h1 { font-size: clamp(2.25rem,4.7vw,3.5rem); line-height: 1.12; }
.legal-body h2 { font-size: 1.2rem; letter-spacing: -.02em; }
.legal-body p { font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 56px; }
.contact-grid h2 { font-size: 1.05rem; letter-spacing: -.015em; }
.contact-grid a, .contact-grid p { overflow-wrap: anywhere; }
.large-link { font-size: 1.4rem; line-height: 1.4; border: 0; }
body .login-page h1 { font-size: clamp(2rem, 7.8vw, 3rem); overflow-wrap: anywhere; }

.cookie-banner { background: rgba(255,255,255,.97); border-radius: 20px; border-color: var(--line); box-shadow: 0 8px 32px #00000014; }
.cookie-banner a { color: var(--accent); }
.cookie-actions .button { font-size: .8rem; }
.review-dialog { border-radius: 24px; background: #fff; }
.review-dialog::backdrop { background: #00000066; }
.review-dialog header { background: #fff; }
.review-dialog h2 { font-size: 1.75rem; }
.review-dialog header button { color: var(--accent); }

@media (max-width: 850px) {
  .header-inner { height: 60px; }
  .mobile-menu nav { top: 60px; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; }
  .diagnostic-page { grid-template-columns: minmax(0,1fr); max-width: 650px; gap: 36px; padding-block: 40px 64px; }
  .application-panel { margin-top: 0; }
  .contact-grid { gap: 32px; }
  .cookie-banner { gap: 16px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 80px; }
  .header-inner { gap: 16px; }
  .wordmark { font-size: .86rem; }
  .button { padding: 13px 20px; font-size: .9rem; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-top > div:first-child { grid-column: auto; }
  .footer-links { font-size: .78rem; }
  .footer-bottom { gap: 12px; font-size: .7rem; }
  .application-panel { padding: 28px 22px; border-radius: 20px; }
  .application-panel > div > p:not(.eyebrow) { font-size: .9rem; }
  .diagnostic-copy h1 { font-size: clamp(2.15rem,9.1vw,3rem); }
  .application-panel .button-full { gap: 8px; padding-inline: 16px; }
  .blog-hero { padding-block: 40px 32px; }
  .article-card, .empty-state { padding: 28px; border-radius: 20px; }
  .article-header { padding-block: 40px 32px; }
  .article-body { width: calc(100% - 48px); font-size: 1rem; }
  .article-excerpt { font-size: 1.05rem; }
  .article-cta { width: calc(100% - 48px); padding: 28px; border-radius: 20px; margin-block: 48px 64px; }
  .legal-page { padding-block: 40px 64px; }
  .legal-body p { font-size: .96rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cookie-banner { padding: 18px; border-radius: 18px; }
  .cookie-actions .button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .article-card { transition: none; }
}
