/* Нефродиета — лендинг. Палитра: синий и голубой лист + персиковые акценты. */

:root {
  --blue: #3f8fd8;
  --blue-dark: #1f5fa8;
  --blue-soft: #8cc4f0;
  --blue-bg: #eaf4fc;
  --peach: #f5c6a0;
  --peach-dark: #e59b67;
  --peach-bg: #fcf1e9;
  --text: #25334a;
  --muted: #66758a;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 12px 40px rgba(40, 80, 130, 0.12);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: 14px; }

/* ── Кнопки и метки ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  border-radius: 16px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--blue);
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(63, 143, 216, 0.35);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue-dark); box-shadow: none; }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.btn--small { padding: 10px 20px; font-size: 14px; border-radius: 12px; }

.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pill {
  padding: 8px 18px; border-radius: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--white);
}
.pill--blue { background: linear-gradient(90deg, var(--blue-soft), var(--blue)); }
.pill--peach { background: var(--peach); color: #fff; }

/* Лист: форма из двух скруглённых противоположных углов */
.leaf { position: absolute; border-radius: 0 72% 0 72%; }

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 241, 233, 0.92);
  backdrop-filter: blur(10px);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__text {
  font-size: 11px; line-height: 1.1; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--blue); transition: right .25s;
}
.nav a:hover::after { right: 0; }
.burger { display: none; }

/* ── Первый экран ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; left: 0; top: 104px; width: 32%; height: 40px;
  background: linear-gradient(90deg, rgba(140, 196, 240, .55), rgba(140, 196, 240, 0));
  border-radius: 0 12px 12px 0; z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__kicker { color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.hero__title {
  font-size: clamp(44px, 7vw, 84px); font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em;
  background: linear-gradient(180deg, var(--blue-soft), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 24px;
}
.hero__lead { font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; max-width: 520px; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.leaf--hero {
  width: 88%; aspect-ratio: 1; right: 0; top: 50%; transform: translateY(-50%);
  background: linear-gradient(135deg, #e2f0fb 0%, #c7e2f7 100%);
}
.hero__visual::after {
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; left: 2%; bottom: 0;
  border-radius: 72% 0 72% 0; background: var(--peach-bg); z-index: 0;
}
/* Картинка — исходная, с рамкой, без обработки (решение оператора 2026-09-21) */
.hero__img { position: relative; z-index: 1; width: 92%; }

/* ── Общие секции ───────────────────────────────────────────────────────── */
.section { padding: 96px 0; position: relative; }
.section--peach { background: var(--peach-bg); }
.section--blue { background: var(--blue-bg); }
.section__title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 600; text-transform: uppercase;
  color: var(--blue); letter-spacing: .02em; margin-bottom: 20px;
}
.section__lead { color: var(--muted); font-size: 17px; max-width: 720px; margin-bottom: 40px; }

/* ── О школе ────────────────────────────────────────────────────────────── */
.about__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.about__lead { font-size: 20px; font-weight: 600; line-height: 1.45; }
.about__text p:not(.about__lead) { color: var(--muted); }
.about__text .btn { margin-top: 12px; }
.about__card {
  margin: 0; background: var(--white); border-radius: var(--radius); padding: 40px 32px;
  text-align: center; box-shadow: var(--shadow); position: relative;
}
.about__card::before {
  content: ""; position: absolute; width: 90px; height: 90px; top: -28px; right: -20px;
  border-radius: 0 72% 0 72%; background: var(--blue-soft); opacity: .6;
}
.about__card img { width: 180px; margin: 0 auto 16px; }
.about__card figcaption { color: var(--muted); font-size: 14px; }

.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 6px 24px rgba(40, 80, 130, .07);
}
.card h3 { font-size: 19px; font-weight: 700; margin: 12px 0 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
/* ── Приложение ─────────────────────────────────────────────────────────── */
.app__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__n {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: var(--blue); color: #fff; font-weight: 800;
}
.step:nth-child(even) .step__n { background: var(--peach); }
.step h3 { font-size: 17px; font-weight: 700; margin: 2px 0 4px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.app__note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--blue-soft); padding-left: 14px; }

.app__phones { position: relative; height: 620px; }
.leaf--app { width: 80%; aspect-ratio: 1; left: 10%; top: 8%; background: var(--peach-bg); }
.phone {
  position: absolute; width: 250px; border-radius: 40px; padding: 10px;
  background: #1c2533; box-shadow: 0 30px 60px rgba(30, 45, 70, .25);
}
.phone img { border-radius: 30px; }
.phone--back { left: 6%; top: 60px; transform: rotate(-7deg); opacity: .96; }
.phone--front { right: 6%; top: 0; transform: rotate(4deg); }

/* ── Важно ──────────────────────────────────────────────────────────────── */
.notice { padding: 0 0 96px; }
.notice__box {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px 32px; border-radius: var(--radius);
  background: var(--peach-bg); border: 1px dashed var(--peach);
}
.notice__box p { margin: 0; }
.notice__icon { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--peach-dark); stroke-width: 3; stroke-linecap: round; }

/* ── Контакты ───────────────────────────────────────────────────────────── */
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact h3 { margin-top: 0; }
.contact .muted { margin-bottom: 16px; }
.contact__link { display: block; font-weight: 600; color: var(--blue-dark); text-decoration: none; margin-top: 6px; word-break: break-all; }
.contact__link:hover { text-decoration: underline; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Подвал ─────────────────────────────────────────────────────────────── */
.footer { padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* ── Адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero__inner, .about__inner, .app__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .app__phones { max-width: 520px; width: 100%; margin: 0 auto; }
}

@media (max-width: 760px) {
  .header__cta { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: var(--peach-bg); box-shadow: 0 12px 20px rgba(0, 0, 0, .06);
    display: none;
  }
  .nav--open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #f0dfd2; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 32px; }
  .hero::before { display: none; }
  .hero__lead { font-size: 15px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .app__phones { height: 480px; }
  .phone { width: 190px; border-radius: 32px; padding: 8px; }
  .phone img { border-radius: 25px; }
  .notice__box { flex-direction: column; padding: 22px; }
  .about__card::before { right: -8px; }
}
