/* Шрифт подключается локально — см. css/fonts.css. */

/* ============================================================
   Evgeny Fist — minimalist, light, photo-centric theme
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2b2b2b;
  --muted: #8a8a8a;
  --line: #e8e8e8;
  --line-strong: #d2d2d2;
  --accent: #0a0a0a;
  --surface: #f6f6f4;

  /* Одна гарнитура на весь сайт: заголовки отличаются насыщенностью
     и плотностью межбуквенного просвета, а не другим шрифтом. */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 72px;

  --t: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; transition: opacity var(--t), color var(--t); }
a:hover { opacity: 0.6; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }

.ef-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Eyebrow / labels ---- */
.ef-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   Header
   ============================================================ */
.ef-header {
  position: sticky;
  top: var(--ef-admin-offset, 0px);
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.ef-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ef-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ef-logo:hover { opacity: 1; }

.ef-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.4vw, 40px); }
.ef-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.ef-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width var(--t);
}
.ef-nav a:hover { opacity: 1; }
.ef-nav a:hover::after,
.ef-nav a.is-active::after { width: 100%; }

/* Ядро Drupal красит активный пункт в чёрный (`ul.menu a.is-active`) и по
   специфичности перебивает тему. На светлой шапке это почти незаметно, а на
   прозрачной поверх тёмного фото пункт пропадал совсем. Возвращаем цвет
   по контексту. */
.ef-nav ul.menu a.is-active { color: var(--ink); }
.ef-header--over .ef-nav ul.menu a.is-active { color: #fff; }

.ef-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 32px; height: 32px; padding: 0;
}
.ef-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: var(--t); }

/* ============================================================
   Layout
   ============================================================ */
.ef-main { min-height: 60vh; }
.ef-section { padding-block: clamp(48px, 8vw, 110px); }
.ef-section--tight { padding-block: clamp(32px, 5vw, 64px); }
.ef-section + .ef-section { border-top: 1px solid var(--line); }

.ef-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}
.ef-section__head h2 { margin: 0; }
.ef-link-more { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

/* ============================================================
   Hero (front)
   ============================================================ */
.ef-hero { padding-block: clamp(60px, 12vw, 160px); }
.ef-hero__eyebrow { margin-bottom: 28px; }
.ef-hero h1 { max-width: 14ch; }
.ef-hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 28px;
  font-weight: 300;
}
.ef-hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.ef-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink); color: #fff;
  transition: var(--t);
}
.ef-btn:hover { opacity: 1; background: #fff; color: var(--ink); }
.ef-btn--ghost { background: transparent; color: var(--ink); }
.ef-btn--ghost:hover { background: var(--ink); color: #fff; }

/* ============================================================
   Photo portfolio grid
   ============================================================ */
.ef-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(14px, 1.8vw, 28px);
}
.ef-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }

.ef-card { display: block; }
.ef-card__media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
.ef-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2,0,0.1,1); }
.ef-card:hover .ef-card__media img { transform: scale(1.045); }
.ef-card:hover { opacity: 1; }
.ef-card__body { padding-top: 14px; }
.ef-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; }
.ef-card__meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; letter-spacing: 0.04em; }

/* ============================================================
   Album / music grid
   ============================================================ */
.ef-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.ef-album__cover { aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.ef-album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ef-album:hover .ef-album__cover img { transform: scale(1.04); }
.ef-album__title { font-family: var(--font-display); font-weight: 500; font-size: 1rem; margin-top: 12px; }
.ef-album__date { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.ef-album__links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 8px; }
.ef-album__links a { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ef-album__links a:hover { color: var(--ink); opacity: 1; }

/* ============================================================
   Node: full pages
   ============================================================ */
.ef-node { padding-block: clamp(40px, 6vw, 80px); }
.ef-node__header { max-width: 880px; margin-inline: auto; text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.ef-node__header h1 { margin-bottom: 18px; }
.ef-node__meta { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ef-prose { max-width: 720px; margin-inline: auto; font-size: 1.08rem; color: var(--ink-soft); }
.ef-prose img { margin-block: 1.5em; }
.ef-prose a { text-decoration: underline; text-underline-offset: 3px; }

.ef-cover { margin-bottom: clamp(28px, 4vw, 56px); }
.ef-cover img { width: 100%; max-height: 78vh; object-fit: cover; }

/* gallery on photo project */
.ef-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(28px, 4vw, 56px); }
.ef-gallery figure { margin: 0; }
.ef-gallery img { width: 100%; }

/* album single */
.ef-album-single { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); max-width: 980px; margin-inline: auto; align-items: start; }
.ef-album-single__cover { aspect-ratio: 1; background: var(--surface); }
.ef-album-single__cover img { width: 100%; height: 100%; object-fit: cover; }
.ef-streams { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; }
.ef-streams a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-size: 0.9rem; letter-spacing: 0.02em;
}
.ef-streams a::after { content: '→'; color: var(--muted); transition: var(--t); }
.ef-streams a:hover { opacity: 1; padding-inline: 8px 0; }
.ef-streams a:hover::after { transform: translateX(4px); color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.ef-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 90px); margin-top: clamp(40px, 6vw, 80px); }
.ef-footer__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ef-footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.ef-footer__tag { color: var(--muted); margin-top: 8px; font-size: 0.9rem; }
.ef-footer__col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.ef-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ef-footer__col a { font-size: 0.92rem; }
.ef-footer__copy { width: 100%; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* ============================================================
   Generic content (pages, prose regions)
   ============================================================ */
.ef-content-default { max-width: 760px; margin-inline: auto; }
.ef-content-default ul, .ef-content-default ol { padding-left: 1.3em; }

/* messages, tabs spacing under sticky header handled by admin theme normally */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .ef-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform var(--t);
    padding: 16px var(--gutter) 28px;
  }
  .ef-nav.is-open { transform: translateY(0); }
  .ef-nav ul { flex-direction: column; gap: 4px; }
  .ef-nav a { display: block; padding: 12px 0; font-size: 1rem; letter-spacing: 0.08em; }
  .ef-nav a::after { display: none; }
  .ef-burger { display: block; }
  .ef-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .ef-burger.is-open span:nth-child(2) { opacity: 0; }
  .ef-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .ef-album-single { grid-template-columns: 1fr; max-width: 480px; }
}

/* ============================================================
   Listing views + generic content wrap
   ============================================================ */
.ef-page-head { padding-top: clamp(40px, 6vw, 80px); }
.ef-page-head h1 { margin: 0; }
.ef-highlighted { padding-top: 16px; }

.ef-content > .view,
.ef-front-sections > .view {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter);
}
.ef-content .view-content,
.ef-front-sections .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 30px);
}
.ef-content .views-row,
.ef-front-sections .views-row { min-width: 0; }

/* generic page (basic page) content */
.ef-content > .node--type-page,
.ef-content > article.ef-node { }

.ef-content .feed-icons { display: none; }
.ef-content .more-link { margin-top: 24px; }
.ef-content .more-link a { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* text-only card (no image) */
.ef-card--text { border: 1px solid var(--line); border-radius: 4px; padding: 24px 22px; transition: border-color var(--t); }
.ef-card--text:hover { opacity: 1; border-color: var(--ink); }
.ef-card--text .ef-card__body { padding-top: 0; }
.ef-card--text .ef-card__title { font-size: 1.25rem; }

/* ============================================================
   Hero slider (front)
   ============================================================ */
.ef-slider { position: relative; height: clamp(540px, 90vh, 940px); overflow: hidden; background: #0a0a0a; }
.ef-slider__slides, .ef-slider .view, .ef-slider .view-content { position: absolute; inset: 0; height: 100%; width: 100%; }
.ef-slider .views-row { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.ef-slider .views-row.is-active { opacity: 1; }
.ef-slider .views-row img { width: 100%; height: 100%; object-fit: cover; }
.ef-slider .views-field, .ef-slider .field-content { height: 100%; }
.ef-slider__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,.62) 100%); }
.ef-slider__overlay { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(56px, 9vh, 110px); color: #fff; }
.ef-slider__eyebrow { color: rgba(255,255,255,.82); margin-bottom: 20px; }
.ef-slider__title { color: #fff; font-size: clamp(2.8rem, 8vw, 6rem); margin: 0 0 30px; }
.ef-slider__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; gap: 9px; justify-content: center; z-index: 3; }
.ef-slider__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: var(--t); }
.ef-slider__dots button.is-active { background-color: #fff; transform: scale(1.25); }

.ef-btn--light { background: #fff; color: #0a0a0a; border-color: #fff; }
.ef-btn--light:hover { background: transparent; color: #fff; }
.ef-btn--lightghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ef-btn--lightghost:hover { background: #fff; color: #0a0a0a; border-color: #fff; }

/* transparent header over slider */
.ef-header--over { position: absolute; top: var(--ef-admin-offset, 0px); left: 0; right: 0; width: 100%; background: transparent; border-bottom-color: rgba(255,255,255,.16); backdrop-filter: none; }
.ef-header--over .ef-logo, .ef-header--over .ef-nav a { color: #fff; }
.ef-header--over .ef-nav a::after { background: #fff; }
.ef-header--over .ef-burger span { background: #fff; }

/* front sections */
.ef-home-section { padding-block: clamp(48px, 8vw, 100px); }
.ef-home-section + .ef-home-section { border-top: 1px solid var(--line); }
.ef-home-section .view-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(16px, 2vw, 30px); }
.ef-home-section--alt .view-content { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ef-home-section .view-content .views-row { min-width: 0; }
.ef-releases-row .pager, .ef-blog-home .pager, .ef-portfolio-home .pager, .ef-home-section .view-header, .ef-home-section h3.view-title { display: none; }

@media (max-width: 860px) {
  .ef-header--over .ef-nav { background: rgba(10,10,10,.96); }
}

/* ============================================================
   Slide video + album details/lyrics + lightbox
   ============================================================ */
.ef-slider .ef-slide-media, .ef-slider .ef-slide-video { width: 100%; height: 100%; }
/* Постер видео-слайда — отдельным слоем, чтобы при загрузке видео не мелькал
   чёрный кадр. Видео проступает поверх постера, когда действительно играет. */
.ef-slide-vwrap { position: relative; width: 100%; height: 100%; }
.ef-slide-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ef-slider .ef-slide-vwrap .ef-slide-video {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
}
.ef-slider .ef-slide-vwrap .ef-slide-video.is-playing { opacity: 1; }
.ef-slider .ef-slide-video { object-fit: cover; display: block; }
.ef-slider .ef-slide-media .field, .ef-slider .ef-slide-media img { width: 100%; height: 100%; object-fit: cover; }

/* album details + lyrics */
.ef-album-single__streams { margin-top: 22px; }
.ef-album-block { max-width: 720px; margin: clamp(40px, 6vw, 72px) auto 0; }
.ef-album-block__title { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 18px; }
.ef-lyrics { white-space: pre-line; font-size: 1.08rem; line-height: 1.85; color: var(--ink-soft); }

/* lightbox */
.ef-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.96); display: none; align-items: center; justify-content: center; }
.ef-lb.is-open { display: flex; }
.ef-lb__img { max-width: 92vw; max-height: 88vh; object-fit: contain; cursor: zoom-out; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.ef-lb__close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .8; }
.ef-lb__close:hover { opacity: 1; }
.ef-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.08); border: 0; color: #fff; width: 56px; height: 56px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .25s; }
.ef-lb__nav:hover { background: rgba(255,255,255,.2); }
.ef-lb__prev { left: 20px; }
.ef-lb__next { right: 20px; }
.ef-lb__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .82rem; letter-spacing: .1em; }
.ef-gallery__item { cursor: zoom-in; overflow: hidden; }
.ef-gallery__item img { transition: transform .6s ease; }
.ef-gallery__item:hover img { transform: scale(1.03); }

@media (max-width: 700px) {
  .ef-lb__nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .ef-lb__prev { left: 8px; } .ef-lb__next { right: 8px; }
}

/* ============================================================
   Revision pass: logo, about teaser, platforms, releases, music page
   ============================================================ */
.ef-logo__img { height: 48px; width: auto; display: block; }
.ef-header--over .ef-logo__img { filter: invert(1); }
.ef-footer__logo { height: 56px; width: auto; margin-bottom: 12px; display: block; }
.ef-footer__brand-wrap { max-width: 320px; }

/* About teaser */
.ef-about-teaser { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding-block: clamp(50px, 8vw, 110px); }
.ef-about-teaser__text { font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.ef-about-teaser__text a { text-decoration: underline; text-underline-offset: 4px; font-weight: 400; }
.ef-about-teaser__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Platforms */
.ef-platforms-section { border-block: 1px solid var(--line); background: var(--surface); padding-block: clamp(40px, 5vw, 64px); }
.ef-platforms-eyebrow { text-align: center; margin-bottom: 26px; }
.ef-platforms { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ef-platform { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px 11px 13px; border-radius: 100px; background: #fff; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 500; color: var(--ink); transition: transform .28s, box-shadow .28s; }
.ef-platform:hover { opacity: 1; transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.ef-platform svg { width: 26px; height: 26px; flex: none; }
.ef-platform span { white-space: nowrap; color: var(--ink); }
.ef-platform--yandex svg { color: #E8261A; }
.ef-platform--spotify svg { color: #1DB954; }
.ef-platform--apple svg { color: #FA243C; }
.ef-platform--youtube svg { color: #FF0000; }
.ef-platform--vk svg { color: #0077FF; }

/* Release cards — square, no gray */
.ef-card--album .ef-card__media { aspect-ratio: 1 / 1; background: transparent; }

/* New releases — one row (horizontal scroll on overflow) */
.ef-releases-row .view-content { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 300px; gap: clamp(18px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 14px; }
.ef-releases-row .views-row { scroll-snap-align: start; min-width: 0; }
.ef-releases-row .view-content::-webkit-scrollbar { height: 6px; }
.ef-releases-row .view-content::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

/* Big featured photos — 2 per row, large */
.ef-photos-big .view-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 28px); }
.ef-photos-big .ef-card__media { aspect-ratio: 3 / 4; }
.ef-photos-big .ef-card__title { font-size: 1.3rem; }

/* Music page */
.ef-slider--inner { height: clamp(360px, 54vh, 600px); }
/* Вступление читается как «История» и «Музыка сейчас»: та же колонка
   и та же выключка по левому краю — по центру абзацы разъезжались. */
.ef-music-intro { max-width: 760px; margin-inline: auto; padding-block: clamp(44px, 6vw, 84px); font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); text-align: left; }
.ef-music-intro p:last-child { margin-bottom: 0; }
.ef-releases-grid .view-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.ef-releases-grid .pager, .ef-releases-old .pager { margin-top: clamp(28px, 4vw, 48px); }
.ef-music-history { max-width: 760px; margin-inline: auto; padding-block: clamp(44px, 6vw, 84px); border-top: 1px solid var(--line); }
.ef-music-history h2 { margin-top: 1.4em; }
.ef-music-history h2:first-child { margin-top: 0; }
.ef-music-history p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; }
.ef-music-video { padding-block: clamp(20px, 3vw, 40px); }
.ef-wrap-wide { max-width: 1500px; margin-inline: auto; padding-inline: var(--gutter); }
/* Высота из атрибута height="720" перебивала пропорцию: рамка получалась
   шире 16:9, и плеер добавлял чёрные поля по бокам. Высоту считает пропорция. */
.ef-music-video video, .ef-music-video iframe { width: 100%; height: auto; aspect-ratio: 16/9; display: block; border: 0; background: #000; }
.ef-releases-old { border-top: 1px solid var(--line); }
.ef-releases-old .view-content { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.ef-section__note { font-size: 0.85rem; color: var(--muted); }

/* Contacts round photo */
.ef-round-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 28px; }
.node--type-page .ef-prose { text-align: left; }

/* Pager */
.pager__items { display: flex; gap: 6px; justify-content: center; list-style: none; padding: 0; flex-wrap: wrap; }
.pager__item a, .pager__item.is-active { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; font-size: 0.9rem; }
.pager__item.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 900px) {
  .ef-about-teaser { grid-template-columns: 1fr; }
  .ef-about-teaser__photo { order: -1; max-width: 420px; }
  .ef-releases-grid .view-content { grid-template-columns: repeat(2, 1fr); }
  .ef-photos-big .view-content { grid-template-columns: 1fr; }
  .ef-releases-old .view-content { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Revision 2: masonry portfolio, lightbox thumbs, socials, blog, magazine, contacts form
   ============================================================ */
/* Masonry galleries */
.ef-masonry .view-content { columns: 4 280px; column-gap: 12px; }
.ef-masonry .views-row { break-inside: avoid; margin-bottom: 12px; }
.ef-masonry .views-row img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: opacity .3s; }
.ef-masonry .views-row:hover img { opacity: .88; }
.ef-portfolio-grid { padding-block: clamp(28px, 4vw, 64px); }
.ef-portfolio-home .ef-masonry .view-content { columns: 4 220px; }
@media (max-width: 1100px) { .ef-masonry .view-content, .ef-portfolio-home .ef-masonry .view-content { columns: 3 220px; } }
@media (max-width: 720px) { .ef-masonry .view-content, .ef-portfolio-home .ef-masonry .view-content { columns: 2 150px; } }

/* Lightbox: stage + thumbnails */
.ef-lb__stage { display: flex; align-items: center; justify-content: center; max-width: 92vw; max-height: calc(92vh - 110px); }
.ef-lb__img { max-width: 92vw; max-height: calc(92vh - 110px); object-fit: contain; cursor: default; }
.ef-lb__count { bottom: 96px; }
.ef-lb__thumbs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.ef-lb__thumb { flex: none; width: 64px; height: 64px; border-radius: 4px; background-size: cover; background-position: center; border: 2px solid transparent; opacity: .5; cursor: pointer; transition: .2s; padding: 0; }
.ef-lb__thumb.is-active, .ef-lb__thumb:hover { opacity: 1; border-color: #fff; }

/* Social icons */
/* Contacts socials — monochrome, small, minimal (outfofame-style) */
.ef-socials { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ef-social { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.ef-social svg { width: 30px; height: 30px; color: var(--ink); transition: opacity .2s ease, transform .2s ease; }
.ef-social:hover { opacity: 1; }
.ef-social:hover svg { opacity: .5; transform: translateY(-2px); }
.ef-social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Blog */
.ef-blog-home .view-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.ef-card__summary { color: var(--muted); font-size: .92rem; margin-top: 8px; line-height: 1.5; }
/* Blog cards: no frame — title, date, 4-line excerpt, "Читать" link. */
.ef-card--news { display: flex; flex-direction: column; border: none; padding: 0; background: none; }
.ef-card--news .ef-card__title { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; letter-spacing: -0.01em; color: var(--ink); }
.ef-card--news .ef-card__title:hover { opacity: .6; }
.ef-card--news .ef-card__meta { margin-top: 6px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.ef-card--news .ef-card__summary {
  margin-top: 12px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ef-card--news .ef-card__more {
  margin-top: 14px; align-self: flex-start;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.ef-card--news .ef-card__more:hover { opacity: 1; color: var(--muted); border-color: var(--muted); }
.ef-blog-home .ef-card__meta { margin-top: 6px; }
@media (max-width: 860px) { .ef-blog-home .view-content { grid-template-columns: 1fr; } }

/* Magazine about */
.ef-magazine { max-width: 1100px; margin-inline: auto; padding: clamp(30px, 5vw, 72px) var(--gutter); }
.ef-magazine__hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
.ef-magazine__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ef-magazine__intro h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: .25em 0 .35em; }
.ef-magazine__lead { font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.ef-magazine__body { max-width: 720px; margin-inline: auto; }
.ef-magazine__body h2 { margin-top: 1.6em; }
@media (max-width: 860px) { .ef-magazine__hero { grid-template-columns: 1fr; } .ef-magazine__photo { max-width: 420px; } }

/* Contacts */
.ef-contacts-head { text-align: center; padding-top: clamp(36px, 5vw, 70px); }
.ef-contacts-photo img { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; display: block; }
.ef-contacts-intro { max-width: 580px; margin: 0 auto; }
.ef-contacts-block { padding-block: clamp(34px, 4vw, 60px); }
.ef-center { text-align: center; }
.ef-platforms-eyebrow.ef-center, .ef-center { text-align: center; }
.ef-contacts-form { padding-block: clamp(44px, 6vw, 84px); }
.ef-form-wrap { max-width: 580px; margin-inline: auto; }
.ef-form-wrap input[type=text], .ef-form-wrap input[type=email], .ef-form-wrap input[type=tel], .ef-form-wrap textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; font-size: 1rem; background: #fff; margin-top: 6px; }
.ef-form-wrap textarea { min-height: 150px; resize: vertical; }
.ef-form-wrap .form-item, .ef-form-wrap .js-form-item { margin-bottom: 18px; }
.ef-form-wrap label { font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; }
.ef-form-wrap .form-actions { margin-top: 8px; }
.ef-form-wrap .button, .ef-form-wrap input[type=submit] { background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 100px; padding: 14px 36px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: .25s; }
.ef-form-wrap .button:hover, .ef-form-wrap input[type=submit]:hover { background: #fff; color: var(--ink); }
.ef-form-wrap .url-textfield, .ef-form-wrap .form-item-url { position: absolute !important; left: -9999px !important; }

/* ============================================================
   Revision 3: admin offset, tabs, login, pager, blog grid, photo slider,
   services, media kit, about books/disco
   ============================================================ */
/* Local task tabs centered */
.ef-content .block-local-tasks-block, .ef-highlighted .block-local-tasks-block { text-align: center; }
.ef-content nav.tabs, .ef-highlighted nav.tabs, ul.tabs, .tabs__tab { justify-content: center; }
ul.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; list-style: none; margin: 16px auto; }
ul.tabs > li { display: inline-flex; }

/* Login form */
.path-user .ef-content, body.path-user .ef-content { padding-block: clamp(50px, 8vw, 110px); }
.user-login-form, .user-pass { max-width: 420px; margin: clamp(40px,7vw,90px) auto; }
.user-login-form input[type=text], .user-login-form input[type=password], .user-pass input[type=text] {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; font-size: 1rem; margin-top: 6px; }
.user-login-form .form-item, .user-pass .form-item { margin-bottom: 18px; }
.user-login-form label, .user-pass label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.user-login-form .form-actions input, .user-login-form .button {
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 100px; padding: 14px 36px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; width: 100%; }
.user-login-form .form-actions input:hover { background: #fff; color: var(--ink); }
.ef-page-head + .ef-content .user-login-form { margin-top: 0; }

/* Pager — minimal & modern: plain numbers, active = filled circle */
.pager { margin: clamp(28px,4vw,52px) 0; }
.pager__items { display: flex; gap: 6px; justify-content: center; align-items: center; list-style: none; padding: 0; flex-wrap: wrap; }
.pager__item { margin: 0; }
.pager__item > a { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; border: 0; border-radius: 999px; font-size: .95rem; padding: 0 12px; color: var(--muted); transition: background .2s, color .2s; }
.pager__item > a:hover { background: var(--surface); color: var(--ink); opacity: 1; }
.pager__item.is-active > a { background: var(--ink); color: #fff; font-weight: 600; }
/* keep it clean — only prev/next arrows + numbers */
.pager__item--first, .pager__item--last { display: none; }
.pager__item--previous > a, .pager__item--next > a { color: var(--ink); font-size: 1.1rem; }
.pager .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Blog 4-col */
.ef-blog-grid { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); margin-top: clamp(48px, 7vw, 120px); }
.ef-blog-grid .view-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
@media (max-width: 860px) { .ef-blog-grid .view-content { grid-template-columns: 1fr; } }

/* Home portfolio = full-bleed vertical photo slider */
.ef-photo-slider-bleed { width: 100%; }
.ef-photo-slider .view-content { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 14px; }
.ef-photo-slider .views-row { flex: 0 0 auto; width: min(460px, 82vw); scroll-snap-align: start; }
.ef-photo-slider .views-row img { width: 100%; height: clamp(440px, 64vh, 680px); object-fit: cover; display: block; cursor: zoom-in; }
.ef-photo-slider .view-content::-webkit-scrollbar { height: 6px; }
.ef-photo-slider .view-content::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
@media (max-width: 700px) { .ef-photo-slider .views-row { width: 78vw; } .ef-photo-slider .views-row img { height: 60vh; } }

/* Services (agency) */
.ef-services-hero { padding-block: clamp(50px,8vw,120px) clamp(20px,3vw,40px); }
.ef-services-hero h1 { font-size: clamp(2.4rem,5vw,4.2rem); max-width: 16ch; }
.ef-services-body { padding-bottom: clamp(50px,8vw,110px); max-width: 1100px; }
.ef-svc-lead { font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); max-width: 60ch; margin-bottom: clamp(36px,5vw,64px); }
.ef-svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px,4vw,64px); }
.ef-svc__item { border-top: 1px solid var(--ink); padding-top: 22px; }
.ef-svc__num { font-family: var(--font-display); font-size: 1rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 14px; }
.ef-svc__item h3 { font-size: clamp(1.4rem,2.2vw,2rem); margin-bottom: 14px; }
.ef-svc__item p { color: var(--ink-soft); }
.ef-svc-cta-text { margin-top: clamp(36px,5vw,64px); font-size: 1.08rem; }
.ef-svc-cta-text a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .ef-svc { grid-template-columns: 1fr; } }

/* Media kit */
.ef-mk-hero { padding-block: clamp(50px,8vw,110px) clamp(16px,2vw,32px); }
.ef-mk-hero h1 { font-size: clamp(2.6rem,6vw,5rem); }
.ef-mk-body { max-width: 880px; padding-bottom: clamp(30px,4vw,60px); }
.ef-mk-lead { font-size: clamp(1.1rem,1.5vw,1.4rem); color: var(--ink-soft); font-weight: 300; }
.ef-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,2vw,32px); margin: clamp(36px,5vw,64px) 0; }
.ef-stat { border-top: 1px solid var(--ink); padding-top: 18px; }
.ef-stat__num { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.4rem); font-weight: 600; line-height: 1; }
.ef-stat__label { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.ef-table { width: 100%; border-collapse: collapse; margin: 18px 0 32px; }
.ef-table th, .ef-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.ef-table th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .ef-stats { grid-template-columns: repeat(2,1fr); } }

/* About: books / media kit cta / discography */
.ef-about-books { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); align-items: center; padding-block: clamp(40px,6vw,90px); border-top: 1px solid var(--line); }
.ef-about-books__photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ef-about-books__text h2 { margin: .2em 0 .4em; }
.ef-about-mk { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(50px,7vw,100px); text-align: center; }
.ef-about-mk h2 { font-size: clamp(2rem,3.5vw,3rem); margin: .2em 0 .4em; }
.ef-about-mk__text { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 28px; }
.ef-about-disco { padding-block: clamp(40px,6vw,90px); border-top: 1px solid var(--line); max-width: 820px; }
.ef-about-disco h2 { font-size: clamp(1.8rem,3vw,2.6rem); }
.ef-about-disco h3 { margin-top: 1.4em; font-size: 1.1rem; }
.ef-about-disco ol { padding-left: 1.3em; }
.ef-about-disco p { color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 760px) { .ef-about-books { grid-template-columns: 1fr; } }

/* Portfolio SEO text block */
.ef-portfolio-seo { max-width: 820px; margin-inline: auto; padding-block: clamp(40px,6vw,80px); border-top: 1px solid var(--line); }
.ef-portfolio-seo h2 { font-size: clamp(1.6rem,2.6vw,2.2rem); }
.ef-portfolio-seo p { color: var(--ink-soft); }

/* ============================================================
   Fix: card cover images must fill their box uniformly (any aspect)
   ============================================================ */
.ef-card__media { position: relative; overflow: hidden; }
.ef-card__media .field, .ef-card__media .field__item, .ef-card__media > div { height: 100%; }
.ef-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* same for the photo slider + masonry already handled */

/* ============================================================
   Portfolio gallery node: masonry on page, portrait slider on home
   ============================================================ */
.ef-portfolio-grid .ef-gallery { display: block; columns: 4 280px; column-gap: 12px; }
.ef-portfolio-grid .ef-gallery__item { break-inside: avoid; margin: 0 0 12px; }
.ef-portfolio-grid .ef-gallery__item img { width: 100%; height: auto; display: block; cursor: zoom-in; }
@media (max-width: 1100px) { .ef-portfolio-grid .ef-gallery { columns: 3 220px; } }
@media (max-width: 720px) { .ef-portfolio-grid .ef-gallery { columns: 2 150px; } }

.ef-portfolio-home .ef-gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 14px; }
.ef-portfolio-home .ef-gallery__item { flex: 0 0 auto; width: min(460px, 82vw); scroll-snap-align: start; margin: 0; }
.ef-portfolio-home .ef-gallery__item img { width: 100%; height: clamp(440px, 64vh, 680px); object-fit: cover; display: block; cursor: zoom-in; }
.ef-portfolio-home .ef-gallery::-webkit-scrollbar { height: 6px; }
.ef-portfolio-home .ef-gallery::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
@media (max-width: 700px) { .ef-portfolio-home .ef-gallery__item { width: 78vw; } .ef-portfolio-home .ef-gallery__item img { height: 60vh; } }

/* ── On-page edit pencils (only for logged-in editors) ───────────── */
.ef-pencil { display: none; }
body.user-logged-in .ef-editable { position: relative; }
body.user-logged-in .ef-editable > .ef-pencil {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: 10px; right: 10px; z-index: 40;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 10, 10, .82); color: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(-3px);
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
  text-decoration: none; cursor: pointer;
}
/* Карандаши видны всегда (приглушённо) — их не надо искать наведением.
   При наведении на блок — подсвечиваются вместе с рамкой того, что правится. */
body.user-logged-in .ef-editable > .ef-pencil { opacity: .5; transform: none; }
body.user-logged-in .ef-editable:hover > .ef-pencil,
body.user-logged-in .ef-pencil:focus-visible { opacity: 1; transform: none; }
body.user-logged-in .ef-editable { transition: outline-color .18s ease; outline: 1px dashed transparent; outline-offset: 6px; }
body.user-logged-in .ef-editable:hover { outline-color: rgba(10, 10, 10, .16); }
/* Подпись рядом с карандашом при наведении — сразу понятно, что правим */
body.user-logged-in .ef-editable > .ef-pencil::after {
  content: attr(data-label);
  position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: .72rem; line-height: 1;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(10, 10, 10, .88); color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
body.user-logged-in .ef-pencil:hover::after { opacity: 1; }
body.user-logged-in .ef-pencil:hover { background: var(--accent, #c8553d); }
body.user-logged-in .ef-pencil svg { display: block; }
/* Touch devices: no hover — keep pencils visible and tappable. */
@media (hover: none) {
  body.user-logged-in .ef-editable > .ef-pencil { opacity: .9; transform: none; width: 40px; height: 40px; }
}

/* ── Audio: online listening (release page + music section) ──────── */
.ef-album-single__audio { margin: 18px 0 6px; }
.ef-album-single__audio audio { width: 100%; height: 40px; }
.ef-tracks .view-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.ef-tracks .views-row {
  display: grid; grid-template-columns: 72px 1fr; grid-auto-rows: auto;
  column-gap: 16px; row-gap: 4px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color var(--t);
}
.ef-tracks .views-row:hover { border-color: var(--ink); }
.ef-tracks .views-field-field-cover { grid-column: 1; grid-row: 1 / span 2; }
.ef-tracks .views-field-field-cover img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; display: block; }
.ef-tracks .views-field-title { grid-column: 2; grid-row: 1; }
.ef-tracks .views-field-title a { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.ef-tracks .views-field-field-audio { grid-column: 2; grid-row: 2; }
.ef-tracks audio { width: 100%; height: 38px; }
@media (max-width: 600px) { .ef-tracks .view-content { grid-template-columns: 1fr; } }

/* Portfolio intro text under slider */
.ef-portfolio-intro { padding-top: clamp(32px, 5vw, 60px); text-align: center; max-width: 760px; }
.ef-portfolio-intro .field { margin: 0 auto; }

/* Portfolio client-side pager (matches minimal .pager) */
.ef-jspager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.ef-jspager__item { min-width: 38px; height: 38px; border: 0; background: none; border-radius: 999px; font-size: .95rem; color: var(--muted); cursor: pointer; padding: 0 12px; transition: background .2s, color .2s; }
.ef-jspager__item:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
.ef-jspager__item.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.ef-jspager__nav { color: var(--ink); font-size: 1.1rem; }
.ef-jspager__item:disabled { opacity: .3; cursor: default; }

/* Uniform body text size across all editable text blocks (1.08rem) */
.ef-about-mk .field p, .ef-about-mk__text, .ef-about-teaser__text p, .ef-music-intro p, .ef-portfolio-intro p { font-size: 1.08rem; }

/* Related articles block on article pages (same style as home blog) */
.ef-related { margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 64px); }

/* Mediakit — full-width photo slider */
.ef-mk-slider { max-width: 1500px; margin-inline: auto; padding-inline: var(--gutter); margin-block: clamp(40px, 6vw, 84px); }
.ef-photoshow { position: relative; }
.ef-photoshow__viewport { overflow: hidden; border-radius: 6px; background: var(--surface); }
.ef-photoshow__track .view, .ef-photoshow__track .view-content { width: 100%; }
.ef-photoshow .view-content { display: flex; gap: 0; padding: 0; overflow: visible; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.ef-photoshow .views-row { flex: 0 0 100%; width: 100%; min-width: 0; }
.ef-photoshow .views-field, .ef-photoshow .field-content { width: 100%; }
.ef-photoshow .views-row img { width: 100%; height: clamp(340px, 60vh, 660px); object-fit: cover; display: block; cursor: default; }
.ef-photoshow__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 14px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; transition: background .2s, opacity .2s; }
.ef-photoshow__nav:hover { background: #fff; opacity: 1; }
.ef-photoshow__prev { left: 16px; }
.ef-photoshow__next { right: 16px; }
.ef-photoshow__dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.ef-photoshow__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.ef-photoshow__dots button.is-active { background: var(--ink); transform: scale(1.3); }
@media (max-width: 600px) { .ef-photoshow__nav { width: 40px; height: 40px; } }

/* ============================================================
   Write Guide — landing (авторский курс Евгения Фиста)
   ============================================================ */
.ef-wg-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.ef-wg-hero__slides, .ef-wg-slide { position: absolute; inset: 0; }
.ef-wg-slide { background-size: cover; background-position: center; }
.ef-wg-slide--1 { opacity: 1; }
.ef-wg-slide--2 { opacity: 0; animation: efWgTop 12s infinite; }
@keyframes efWgTop { 0%,42% { opacity: 0; } 50%,92% { opacity: 1; } 100% { opacity: 0; } }
.ef-wg-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,.40), rgba(10,10,10,.58));
}
.ef-wg-hero__inner { position: relative; z-index: 2; padding: 0 var(--gutter); }
.ef-wg-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 700; letter-spacing: -.02em; line-height: .92;
  margin: 0; text-transform: uppercase;
}
.ef-wg-hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  margin: 20px 0 34px; letter-spacing: .02em; opacity: .94;
}
.ef-wg-hero__cta.ef-btn { background: #fff; color: var(--ink); border-color: #fff; }
.ef-wg-hero__cta.ef-btn:hover { background: transparent; color: #fff; border-color: #fff; }

/* Ticker */
.ef-wg-ticker { background: #f54242; color: #fff; overflow: hidden; white-space: nowrap; padding: 15px 0; }
.ef-wg-ticker__track { display: inline-flex; align-items: center; gap: 22px; padding-left: 22px; animation: efWgMarquee 24s linear infinite; }
.ef-wg-ticker__track span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.ef-wg-ticker__dot { opacity: .65; }
@keyframes efWgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Body */
.ef-wg-body { padding-block: clamp(48px, 8vw, 110px); }
.ef-wg-body .ef-prose { max-width: 760px; }
.ef-wg-body .ef-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 700; letter-spacing: -.01em; text-transform: uppercase;
  margin: 2.4em 0 .7em; color: var(--ink);
}
.ef-wg-body .ef-prose h2:first-child { margin-top: 0; }
.ef-wg-body .ef-prose p { margin: 0 0 1.1em; }
.ef-wg-body .ef-prose ul { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 12px; }
.ef-wg-body .ef-prose ul li { position: relative; padding-left: 30px; }
.ef-wg-body .ef-prose ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 14px; height: 2px; background: #f54242; }

/* Lead form */
.ef-wg-cta { background: var(--surface); padding-block: clamp(48px, 8vw, 100px); }
.ef-wg-cta .ef-section__head { margin-bottom: 32px; }
.ef-wg-form { max-width: 560px; }

@media (prefers-reduced-motion: reduce) {
  .ef-wg-slide--2 { animation: none; opacity: .5; }
  .ef-wg-ticker__track { animation: none; }
}

/* ===== Blog article: wider area + magazine photo gallery ===== */
.ef-node--default .ef-prose { max-width: 820px; }
/* Фото в статьях — ЦЕЛИКОМ, в своей ориентации (masonry-колонки, без обрезки) */
.ef-tg-gallery { display: block; columns: 2 300px; column-gap: 12px; margin: 30px 0; }
.ef-tg-gallery img {
  width: 100%; height: auto; aspect-ratio: auto; object-fit: initial;
  border-radius: 4px; display: block; margin: 0 0 12px;
  break-inside: avoid; -webkit-column-break-inside: avoid; cursor: zoom-in;
}
.ef-tg-gallery--1 { columns: 1; }
.ef-tg-gallery > img:last-child:nth-child(odd) { aspect-ratio: auto; }
@media (min-width: 1040px) { .ef-tg-gallery { width: calc(100% + 220px); margin-left: -110px; column-gap: 16px; } }
@media (max-width: 600px) { .ef-tg-gallery { columns: 1; } }

/* ── Slider editor toolbar (only for logged-in editors) ─────────── */
.ef-edit-tools { display: none; }
body.user-logged-in .ef-slider.ef-editable { position: relative; }
body.user-logged-in .ef-edit-tools {
  display: flex; gap: 6px; flex-wrap: wrap;
  position: absolute; top: 12px; right: 12px; z-index: 45;
}
body.user-logged-in .ef-edit-tool {
  display: inline-flex; align-items: center;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(10, 10, 10, .82); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(-3px);
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
body.user-logged-in .ef-slider.ef-editable:hover .ef-edit-tool,
body.user-logged-in .ef-edit-tool:focus-visible { opacity: 1; transform: translateY(0); }
body.user-logged-in .ef-edit-tool:hover { background: var(--accent, #c8553d); }
@media (hover: none) {
  body.user-logged-in .ef-edit-tool { opacity: .92; transform: none; }
}

/* ── Portfolio section tabs (PORTFOLIO / ARCHIVE / BACKSTAGE) ────── */
.ef-portfolio-tabs {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; justify-content: center;
  margin: 10px auto 30px;
}
.ef-ptab {
  display: inline-block;
  padding: 12px 30px; border: 1.5px solid #e6e6e6; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; line-height: 1;
  letter-spacing: .2em; text-transform: uppercase;
  color: #6f6f6f; text-decoration: none; background: #fff; white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.ef-ptab:hover {
  color: #111; border-color: #111;
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .09);
}
.ef-ptab.is-active {
  color: #fff; background: #111; border-color: #111;
}
@media (max-width: 600px) {
  .ef-portfolio-tabs { gap: 8px; }
  .ef-ptab { padding: 10px 20px; letter-spacing: .14em; font-size: 11.5px; }
}

/* ── Media kit brand logos grid (like yanafisti) ───────────────── */
.ef-mk-brands { margin: 8px auto 42px; }
.ef-mk-brands .ef-section__head { margin-bottom: 18px; }
.ef-brands__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px; align-items: center; margin-top: 8px;
}
.ef-brands__item {
  aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: var(--surface, #f5f5f3); border-radius: 10px;
}
.ef-brands__item img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .72; transition: .25s; mix-blend-mode: multiply;
}
.ef-brands__item img:hover { filter: none; opacity: 1; }

/* Media kit logos — mobile: 3 per row, smaller (fewer rows) */
@media (max-width: 700px) {
  .ef-mk-brands .ef-brands__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ef-mk-brands .ef-brands__item { padding: 8px; border-radius: 8px; }
}

/* ============ УСЛУГИ — premium editorial (Forbes/glossy) ============ */
.ef-uslugi-page { padding-bottom: 0; }
.ef-uslugi-body { max-width: 1080px; margin: 0 auto; padding: clamp(44px,7vw,96px) var(--gutter,20px) 0; }

/* Intro */
.ef-u-intro { max-width: 880px; margin: 0 auto clamp(46px,6vw,92px); text-align: center; }
.ef-u-eyebrow { font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted,#9a9a9a); margin-bottom: 22px; }
.ef-u-headline { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem,5.2vw,3.9rem); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 26px; }
.ef-u-sub { font-size: clamp(1.02rem,1.4vw,1.22rem); line-height: 1.62; color: var(--ink-soft,#555); max-width: 720px; margin: 0 auto; }

/* Service list — magazine index rows */
.ef-u-cards { border-top: 1px solid var(--line,#e6e6e6); }
.ef-u-card { display: grid; grid-template-columns: 128px 1fr; gap: clamp(18px,4vw,58px); padding: clamp(34px,5vw,62px) 0; border-bottom: 1px solid var(--line,#e6e6e6); }
.ef-u-card__num { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.8rem); line-height: 1; color: var(--ink); opacity: .13; letter-spacing: -.02em; }
.ef-u-card__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem,2.6vw,2.1rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 14px; }
.ef-u-card__lead { font-size: clamp(1.05rem,1.3vw,1.2rem); font-weight: 500; color: var(--ink); margin: 0 0 18px; }
.ef-u-card p { color: var(--ink-soft,#555); line-height: 1.62; margin: 0 0 14px; max-width: 660px; }
.ef-u-card__price { font-family: var(--font-display); font-size: clamp(1.15rem,1.7vw,1.5rem); font-weight: 500; color: var(--ink) !important; margin-top: 24px !important; letter-spacing: -.01em; }
.ef-u-card__price span { font-family: inherit; font-size: .66em; font-weight: 400; color: var(--muted,#9a9a9a); letter-spacing: .02em; }
.ef-u-card__price a { color: var(--accent,#c8553d); text-decoration: none; font-size: .74em; }
.ef-u-card__price a:hover { text-decoration: underline; }

/* Trust + Start */
.ef-u-trust, .ef-u-start { max-width: 740px; margin-inline: auto; text-align: center; }
.ef-u-trust { margin-top: clamp(48px,7vw,88px); }
.ef-u-trust__title, .ef-u-start__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem,2.4vw,2rem); margin: 0 0 20px; }
.ef-u-trust p, .ef-u-start p { color: var(--ink-soft,#555); line-height: 1.66; font-size: 1.05rem; }
.ef-u-trust__find { font-style: italic; color: var(--muted,#9a9a9a) !important; margin-top: 16px !important; }
.ef-u-start { padding-top: clamp(34px,4vw,52px); border-top: 1px solid var(--line,#e6e6e6); margin-top: clamp(48px,7vw,88px); }

@media (max-width: 720px) {
  .ef-u-card { grid-template-columns: 1fr; gap: 6px; }
  .ef-u-card__num { font-size: 2.1rem; opacity: .2; }
}

/* CTA band */
.ef-uslugi-cta { background: var(--surface,#f6f6f4); margin-top: clamp(52px,8vw,112px); padding: clamp(50px,7vw,92px) 0; }
.ef-uslugi-cta__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px,5vw,72px); align-items: start; max-width: 1000px; margin-inline: auto; }
.ef-uslugi-cta__intro h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem,3vw,2.6rem); margin: 8px 0 16px; }
.ef-uslugi-cta__intro p { color: var(--ink-soft,#555); line-height: 1.6; }
.ef-uslugi-cta__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ef-u-contact { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line,#ddd); background: #fff; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; transition: border-color .2s, transform .2s; }
.ef-u-contact:hover { border-color: var(--ink); transform: translateY(-1px); }
.ef-u-contact--ig::before { content: ""; width: 17px; height: 17px; flex: 0 0 auto; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3 7.6 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.6L15 3H9Zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Z"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3 7.6 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.6L15 3H9Zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Z"/></svg>') center/contain no-repeat; }

/* CTA form (Drupal contact form) */
.ef-uslugi-cta__form .form-item { margin: 0 0 16px; }
.ef-uslugi-cta__form label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; color: var(--ink); }
.ef-uslugi-cta__form input[type=text], .ef-uslugi-cta__form input[type=email], .ef-uslugi-cta__form input[type=tel], .ef-uslugi-cta__form select, .ef-uslugi-cta__form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line,#ddd); border-radius: 10px; background: #fff; font-size: 1rem; font-family: inherit; transition: border-color .2s; }
.ef-uslugi-cta__form input:focus, .ef-uslugi-cta__form select:focus, .ef-uslugi-cta__form textarea:focus { outline: none; border-color: var(--ink); }
.ef-uslugi-cta__form textarea { min-height: 110px; resize: vertical; }
.ef-uslugi-cta__form .form-actions { margin-top: 6px; }
.ef-uslugi-cta__form .button, .ef-uslugi-cta__form input[type=submit] { display: inline-block; padding: 14px 34px; border: none; border-radius: 999px; background: var(--ink,#111); color: #fff; font-size: .98rem; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: transform .2s, opacity .2s; }
.ef-uslugi-cta__form .button:hover, .ef-uslugi-cta__form input[type=submit]:hover { transform: translateY(-1px); opacity: .92; }
@media (max-width: 720px) { .ef-uslugi-cta__grid { grid-template-columns: 1fr; } }

/* Inline internal-link CTA (SEO cross-links) */
.ef-inline-cta { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line,#e6e6e6); font-size: .98rem; color: var(--ink-soft,#555); }
.ef-inline-cta a { color: var(--accent,#c8553d); text-decoration: none; font-weight: 500; }
.ef-inline-cta a:hover { text-decoration: underline; }

/* Услуги — FAQ */
.ef-u-faq { max-width: 820px; margin: clamp(48px,7vw,88px) auto 0; }
.ef-u-faq__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem,2.4vw,2rem); text-align: center; margin: 0 0 30px; }
.ef-u-faq__item { padding: 22px 0; border-bottom: 1px solid var(--line,#e6e6e6); }
.ef-u-faq__item:first-of-type { border-top: 1px solid var(--line,#e6e6e6); }
.ef-u-faq__item h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; margin: 0 0 8px; }
.ef-u-faq__item p { color: var(--ink-soft,#555); line-height: 1.6; margin: 0; }

/* ============ УСЛУГИ v2 — editorial wide rows + frosted glass ============ */
.ef-uslugi-body { max-width: 1240px; margin: 0 auto; padding: clamp(40px,6vw,88px) var(--gutter,22px) 0; }

/* Intro with blurred warm blob */
.ef-u-intro { position: relative; max-width: 1000px; margin: 0 auto clamp(50px,7vw,110px); text-align: center; isolation: isolate; }
.ef-u-intro > :not(.ef-u-blob) { position: relative; z-index: 1; }
.ef-u-blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(203,133,84,.55), rgba(208,116,116,.38) 38%, rgba(232,204,150,.18) 66%, rgba(255,255,255,0) 74%);
  filter: blur(64px); opacity: .85; }
.ef-u-blob--1 { width: min(640px,86vw); height: min(640px,86vw); top: -14%; left: 50%; transform: translateX(-42%); }
.ef-u-eyebrow { font-size: .76rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted,#9a9a9a); margin-bottom: 24px; }
.ef-u-headline { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem,6vw,4.6rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 30px; }
.ef-u-sub { font-size: clamp(1.05rem,1.4vw,1.28rem); line-height: 1.62; color: var(--ink-soft,#555); max-width: 700px; margin: 0 auto; }

/* Service rows — wide editorial (title left, description right) */
.ef-u-cards { border-top: 1px solid var(--line,#e6e6e6); }
.ef-u-card { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(26px,6vw,96px); padding: clamp(40px,5vw,72px) 0; border-bottom: 1px solid var(--line,#e6e6e6); align-items: start; }
.ef-u-card__aside { position: sticky; top: 90px; }
.ef-u-card__num { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: .06em; color: var(--muted,#9a9a9a); margin-bottom: 16px; }
.ef-u-card__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem,3.4vw,3rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 20px; }
.ef-u-card__price { font-family: var(--font-display); font-size: clamp(1.1rem,1.5vw,1.4rem); font-weight: 500; color: var(--ink) !important; margin: 0 !important; letter-spacing: -.01em; }
.ef-u-card__price span { font-family: inherit; font-size: .62em; font-weight: 400; color: var(--muted,#9a9a9a); letter-spacing: .02em; display: inline; }
.ef-u-card__price a { color: var(--accent,#c8553d); text-decoration: none; font-size: .7em; }
.ef-u-card__price a:hover { text-decoration: underline; }
.ef-u-card__main { max-width: 660px; }
.ef-u-card__lead { font-size: clamp(1.12rem,1.5vw,1.42rem); font-weight: 500; line-height: 1.36; color: var(--ink); margin: 0 0 22px; }
.ef-u-card__main p { color: var(--ink-soft,#555); line-height: 1.66; margin: 0 0 15px; max-width: none; }

@media (max-width: 780px) {
  .ef-u-card { grid-template-columns: 1fr; gap: 14px; }
  .ef-u-card__aside { position: static; }
  .ef-u-card__title { font-size: clamp(1.7rem,7vw,2.2rem); }
}

/* Trust / FAQ / Start */
.ef-u-trust, .ef-u-start { max-width: 760px; margin-inline: auto; text-align: center; }
.ef-u-trust { margin-top: clamp(50px,7vw,92px); }
.ef-u-trust__title, .ef-u-start__title, .ef-u-faq__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem,2.6vw,2.1rem); margin: 0 0 22px; }
.ef-u-trust p, .ef-u-start p { color: var(--ink-soft,#555); line-height: 1.66; font-size: 1.06rem; }
.ef-u-trust__find { font-style: italic; color: var(--muted,#9a9a9a) !important; margin-top: 16px !important; }
.ef-u-start { padding-top: clamp(34px,4vw,54px); border-top: 1px solid var(--line,#e6e6e6); margin-top: clamp(50px,7vw,92px); }
.ef-u-faq { max-width: 860px; margin: clamp(50px,7vw,92px) auto 0; }
.ef-u-faq__title { text-align: center; margin-bottom: 30px; }
.ef-u-faq__item { padding: 24px 0; border-bottom: 1px solid var(--line,#e6e6e6); }
.ef-u-faq__item:first-of-type { border-top: 1px solid var(--line,#e6e6e6); }
.ef-u-faq__item h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0 0 8px; }
.ef-u-faq__item p { color: var(--ink-soft,#555); line-height: 1.6; margin: 0; }

/* CTA band — frosted glass form over a blurred blob */
.ef-uslugi-cta { position: relative; overflow: hidden; background: linear-gradient(180deg,#f7f5f2,#f2efea); margin-top: clamp(56px,8vw,120px); padding: clamp(54px,7vw,100px) var(--gutter,22px); isolation: isolate; }
.ef-uslugi-cta::before { content: ""; position: absolute; z-index: 0; width: 720px; height: 720px; border-radius: 50%; right: -8%; top: -22%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(203,133,84,.5), rgba(208,116,116,.34) 40%, rgba(232,204,150,.16) 68%, rgba(255,255,255,0) 75%);
  filter: blur(60px); opacity: .9; }
.ef-uslugi-cta__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.06fr; gap: clamp(28px,5vw,72px); align-items: center; max-width: 1040px; margin-inline: auto; }
.ef-uslugi-cta__intro h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem,3.2vw,2.8rem); margin: 8px 0 16px; }
.ef-uslugi-cta__intro p { color: var(--ink-soft,#555); line-height: 1.6; }
.ef-uslugi-cta__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ef-u-contact { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.6); backdrop-filter: blur(8px); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; transition: border-color .2s, transform .2s; }
.ef-u-contact:hover { border-color: var(--ink); transform: translateY(-1px); }
.ef-u-contact--ig::before { content: ""; width: 17px; height: 17px; flex: 0 0 auto; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3 7.6 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.6L15 3H9Zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Z"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3 7.6 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.6L15 3H9Zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Z"/></svg>') center/contain no-repeat; }

/* Frosted-glass form panel */
.ef-uslugi-cta__form { background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid rgba(255,255,255,.65); border-radius: 22px; padding: clamp(24px,3vw,40px); box-shadow: 0 20px 60px rgba(40,25,15,.12); }
.ef-uslugi-cta__form .form-item { margin: 0 0 16px; }
.ef-uslugi-cta__form label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; color: var(--ink); }
.ef-uslugi-cta__form input[type=text], .ef-uslugi-cta__form input[type=email], .ef-uslugi-cta__form input[type=tel], .ef-uslugi-cta__form select, .ef-uslugi-cta__form textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(0,0,0,.14); border-radius: 10px; background: rgba(255,255,255,.7); font-size: 1rem; font-family: inherit; transition: border-color .2s; }
.ef-uslugi-cta__form input:focus, .ef-uslugi-cta__form select:focus, .ef-uslugi-cta__form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.ef-uslugi-cta__form textarea { min-height: 108px; resize: vertical; }
.ef-uslugi-cta__form .form-actions { margin-top: 6px; }
.ef-uslugi-cta__form .button, .ef-uslugi-cta__form input[type=submit] { display: inline-block; padding: 14px 34px; border: none; border-radius: 999px; background: var(--ink,#111); color: #fff; font-size: .98rem; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: transform .2s, opacity .2s; }
.ef-uslugi-cta__form .button:hover, .ef-uslugi-cta__form input[type=submit]:hover { transform: translateY(-1px); opacity: .92; }
@media (max-width: 780px) { .ef-uslugi-cta__grid { grid-template-columns: 1fr; } }

/* ============ УСЛУГИ v3 — hero-обзор + фото + аккордеон ============ */
.ef-uslugi-body { max-width: 1240px; margin: 0 auto; padding: clamp(36px,5vw,80px) var(--gutter,22px) 0; }

/* Hero overview: text + photo, warm blob behind */
.ef-u-hero { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px,5vw,72px); align-items: center; margin-bottom: clamp(44px,6vw,86px); isolation: isolate; }
.ef-u-hero > :not(.ef-u-blob) { position: relative; z-index: 1; }
.ef-u-blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(203,133,84,.5), rgba(208,116,116,.34) 38%, rgba(232,204,150,.16) 66%, rgba(255,255,255,0) 74%);
  filter: blur(64px); opacity: .8; }
.ef-u-blob--1 { width: min(620px,80vw); height: min(620px,80vw); top: -26%; left: -8%; }
.ef-u-eyebrow { font-size: .76rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted,#8a8a8a); margin: 0 0 22px; }
.ef-u-headline { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem,4.6vw,3.7rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 24px; }
.ef-u-sub { font-size: clamp(1.02rem,1.3vw,1.2rem); line-height: 1.6; color: var(--ink-soft,#2b2b2b); max-width: 560px; margin: 0; }
.ef-u-hero__photo { margin: 0; }
.ef-u-hero__photo img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 30px 70px rgba(20,15,10,.16); }

@media (max-width: 860px) {
  .ef-u-hero { grid-template-columns: 1fr; gap: 28px; }
  .ef-u-hero__photo { order: -1; max-width: 420px; }
}

/* Accordion — all services visible, descriptions expand on click */
.ef-u-acc { border-top: 1px solid var(--line,#e8e8e8); }
.ef-u-acc__item { border-bottom: 1px solid var(--line,#e8e8e8); }
.ef-u-acc__head { display: grid; grid-template-columns: auto 1fr auto auto; gap: clamp(14px,3vw,38px); align-items: center; padding: clamp(22px,2.6vw,34px) 4px; cursor: pointer; transition: opacity .2s; }
.ef-u-acc__head:hover { opacity: .62; }
.ef-u-acc__num { font-family: var(--font-display); font-size: 1rem; color: var(--muted,#8a8a8a); letter-spacing: .04em; }
.ef-u-acc__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem,2.8vw,2.35rem); line-height: 1.08; letter-spacing: -.02em; }
.ef-u-acc__price { font-family: var(--font-display); font-weight: 500; font-size: clamp(.95rem,1.3vw,1.22rem); color: var(--ink,#0a0a0a); white-space: nowrap; }
.ef-u-acc__toggle { position: relative; width: 24px; height: 24px; flex: 0 0 auto; }
.ef-u-acc__toggle::before, .ef-u-acc__toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 1.5px; background: var(--ink,#0a0a0a); transform: translate(-50%,-50%); transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s; }
.ef-u-acc__toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.ef-u-acc__item.is-open .ef-u-acc__toggle::after { opacity: 0; transform: translate(-50%,-50%) rotate(0); }
.ef-u-acc__panel { overflow: hidden; max-height: 0; transition: max-height .55s cubic-bezier(.4,0,.2,1); }
.ef-u-acc__item.is-open .ef-u-acc__panel { max-height: 1000px; }
.ef-u-acc__inner { max-width: 780px; padding: 2px 4px clamp(26px,3vw,40px); }
.ef-u-acc__inner .ef-u-card__lead { font-size: clamp(1.08rem,1.4vw,1.32rem); font-weight: 500; line-height: 1.4; color: var(--ink,#0a0a0a); margin: 0 0 18px; }
.ef-u-acc__inner p { color: var(--ink-soft,#2b2b2b); line-height: 1.66; margin: 0 0 14px; }
.ef-u-acc__inner a { color: var(--ink,#0a0a0a); font-weight: 500; }

@media (max-width: 620px) {
  .ef-u-acc__head { grid-template-columns: auto 1fr auto; row-gap: 4px; }
  .ef-u-acc__price { grid-column: 2 / 3; font-size: .95rem; color: var(--muted,#8a8a8a); }
  .ef-u-acc__toggle { grid-row: 1 / 3; }
}

/* Trust / FAQ / Start */
.ef-u-trust, .ef-u-start { max-width: 760px; margin-inline: auto; text-align: center; }
.ef-u-trust { margin-top: clamp(50px,7vw,90px); }
.ef-u-trust__title, .ef-u-start__title, .ef-u-faq__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem,2.6vw,2.1rem); margin: 0 0 22px; }
.ef-u-trust p, .ef-u-start p { color: var(--ink-soft,#2b2b2b); line-height: 1.66; font-size: 1.05rem; }
.ef-u-trust__find { font-style: italic; color: var(--muted,#8a8a8a) !important; margin-top: 16px !important; }
.ef-u-start { padding-top: clamp(34px,4vw,54px); border-top: 1px solid var(--line,#e8e8e8); margin-top: clamp(50px,7vw,90px); }
.ef-u-faq { max-width: 860px; margin: clamp(50px,7vw,90px) auto 0; }
.ef-u-faq__title { text-align: center; margin-bottom: 30px; }
.ef-u-faq__item { padding: 24px 0; border-bottom: 1px solid var(--line,#e8e8e8); }
.ef-u-faq__item:first-of-type { border-top: 1px solid var(--line,#e8e8e8); }
.ef-u-faq__item h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0 0 8px; }
.ef-u-faq__item p { color: var(--ink-soft,#2b2b2b); line-height: 1.6; margin: 0; }

/* ==== УСЛУГИ v4 — блочная редактируемость, аккордеон без цен ==== */
/* Field wrapper resets (drupal_field adds .field wrappers) */
.ef-u-hero__text .field, .ef-u-hero__photo .field, .ef-u-acc__inner .field,
.ef-u-trust .field, .ef-u-faq .field { margin: 0; }
.ef-u-hero__photo .field, .ef-u-hero__photo .field__item { line-height: 0; }
.ef-u-acc__title .field, .ef-u-acc__title .field__item { display: inline; margin: 0; }

/* Hero photo (field_image) */
.ef-u-hero__photo img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 30px 70px rgba(20,15,10,.16); }

/* Lead paragraph inside service body */
.ef-u-lead { font-size: clamp(1.08rem,1.4vw,1.32rem); font-weight: 500; line-height: 1.4; color: var(--ink,#0a0a0a); margin: 0 0 18px; }

/* Accordion head — number + title + toggle (no price) */
.ef-u-acc__head { grid-template-columns: auto 1fr auto; }
.ef-u-acc__title { min-width: 0; }
.ef-u-acc__price { display: none; }

/* Buttons inside editor content */
.ef-u-acc__inner .ef-btn, .ef-u-trust .ef-btn { margin-top: 8px; }
a.ef-btn { display: inline-block; padding: 13px 30px; border-radius: 999px; background: var(--ink,#0a0a0a); color: #fff; text-decoration: none; font-weight: 600; font-size: .96rem; letter-spacing: .01em; transition: transform .2s, opacity .2s; }
a.ef-btn:hover { transform: translateY(-1px); opacity: .92; }
a.ef-btn.ef-btn--light { background: #fff; color: var(--ink,#0a0a0a); border: 1px solid var(--line-strong,#d2d2d2); }

/* Pencil on accordion items — offset left of the +/- toggle */
body.user-logged-in .ef-u-acc__item.ef-editable > .ef-pencil { top: 16px; right: 54px; width: 30px; height: 30px; }
body.user-logged-in .ef-u-acc__item.ef-editable > .ef-pencil svg { width: 13px; height: 13px; }

/* ==== УСЛУГИ v5 — mobile-адаптив + аккордеон (название слева, крестик справа) ==== */

/* Accordion head: flex — number+title left, toggle pinned right */
.ef-u-acc__head { display: flex; align-items: center; gap: clamp(14px,3vw,26px); grid-template-columns: none; }
.ef-u-acc__num { flex: 0 0 auto; order: 0; }
.ef-u-acc__title { flex: 1 1 auto; order: 1; text-align: left; min-width: 0; }
.ef-u-acc__toggle { flex: 0 0 auto; order: 2; margin-left: auto; width: 26px; height: 26px; }

/* Toggle: thin + that rotates into × on open (Apple-style) */
.ef-u-acc__toggle::before, .ef-u-acc__toggle::after { width: 17px; height: 1.6px; background: var(--ink,#0a0a0a); transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s; }
.ef-u-acc__toggle::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 1; }
.ef-u-acc__item.is-open .ef-u-acc__toggle::before { transform: translate(-50%,-50%) rotate(45deg); }
.ef-u-acc__item.is-open .ef-u-acc__toggle::after { opacity: 1; transform: translate(-50%,-50%) rotate(-45deg); }

/* Apple-ish polish: soft hover, generous rows, refined lines */
.ef-u-acc__item { transition: background-color .25s ease; }
.ef-u-acc__head:hover { opacity: 1; }
.ef-u-acc__item:hover { background-color: rgba(0,0,0,.015); }
.ef-u-acc__head { border-radius: 14px; }
.ef-u-acc__title { letter-spacing: -.02em; }

/* CTA form buttons — never glued, full-width & spaced on mobile */
.ef-uslugi-cta__form .form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.ef-uslugi-cta__form #edit-preview, .ef-uslugi-cta__form [id*="preview"] { display: none !important; }

/* Mobile adaptation */
@media (max-width: 720px) {
  .ef-uslugi-body { padding-left: 20px; padding-right: 20px; }
  .ef-u-hero { margin-bottom: 34px; }
  .ef-u-hero__text .ef-u-headline, .ef-u-hero .ef-u-headline { font-size: clamp(1.9rem,7.5vw,2.6rem); }
  .ef-u-acc__head { padding: 20px 4px; gap: 14px; }
  .ef-u-acc__num { font-size: .85rem; }
  .ef-u-acc__title { font-size: clamp(1.15rem,5.2vw,1.6rem); line-height: 1.15; }
  .ef-u-acc__toggle { width: 22px; height: 22px; }
  .ef-u-acc__inner { padding-left: 4px; padding-right: 4px; }
  .ef-u-trust, .ef-u-faq { padding-left: 2px; padding-right: 2px; }
  .ef-uslugi-cta { padding-left: 4px; padding-right: 4px; }
  .ef-uslugi-cta__form .button, .ef-uslugi-cta__form input[type=submit] { width: 100%; text-align: center; }
}

/* ==== УСЛУГИ v6 — заголовки вправо + матовые кнопки слайдера (моб) ==== */
/* All service titles right-aligned (consistent, incl. «Курс») */
.ef-u-acc__title, .ef-u-acc__title .field, .ef-u-acc__title .field__item { text-align: right; }

/* Mobile: homepage slider CTA buttons — frosted glass, airy */
@media (max-width: 720px) {
  .ef-slider .ef-hero__actions .ef-btn,
  .ef-slider .ef-btn--light,
  .ef-slider .ef-btn--lightghost {
    background: rgba(255, 255, 255, .16) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .5) !important;
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
  }
}

/* Slider CTA buttons (Портфолио/Музыка) — frosted glass on ALL sizes, refined */
.ef-slider .ef-hero__actions .ef-btn,
.ef-slider .ef-btn--light,
.ef-slider .ef-btn--lightghost {
  background: rgba(255, 255, 255, .14) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .45) !important;
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
  font-weight: 500;
  letter-spacing: .05em;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.ef-slider .ef-hero__actions .ef-btn:hover {
  background: rgba(255, 255, 255, .24) !important;
  border-color: rgba(255, 255, 255, .7) !important;
  transform: translateY(-1px);
}

/* ==== УСЛУГИ v7 — текст панелей по правому краю (как заголовки) ==== */
.ef-u-acc__inner {
  max-width: none;
  text-align: right;
  padding-left: 4px;
  padding-right: 56px; /* clear the ×-toggle column so text right edge lines up with the title */
}
.ef-u-acc__inner p, .ef-u-acc__inner .ef-u-lead, .ef-u-acc__inner .field, .ef-u-acc__inner .field__item { text-align: right; }
.ef-u-acc__inner a.ef-btn { margin-left: 0; }
@media (max-width: 720px) {
  .ef-u-acc__inner { padding-right: 40px; }
}

/* ==== УСЛУГИ v8 — больше левого отступа у текста панелей ==== */
.ef-u-acc__inner { padding-left: clamp(28px, 14vw, 200px); }
@media (max-width: 720px) {
  .ef-u-acc__inner { padding-left: 18px; padding-right: 40px; }
}

/* ==== Content images (articles/blocks): rounded, clean float для «2 в ряд» ==== */
.ef-u-acc__inner img, .ef-prose img, .ef-u-hero__text img { border-radius: 10px; height: auto; max-width: 100%; }
.ef-u-acc__inner .align-left, .ef-prose .align-left { float: left; margin: 4px 16px 14px 0; }
.ef-u-acc__inner .align-right, .ef-prose .align-right { float: right; margin: 4px 0 14px 16px; }
.ef-u-acc__inner .align-center, .ef-prose .align-center { display: block; margin: 16px auto; }
/* clearfix after floated images so following text/blocks reset */
.ef-u-acc__inner::after, .ef-prose::after { content: ""; display: table; clear: both; }

/* =========================================================
   Инлайн-медиа в статьях: ряды по 2–3 фото, подписи, галерея
   (работает на нативном filter_align + ресайзе CKEditor5)
   ========================================================= */

/* Выравнивание = плавающая колонка. Два фото подряд «влево» → 2 в ряд;
   потяни уже за уголок (ресайз) до ~трети — будет 3 в ряд. */
img[data-align="left"], figure[data-align="left"] {
  float: left; margin: 6px 22px 14px 0; max-width: calc(50% - 11px); height: auto;
}
img[data-align="right"], figure[data-align="right"] {
  float: right; margin: 6px 0 14px 22px; max-width: calc(50% - 11px); height: auto;
}
img[data-align="center"], figure[data-align="center"] {
  display: block; margin: 22px auto; height: auto;
}
figure { margin: 0 0 14px; }
figure img { width: 100%; height: auto; display: block; }
figure figcaption {
  font-size: .86rem; line-height: 1.4; color: #8a8a8a;
  text-align: center; margin-top: 8px; font-style: italic;
}

/* Явная галерея-сетка (для «плитки» фото; ставится через «Источник» —
   обернуть фото в <div class="ef-gallery">…</div>). Авто-раскладка. */
.ef-media-gallery {
  display: block; columns: 3 240px; column-gap: 12px;
  margin: 24px 0; clear: both;
}
.ef-media-gallery.ef-gallery--2 { columns: 2 300px; }
.ef-media-gallery img, .ef-media-gallery figure {
  width: 100%; height: auto; margin: 0 0 12px; float: none; max-width: 100%;
  display: block; break-inside: avoid; border-radius: 4px;
}

/* Чистим обтекание в конце каждого текстового поля (тело статьи/блока) */
.ef-prose::after,
.field--type-text-with-summary .field__item::after,
.field--type-text-long .field__item::after,
.ef-u-acc__inner::after, .ef-u-hero__text::after,
.ef-mk-body::after, .ef-wg-body::after,
.ef-about-teaser__text::after, .ef-contacts-intro::after,
.ef-magazine__body::after { content: ''; display: table; clear: both; }

/* Мобильные: всё в один столбец */
@media (max-width: 640px) {
  img[data-align="left"], img[data-align="right"],
  figure[data-align="left"], figure[data-align="right"] {
    float: none; max-width: 100%; margin: 16px 0;
  }
  .ef-media-gallery, .ef-media-gallery.ef-gallery--2 { columns: 2 140px; column-gap: 8px; }
}

/* Адаптивный видео-плеер (VK/встроенные iframe) 16:9 */
.ef-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 24px 0; background: #000; border-radius: 6px; overflow: hidden; clear: both; }
.ef-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Контакты: текстовый список соцсетей ссылками в столбик (над иконками) */
.ef-socials-list {
  list-style: none; margin: 0 auto 26px; padding: 0;
  display: flex; flex-direction: column; gap: 9px; align-items: center;
}
.ef-socials-list li { font-size: 1.02rem; color: #6b6b6b; letter-spacing: .01em; }
.ef-socials-list a {
  color: var(--ink, #0a0a0a); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(10,10,10,.28); padding-bottom: 1px; transition: opacity .2s, border-color .2s;
}
.ef-socials-list a:hover { opacity: .65; border-color: transparent; }


/* Блог: превью статьи — целиком, в своей ориентации (без обрезки) */
.ef-card--news .ef-card__media { aspect-ratio: auto; background: none; }
.ef-card--news .ef-card__media img { width: 100%; height: auto; object-fit: contain; }


/* Галерея-КАРУСЕЛЬ в статье: лента, листается вбок (свайп/колесо), фото целиком */
.ef-media-gallery--carousel {
  display: flex; columns: auto; gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px; margin: 24px 0; clear: both;
  -webkit-overflow-scrolling: touch;
}
.ef-media-gallery--carousel img {
  flex: 0 0 auto; width: auto; height: clamp(340px, 56vh, 560px);
  max-width: 88%; object-fit: contain; margin: 0;
  scroll-snap-align: start; border-radius: 4px; cursor: zoom-in;
}
.ef-media-gallery--carousel::-webkit-scrollbar { height: 6px; }
.ef-media-gallery--carousel::-webkit-scrollbar-thumb { background: var(--line-strong, #d2d2d2); border-radius: 3px; }
.ef-media-gallery--carousel::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 640px) {
  .ef-media-gallery--carousel img { height: clamp(260px, 48vh, 420px); max-width: 92%; }
}

/* Лендинг курса: блок «Купить курс» */
.ef-wg-buy { position: relative; margin: clamp(40px, 7vw, 90px) auto; }
.ef-wg-buy__card {
  max-width: 780px; margin-inline: auto; padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 20px;
  background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.06);
  text-align: center;
}
.ef-wg-buy__text { font-size: 1.05rem; line-height: 1.6; }
.ef-wg-buy__text p { margin: 0 0 .9em; }
.ef-wg-buy__actions { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ef-wg-buy__cta { font-size: 1rem; padding: 15px 42px; }
.ef-wg-buy__login { font-size: .9rem; color: var(--muted, #777); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.2); }
.ef-wg-buy__login:hover { opacity: .7; }
@media (max-width: 640px) { .ef-wg-buy__card { padding: 24px 18px; border-radius: 16px; } }


/* Юридическое: акцепт под кнопкой покупки + документы в подвале */
.ef-wg-buy__legal {
  margin: 18px auto 0; max-width: 52ch;
  font-size: .8rem; line-height: 1.5; color: var(--muted, #8a8a8a); text-align: center;
}
.ef-wg-buy__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ef-wg-buy__legal a:hover { color: var(--ink, #0a0a0a); }
.ef-footer__legal ul { list-style: none; margin: 0; padding: 0; }
.ef-footer__legal li { margin: 0 0 6px; }
.ef-footer__legal a { text-decoration: none; opacity: .8; }
.ef-footer__legal a:hover { opacity: 1; }
.ef-footer__req { margin-top: 12px; font-size: .74rem; line-height: 1.5; opacity: .55; }


/* Согласие с документами перед покупкой */
.ef-wg-consent { margin-top: 24px; }
.ef-wg-consent__row {
  display: flex; align-items: flex-start; gap: 11px;
  max-width: 56ch; margin-inline: auto; text-align: left;
  cursor: pointer; user-select: none;
}
.ef-wg-consent__box { position: absolute; opacity: 0; width: 0; height: 0; }
.ef-wg-consent__mark {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--line-strong, #c7c7cc); border-radius: 6px;
  background: #fff; position: relative;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.ef-wg-consent__mark::after {
  content: ''; position: absolute; left: 7px; top: 3px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .18s cubic-bezier(.32,.72,0,1);
}
.ef-wg-consent__box:checked + .ef-wg-consent__mark { background: #0071e3; border-color: #0071e3; }
.ef-wg-consent__box:checked + .ef-wg-consent__mark::after { transform: rotate(45deg) scale(1); }
.ef-wg-consent__row:active .ef-wg-consent__mark { transform: scale(.94); }
.ef-wg-consent__box:focus-visible + .ef-wg-consent__mark { outline: 2px solid #0071e3; outline-offset: 2px; }
.ef-wg-consent__text { font-size: .88rem; line-height: 1.5; color: var(--muted, #6e6e73); }
.ef-wg-consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ef-wg-consent__text a:hover { color: var(--ink, #0a0a0a); }

/* Предупреждение */
.ef-wg-consent__warn {
  max-width: 56ch; margin: 12px auto 0; padding: 11px 15px;
  border-radius: 10px; background: rgba(215, 58, 73, .08);
  border: 1px solid rgba(215, 58, 73, .22); color: #b3202f;
  font-size: .85rem; line-height: 1.45; text-align: left;
}
.ef-wg-consent__warn[hidden] { display: none; }
.ef-wg-consent.is-shaking .ef-wg-consent__mark { animation: efConsentShake .38s ease; border-color: #b3202f; }
@keyframes efConsentShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Заблокированная кнопка покупки */
.ef-wg-buy__cta.is-disabled {
  opacity: .42; cursor: not-allowed; pointer-events: auto;
}
.ef-wg-buy__cta.is-disabled:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ef-wg-consent.is-shaking .ef-wg-consent__mark { animation: none; }
  .ef-wg-consent__mark, .ef-wg-consent__mark::after { transition: none; }
}


/* Полоса пользователя — отдельная линия над меню (как админ-тулбар) */
.ef-userbar {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .025);
}
.ef-userbar__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 5px var(--gutter);
  display: flex; justify-content: flex-end; align-items: center;
}
.ef-header--over .ef-userbar {
  background: rgba(0, 0, 0, .3);
  border-bottom-color: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.ef-account {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 12px 3px 3px; border-radius: 980px;
  background: rgba(0, 0, 0, .05); text-decoration: none;
  color: var(--ink, #1d1d1f); font-size: .78rem; line-height: 1;
  white-space: nowrap; transition: background-color .2s ease;
}
.ef-account:hover { background: rgba(0, 0, 0, .1); }
.ef-account__ava {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0071e3; color: #fff; font-size: .68rem; font-weight: 600;
}
.ef-account__mail { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.ef-header--over .ef-account { background: rgba(255, 255, 255, .16); color: #fff; }
.ef-header--over .ef-account:hover { background: rgba(255, 255, 255, .28); }

/* Меню никогда не переносится на вторую строку */
.ef-nav ul { flex-wrap: nowrap; }
.ef-nav a { white-space: nowrap; }
.ef-logo { flex: 0 0 auto; }

@media (max-width: 640px) {
  .ef-userbar__inner { padding: 4px var(--gutter); }
  .ef-account__mail { max-width: 15ch; }
}

/* Личный кабинет: содержимое по центру */
.ef-cabinet__head { text-align: center; }
.ef-cabinet__body { display: flex; flex-direction: column; align-items: center; }
.ef-cabinet__body > * { width: 100%; max-width: 560px; }
.ef-cabinet .wg-card { margin-inline: auto; }
.ef-cabinet .tabs, .ef-cabinet .block-local-tasks-block { display: flex; justify-content: center; width: 100%; }

@media (max-width: 860px) {
  .ef-account__mail { display: none; }
  .ef-account { padding: 4px; margin-left: 10px; }
}

/* Узкий десктоп: поджимаем меню, чтобы 8 пунктов гарантированно шли одной строкой */
@media (min-width: 861px) and (max-width: 1180px) {
  .ef-nav ul { gap: 12px; }
  .ef-nav a { font-size: .7rem; letter-spacing: .05em; }
  .ef-logo__img { max-height: 34px; }
}
@media (min-width: 1181px) and (max-width: 1420px) {
  .ef-nav ul { gap: 20px; }
  .ef-nav a { font-size: .75rem; letter-spacing: .08em; }
}
/* Страховка: если пунктов станет больше — меню не переносится, а ужимается */
.ef-header__inner { flex-wrap: nowrap; }
.ef-nav { min-width: 0; }


/* Соцсети: загруженные иконки (PNG) и запасная буква */
.ef-social__img { width: 24px; height: 24px; object-fit: contain; display: block; }
.ef-social__letter {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: currentColor; color: #fff; font-size: .72rem; font-weight: 700;
}
.ef-social__letter { color: #fff; }


/* Карандаш поверх тёмных медиа — светлая обводка для читаемости */
body.user-logged-in .ef-slider .ef-pencil,
body.user-logged-in .ef-cover .ef-pencil { box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 3px 14px rgba(0,0,0,.35); }

/* ---------- Карточка записи блога: обложка + текст ---------- */
.ef-card--news { display: flex; flex-direction: column; gap: 16px; }
.ef-card__cover {
  display: block; overflow: hidden; border-radius: 14px;
  background: #f2f2f4; aspect-ratio: 16 / 9;
}
.ef-card__cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.32,.72,0,1);
}
.ef-card--news:hover .ef-card__cover img { transform: scale(1.03); }
.ef-card__text { display: flex; flex-direction: column; gap: 8px; }
.ef-card--news .ef-card__summary {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .ef-card__cover img { transition: none; }
  .ef-card--news:hover .ef-card__cover img { transform: none; }
}

/* Запись без картинок: типографская заглушка вместо пустоты. */
.ef-card__cover--blank {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e9eaee);
}
.ef-card__cover--blank span {
  font-size: 3.2rem; font-weight: 700; letter-spacing: -.03em;
  color: rgba(0,0,0,.13); user-select: none;
}

/* ---------- Переход по клавише Tab ----------
   Была стандартная браузерная обводка в один пиксель — на таком сайте
   она читается как недоделка. Свой стиль, заметный и на светлом, и на
   тёмном фоне. Мышью обводка не появляется. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 3px;
  border-radius: 6px;
}
.ef-header--over :where(a, button):focus-visible,
.wg26-hero :where(a, button):focus-visible,
.wg26-final :where(a, button):focus-visible {
  outline-color: #fff;
}

/* ---------- Удобные цели для пальца (ef-tap-target) ----------
   На телефоне по мелким кнопкам промахиваются. Расширяем область
   нажатия до 44px, не меняя внешний вид: элемент центрируется внутри. */
@media (max-width: 860px) {
  .ef-card__more,
  .ef-social,
  .ef-jspager__item,
  .ef-ptab,
  .pager__item > a,
  .ef-lb__thumb,
  .ef-slider__dots button,
  .ef-photoshow__dots button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Точки слайдера крошечные по замыслу — расширяем только зону касания. */
  .ef-slider__dots button,
  .ef-photoshow__dots button {
    position: relative;
    min-width: 44px;
    background-clip: content-box;
    padding: 18px;
    margin: -12px;
  }
  .ef-burger {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  /* Заголовок карточки — увеличиваем строку, а не отступы:
     иначе разъезжается сетка ленты. */
  .ef-card__title { line-height: 1.4; }
}
