:root {
  --ink: #12201d;
  --muted: #65736f;
  --line: rgba(18, 32, 29, .14);
  --green: #16765c;
  --green-dark: #0f4f43;
  --gold: #c29b4b;
  --paper: #f7f5ef;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 245, 239, .94);
  box-shadow: 0 12px 40px rgba(18, 32, 29, .08);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 168px;
  height: auto;
  filter: none;
}

.top-nav {
  justify-self: center;
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.top-nav a,
.header-phone,
.site-footer a {
  text-decoration: none;
}

.header-phone {
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #050505;
  display: grid;
  align-content: center;
  gap: clamp(34px, 6vw, 70px);
  padding: 120px clamp(18px, 7vw, 126px) 64px;
  background: #fff;
}

.hero-rings {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 40%, transparent 0 142px, rgba(18, 220, 190, .16) 143px 146px, transparent 147px 224px, rgba(18, 220, 190, .14) 225px 228px, transparent 229px),
    radial-gradient(circle at -2% -5%, transparent 0 104px, rgba(18, 220, 190, .18) 105px 108px, transparent 109px 170px, rgba(18, 220, 190, .18) 171px 174px, transparent 175px);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(18px, 4vw, 70px);
}

.hero-content,
.hero-visual,
.hero-organizers {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.04;
  font-weight: 800;
}

h1 span {
  display: block;
  color: #0d6df2;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  margin-bottom: 34px;
  font-size: clamp(18px, 2vw, 24px);
  color: #050505;
}

.hero-actions,
.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  min-width: 250px;
  min-height: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d72f4 0%, #0cc4d3 54%, #10e2af 100%);
  font-size: 28px;
  text-transform: uppercase;
}

.button.primary:hover {
  background: #1a8a6c;
}

.button.secondary {
  color: inherit;
  border: 1px solid currentColor;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 700px;
  margin-top: 34px;
  color: #0865e8;
  font-size: 18px;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-cover-svg {
  width: min(100%, 560px);
  margin-left: auto;
  overflow: visible;
}

.svg-ring {
  fill: none;
  stroke: rgba(13, 224, 190, .16);
  stroke-width: 3;
}

.svg-ring.thin {
  stroke: rgba(13, 224, 190, .2);
}

.hero-device {
  filter: drop-shadow(0 18px 28px rgba(10, 28, 24, .16));
}

.hero-pie {
  transform-origin: 376px 214px;
}

.pie-slice {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .28s ease, filter .28s ease;
}

.slice-a,
.slice-b {
  fill: url("#aquaGradient");
}

.slice-c {
  fill: url("#blueGradient");
}

.pie-cut {
  fill: none;
  stroke: rgba(255, 255, 255, .96);
  stroke-width: 5;
}

.hero-pie:hover .slice-a {
  transform: translate(-12px, 10px) scale(1.035);
}

.hero-pie:hover .slice-b {
  transform: translate(8px, 14px) scale(1.04);
}

.hero-pie:hover .slice-c {
  transform: translate(12px, 0) scale(1.04);
}

.hero-pie:hover .pie-slice {
  filter: drop-shadow(0 18px 20px rgba(13, 109, 242, .18));
}

.date-text {
  fill: #fff;
  font-size: 32px;
  font-weight: 800;
  pointer-events: none;
}

.hero-organizers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 8vw, 90px);
  align-items: end;
}

.hero-organizers > div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
}

.hero-organizers p {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.organizer-mark {
  display: block;
  width: 74px;
  height: 74px;
  color: #060620;
}

.plus-mark {
  position: relative;
}

.plus-mark::before,
.plus-mark::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 5px solid currentColor;
  border-radius: 16px;
}

.plus-mark::after {
  transform: rotate(90deg);
}

.mst-mark {
  display: grid;
  place-items: center;
  border: 4px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
}

.section-grid,
.speakers,
.program,
.register {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(120px, 260px) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}

.section-label {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .1em;
}

.intro-copy,
.donation-copy {
  max-width: 920px;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.04;
}

.intro-copy > p,
.donation-copy > p,
.register-inner > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.details {
  display: grid;
  gap: 0;
  margin: 48px 0 0;
}

.details div,
.timeline-item,
.speaker {
  border-top: 1px solid var(--line);
}

.details div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 22px 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.timeline-item {
  padding-top: 24px;
}

.timeline-item time {
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 16px 0 10px;
  font-size: 36px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  max-width: 900px;
  margin-bottom: 42px;
}

.speaker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 52px;
}

.speaker {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 26px 0;
}

.speaker img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.speaker h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.speaker p {
  margin: 0;
  color: var(--muted);
}

.program {
  background: #fff;
}

.program-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.program-image {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.program-image img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(18, 32, 29, .12);
  transition: transform .22s ease, box-shadow .22s ease;
}

.program-image:hover img {
  transform: translateY(-4px);
  box-shadow: 0 32px 90px rgba(18, 32, 29, .18);
}

.donation-copy a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green);
  font-weight: 800;
}

.register {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(15, 79, 67, .97), rgba(18, 32, 29, .95)),
    url("https://ultramed-nn.ru/wp-content/uploads/2026/04/konf-2026-registracziya.png") center / cover;
}

.register-inner {
  max-width: 900px;
}

.register-inner > p {
  color: rgba(255, 255, 255, .78);
}

.register .button.secondary {
  color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, .72);
  background: var(--ink);
}

.image-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
}

.image-modal.is-open {
  display: flex;
}

.image-modal img {
  max-height: 92svh;
  border-radius: 6px;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .brand img {
    width: 146px;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout,
  .section-grid,
  .timeline,
  .speaker-list,
  .program-images,
  .hero-organizers {
    grid-template-columns: 1fr;
  }

  .hero-cover-svg {
    margin: 0 auto;
  }

  .details div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-phone {
    font-size: 13px;
  }

  .hero {
    padding: 96px 16px 30px;
  }

  .hero-content {
    padding-bottom: 32px;
  }

  h1 {
    font-size: 38px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    text-align: center;
  }

  .button.primary {
    min-height: 58px;
    font-size: 22px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-organizers > div {
    grid-template-columns: 54px 1fr;
  }

  .organizer-mark {
    width: 54px;
    height: 54px;
  }

  .speaker {
    grid-template-columns: 84px 1fr;
    gap: 16px;
  }

  .speaker img {
    width: 84px;
  }

  .speaker h3 {
    font-size: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
