/* Шрифт Inter лежит на самом сайте (assets/fonts), а не на серверах Google: быстрее грузится и не зависит от доступности Google Fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 300; src: url('../fonts/inter-cyrillic-300-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url('../fonts/inter-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url('../fonts/inter-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 300; src: url('../fonts/inter-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 300; src: url('../fonts/inter-latin-300-normal.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-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 400; src: url('../fonts/inter-latin-400-normal.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-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 500; src: url('../fonts/inter-latin-500-normal.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; }

:root {
  --c-bg: #FAF9F7;
  --c-surface: #FFFFFF;
  --c-ink: #2D2235;
  --c-muted: #6F6477;
  --c-accent: #9B7BAF;
  --c-accent-dk: #7A5C94;
  --c-accent-lt: #F0EBF5;
  --c-line: #E2DAE8;
  --c-sea: #284546;
  --c-sea-lt: #E8EEEE;
  --c-btn: #876A9F;
  --c-btn-dk: #735787;
  --f-display: 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --max-w: 1100px;
  --max-w-wide: 1200px;
  --max-w-text: 860px;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(45, 34, 53, 0.06);
  --shadow-hover: 0 6px 20px rgba(45, 34, 53, 0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--c-bg); color: var(--c-ink); font-family: var(--f-body); font-weight: 300; font-size: 1.05rem; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,249,247,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-line); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2.5rem; }
.nav-item { position: relative; }
/* вертикальные отступы растягивают зону наведения на всю высоту шапки,
   поэтому между пунктом и списком не остаётся «мёртвой» полосы */
.nav-link { display: block; padding: 1.15rem 0; font-size: 1rem; color: var(--c-ink); text-decoration: none; cursor: pointer; transition: color 0.2s; }
.nav-link:hover { color: var(--c-accent); }
.nav-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--c-surface); border: 1px solid var(--c-line); min-width: 260px; padding: 0.9rem 0 0.5rem; opacity: 0; visibility: hidden; transition: opacity 0.2s ease 0.3s, visibility 0s linear 0.5s; z-index: 200; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-radius: var(--radius); overflow: hidden; }
/* прозрачный «мостик» под пунктом меню — страховка от щели в полпиксела */
.nav-dropdown::before { content: ''; position: absolute; top: -1.15rem; left: 0; right: 0; height: 1.15rem; }
/* открывается сразу; закрывается с задержкой 0.3s, и всё это время остаётся
   кликабельным (visibility снимается позже) — курсор можно вернуть обратно */
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
.nav-dropdown a { display: block; padding: 0.7rem 1.5rem; font-size: 0.95rem; text-decoration: none; color: var(--c-ink); transition: background 0.15s; }
.nav-dropdown a:hover { background: var(--c-accent-lt); color: var(--c-accent); }
.header-socials { display: flex; gap: 1rem; }
.header-socials a { font-size: 0.85rem; font-weight: 500; color: var(--c-muted); text-decoration: none; transition: color 0.2s; letter-spacing: 0.04em; }
.header-socials a:hover { color: var(--c-accent); }

.site-footer { border-top: 1px solid var(--c-line); padding: 4rem 2rem 2rem; margin-top: 5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--c-line); }
.footer-col-title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.95rem; color: var(--c-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--c-ink); }
.footer-bottom { max-width: var(--max-w); margin: 1.5rem auto 0; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--c-muted); }
.footer-bottom a { color: var(--c-muted); text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
/* колонка для чтения: ограничение только по пикселям, без процентов —
   иначе на средних экранах текст сжимался до 80% ширины окна */
.container--text { width: 100%; max-width: var(--max-w-text); margin: 0 auto; padding: 0 2rem; }
/* лендинговые страницы с сетками карточек — ширина как в оригинале (1200px) */
.container--wide { width: 100%; max-width: var(--max-w-wide); margin: 0 auto; padding: 0 2rem; }


.btn { display: inline-block; font-family: var(--f-body); font-size: 1rem; font-weight: 400; letter-spacing: 0.03em; text-decoration: none; padding: 0.875rem 2.25rem; transition: all 0.2s; cursor: pointer; border: 1px solid transparent; border-radius: 50px; }
.btn--primary { background: var(--c-btn); color: #fff; border-color: var(--c-btn); box-shadow: 0 2px 8px rgba(135, 106, 159, 0.30); }
.btn--primary:hover { background: var(--c-btn-dk); border-color: var(--c-btn-dk); box-shadow: 0 4px 14px rgba(135, 106, 159, 0.40); }
.btn--outline { background: transparent; color: var(--c-btn-dk); border-color: var(--c-btn); }
.btn--outline:hover { background: var(--c-btn); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-btn-dk); border-color: transparent; padding-left: 0; padding-right: 0; box-shadow: none; }
.btn--ghost::after { content: ' →'; }

.hero { padding: 4rem 0; border-bottom: 1px solid var(--c-line); }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: center; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 1.25rem; }
.hero-title { font-family: var(--f-body); font-size: 3.25rem; font-weight: 300; line-height: 1.15; margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; color: var(--c-accent); }
.hero-text { font-size: 1.15rem; color: var(--c-muted); max-width: 500px; margin-bottom: 2rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.section { padding: 80px 0; }
.section--alt { background: var(--c-surface); }
/* заголовки секций по центру — как в оригинале */
.section-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.75rem; text-align: center; }
.section-title { font-family: var(--f-body); font-size: 2.5rem; font-weight: 300; line-height: 1.15; margin-bottom: 1.25rem; text-align: center; }
.section-title em { font-style: italic; color: var(--c-accent); }
/* секции с двухколоночной вёрсткой, где заголовок стоит в левой колонке */
.section--split .section-label, .section--split .section-title { text-align: left; }

.cards { display: grid; gap: 1.5rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); padding: 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card img { border-radius: calc(var(--radius) - 4px); }
/* картинки-плитки, лежащие прямо в сетке (галерея комьюнити) */
.cards > img { border-radius: var(--radius); box-shadow: var(--shadow); }
.card--accent { background: var(--c-accent-lt); border-color: transparent; }
.card-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.6rem; }
.card-text { font-size: 1rem; color: var(--c-muted); line-height: 1.7; }
.card-num { font-size: 3rem; font-weight: 300; color: var(--c-line); line-height: 1; margin-bottom: 0.75rem; }

.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.testimonial { border: 1px solid var(--c-line); padding: 1.75rem; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.testimonial:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.testimonial-text { font-family: var(--f-body); font-size: 1.05rem; font-weight: 300; font-style: normal; line-height: 1.75; margin-bottom: 1.25rem; color: var(--c-ink); }
.testimonial-author { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.testimonial-role { font-size: 0.8rem; color: var(--c-muted); margin-top: 0.2rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--c-line); background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.step { padding: 1.75rem; border-right: 1px solid var(--c-line); }
.step:last-child { border-right: none; }
.step-num { font-size: 3rem; font-weight: 300; color: var(--c-accent-lt); line-height: 1; margin-bottom: 0.75rem; }
.step-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.6rem; }
.step-text { font-size: 1rem; color: var(--c-muted); line-height: 1.7; margin-bottom: 1.25rem; }

.cta-block { border: 1px solid var(--c-line); padding: 3.5rem 3rem; text-align: center; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-title { font-size: 2.5rem; font-weight: 300; margin-bottom: 1rem; }
.cta-text { color: var(--c-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }

.course-hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--c-line); }
.course-tag { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent-dk); background: var(--c-accent-lt); padding: 0.2rem 0.7rem; border-radius: 50px; }
.course-meta { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.course-date { font-size: 0.95rem; color: var(--c-muted); }
.course-title { font-size: 3rem; font-weight: 300; line-height: 1.15; max-width: 800px; margin-bottom: 1.25rem; }
.course-subtitle { font-size: 1.2rem; color: var(--c-muted); max-width: 600px; line-height: 1.75; margin-bottom: 2rem; }

.article-hero { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--c-line); }
.article-meta { display: flex; gap: 1rem; margin-bottom: 1.25rem; font-size: 0.8rem; color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.article-title { font-size: 3rem; font-weight: 300; line-height: 1.15; max-width: 820px; }
.article-body { padding: 3rem 0 5rem; }
.article-body p { font-size: 1.1rem; line-height: 1.85; margin-bottom: 1.5rem; }
/* заголовки разделов статьи по центру — как в оригинале */
.article-body h2 { font-size: 2rem; font-weight: 400; margin: 4rem 0 2rem; clear: both; text-align: center; }
.article-body h3 { font-size: 1.3rem; font-weight: 500; margin: 2.5rem 0 1rem; clear: both; }
.article-body blockquote { border-left: 2px solid var(--c-accent); padding-left: 2rem; margin: 2rem 0; font-size: 1.2rem; font-style: italic; color: var(--c-muted); line-height: 1.6; }
/* на широком лендинге текст между блоками карточек держим читаемой ширины
   и по центру — как в оригинале */
.article-body .container--wide > p { max-width: var(--max-w-text); margin-left: auto; margin-right: auto; text-align: center; }
.btn-row { margin: 2.5rem 0; text-align: center; }

.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 2rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-title { font-size: 2.5rem; }
  .course-title { font-size: 2.5rem; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--c-line); }
  .step:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .article-title { font-size: 2rem; }
  .course-title { font-size: 2rem; }
  .cards--2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .container, .container--text, .container--wide { padding: 0 1rem; }
  .section { padding: 48px 0; }
}
.article-cover {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

.article-cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover__filter {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.article-cover__title {
  position: relative;
  z-index: 2;
  font-family: var(--f-body);
  font-size: 4rem;
  font-weight: 300;
  color: #fff;
  text-align: center;
  letter-spacing: 0.05em;
}

.article-cover__title strong {
  font-weight: 500;
}

@media (max-width: 600px) {
  .article-cover__title { font-size: 2.5rem; }
}
.article-body strong {
  font-weight: 500;
}

/* Картинки в статьях */

/* по центру, на всю ширину текстовой колонки */
.article-img { width: 100%; margin: 2rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* с обтеканием текстом справа (как блоки T167/T195/T477 на plinemetod.ru) */
.article-img--wrap {
  float: right;
  width: 42%;
  margin: 0.3rem 0 1.5rem 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* широкая полоса-обложка во всю ширину экрана */
.article-band { width: 100%; margin: 3rem 0; }
.article-band img { width: 100%; height: 75vh; object-fit: cover; }
.article-band--short img { height: 60vh; }
.article-band--parallax {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 700px) {
  .article-img--wrap { float: none; width: 100%; margin: 2rem 0; }
  .article-band img { height: 50vh; }
  .article-band--short img { height: 45vh; }
  .article-band--parallax { height: 60vh; background-attachment: scroll; }
}

/* ── Шапка: бургер и мобильное меню ───────────────────── */
.site-logo { flex-shrink: 0; }
.header-menu { display: contents; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; margin-right: -8px; background: transparent; border: 0; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle:focus-visible { outline: 2px solid var(--c-accent-dk); outline-offset: 2px; }
.nav-toggle__bar { display: block; width: 22px; height: 1.5px; background: var(--c-ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.site-header.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }

@media (max-width: 860px) {
  .header-inner { padding: 0 1rem; gap: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header-menu {
    display: none; flex-direction: column; gap: 1.4rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line);
    padding: .8rem 1.25rem 1.6rem;
    max-height: calc(100vh - 70px); overflow-y: auto;
    box-shadow: 0 18px 30px rgba(45,34,53,.10);
  }
  .site-header.is-open .header-menu { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav-item { border-bottom: 1px solid var(--c-line); padding: .35rem 0 .6rem; }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link { padding: .5rem 0; font-size: 1.05rem; }
  .nav-item > span.nav-link { font-size: .85rem; letter-spacing: .06em; color: var(--c-muted); cursor: default; }
  .site-header .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent;
    display: flex; flex-direction: column;
  }
  .site-header .nav-dropdown::before { display: none; }
  .site-header .nav-dropdown a { padding: .6rem 0 .6rem .9rem; font-size: 1.05rem; border-left: 2px solid var(--c-line); }
  .site-header .nav-dropdown a:hover { background: transparent; border-left-color: var(--c-accent); }
  .header-socials { gap: 1.4rem; }
  .header-socials a { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle__bar { transition: none; } }

/* ── Плавная прокрутка и появление блоков ─────────────── */
html { scroll-padding-top: 84px; }
.js-reveal main .section > .container > * { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js-reveal main .section > .container > *:not(.is-visible) { opacity: 0; transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
