/*
Theme Name: Enigma Tattoo
Theme URI: https://enigmatattoo.pl/
Author: Enigma
Description: Кастомная тема для enigmatattoo.pl. Лендинги направлений на ACF/SCF (free), мультиязычность на Polylang (free), схема через Rank Math. Импорт контента из JSON через WP-CLI.
Version: 1.26.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: enigma
*/

/* ==================================================================
   ТОКЕНЫ — сняты с текущего сайта
   ================================================================== */

:root {
  --black:  #000000;          /* шапка */
  --ink:    #141414;          /* фон первого экрана */
  --paper:  #efefef;          /* фон галереи */
  --white:  #ffffff;
  --accent: #ff8562;          /* «Zapisz się na sesję» */
  --muted:  rgba(255, 255, 255, 0.72);
  --hair:   rgba(255, 255, 255, 0.45);
  --soft-ink: #171717;       /* текст на светлом фоне */

  --font: "Ubuntu", Arial, sans-serif;
  --font-display: var(--font);

  --hdr-h:     88px;
  --pad:       clamp(1.25rem, 2.6vw, 3.125rem);
  --tile-gap:  24px;
}

/* Шрифт лежит в теме — assets/fonts/. Ни одного внешнего запроса. */
@font-face {
	font-family: "Ubuntu";
	src: url("assets/fonts/Ubuntu-Light-latin-ext.woff2?v=1.19.0") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Ubuntu";
	src: url("assets/fonts/Ubuntu-Light-latin.woff2?v=1.19.0") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Regular.woff2?v=1.19.0") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Medium.woff2?v=1.19.0") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Bold.woff2?v=1.19.0") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Знаки препинания для 400/500/700: в файлах выше нет длинного тире «—».
   Правила объявлены позже — при пересечении диапазонов браузер берёт их первыми. */
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Regular-latin.woff2?v=1.25.0") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Medium-latin.woff2?v=1.25.0") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Bold-latin.woff2?v=1.25.0") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2000-206F, U+20AC, U+2122, U+2212;
}

/* Кириллица для UA/RU (включая ґ, є, і, ї и №). Из-за unicode-range файлы грузятся
   только на страницах с кириллицей — PL и EN их не скачивают. */
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Light-cyrillic.woff2?v=1.25.0") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Regular-cyrillic.woff2?v=1.25.0") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Medium-cyrillic.woff2?v=1.25.0") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Bold-cyrillic.woff2?v=1.25.0") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ==================================================================
   БАЗА
   ================================================================== */

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

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

/* Страховка от горизонтальной прокрутки. Задаём и на html, и на body:
   если указать только на html, браузер отдаёт прокрутку body
   и правило не срабатывает. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Почта и длинные ссылки не должны распирать блок на узком экране.
     break-word рвёт слово только когда оно иначе не влезает. */
  overflow-wrap: break-word;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; text-wrap: balance; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Подпись только для скринридеров: в макете её нет, но поле без метки — нет. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Shared header styles: assets/css/header.css. */

/* ==================================================================
   ПЕРВЫЙ ЭКРАН
   ================================================================== */

.hero {
  background: var(--ink);
  padding: 90px 20px 30px;
}

.hero-inner {
  max-width: 1160px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  padding: 8px 0 3px;
  font-family: var(--font);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: 0;
  white-space: normal;
  animation: enigma-hero-down 0.65s ease both;
}
.hero-title-brand { font-family: var(--font-display); font-weight: 700; }
.hero-title-amp {
  font-family: var(--font);
  font-size: 46px;
  font-weight: 600;
}

.hero-text {
  margin-top: 41px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.545;
  animation: enigma-hero-up 0.65s 0.3s ease both;
}
.hero-text p { margin: 0; }
.hero-text a {
  color: var(--accent);
  text-decoration: none;
}
.hero-text a:hover { text-decoration: underline; }

@keyframes enigma-hero-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes enigma-hero-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================================================================
   ГАЛЕРЕЯ РАБОТ
   ================================================================== */

.works { background: var(--paper); padding: var(--tile-gap); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tile-gap);
}

.work {
  display: block;
  overflow: hidden;
  color: inherit;
  cursor: zoom-in;
}
.work img {
  display: block;
  width: 100%;
  aspect-ratio: 107 / 100;   /* 445 × 415 с текущего сайта */
  object-fit: cover;
  transition: transform 0.25s ease;
}
.work:hover img { transform: scale(1.015); }
.work:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

body.enigma-lightbox-open { overflow: hidden; }

.enigma-lightbox[hidden] { display: none; }
.enigma-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: #fff;
  color: #111;
}

.enigma-lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 27px 82px;
  overscroll-behavior: contain;
}

.enigma-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.enigma-lightbox-image.is-zoomed {
  max-width: none;
  max-height: none;
  margin: 0 auto;
  cursor: zoom-out;
}

.enigma-lightbox-stage.is-zoomed {
  display: block;
  text-align: center;
}

.enigma-lightbox-control {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.enigma-lightbox-control:hover { background: #f4f4f4; }
.enigma-lightbox-control:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.enigma-lightbox-control svg { width: 28px; height: 28px; }
.enigma-lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.enigma-lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.enigma-lightbox-close { top: 22px; right: 18px; }
.enigma-lightbox-zoom { top: 22px; right: 82px; }

/* ==================================================================
   МОБИЛЬНЫЕ
   ================================================================== */

@media (max-width: 980px) {
  .hero {
    padding: 40px 20px 30px;
  }
  .hero-title {
    font-size: 30px;
    line-height: 1.23;
  }
  /* Амперсанд крупнее заголовка в той же пропорции, что на десктопе. */
  .hero-title-amp { font-size: 33px; }
  .hero-text {
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.55;
  }

  :root { --tile-gap: 12px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .enigma-lightbox-stage { padding: 76px 12px 20px; }
  .enigma-lightbox-control { width: 46px; height: 46px; }
  .enigma-lightbox-prev { left: 8px; }
  .enigma-lightbox-next { right: 8px; }
  .enigma-lightbox-close { top: 14px; right: 12px; }
  .enigma-lightbox-zoom { top: 14px; right: 66px; }
}

/* Узкие телефоны: заголовок и текст первого экрана ещё компактнее. */
@media (max-width: 480px) {
  .hero { padding: 32px 18px 26px; }
  .hero-title { font-size: 26px; }
  .hero-title-amp { font-size: 28px; }
  .hero-text {
    margin-top: 22px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================================================================
   ФОРМА ЗАПИСИ
   ================================================================== */

.enigma-form {
  width: min(100%, 560px);
  margin-inline: auto;
  text-align: left;
}

.ef-row {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.ef-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ef-grid > .ef-row { margin-bottom: 0; }

/* ---------- поле с плавающей подписью ---------- */

.ef-control {
  position: relative;
  display: block;
}

.ef-control input,
.ef-control textarea {
  display: block;
  width: 100%;
  height: 60px;
  padding: 22px 18px 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ef-control textarea {
  height: auto;
  min-height: 108px;
  padding-top: 26px;
  resize: vertical;
}

.ef-control input:hover,
.ef-control textarea:hover { background: #ffffff; }

.ef-control input:focus,
.ef-control textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 133, 98, 0.22);
}

/* Подпись живёт внутри поля и уезжает наверх, когда там что-то есть. */
.ef-control > label {
  position: absolute;
  top: 19px;
  left: 19px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.16s ease, color 0.16s ease;
}

.ef-control input:focus + label,
.ef-control textarea:focus + label,
.ef-control input:not(:placeholder-shown) + label,
.ef-control textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(0.75);
  color: rgba(0, 0, 0, 0.55);
}

/* Место под ошибку держим всегда: иначе при появлении подписи форма
   становится выше и вся секция прыгает — она отцентрована по экрану. */
.ef-row[data-ef-field] { margin-bottom: 0; }

.ef-error {
  margin: 3px 0 0;
  min-height: 17px;
  color: #ff9c8c;
  font-size: 13px;
  line-height: 17px;
}

.has-error .ef-control input,
.has-error .ef-control textarea,
.has-error .ef-phone {
  border-color: #ff6f57;
  box-shadow: 0 0 0 3px rgba(255, 111, 87, 0.2);
}

/* ---------- телефон с выбором страны ---------- */

.ef-phone {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 60px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.ef-phone:focus-within {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 133, 98, 0.22);
}

.ef-phone-toggle {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  align-items: center;
  height: 100%;
  padding: 0 12px 0 16px;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px 0 0 10px;
  background: none;
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  cursor: pointer;
}
.ef-phone-toggle:hover { background: rgba(0, 0, 0, 0.04); }
.ef-phone-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.ef-phone-flag { display: flex; }
.ef-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ef-phone-dial { font-variant-numeric: tabular-nums; }

.ef-phone-caret {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid rgba(0, 0, 0, 0.45);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 0.18s ease;
}
.ef-phone-toggle[aria-expanded="true"] .ef-phone-caret { transform: rotate(180deg); }

/* Инпут вместе с подписью живёт в своей системе координат — подпись всегда
   стоит по тексту и не зависит от ширины переключателя стран. */
.ef-phone-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.ef-phone input[type="tel"] {
  width: 100%;
  height: 100%;
  padding: 22px 18px 6px 14px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: none;
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
}
.ef-phone input[type="tel"]:focus { outline: none; box-shadow: none; }

.ef-phone-field > .ef-phone-label {
  position: absolute;
  top: 19px;
  left: 14px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.16s ease;
}

.ef-phone input[type="tel"]:focus + .ef-phone-label,
.ef-phone input[type="tel"]:not(:placeholder-shown) + .ef-phone-label {
  transform: translateY(-10px) scale(0.75);
}

.ef-phone-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: min(360px, 100%);
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.ef-phone-menu[hidden] { display: none; }

.ef-phone-search { padding: 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.ef-phone-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  color: var(--black);
  font-family: var(--font);
  font-size: 14px;
}
.ef-phone-search input:focus { outline: none; border-color: var(--accent); }

.ef-phone-list {
  max-height: 260px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
}

.ef-phone-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--black);
  font-size: 14px;
  cursor: pointer;
}
.ef-phone-option:hover,
.ef-phone-option:focus-visible { background: rgba(0, 0, 0, 0.06); outline: none; }
.ef-phone-option.is-current { background: rgba(255, 133, 98, 0.16); }
.ef-phone-option-flag { display: flex; }
.ef-phone-option-flag .ef-flag { width: 22px; height: 22px; }
.ef-phone-option-name { flex: 1; }
.ef-phone-option-dial { color: rgba(0, 0, 0, 0.5); font-variant-numeric: tabular-nums; }

/* ---------- загрузка фото ---------- */

.ef-drop {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.ef-drop:hover,
.ef-drop.is-over {
  border-color: var(--accent);
  background: rgba(255, 133, 98, 0.1);
}

/* Настоящий input прячем, но доступным для клавиатуры оставляем. */
.ef-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ef-file-input:focus-visible + .ef-drop-body { outline: 2px solid var(--accent); outline-offset: 4px; }

.ef-drop-body {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}

.ef-drop-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
}
.ef-drop-icon svg { width: 22px; height: 22px; }

.ef-drop-text { display: block; }
.ef-drop-text strong { display: block; font-size: 15px; font-weight: 500; }

.ef-drop-hint {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ef-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ef-drop.has-files .ef-files { margin-top: 16px; }

.ef-file {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.ef-file-thumb {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 5px;
}
.ef-file-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ef-file-name {
  overflow: hidden;
  flex: 1;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ef-file-del {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ef-file-del:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ---------- способ связи ---------- */

.ef-channels { margin-top: 4px; }
.ef-channels legend { padding: 0; margin-bottom: 10px; font-size: 15px; color: var(--muted); }

.ef-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ef-check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ef-check:hover { border-color: rgba(255, 255, 255, 0.4); }
.ef-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.ef-check-box {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ef-check-box::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.ef-check input:checked + .ef-check-box {
  border-color: var(--accent);
  background: var(--accent);
}
.ef-check input:checked + .ef-check-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.ef-check input:checked ~ .ef-check-text { color: var(--white); }
.ef-check input:focus-visible + .ef-check-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.ef-check:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 133, 98, 0.12);
}

/* ---------- отправка ---------- */

.btn.ef-submit {
  position: relative;
  width: 100%;
  margin-top: 18px;
  border-radius: 10px;
  padding-inline: 20px;
}

.ef-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: enigma-spin 0.7s linear infinite;
}

.is-sending .ef-submit-text { opacity: 0; }
.is-sending .ef-spinner { opacity: 1; }

@keyframes enigma-spin { to { transform: rotate(360deg); } }

.enigma-form button[disabled] { cursor: wait; }

.ef-consent {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.ef-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ef-status:empty { display: none; }
.ef-status { margin-top: 14px; font-size: 15px; text-align: center; }
.ef-status.is-ok    { color: var(--white); }
.ef-status.is-error { color: #ff9c8c; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0.75rem 60px;
  border: 0;
  border-radius: 30px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.btn:hover { opacity: 0.88; }

@media (max-width: 1200px) { .btn { padding-inline: 45px; } }
@media (max-width: 960px)  { .btn { padding-inline: 30px; } }

@media (max-width: 560px) {
  .ef-grid { grid-template-columns: 1fr; gap: 0; }
  .ef-files { grid-template-columns: 1fr; }

  .ef-drop-body { gap: 12px; }
  .ef-drop-icon { width: 38px; height: 38px; }
  .ef-drop-icon svg { width: 19px; height: 19px; }
  .ef-drop-hint { font-size: 12px; }

  /* Флаг и код съедают ширину — на узком экране прячем название страны. */
  .ef-phone-toggle { padding: 0 8px 0 12px; font-size: 15px; }
  .ef-phone input[type="tel"] { padding-left: 12px; }
  .ef-phone-menu { width: 100%; }
  .ef-phone-list { max-height: 210px; }
}

@media (max-width: 380px) {
  .ef-channels-grid { grid-template-columns: 1fr; }
  .ef-phone-toggle { padding: 0 6px 0 10px; }
}

/* ==================================================================
   СТРАНИЦА БЛАГОДАРНОСТИ
   ================================================================== */

.thanks {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 70px 20px 90px;
  background: var(--ink);
  text-align: center;
}

/* На мобильном шапка встаёт в поток и ничего не перекрывает. */
@media (min-width: 981px) {
  .thanks { padding-top: calc(var(--hdr-h) + 70px); }
}

.thanks-inner { width: min(100%, 720px); }

.thanks-mark {
  display: block;
  width: 96px;
  margin: 0 auto 28px;
  color: var(--accent);
}
.thanks-mark svg { width: 100%; height: auto; }

/* Круг и галочка рисуются: длина линии равна длине штриха,
   смещение уезжает в ноль — получается эффект «пишется от руки». */
.thanks-mark-ring, .thanks-mark-tick { stroke-dasharray: none; }


@keyframes enigma-draw { to { stroke-dashoffset: 0; } }

.thanks-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

.thanks-text {
  max-width: 520px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.thanks-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  text-align: left;
}

.thanks-contact {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.thanks-contact:hover {
  border-color: var(--accent);
  background: rgba(255, 133, 98, 0.1);
  transform: translateY(-2px);
}

.thanks-contact-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}
.thanks-contact-icon svg { width: 20px; height: 20px; fill: currentColor; }
.thanks-contact-icon .icon-phone,
.thanks-contact-icon .icon-mail,
.thanks-contact-icon .icon-map-pin { fill: none; }

.thanks-contact-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.thanks-contact strong { font-size: 15px; font-weight: 500; }

.thanks-hours {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.thanks-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.thanks-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.thanks-socials svg { width: 20px; height: 20px; fill: currentColor; }
.thanks-socials a:hover { background: var(--accent); color: var(--white); }

.thanks-back {
  display: inline-block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.thanks-back:hover { color: var(--white); border-color: var(--white); }

/* Анимации включаем отдельным блоком: если они по какой-то причине не
   стартуют, содержимое всё равно видно, а не спрятано fill-mode: both. */
@media (prefers-reduced-motion: no-preference) {
  /* Круг и галочка рисуются: длина линии равна длине штриха,
     смещение уезжает в ноль — получается эффект «пишется от руки». */
  .thanks-mark-ring {
    stroke-dasharray: 227;
    stroke-dashoffset: 227;
    animation: enigma-draw 0.75s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  }
  .thanks-mark-tick {
    stroke-dasharray: 52;
    stroke-dashoffset: 52;
    animation: enigma-draw 0.45s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards;
  }

  .thanks-title    { animation: enigma-thanks-up 0.6s 0.30s ease both; }
  .thanks-text     { animation: enigma-thanks-up 0.6s 0.45s ease both; }
  .thanks-contacts { animation: enigma-thanks-up 0.6s 0.60s ease both; }
  .thanks-hours    { animation: enigma-thanks-up 0.6s 0.70s ease both; }
  .thanks-socials  { animation: enigma-thanks-up 0.6s 0.80s ease both; }
  .thanks-back     { animation: enigma-thanks-up 0.6s 0.90s ease both; }
}

@keyframes enigma-thanks-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==================================================================
   СТРАНИЦЫ НАПРАВЛЕНИЙ (черновые, доводим после главной)
   ================================================================== */

.wrap    { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.wrap-nr { width: min(100% - 2.5rem, 720px); margin-inline: auto; }

.section { padding-block: clamp(2.5rem, 6vw, 6rem); }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; }

.breadcrumbs { font-size: 0.8125rem; color: var(--muted); padding-block: 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 0.5rem; opacity: 0.45; }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { text-decoration: none; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--tile-gap); }
.gallery-grid img { aspect-ratio: 107 / 100; object-fit: cover; width: 100%; }

.facts { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fact-label { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.35rem; }
.fact-value { font-size: 2rem; font-weight: 700; line-height: 1; }

.rank-math-faq-item { padding-block: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.rank-math-question { margin: 0 0 0.5rem; font-size: 1.25rem; }
.rank-math-answer p { margin: 0; color: var(--muted); }

.masters { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.master a { text-decoration: none; display: block; }
.master img { aspect-ratio: 1; object-fit: cover; margin-bottom: 0.75rem; }

.cta { background: var(--black); }

/* ==================================================================
   O NAS
   ================================================================== */

/* ==================================================================
   ПОЛОСА С ПРИЗЫВОМ
   ================================================================== */

/* Размеры с текущего сайта: подложка #f3f3f3, паддинги 30/30,
   текст 22/1.55 Unbounded, кнопка 60 высотой с радиусом 30. */

.cta-strip {
  padding-block: 30px;
  background: #f3f3f3;
  color: var(--soft-ink);
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: center;
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.cta-strip-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
}

.btn.cta-strip-btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .cta-strip { padding-block: 26px; }
  .cta-strip-text { font-size: 18px; }
  .btn.cta-strip-btn { width: 100%; }
}

/* ==================================================================
   ПЛАВАЮЩАЯ КНОПКА ЗАПИСИ
   ================================================================== */

/* Кнопка есть сразу при входе на сайт и всегда у нижнего края.
   Прячется только в двух случаях: рядом видна «настоящая» кнопка записи
   или открыто мобильное меню. Переключает sticky-cta.js классом is-visible. */

.sticky-cta {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s;
  /* Обёртка растянута по ширине, поэтому клики она пропускает насквозь —
     ловит их только сама пилюля. Иначе полоса у нижнего края съедала бы
     нажатия по контенту под ней. */
  pointer-events: none;
}

.sticky-cta.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.sticky-cta.is-visible .sticky-cta-btn { pointer-events: auto; }

/* Открыто мобильное меню — кнопка только мешает. */
body.hdr-locked .sticky-cta {
  visibility: hidden;
  opacity: 0;
}

/* Компактная пилюля без подложки: от страницы её отрывает не плашка,
   а тень в два слоя плюс тонкий светлый кант. За счёт этого она одинаково
   читается и на чёрном первом экране, и на светлой галерее, и ничего
   не перекрывает прямоугольником. */
.btn.sticky-cta-btn {
  gap: 10px;
  min-height: 54px;
  padding-inline: 32px;
  border-radius: 999px;
  font-size: 15px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 14px 34px rgba(0, 0, 0, 0.32);
  transition:
    background-color 0.2s ease-in-out,
    opacity 0.2s ease-in-out,
    transform 0.12s ease-out;
}

.btn.sticky-cta-btn:active { transform: scale(0.97); }

.sticky-cta-btn .icon {
  flex: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
}

/* Телефон: по центру и ближе к краю — там до неё дотягивается большой
   палец. Ширина по содержимому, ограничена полями, чтобы длинный текст
   не превратил пилюлю обратно в полосу во всю ширину. */
@media (max-width: 640px) {
  .sticky-cta {
    right: 16px;
    left: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .btn.sticky-cta-btn {
    max-width: 100%;
    min-height: 52px;
    padding-inline: 26px;
    font-size: 15px;
  }

  .sticky-cta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transform: none; }
  .btn.sticky-cta-btn:active { transform: none; }
}

/* Размеры с текущего сайта: фон чёрный, колонка 760 по центру,
   заголовок 42 Unbounded, текст 18/1.5 Unbounded. */

.about {
  padding-block: 90px;
  background: var(--black);
}

.about-inner {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}

.about-title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  color: var(--white);
}

.about-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--white);
}
.about-text p { margin: 0 0 1.1em; }
.about-text p:last-child { margin-bottom: 0; }

@media (max-width: 1200px) {
  .about-title { font-size: 38px; }
}

@media (max-width: 640px) {
  .about { padding-block: 60px; }
  .about-title { font-size: 30px; margin-bottom: 24px; }
  .about-text { font-size: 16px; }
}

/* ==================================================================
   ARTYŚCI
   ================================================================== */

.section-subtitle {
  max-width: 42rem;
  margin: 0.75rem auto 2.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Размеры сняты с блока текущего сайта: контейнер 1200,
   колонка 260 + поля 20/20, карточка 220, круглое фото 200. */

.artists {
  padding: 150px 0 30px;
  background: var(--paper);
  color: var(--black);
  text-align: center;
}

.artists-head {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.artists-title {
  margin: 0 0 40px;
  font-family: var(--font);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.23;
  color: var(--black);
}

.artists-descr {
  max-width: 560px;
  margin: 0 auto 105px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--soft-ink);
}

/* Лента мастеров: одна строка с прокруткой — как карусель отзывов Google.
   Сам скролл родной (scroll-snap), поэтому свайп на телефоне работает
   без скриптов; carousel.js добавляет только стрелки. */

.artists-slider {
  position: relative;
  width: min(100%, 1286px);
  margin-inline: auto;
  padding-inline: 63px;
}

.artists-list {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.artists-list::-webkit-scrollbar { width: 0; height: 0; }
.artists-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Мастеров мало, листать нечего — ставим карточки по центру. */
.artists-slider:not(.is-scrollable) .artists-list { justify-content: center; }

.artist {
  flex: 0 0 25%;
  max-width: 25%;
  margin: 0;
  padding-inline: 20px;
  scroll-snap-align: start;
}

.artists-arrow {
  position: absolute;
  top: 100px;                 /* середина круглого фото */
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.artists-arrow:not([disabled]):hover { color: var(--accent); }
.artists-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.artists-arrow[disabled] { opacity: 0.25; cursor: default; }
.artists-arrow svg { width: 34px; height: 34px; stroke-width: 1.25; }
.artists-arrow-prev { left: 0; }
.artists-arrow-next { right: 0; }

/* Пока скрипт не сказал, что лента длиннее экрана, стрелок нет. */
.artists-slider:not(.is-scrollable) .artists-arrow { display: none; }

.artist-card {
  max-width: 220px;
  margin-inline: auto;
}

.artist-photo {
  width: 200px;
  max-width: 100%;
  margin: 0 auto 20px;
}
.artist-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.artist-body { padding-inline: 20px; }

.artist-name {
  margin: 0 0 18px;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
}

.artist-bio {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--soft-ink);
}

@media (max-width: 1200px) {
  .artists-head { max-width: 960px; }
  .artists-slider { width: min(100%, 1086px); }

  .artist {
    flex-basis: 33.333%;
    max-width: 33.333%;
    padding-inline: 10px;
  }

  .artists-descr { font-size: 22px; }
  .artist-name   { font-size: 20px; }
  .artist-bio    { font-size: 14px; }
}

@media (max-width: 960px) {
  .artists-head { max-width: 640px; }

  .artists-title { margin-bottom: 20px; }
  .artists-descr { margin-bottom: 45px; }

  .artist {
    flex-basis: 50%;
    max-width: 50%;
  }

  .artist-body { padding-inline: 10px; }
}

/* На узком экране ленту тянут пальцем, но стрелки нужны и здесь: не все
   догадываются свайпнуть. Чтобы они читались поверх соседней карточки,
   делаем их белыми кружками. Край следующей карточки оставляем видимым. */
@media (max-width: 900px) {
  .artists-slider { padding-inline: 12px; }

  .artists-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }
  .artists-arrow svg { width: 22px; height: 22px; stroke-width: 1.6; }
  .artists-arrow[disabled] { opacity: 0.35; }
  .artists-arrow-prev { left: 2px; }
  .artists-arrow-next { right: 2px; }
}

/* Один мастер на экран, карточка ровно по центру между стрелками. */
@media (max-width: 640px) {
  .artist {
    flex-basis: 100%;
    max-width: 100%;
  }

  .artists-descr { font-size: 20px; line-height: 1.4; }
  .artist-name   { font-size: 18px; }
  .artist-bio    { font-size: 12px; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  .artists-list { scroll-behavior: auto; }
}

/* Заготовки страниц направлений — отдельная сетка мастеров. */
.masters-section { text-align: center; }
.masters-section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

.master h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.master p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* ==================================================================
   STUDIO — карусель
   ================================================================== */

/* Геометрия с текущего сайта: слайд 1160×670, стрелки на 40 px
   от края слайда, точки под ним. */

.studio {
  padding-block: 150px;
  background: var(--ink);
}

.studio-slider {
  position: relative;
  width: min(100%, 1286px);
  margin-inline: auto;
  padding-inline: 63px;
}

.studio-viewport { overflow: hidden; }

.studio-track {
  display: flex;
  will-change: transform;
}

.studio-slide {
  flex: 0 0 100%;
  max-width: 100%;
}
.studio-slide img {
  width: 100%;
  aspect-ratio: 1160 / 670;
  object-fit: cover;
}

.studio-arrow {
  position: absolute;
  top: calc(50% - 22px);      /* центр слайда: снизу точки */
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, opacity 0.2s ease;
}
.studio-arrow:hover { color: var(--accent); }
.studio-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.studio-arrow svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.25;
}
.studio-arrow-prev { left: 0; }
.studio-arrow-next { right: 0; }

.studio-dots {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.studio-dot {
  display: grid;
  place-items: center;
  padding: 10px 5px;
  border: 0;
  background: none;
  cursor: pointer;
}
.studio-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: #c7c7c7;
  opacity: 0.45;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.studio-dot:hover span { opacity: 0.75; }
.studio-dot.is-active span {
  background: var(--white);
  opacity: 1;
}
.studio-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  .studio { padding-block: 60px; }

  .studio-slider { padding-inline: 0; }

  .studio-arrow {
    color: var(--white);
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
  }
  .studio-arrow-prev { left: 6px; }
  .studio-arrow-next { right: 6px; }
  .studio-arrow svg { width: 28px; height: 28px; }
}

/* ==================================================================
   OPINIE — отзывы (шорткод плагина)
   ================================================================== */

.reviews {
  padding: 90px 0 30px;
  background: var(--white);
  color: var(--black);
}

.reviews-head {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}

.reviews-title {
  margin: 0 0 90px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  color: var(--black);
}
.reviews-head:has(.reviews-descr) .reviews-title { margin-bottom: 40px; }

.reviews-descr {
  max-width: 560px;
  margin: 0 auto 90px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--soft-ink);
}

.reviews-embed {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (max-width: 1200px) {
  .reviews-title { font-size: 38px; }
  .reviews-descr { font-size: 22px; }
}

@media (max-width: 960px) {
  .reviews { padding-top: 60px; }
  .reviews-title,
  .reviews-head:has(.reviews-descr) .reviews-title { margin-bottom: 45px; }
  .reviews-descr { margin-bottom: 45px; }
}

@media (max-width: 640px) {
  .reviews-title { font-size: 30px; }
  .reviews-descr { font-size: 20px; line-height: 1.4; }
}

/* ==================================================================
   CENA
   ================================================================== */

/* Размеры сняты с блока текущего сайта: контейнер 1200, две колонки
   560 + поля 20/20, строка «название — цена», линия 1 px с opacity .1. */

.pricing {
  padding-block: 60px;
  background: var(--paper);
  color: var(--black);
}

.pricing-head {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}

.pricing-title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  color: var(--black);
}

.pricing-descr {
  max-width: 560px;
  margin: 0 auto 105px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--soft-ink);
}

.pricing-cols {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.pricing-col {
  flex: 0 0 560px;
  max-width: 560px;
  margin-inline: 20px;
}

/* Заголовок колонки — есть на странице пирсинга: UCHO, TWARZ I CIAŁO. */
.pricing-col-head {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--black);
}

.pricing-item + .pricing-item { margin-top: 30px; }

.pricing-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 10px;
}

.pricing-name,
.pricing-price {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
}

.pricing-name {
  max-width: 90%;
  text-align: left;
  text-transform: uppercase;
}

.pricing-price {
  padding-left: 20px;
  text-align: right;
  white-space: nowrap;
}

.pricing-line {
  width: 100%;
  border-top: 1px solid #000;
  opacity: 0.1;
}

.pricing-note {
  margin: 0;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--soft-ink);
}

.pricing-bottom {
  margin-top: 105px;
  text-align: center;
}

@media (max-width: 1200px) {
  .pricing-head,
  .pricing-cols { max-width: 960px; }

  .pricing-col {
    flex-basis: 460px;
    max-width: 460px;
    margin-inline: 10px;
  }

  .pricing-title { font-size: 38px; }
  .pricing-descr { font-size: 22px; }
  .pricing-col-head { font-size: 22px; }
  .pricing-name,
  .pricing-price { font-size: 16px; }
  .pricing-note { font-size: 14px; }
}

@media (max-width: 960px) {
  .pricing-head,
  .pricing-cols { max-width: 640px; }

  .pricing-title { margin-bottom: 20px; }
  .pricing-descr { margin-bottom: 45px; }

  .pricing-col {
    flex: 0 0 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 20px;
  }
  .pricing-col:first-child { margin-bottom: 30px; }
  .pricing-col-head { margin-bottom: 20px; }

  .pricing-bottom { margin-top: 45px; }
}

@media (max-width: 640px) {
  .pricing-title { font-size: 30px; }
  .pricing-descr { font-size: 20px; line-height: 1.4; }
  .pricing-col-head { font-size: 20px; }
  .pricing-name,
  .pricing-price { font-size: 14px; }
  .pricing-note { font-size: 12px; line-height: 1.45; }

  /* «od 1600 zł (w zależności od artysty)» в одну строку не влезает. */
  .pricing-row { gap: 10px; }
  .pricing-name { max-width: none; }
  .pricing-price { white-space: normal; padding-left: 0; }
}

/* ==================================================================
   FORMULARZ (sekcja)
   ================================================================== */

/* Обложка во весь экран с фото студии — как на текущем сайте.
   Затемнение сильнее оригинального: там белый заголовок местами ложился
   на светлые окна и не читался. */

.booking {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding-block: 80px;
  background: var(--ink) center / cover no-repeat;
  text-align: center;
  isolation: isolate;
}
/* Фон приглушаем сильно: он тут только фактура, всё внимание форме. */
.booking::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.74) 72%),
    rgba(20, 20, 20, 0.32);
  backdrop-filter: blur(2px);
}

.booking-inner {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.booking-title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  color: var(--white);
}

.booking-text {
  max-width: 560px;
  margin: -20px auto 30px;
  color: var(--muted);
}

@media (max-width: 1200px) { .booking-title { font-size: 38px; } }
@media (max-width: 640px) {
  .booking { min-height: 0; padding-block: 60px; }
  .booking-title { font-size: 30px; margin-bottom: 30px; }
}

/* ==================================================================
   FAQ (аккордеон на <details>, без JS)
   ================================================================== */

/* Размеры с текущего сайта: заголовок 42, текст под ним 560,
   аккордеон 760 по центру, над каждым вопросом линия #ff6c47. */

.faq {
  padding: 30px 0 165px;
  background: var(--paper);
  color: var(--black);
}

.faq-head {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}

.faq-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  color: var(--black);
}

.faq-intro {
  max-width: 560px;
  margin: 15px auto 30px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--soft-ink);
}
.faq-intro a {
  color: var(--accent);
  text-decoration: none;
}
.faq-intro a:hover { text-decoration: underline; }

.faq-list {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}

.faq-item { border-top: 1px solid #ff6c47; }
.faq-item:last-child { border-bottom: 1px solid #ff6c47; }

.faq-question {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 27px 0;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.faq-question-text {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

/* Плюс из двух линий: в открытом состоянии остаётся минус. */
.faq-sign {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 2px;
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1px;
  background: var(--black);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-sign::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding-bottom: 30px;
  font-family: var(--font);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--soft-ink);
}
.faq-answer p { margin: 0 0 1em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ol,
.faq-answer ul { margin: 0.6em 0; padding-left: 1.4em; }
.faq-answer li { margin-bottom: 0.4em; }
.faq-answer a { color: var(--accent); }

@media (max-width: 1200px) {
  .faq-title { font-size: 38px; }
  .faq-intro { font-size: 22px; }
  .faq-question-text { font-size: 22px; }
  .faq-answer { font-size: 20px; }
}

@media (max-width: 640px) {
  .faq { padding-bottom: 60px; }
  .faq-title { font-size: 30px; }
  .faq-intro { font-size: 20px; line-height: 1.4; }
  .faq-question { padding: 20px 0; gap: 12px; }
  .faq-question-text { font-size: 18px; }
  .faq-sign { width: 28px; height: 28px; }
  .faq-answer { font-size: 16px; padding-bottom: 22px; }
}

/* ==================================================================
   ПОДВАЛ
   ================================================================== */

/* Shared footer on every page; content comes from the global footer/contact fields. */
.site-footer { padding: 60px 0 0; background: #0b0b0b; color: #ededed; border-top: 1px solid #2d2d2d; font-family: var(--font); text-align: left; scroll-margin-top: 88px; }
.footer-inner { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .7fr 1.35fr 1.05fr; gap: 48px; padding-bottom: 46px; }
.footer-grid > * { min-width: 0; }
.footer-logo { display: block; width: 176px; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-description { max-width: 230px; margin: 18px 0 0; color: #adadad; font: 400 15px/1.6 var(--font); }
.site-footer .footer-heading { margin: 0 0 22px; color: #a8a8a8; font: 500 12px/1.4 var(--font); letter-spacing: 1px; text-transform: uppercase; text-wrap: initial; }
.site-footer a { text-decoration: none; transition: color .18s, border-color .18s, background-color .18s; }
.site-footer a:hover { color: #ff8562; }
.site-footer .hdr-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer .hdr-menu a { display: block; padding: 0; color: #ededed; font: 400 15px/1.5 var(--font); white-space: normal; }
.site-footer .hdr-menu a:hover { color: #ff8562; }
.footer-phone { display: block; width: fit-content; color: #ff8562; font: 500 clamp(21px, 1.9vw, 26px)/1.25 var(--font); white-space: nowrap; }
.site-footer .footer-phone:hover { color: #ffc0ac; }
.footer-email { display: block; width: fit-content; max-width: 100%; margin-top: 16px; color: #c9c9c9; font: 400 15px/1.6 var(--font); overflow-wrap: anywhere; }
.footer-visit address { margin: 0; font: 400 15px/1.65 var(--font); }
.footer-address { color: #ededed; }
.footer-address span { display: block; color: #adadad; }
.footer-hours { margin: 14px 0 0; color: #c9c9c9; font: 400 14px/1.5 var(--font); }
.footer-directions { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 36px; color: #ededed; font: 500 14px/1.5 var(--font); }
.footer-directions svg { width: 17px; height: 17px; flex-shrink: 0; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.footer-socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #454545; border-radius: 4px; color: #dedede; }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-socials a:hover { border-color: #ff8562; background: #1c1c1c; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding: 22px 0; border-top: 1px solid #303030; color: #999; font: 400 12px/1.5 var(--font); }
.footer-bottom p { margin: 0; }
@media (min-width: 981px) and (max-width: 1199px) {
 .footer-inner { width: calc(100% - 48px); }
 .footer-grid { grid-template-columns: 1fr .6fr 1.25fr 1fr; gap: 28px; }
 .footer-logo { width: 152px; }
 .footer-phone { font-size: 22px; }
}
@media (max-width: 980px) {
 .site-footer { padding-top: 44px; }
 .footer-inner { width: calc(100% - 48px); }
 .footer-grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'brand contact' 'nav visit'; gap: 36px 48px; padding-bottom: 36px; }
 .footer-brand { grid-area: brand; }
 .footer-nav { grid-area: nav; }
 .footer-contact { grid-area: contact; }
 .footer-visit { grid-area: visit; }
 .footer-phone { font-size: 25px; }
 .site-footer .footer-heading { margin-bottom: 16px; }
 .site-footer .hdr-menu { gap: 0; }
 .site-footer .hdr-menu a { padding-block: 9px; min-height: 40px; }
 .footer-directions { min-height: 44px; }
}
@media (max-width: 599px) {
 .site-footer { padding-top: 36px; }
 .footer-grid { grid-template-areas: 'brand brand' 'contact contact' 'nav visit'; gap: 30px 24px; }
 .footer-brand { padding-bottom: 28px; border-bottom: 1px solid #303030; }
 .footer-logo { width: 160px; }
 .footer-description { max-width: 280px; margin-top: 14px; }
 .footer-socials { margin-top: 18px; }
 .footer-socials a { width: 44px; height: 44px; }
 .footer-contact { padding-bottom: 26px; border-bottom: 1px solid #303030; }
 .footer-phone { font-size: 26px; }
 .footer-email { margin-top: 10px; }
 .footer-visit address { font-size: 14px; }
 .footer-hours { font-size: 13px; }
 .footer-directions { gap: 8px; font-size: 13px; }
 .footer-bottom { padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
 .site-footer a { transition: none; }
}

@media (max-width: 900px) {
  .masters,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .masters,
  .pricing-grid { grid-template-columns: 1fr; }
}
