@font-face {
  font-family: "Forum";
  src: url("../fonts/Forum-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  src: url("../fonts/Lora-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  src: url("../fonts/Lora-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  src: url("../fonts/Lora-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  src: url("../fonts/Lora-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}

:root {
  --bg: #fbf8f6;
  --surface: #fff;
  --pink: #fbd6d4;
  --pink-soft: #fdecea;
  --wine: #7e2344;
  --blue: #3b5870;
  --blue-hover: #2c4356;
  --text: #2b2b2e;
  --muted: #6b6468;
  --line: #eadfdc;
  --radius: 16px;
  --heading: "Forum", Georgia, serif;
  --body: "Lora", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body { margin: 0; background: var(--bg); }

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--wine); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.section { padding-block: clamp(56px, 8vw, 96px); scroll-margin-top: 72px; }
.section--pink { background: var(--pink-soft); }

.section__lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  font: 1rem/1.2 var(--body);
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover, .btn:focus-visible { background: var(--blue-hover); border-color: var(--blue-hover); }

.btn--ghost { color: var(--blue); background: transparent; }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; }

.btn--small { padding: 10px 20px; font-size: 0.95rem; }

.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(251 248 246 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--heading);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--blue);
}

.logo img { width: 56px; }
.logo small { display: block; font-size: 0.8em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--wine); }

/* ---------- Первый экран ---------- */

.hero { background: var(--pink); overflow: hidden; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 32px;
}

.hero__text { padding-block: clamp(48px, 8vw, 96px); }

.hero__eyebrow {
  color: var(--wine);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); color: var(--wine); margin-bottom: 8px; }

.hero__role { font-family: var(--heading); font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 24px; }

.hero__lead { font-size: 1.15rem; max-width: 32rem; margin-bottom: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }

.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.65);
  font-size: 0.95rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__photo { position: relative; align-self: end; }

.hero__photo img { position: relative; width: 100%; max-width: 520px; margin-left: auto; }

.hero__stat {
  position: absolute;
  left: 0;
  bottom: 48px;
  z-index: 1;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(126 35 68 / 0.12);
  line-height: 1.2;
}

.hero__stat b { display: block; font-family: var(--heading); font-weight: 400; font-size: 2.4rem; color: var(--wine); }

/* ---------- С чем работаю ---------- */

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.topics li {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.topics b { display: block; font-family: var(--heading); font-weight: 400; font-size: 1.3rem; color: var(--blue); margin-bottom: 4px; }
.topics span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Принципы ---------- */

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.principle svg { width: 44px; height: 44px; color: var(--wine); margin-bottom: 16px; }
.principle h3 { color: var(--blue); }
.principle p { color: var(--muted); }

/* ---------- Первая встреча ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 0; list-style: none; counter-reset: step; }

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--wine);
  font-family: var(--heading);
  font-size: 1.5rem;
}

.steps b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Форматы ---------- */

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.format {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.format--accent { border-color: var(--wine); box-shadow: 0 10px 30px rgb(126 35 68 / 0.1); }

.format h3 { color: var(--blue); }
.format ul { padding-left: 1.1em; color: var(--muted); flex: 1; }
.format__price { font-family: var(--heading); font-size: 1.8rem; color: var(--wine); margin: 8px 0 20px; }

/* ---------- Обо мне ---------- */

.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.about img { border-radius: var(--radius); }
.about blockquote {
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--pink);
  font-family: var(--heading);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--wine);
}

/* ---------- Дипломы ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery a {
  display: block;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery a:hover, .gallery a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgb(126 35 68 / 0.12);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.lightbox {
  max-width: 95vw;
  max-height: 95vh;
  padding: 0;
  border: none;
  background: transparent;
}

.lightbox::backdrop { background: rgb(0 0 0 / 0.8); }

.lightbox img { max-width: 95vw; max-height: 95vh; cursor: zoom-out; }

/* ---------- Книга ---------- */

.book { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.book img { border-radius: 8px; box-shadow: 0 20px 40px rgb(0 0 0 / 0.25); }
.book__title { font-style: italic; }
.book .chips li { background: var(--surface); border: 1px solid var(--line); }

/* ---------- Запись ---------- */

.cta { background: var(--blue); color: #fff; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: rgb(255 255 255 / 0.85); max-width: 32rem; }

.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta .btn { background: #fff; color: var(--blue); border-color: #fff; }
.cta .btn:hover, .cta .btn:focus-visible { background: var(--pink); border-color: var(--pink); }
.cta .btn--ghost { background: transparent; color: #fff; }
.cta .btn--ghost:hover, .cta .btn--ghost:focus-visible { color: var(--blue); }

.cta__contacts { margin-top: 32px; font-size: 1.05rem; }
.cta__contacts a { text-decoration: none; }
.cta__contacts a:hover { text-decoration: underline; }

/* ---------- Форма ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.form h3 { color: var(--blue); margin-bottom: 4px; }

.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font: inherit;
}

.form input:focus, .form textarea:focus { outline: 2px solid var(--pink); border-color: var(--wine); }

.form textarea { min-height: 7rem; resize: vertical; }

.form__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.form__consent input { width: auto; margin-top: 0.3em; }

.form .btn { align-self: flex-start; }
.form .btn:disabled { opacity: 0.6; cursor: wait; }

.form__status { margin: 0; color: var(--blue); }
.form__trap { display: none; }

.cta .form .btn { background: var(--blue); color: #fff; border-color: var(--blue); }
.cta .form .btn:hover, .cta .form .btn:focus-visible { background: var(--blue-hover); border-color: var(--blue-hover); }

.footer { padding-block: 24px; text-align: center; color: var(--muted); font-size: 0.9rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 404 ---------- */

.not-found { text-align: center; }
.not-found p { color: var(--muted); }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .hero__inner, .about, .book, .cta__inner { grid-template-columns: 1fr; }
  .hero__text { padding-bottom: 0; }
  .hero__photo img { margin-inline: auto; max-width: 400px; }
  .hero__stat { bottom: 24px; }
  .principles, .formats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .book img { max-width: 260px; margin-inline: auto; }
  .about img { max-height: 360px; width: 100%; object-fit: cover; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .header { position: static; }
  .header__inner { flex-wrap: wrap; gap: 4px 24px; justify-content: center; }
  .nav { gap: 14px; font-size: 0.9rem; white-space: nowrap; }
  .nav .btn { display: none; }
  .logo img { width: 44px; }
  .steps { grid-template-columns: 1fr; }
  .format, .form { padding: 24px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery a { padding: 6px; }
}
