/**
 * Журнальный светлый слой 2026 (пилот на «Услугах»).
 *
 * Тёплая бумага вместо тёмных экранов, чистый монохром без синего и
 * градиентов, крупная типографика: гротеск Inter для структуры и
 * серифный Playfair для акцентных фраз — как в глянцевых студийных
 * макетах. Тонкие линейки, номера разделов, много воздуха.
 *
 * Включается классом .mag на <main>. Значения заданы напрямую.
 */

.ef-uslugi-page.mag {
  --paper: #f4f1ec;
  --ink: #17150f;
  --muted: #8b8578;
  --line: rgba(23,21,15,.14);
  --line-soft: rgba(23,21,15,.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}
.mag .ef-uslugi-body { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }

/* Главная: блок «обо мне» в формате hero «Услуг» — переменные + контейнер,
   без общего фона (фон страницы остаётся своим). */
.ef-home-mag.mag {
  --paper: #f4f1ec;
  --ink: #17150f;
  --muted: #8b8578;
  --line: rgba(23,21,15,.14);
  --line-soft: rgba(23,21,15,.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  max-width: 1200px; margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
  margin-block: clamp(28px, 5vw, 64px);
}

/* Цветные полосы главной во всю ширину (main.s26 — full-width).
   flow-root — чтобы вертикальные margin блока не «проваливались» наружу
   полосы (иначе сверху/снизу появлялись белые зазоры). */
.s26 .ef-home-band { display: flow-root; }
.s26 .ef-home-band--cream { background: #f4f1ec; }
.s26 .ef-home-band--white { background: #fff; }
/* «Слушать музыку» — узкая белая полоса. */
.s26 .ef-home-band--narrow .ef-platforms-section { padding-block: clamp(18px, 2.6vw, 34px); }

/* ---------- Общие метки-надзаголовки ---------- */
.mag .ef-u-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted);
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border: 0; margin: 0 0 clamp(16px, 2vw, 24px);
}
.mag .ef-u-eyebrow::after { content: none; }
.mag .ef-u-eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor;
}

/* ================= Первый экран ================= */
.mag .ef-u-hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 72px); align-items: end;
  padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.mag .ef-u-blob { display: none; }
.mag .ef-u-hero__text .ef-u-eyebrow { color: var(--muted); }
.mag .ef-u-hero__text h1,
.mag .ef-u-headline {
  font-family: "Inter", sans-serif;
  font-weight: 800; font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: .96; letter-spacing: -.045em;
  margin: 0 0 clamp(20px, 3vw, 34px); color: var(--ink);
}
.mag .ef-u-headline em { font-style: normal; }
.mag .ef-u-hero__text p,
.mag .ef-u-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6;
  color: #575147; max-width: 46ch; margin: 0;
}
.mag .ef-u-hero__photo { margin: 0; }
.mag .ef-u-hero__photo img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 2px;
}

/* ================= Услуги — журнальные строки ================= */
.mag .ef-u-acc {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 80px);
}
.mag .ef-u-acc__item {
  border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0; background: none !important; box-shadow: none !important;
  transition: none;
}
.mag .ef-u-acc__item:hover { transform: none; box-shadow: none !important; }
.mag .ef-u-acc__head {
  display: grid; grid-template-columns: 3.2rem 1fr 2rem;
  align-items: center; gap: clamp(14px, 2vw, 32px);
  padding: clamp(16px, 2.2vw, 26px) 0;
  opacity: 1; cursor: pointer;
  transition: padding-left .3s cubic-bezier(.32,.72,0,1), opacity .2s;
}
/* Деликатная реакция на наведении: строка чуть сдвигается, номер темнеет,
   название мягко подрастает, плюс медленно поворачивается. */
.mag .ef-u-acc__head:hover { padding-left: clamp(8px, 1.2vw, 16px); }
.mag .ef-u-acc__title { transition: transform .4s cubic-bezier(.22,.61,.36,1), color .3s; transform-origin: left center; }
.mag .ef-u-acc__head:hover .ef-u-acc__title { transform: scale(1.03); }
.mag .ef-u-acc__num { transition: color .3s; }
.mag .ef-u-acc__item:nth-child(n) .ef-u-acc__head:hover .ef-u-acc__num { color: var(--ink); }
/* Плюс мягко подрастает — без смены формы. */
.mag .ef-u-acc__toggle { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.mag .ef-u-acc__head:hover .ef-u-acc__toggle { transform: scale(1.18); }

@media (prefers-reduced-motion: reduce) {
  .mag .ef-u-acc__head, .mag .ef-u-acc__title, .mag .ef-u-acc__toggle,
  .mag .ef-u-acc__head:hover, .mag .ef-u-acc__head:hover .ef-u-acc__title,
  .mag .ef-u-acc__head:hover .ef-u-acc__toggle { transition: none; transform: none; padding-left: 0; }
}
.mag .ef-u-acc__num,
.mag .ef-u-acc__item:nth-child(n) .ef-u-acc__num {
  background: none !important; border: 0; width: auto; height: auto; border-radius: 0;
  color: var(--muted); font-size: .82rem; font-weight: 500; letter-spacing: .1em;
  font-variant-numeric: tabular-nums; align-self: center;
}
/* Крупные заголовки-строки, как на референсе. */
.mag .ef-u-acc__title,
.mag .ef-u-acc__title * {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.0;
  font-weight: 700; letter-spacing: -.04em; color: var(--ink);
}
.mag .ef-u-acc__toggle {
  width: 26px; height: 26px; border: 0; background: none; align-self: center;
  position: relative;
}
.mag .ef-u-acc__toggle::before,
.mag .ef-u-acc__toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px; background: var(--ink);
  transform: translate(-50%,-50%);
}
.mag .ef-u-acc__toggle::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .3s; }
.mag .ef-u-acc__item.is-open .ef-u-acc__toggle::after { transform: translate(-50%,-50%) rotate(0); }
.mag .ef-u-acc__item.is-open .ef-u-acc__toggle { background: none !important; border: 0 !important; }
.mag .ef-u-acc__inner {
  /* Одна колонка, выключка по левому краю. */
  padding: clamp(24px, 2.8vw, 36px) 0 clamp(28px, 3.4vw, 44px);
  display: grid; grid-template-columns: 3.2rem minmax(0, 62ch);
  gap: clamp(14px, 2vw, 32px);
}
.mag .ef-u-acc__inner > * { grid-column: 2; }
.mag .ef-u-acc__inner > :first-child { margin-top: 0; }
/* Текст ровный по левому краю, не жирный — как на всём сайте. */
.mag .ef-u-acc__inner,
.mag .ef-u-acc__inner p,
.mag .ef-u-acc__inner .ef-u-lead,
.mag .ef-u-acc__inner li { text-align: left !important; }
.mag .ef-u-acc__inner p,
.mag .ef-u-acc__inner .ef-u-lead,
.mag .ef-u-acc__inner li { font-weight: 400 !important; }
.mag .ef-u-acc__inner p,
.mag .ef-u-acc__inner li {
  font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.62; color: #575147;
}
.mag .ef-u-acc__inner p { margin: 0 0 .8em; }
.mag .ef-u-acc__inner ul { margin: .4em 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mag .ef-u-acc__inner li { position: relative; padding-left: 22px; }
.mag .ef-u-acc__inner li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 10px; height: 1px; background: var(--ink) !important;
}
.mag .ef-u-acc__inner strong { color: var(--ink); font-weight: 600; }

/* ================= «Почему со мной» ================= */
.mag .ef-u-trust {
  max-width: none; margin: 0; text-align: left;
  background: none; border-radius: 0;
  padding-block: clamp(56px, 8vw, 108px);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 34px);
}
.mag .ef-u-trust h2,
.mag .ef-u-trust h3,
.mag .ef-u-trust__title {
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.0; letter-spacing: -.04em;
  color: var(--ink); margin: 0 0 clamp(20px, 2.4vw, 32px); max-width: 18ch; text-align: left;
}
.mag .ef-u-trust p {
  max-width: 62ch; margin: 0 auto 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.64; color: #575147;
}
.mag .ef-u-trust em { color: var(--muted); font-style: italic; }

/* «Почему со мной» с фото: слева текст, справа фотография. */
.mag .ef-u-trust.mag-trust {
  grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(28px, 4vw, 64px);
}
.mag .mag-trust__text { min-width: 0; }
.mag .mag-trust__photo { position: relative; margin: 0; }
.mag .mag-trust__photo img { width: 100%; height: auto; display: block; border-radius: 0; }
/* Пока фото не загружено — блок в одну колонку, пустая правая часть скрыта. */
.mag .ef-u-trust.mag-trust:not(:has(.mag-trust__photo img)) { grid-template-columns: 1fr; }
.mag .mag-trust__photo:not(:has(img)) { display: none; }
@media (max-width: 860px) {
  .mag .ef-u-trust.mag-trust { grid-template-columns: 1fr; }
  .mag .mag-trust__photo { order: -1; }
}

/* ================= Вопросы — строки ================= */
.mag .ef-u-faq { padding-block: clamp(56px, 8vw, 104px); }
/* Заголовок FAQ — крупный, как «Оставьте заявку». */
.mag .ef-u-faq h2,
.mag .ef-u-faq__title {
  font-family: "Inter", sans-serif; font-weight: 800; text-align: left;
  font-size: clamp(3rem, 11vw, 8.5rem); line-height: .9; letter-spacing: -.05em;
  margin: 0 0 clamp(28px, 4vw, 56px); color: var(--ink);
}
/* Вопросы — журнальными выносами: крупный вопрос, под ним анонс-ответ.
   Без плашек, тонкая линейка между. */
.mag .ef-u-faq .field__item { display: grid; gap: 0; }
.mag .ef-u-faq__item {
  display: block; background: none; box-shadow: none; border-radius: 0;
  border-top: 1px solid var(--line);
  padding: clamp(26px, 3.2vw, 44px) 0;
  max-width: 78ch;
}
.mag .ef-u-faq__item h3,
.mag .ef-u-faq__item h4 {
  margin: 0 0 clamp(10px, 1.2vw, 16px); padding: 0; border: 0; background: none; border-radius: 0;
  font-family: "Inter", sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.032em;
  color: var(--ink);
}
.mag .ef-u-faq__item p {
  margin: 0 0 .5em; padding: 0; border: 0; background: none; border-radius: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.55; color: #575147;
}
.mag .ef-u-faq__item p:last-child { margin-bottom: 0; }
.mag .ef-u-faq hr { display: none; }

/* ================= Заявка — по образцу «Contact me» ================= */
.mag .ef-uslugi-cta {
  background: #fff; color: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 96px);
}
.mag .ef-uslugi-cta::before, .mag .ef-uslugi-cta::after { display: none; }
.mag .ef-uslugi-cta .ef-wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }

/* Контакты: CTA — первый блок под шапкой. Убираем линию сверху и большой
   отступ, чтобы «Контакты» стояли выше, ближе к меню. */
.mag.ef-contacts-mag .ef-uslugi-cta { border-top: 0; padding-top: clamp(16px, 2.5vw, 36px); }

/* Крупный титул во всю ширину блока. */
.mag .mag-cta__title {
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(3rem, 11vw, 8.5rem); line-height: .9; letter-spacing: -.05em;
  margin: 0 0 clamp(30px, 4vw, 56px); color: var(--ink);
}

.mag .mag-cta__grid { display: grid; grid-template-columns: minmax(150px, .62fr) 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.mag .mag-cta__meta { display: grid; gap: 14px; }
/* Фото под подписью формы (левая колонка контактов). */
.mag .mag-cta__photo { position: relative; margin: clamp(18px, 2.6vw, 30px) 0 0; }
.mag .mag-cta__photo img { width: 100%; height: auto; display: block; border-radius: 0; }
/* Пустая фигура (фото не загружено) — не занимает место у посетителя. */
.mag .mag-cta__photo:not(:has(img)) { margin: 0; }
.mag .mag-cta__meta p { margin: 0; color: #575147; font-size: .96rem; line-height: 1.5; }

/* Форма — плоская, без плашки, тени и рамки (перебиваем базовый стиль). */
.mag .ef-uslugi-cta__form {
  background: none !important; box-shadow: none !important; border: 0 !important;
  border-radius: 0 !important; padding: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* Контакты внизу — крупно, как e-mail и телефон в референсе. */
.mag .mag-cta__contacts {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px clamp(24px, 4vw, 60px);
  margin-top: clamp(48px, 7vw, 96px);
}
.mag .mag-cta__big {
  color: var(--ink); text-decoration: none;
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -.035em;
  transition: opacity .2s;
}
.mag .mag-cta__big:hover { opacity: .55; }

/* Поля — минимализм на подчёркивании, метка сверху (референс «Contact me»). */
.mag .ef-uslugi-cta__form label {
  color: var(--ink); font-size: .92rem; font-weight: 400; letter-spacing: 0;
  text-transform: none; margin-bottom: 6px; display: block;
}
.mag .ef-uslugi-cta__form input[type="text"],
.mag .ef-uslugi-cta__form input[type="email"],
.mag .ef-uslugi-cta__form input[type="tel"],
.mag .ef-uslugi-cta__form select,
.mag .ef-uslugi-cta__form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 10px 0; color: var(--ink);
  font-size: 1.05rem; font-family: inherit; transition: border-color .2s;
}
.mag .ef-uslugi-cta__form input::placeholder,
.mag .ef-uslugi-cta__form textarea::placeholder { color: #b3ad9f; }
.mag .ef-uslugi-cta__form textarea { min-height: 90px; resize: vertical; }
.mag .ef-uslugi-cta__form input:focus,
.mag .ef-uslugi-cta__form select:focus,
.mag .ef-uslugi-cta__form textarea:focus {
  outline: none; background: transparent; border-bottom-color: var(--ink); box-shadow: none;
}
.mag .ef-uslugi-cta__form .js-form-item { margin-bottom: 22px; min-width: 0; }
/* Поля не должны раздвигать сетку шире экрана. */
.mag .ef-uslugi-cta__form input,
.mag .ef-uslugi-cta__form select,
.mag .ef-uslugi-cta__form textarea { max-width: 100%; box-sizing: border-box; }
/* Имя и почта — в одну строку, как в референсе. */
.mag .ef-uslugi-cta__form form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.mag .ef-uslugi-cta__form .js-form-item,
.mag .ef-uslugi-cta__form .form-actions { grid-column: 1 / -1; }
.mag .ef-uslugi-cta__form .js-form-item:nth-of-type(1),
.mag .ef-uslugi-cta__form .js-form-item:nth-of-type(2) { grid-column: auto; }
/* Кнопка — тёмная пилюля по содержимому, слева (референс «Submit»). */
.mag .ef-uslugi-cta__form .form-actions { margin-top: 10px; }
.mag .ef-uslugi-cta__form input[type="submit"],
.mag .ef-uslugi-cta__form button[type="submit"] {
  width: auto; background: #17150f !important; color: #fff;
  border: 0; border-radius: 980px; padding: 15px 44px;
  font-size: .98rem; font-weight: 500; letter-spacing: .01em; cursor: pointer;
  transition: transform .2s, background-color .2s;
}
.mag .ef-uslugi-cta__form input[type="submit"]:hover { background: #000 !important; transform: translateY(-1px); }

/* ================= Телефон ================= */
@media (max-width: 860px) {
  .mag .ef-u-hero,
  .mag .ef-uslugi-cta__grid,
  .mag .mag-cta__grid { grid-template-columns: 1fr; }
  .mag .mag-cta__grid { gap: clamp(24px, 5vw, 40px); }
  .mag .ef-u-hero__photo { order: -1; }
  .mag .ef-u-acc__head { grid-template-columns: 2.4rem 1fr 1.6rem; }
  .mag .ef-u-acc__inner { grid-template-columns: 1fr; }
  .mag .ef-u-acc__inner > * { grid-column: 1; }
}

/* ---------- Подписи над крупными контактами ---------- */
.mag .mag-cta__contacts { align-items: end; }
.mag .mag-cta__c { display: flex; flex-direction: column; gap: 8px; }
.mag .mag-cta__label {
  color: var(--muted); font-size: .74rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}

@media (max-width: 720px) {
  /* Услуги: шапка на flex, заголовок переносится по словам (не по буквам). */
  .mag .ef-u-acc__head { display: flex; align-items: baseline; gap: 12px; padding: clamp(14px, 4vw, 22px) 0; }
  .mag .ef-u-acc__num { flex: 0 0 auto; }
  .mag .ef-u-acc__toggle { flex: 0 0 auto; order: -1; }
  .mag .ef-u-acc__title { flex: 1 1 auto; min-width: 0; }
  .mag .ef-u-acc__title,
  .mag .ef-u-acc__title *,
  .mag .ef-u-acc__title .field,
  .mag .ef-u-acc__title .field__item {
    font-size: clamp(1.35rem, 6.2vw, 2rem); line-height: 1.06;
    text-align: left; overflow-wrap: break-word;
  }
  /* Вопросы: карточка в один столбец. */
  .mag .ef-u-faq__item { grid-template-columns: 1fr; gap: 8px; padding: clamp(18px, 5vw, 26px); }
  /* Форма: поля в один столбец. */
  .mag .ef-uslugi-cta__form form { grid-template-columns: 1fr; }
  .mag .mag-cta__title { font-size: clamp(2.4rem, 12vw, 4rem); }
  /* Крупные контакты столбиком и переносятся. */
  .mag .mag-cta__contacts { flex-direction: column; align-items: start; gap: 20px; }
  .mag .mag-cta__big { font-size: clamp(1.4rem, 7.2vw, 2.2rem); overflow-wrap: anywhere; }
  /* Разворот: заголовок и мета не жмутся. */
  .mag .mag-hero__panel .ef-u-headline,
  .mag .mag-hero__panel .ef-u-hero__text h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}

/* ================= Первый экран — журнальный разворот ================= */
.mag .ef-u-hero.mag-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: stretch;
  padding: 0; border-bottom: 0;
  /* По ширине рабочей области, углы прямые. */
  margin-inline: 0;
  margin-block: clamp(24px, 3vw, 44px) 0;
  border-radius: 0; overflow: hidden;
  min-height: min(66vh, 620px);
}
.mag .mag-hero__panel {
  position: relative;
  background: #fff; /* белый по умолчанию; цвет меняется карандашом */
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3.4vw, 48px) clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(24px, 4vw, 48px);
}
/* Крупный номер разворота сверху — в потоке, не перекрывает текст. */
.mag .mag-hero__num {
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: .8; letter-spacing: -.05em;
  color: currentColor; opacity: .85; align-self: flex-start;
}
/* Текст на плашке: тёмный, если оттенок светлый (по умолчанию — светлый). */
.mag .mag-hero__panel { color: #17150f; }
.mag .mag-hero__panel .ef-u-eyebrow { color: rgba(23,21,15,.6); }
.mag .mag-hero__panel .ef-u-eyebrow::before { background: rgba(23,21,15,.6); }
.mag .mag-hero__panel .ef-u-headline,
.mag .mag-hero__panel .ef-u-hero__text h1 {
  color: #17150f; margin-bottom: clamp(18px, 2.4vw, 28px);
  /* В плашке заголовок компактнее, чем на всю ширину экрана. */
  font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em;
}
.mag .mag-hero__panel .ef-u-sub,
.mag .mag-hero__panel .ef-u-hero__text p {
  color: rgba(23,21,15,.72); max-width: none;
  /* Журнальная выключка по обоим краям + переносы (главная и «Услуги»). */
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}

/* ---------- Главная: доводка блока «обо мне» ---------- */
/* Без инициалов; hero не тянется по высоте — фото перестаёт быть вытянутым;
   текст мельче для комфортного чтения. */
.ef-home-mag .mag-hero__num { display: none; }
.ef-home-mag .ef-u-hero.mag-hero { min-height: 0; }
.ef-home-mag .mag-hero__panel { justify-content: flex-start; }
.ef-home-mag .mag-hero__panel .ef-u-hero__text p {
  font-size: clamp(.9rem, 1vw, .98rem); line-height: 1.6;
}

.mag .mag-hero__photo { margin: 0; overflow: hidden; }
.mag .mag-hero__photo .field,
.mag .mag-hero__photo .field__item { height: 100%; }
.mag .mag-hero__photo img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto;
  border-radius: 0; display: block;
}

@media (max-width: 860px) {
  .mag .ef-u-hero.mag-hero { grid-template-columns: 1fr; min-height: 0; }
  .mag .mag-hero__photo { order: -1; height: clamp(320px, 70vw, 460px); }
  .mag .mag-hero__panel { padding-left: clamp(24px, 6vw, 40px); }
  .mag .mag-hero__num { left: clamp(24px, 6vw, 40px); position: static; margin-bottom: 16px; }
}

/* ================= Контакты: фото + белая панель с формой ================= */
.mag .mag-contact {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  margin-block: clamp(24px, 3vw, 44px);
  min-height: min(70vh, 640px);
  overflow: hidden;
}
.mag .mag-contact__photo { margin: 0; overflow: hidden; }
.mag .mag-contact__photo .field,
.mag .mag-contact__photo .field__item { height: 100%; }
.mag .mag-contact__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag .mag-contact__panel {
  position: relative;
  background: #fff;
  padding: clamp(28px, 4vw, 60px) clamp(24px, 3.4vw, 52px);
  display: flex; flex-direction: column; justify-content: center;
}
.mag .mag-contact__title {
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.0; letter-spacing: -.04em;
  margin: 6px 0 clamp(22px, 3vw, 34px); color: var(--ink);
}

/* ================= Мои каналы по центру ================= */
.mag .mag-channels {
  position: relative; text-align: center;
  border-top: 1px solid var(--line);
  padding-block: clamp(52px, 8vw, 104px);
}
.mag .mag-channels .ef-u-eyebrow { justify-content: center; }
.mag .mag-channels__title {
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.0; letter-spacing: -.04em;
  margin: 4px 0 clamp(28px, 3.6vw, 48px); color: var(--ink);
}
.mag .mag-channels__row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(12px, 1.6vw, 18px);
}
.mag .mag-channels__item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: clamp(150px, 22vw, 190px);
  padding: clamp(22px, 3vw, 30px) 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink); text-decoration: none;
  transition: transform .25s cubic-bezier(.32,.72,0,1), border-color .25s, box-shadow .25s;
}
.mag .mag-channels__item:hover {
  transform: translateY(-3px); border-color: rgba(23,21,15,.3);
  box-shadow: 0 16px 40px rgba(23,21,15,.06);
}
.mag .mag-channels__icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23,21,15,.045); font-weight: 700;
}
.mag .mag-channels__icon svg,
.mag .mag-channels__icon img { width: 24px; height: 24px; object-fit: contain; filter: grayscale(1) contrast(1.1); }
.mag .mag-channels__name { font-size: 1rem; font-weight: 550; letter-spacing: -.01em; }

@media (max-width: 860px) {
  /* Фото — во всю ширину экрана: гасим боковые отступы рабочей области. */
  .mag .mag-contact {
    grid-template-columns: 1fr; min-height: 0;
    margin-inline: calc(-1 * clamp(20px, 5vw, 56px));
    margin-top: 0;
  }
  /* Фото начинается сразу под шапкой — без молочного пространства сверху. */
  .mag.ef-contacts-mag .ef-uslugi-body { padding-top: 0; }
  .mag .mag-contact__photo { aspect-ratio: 4 / 5; height: auto; }
  /* Панель формы возвращаем внутренний отступ, чтобы поля не липли к краям. */
  .mag .mag-contact__panel { padding-inline: clamp(20px, 5vw, 56px); }
}

/* ---------- Крупный заголовок раздела (как «Оставьте заявку») ---------- */
.mag .mag-page-title {
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(3rem, 11vw, 8.5rem); line-height: .9; letter-spacing: -.05em;
  margin: clamp(28px, 4vw, 56px) 0 clamp(4px, 1vw, 14px); color: var(--ink);
}

/* ---------- Услуги: надзаголовок «— Услуги» над текстом плашки ---------- */
.mag .mag-hero__panel .ef-u-eyebrow { display: block; margin-bottom: 14px; }

/* ================= Контакты: доводка ================= */
/* Фото фиксированной пропорции 4:5 (1200×1500). Панель — той же высоты. */
.mag .mag-contact {
  min-height: 0; align-items: stretch; grid-template-rows: auto;
}
.mag .mag-contact__photo { aspect-ratio: 4 / 5; min-height: 0; }
.mag .mag-contact__panel { min-height: 0; height: 100%; overflow: auto; }

/* Форма компактнее по вертикали. */
.mag .mag-contact__title { margin: 4px 0 clamp(14px, 2vw, 22px); }
.mag .mag-contact__form .js-form-item { margin-bottom: 14px; }
.mag .mag-contact__form label { margin-bottom: 4px; }
.mag .mag-contact__form input[type="text"],
.mag .mag-contact__form input[type="email"],
.mag .mag-contact__form input[type="tel"],
.mag .mag-contact__form select,
.mag .mag-contact__form textarea { padding: 7px 0; }
.mag .mag-contact__form textarea { min-height: 60px; }
.mag .mag-contact__form input[type="submit"],
.mag .mag-contact__form button[type="submit"] { padding: 13px 40px; }

/* Каналы: минималистичные чёрные иконки без подложек, увеличиваются на наведении. */
.mag .mag-channels__row { gap: clamp(30px, 5vw, 70px); }
.mag .mag-channels__item {
  background: none; border: 0; border-radius: 0; padding: 6px; width: auto; gap: 12px;
  transition: transform .25s cubic-bezier(.32,.72,0,1);
}
.mag .mag-channels__item:hover { transform: none; box-shadow: none; }
.mag .mag-channels__icon {
  background: none; border-radius: 0; width: auto; height: auto;
  color: var(--ink); transition: transform .25s cubic-bezier(.32,.72,0,1), color .25s;
}
.mag .mag-channels__icon svg,
.mag .mag-channels__icon svg path { filter: none; color: var(--ink); fill: currentColor; width: auto; height: auto; }
.mag .mag-channels__icon svg { width: 36px; height: 36px; }
.mag .mag-channels__item:hover .mag-channels__icon { transform: scale(1.22); color: #000; }
.mag .mag-channels__name { transition: color .25s; }
.mag .mag-channels__item:hover .mag-channels__name { color: #000; }

/* ---------- Контакты: раскладка формы + крупный e-mail под кнопкой ---------- */
/* Имя+Email в один ряд; «Тема обращения», «Телефон» и «Сообщение» — каждое своей строкой. */
.mag.ef-contacts-mag .mag-contact__form form {
  align-items: start; row-gap: clamp(20px, 2.6vw, 34px);
}
.mag.ef-contacts-mag .mag-contact__form form > input[type="hidden"] { display: none; }
/* Вертикальные интервалы задаём row-gap'ом — собственные отступы полей гасим. */
.mag.ef-contacts-mag .mag-contact__form .js-form-item,
.mag.ef-contacts-mag .mag-contact__form .js-form-wrapper { margin-bottom: 0; }
.mag.ef-contacts-mag .mag-contact__form .form-item-name         { grid-column: 1; grid-row: 1; }
.mag.ef-contacts-mag .mag-contact__form .form-item-mail         { grid-column: 2; grid-row: 1; }
.mag.ef-contacts-mag .mag-contact__form .field--name-field-tema  { grid-column: 1 / -1; grid-row: 2; }
.mag.ef-contacts-mag .mag-contact__form .field--name-field-phone { grid-column: 1 / -1; grid-row: 3; }
.mag.ef-contacts-mag .mag-contact__form .field--name-message     { grid-column: 1 / -1; grid-row: 4; }
.mag.ef-contacts-mag .mag-contact__form .field--name-message textarea {
  min-height: 130px; height: 130px; resize: vertical;
}
.mag.ef-contacts-mag .mag-contact__form .form-item-copy,
.mag.ef-contacts-mag .mag-contact__form .js-form-type-checkbox,
.mag.ef-contacts-mag .mag-contact__form .form-actions { grid-column: 1 / -1; }

/* Названия полей — жирные, с чуть большим отступом до поля. */
.mag .mag-contact__form label { font-weight: 700; margin-bottom: 9px; }

/* Чекбокс «Отправить копию письма себе» — галка и подпись в одну строку. */
.mag .mag-contact__form .form-item-copy,
.mag .mag-contact__form .js-form-type-checkbox {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
}
.mag .mag-contact__form .form-item-copy input,
.mag .mag-contact__form .js-form-type-checkbox input { width: auto; margin: 0; flex: 0 0 auto; }
.mag .mag-contact__form .form-item-copy label,
.mag .mag-contact__form .js-form-type-checkbox label { display: inline; margin: 0; order: 2; }

/* Крупный e-mail под кнопкой «Отправить сообщение» (как в «Услугах»). */
.mag .mag-contact__email {
  display: inline-block; margin-top: clamp(24px, 3.5vw, 44px);
  color: var(--ink); text-decoration: none;
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.95rem); line-height: 1.05; letter-spacing: -.03em;
  transition: opacity .2s; word-break: normal; overflow-wrap: normal;
}
.mag .mag-contact__email:hover { opacity: .55; }

@media (max-width: 720px) {
  .mag.ef-contacts-mag .mag-contact__form form { grid-template-columns: 1fr; }
  .mag.ef-contacts-mag .mag-contact__form .form-item-name,
  .mag.ef-contacts-mag .mag-contact__form .form-item-mail,
  .mag.ef-contacts-mag .mag-contact__form .field--name-field-tema,
  .mag.ef-contacts-mag .mag-contact__form .field--name-field-phone,
  .mag.ef-contacts-mag .mag-contact__form .field--name-message { grid-column: 1; grid-row: auto; }
}
