:root {
  --bg: #ffffff; --bg-alt: #f3f6fa; --text: #1c2430; --muted: #62707f; --line: #dfe5ec;
  --primary: #0f3d6e; --primary-dark: #0a2c50; --accent: #f28c28; --danger: #c0392b; --ok: #1e8449;
  --radius: 12px; --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; font-size: 17px; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.danger { color: var(--danger); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-size: .95rem; }
.nav-user { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; white-space: nowrap; }
.nav-cta { flex: 0 0 auto; }
@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .container { min-height: 0; padding-top: 10px; gap: 8px 12px; }
  .brand { font-size: .88rem; flex: 1 1 auto; min-width: 0; }
  .brand-mark { width: 22px; height: 22px; }
  .nav-cta { order: 2; margin-left: auto; padding: 5px 10px; font-size: .8rem; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; gap: 16px; margin: 0 -16px; padding: 0 16px 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: .9rem; }
  .eyebrow { font-size: .7rem; letter-spacing: .08em; }
}

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, #1b5ea3); color: #fff; padding: 64px 0 56px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px); background-size: 28px 28px; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,44,80,.3), transparent 50%, rgba(27,94,163,.15)); }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; right: -160px; top: -200px; background: #2f7fd6; animation: glow 9s ease-in-out infinite alternate; }
.glow-2 { width: 380px; height: 380px; left: -140px; bottom: -220px; background: var(--accent); opacity: .3; animation: glow 11s ease-in-out infinite alternate-reverse; }
.hero-path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; }
.hero-path path { animation: dash 12s linear infinite; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 48px; align-items: center; }
.hero-bottom { grid-column: 1 / -1; }
.hero-art svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.drone { animation: float 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.prop { animation: spin .4s linear infinite; transform-box: fill-box; transform-origin: center; }
.drone-shadow { animation: shadow 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .25; } 50% { transform: scale(.85); opacity: .15; } }
@keyframes dash { to { stroke-dashoffset: -360; } }
@keyframes glow { to { transform: translate(40px, 30px) scale(1.1); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art svg { max-width: 300px; } .hero { padding-top: 40px; } .hero-path { display: none; } }
@media (prefers-reduced-motion: reduce) { .drone, .prop, .drone-shadow, .hero-path path, .glow { animation: none; } }
.hero h1 { max-width: 820px; }
.hero .lead { max-width: 720px; font-size: 1.15rem; opacity: .92; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .8; margin-bottom: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0; }
.hero-facts > div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.fact-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; opacity: .75; }
.hero-facts strong { font-size: 1.1rem; }
.hero-facts span:last-child { font-size: .9rem; opacity: .85; }
.hero-note { margin-top: 14px; font-size: .9rem; opacity: .85; }

/* sections */
.invitation-greeting { font-weight: 700; font-size: 1.1rem; }
.invitation-signature { font-weight: 600; color: var(--primary); margin-top: 1.4em; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.check-list, .plain-list { padding-left: 0; list-style: none; margin: 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.tracks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px; }
.track { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: baseline; font-weight: 500; }
.track-num { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.program { list-style: none; padding: 0; margin: 0; }
.program li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .program li { grid-template-columns: 1fr; gap: 4px; } }
.program-time { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.program p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.program-note { max-width: 760px; margin-top: 18px; padding: 14px 18px; background: #fff; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }

/* о форуме */
.about-intro { max-width: 820px; margin-bottom: 28px; }
.about-intro p { font-size: 1.05rem; }
.about-cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
.about-cards .card h3 { margin-bottom: 14px; }
.about-cards .check-list li { margin-bottom: 10px; }
@media (max-width: 760px) { .about-cards { grid-template-columns: 1fr; } }

/* боковые карточки, программа, регистрация, контакты */
.program-grid, .register-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px 40px; align-items: start; }
.side-stack { display: grid; gap: 16px; position: sticky; top: 84px; }
.card-accent { border-left: 4px solid var(--accent); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 40px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .9rem; }
.org-list, .contact-list { list-style: none; padding: 0; margin: 0; }
.org-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.org-list li:last-child, .contact-list li:last-child { border-bottom: 0; }
.org-logo { flex: 0 0 150px; width: 150px; height: 76px; object-fit: contain; object-position: center; border-radius: 8px; }
.org-list a { color: inherit; text-decoration: none; }
.org-list a:hover { color: var(--primary); text-decoration: underline; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: var(--muted); padding-top: 4px; font-weight: 600; }
@media (max-width: 860px) { .program-grid, .register-grid { grid-template-columns: 1fr; } .side-stack { position: static; } }
@media (max-width: 600px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } .contact-label { padding-top: 0; } }
.contact-list a { overflow-wrap: anywhere; }

/* партнёры */
.venue-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.venue-photo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.venue-photo img { display: block; width: 100%; height: 100%; min-height: 220px; max-height: 420px; object-fit: cover; }
.venue-photo figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; margin-top: auto; }
@media (max-width: 860px) { .venue-grid { grid-template-columns: 1fr; } .venue-photo img { max-height: 260px; } }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.partner { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; min-height: 120px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
a.partner:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(15,61,110,.08); }
.partner img { max-width: 100%; max-height: 72px; object-fit: contain; display: block; }
.partner-name { font-weight: 600; text-align: center; font-size: .92rem; line-height: 1.3; }

/* свёрнутый текст */
.collapse { margin: 4px 0 8px; }
.collapse summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; padding: 6px 0; }
.collapse summary::-webkit-details-marker { display: none; }
.collapse summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.collapse[open] summary::before { transform: rotate(-135deg); margin-top: 4px; }
.collapse-close, .collapse[open] .collapse-open { display: none; }
.collapse[open] .collapse-close { display: inline; }
.collapse-body { padding-top: 10px; max-width: 760px; }

/* спикеры */
.speakers-head { margin: 44px 0 4px; font-size: 1.4rem; }
.speakers-block { padding-top: 8px; }
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.speaker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.speaker-avatar { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; letter-spacing: .02em; }
.speaker-photo { object-fit: cover; object-position: center top; display: block; }
.speaker-logo { object-fit: contain; display: block; background: #fff; border: 1px solid var(--line); padding: 8px; box-sizing: border-box; }
.speaker-name { font-weight: 700; line-height: 1.3; }
.speaker-company { color: var(--muted); font-size: .9rem; margin: 2px 0 8px; }
.speaker-topic { font-size: .95rem; padding-left: 10px; border-left: 3px solid var(--accent); }

/* buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--primary); background: #fff; color: var(--primary); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--bg-alt); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #d97a1c; }
.btn-secondary { background: #fff; }
.btn-large { padding: 14px 28px; font-size: 1.05rem; }
.btn-small { padding: 6px 14px; font-size: .9rem; background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-link { background: none; border: 0; cursor: pointer; font: inherit; padding: 4px 8px; }

/* forms */
.form-wrap { max-width: 760px; min-width: 0; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field em { color: var(--danger); font-style: normal; }
.field input, .field textarea, .field select, .toolbar input, .toolbar select {
  font: inherit; padding: 10px 12px; border: 1px solid #b8c2cd; border-radius: 8px; background: #fff; width: 100%; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field-error { color: var(--danger); font-size: .875rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2.tight { gap: 6px 18px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.choice input, .field .choice input { width: auto; margin: 5px 0 0; flex: 0 0 auto; accent-color: var(--primary); }
.consent { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #fdecea; color: var(--danger); }
.alert-info { background: #e8f4fd; color: var(--primary-dark); }
.alert-warn { background: #fff4e5; color: #8a4b08; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

/* footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 32px 0; font-size: .9rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; }

/* admin */
body.admin { background: var(--bg-alt); font-size: 15px; }
body.admin main { padding: 24px 16px 48px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-direction: column; }
.stats strong { font-size: 1.5rem; color: var(--primary); }
.stats span { font-size: .8rem; color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar input { flex: 1 1 260px; }
.toolbar select { flex: 0 1 220px; width: auto; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfc; }
.row-muted { opacity: .55; }
.inline { display: inline; }
.table select { font: inherit; font-size: .85rem; padding: 4px 6px; border-radius: 6px; border: 1px solid #b8c2cd; }
.status-confirmed { border-color: var(--ok) !important; color: var(--ok); }
.status-cancelled { color: var(--danger); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #e8f4fd; font-size: .75rem; }
.tag-warn { background: #fff4e5; color: #8a4b08; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pre { white-space: pre-wrap; font: inherit; background: var(--bg-alt); padding: 12px; border-radius: 8px; }

/* юридические страницы */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.15rem; margin: 1.6em 0 .5em; color: var(--primary); }
.legal p, .legal li { font-size: 1rem; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal .consent-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
.footer-legal { margin-top: 10px !important; font-size: .85rem; opacity: .85; }

/* админка: посещения */
.visits { margin: 0 0 18px; padding: 10px 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.visits summary { cursor: pointer; font-size: .95rem; }
.visits summary strong { color: var(--primary); }
.visits .table { margin-top: 10px; max-width: 420px; }
.table-compact th, .table-compact td { padding: 4px 10px; font-size: .9rem; }
