/* RSdecor — общий стиль. Концепция «Альбом»: тёмный шоколад, золото, беж.
   Все цвета и размеры — через токены в :root. Новые компоненты собирайте из них. */

/* ---------- Шрифты (локально, OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/manrope-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --bg: #211a19;            /* фон страницы (из старого сайта #251d1e) */
  --bg-band: #2a2220;       /* полосы-секции, подвал */
  --plate: #2b2321;         /* паспарту под фото */
  --ink: #ecdfc8;           /* заголовки, основной светлый (старый беж #e9d9c0) */
  --text: #d8cbb5;          /* наборный текст */
  --text-2: #b9ab97;        /* второстепенный текст */
  --muted: #a99a87;         /* подписи, служебное */
  --gold: #bf9a58;          /* акцент (старое золото #ab8442, осветлено для контраста) */
  --gold-hover: #c9a361;
  --line: rgba(236, 223, 200, 0.18);
  --line-soft: rgba(236, 223, 200, 0.12);
  --input-line: rgba(236, 223, 200, 0.35);
  --plate-line: rgba(191, 154, 88, 0.35);
  --plate-line-soft: rgba(191, 154, 88, 0.22);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1440px;
  --gutter: clamp(20px, 4.45vw, 64px);
  --section: clamp(96px, 11vw, 160px);  /* вертикальный ритм между секциями */
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 4px; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.band { background: var(--bg-band); }
.link-gold { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Типографика ---------- */
.display-1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 5.8vw, 88px); line-height: 0.98; letter-spacing: -0.01em; color: var(--ink); }
.h-section { font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 5vw, 72px); line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.h-block { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; color: var(--ink); }
.h-card { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.18; color: var(--ink); }
.lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 2vw, 27px); line-height: 1.48; color: var(--ink); }
.lead-xl { max-width: 26em; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.35; color: var(--ink); }
.text { font-size: 17px; line-height: 1.78; color: var(--text); }
.pull { margin: 24px 0; padding: 40px 0; border-top: 1px solid rgba(191, 154, 88, 0.4); border-bottom: 1px solid rgba(191, 154, 88, 0.4);
  font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.32; color: var(--ink); }
.statement { max-width: 22em; font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.22; color: var(--ink); }

/* ---------- Шапка ---------- */
.site-header { position: relative; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 28px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo__img { display: block; height: 52px; width: auto; }
.main-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 34px; list-style: none; margin: 0; padding: 0; font-size: 15px; letter-spacing: 0.01em; }
.main-nav__item { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.main-nav__link { text-decoration: none; padding-block: 6px; transition: color 0.16s ease; }
.main-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }
.main-nav__toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0;
  border: 0; background: none; color: var(--muted); cursor: pointer; transition: color 0.16s ease;
}
.main-nav__toggle svg { transition: transform 0.2s ease; }
.main-nav__toggle:hover,
.main-nav__item.is-open > .main-nav__toggle { color: var(--gold-hover); }
.main-nav__dropdown {
  position: absolute; top: 100%; left: -22px; z-index: 50; min-width: 248px; margin: 0; padding: 10px 0;
  list-style: none; background: var(--bg-band); border: 1px solid var(--plate-line); border-top: 1px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.main-nav__dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.main-nav__dropdown a {
  display: block; padding: 9px 22px; font-size: 14px; line-height: 1.45; color: var(--text);
  text-decoration: none; white-space: nowrap; transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav__dropdown a:hover,
.main-nav__dropdown a:focus-visible { color: var(--gold-hover); background: rgba(191, 154, 88, 0.08); }
.main-nav__dropdown a[aria-current="page"] { color: var(--gold); text-decoration: none; }
.main-nav__item.is-open > .main-nav__dropdown,
.main-nav__item:has(:focus-visible) > .main-nav__dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.main-nav__item.is-open > .main-nav__toggle svg,
.main-nav__item:has(:focus-visible) > .main-nav__toggle svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .main-nav__item.has-dropdown:hover > .main-nav__dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }
  .main-nav__item.has-dropdown:hover > .main-nav__toggle { color: var(--gold-hover); }
  .main-nav__item.has-dropdown:hover > .main-nav__toggle svg { transform: rotate(180deg); }
  .main-nav__item.has-dropdown:hover > .main-nav__link { color: var(--gold-hover); }
}
.header-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.header-contacts a[href^="tel:"] { text-decoration: none; }

/* ---------- Подменю раздела / вкладки ---------- */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; border-bottom: 1px solid var(--line); font-size: 15px; }
.subnav a, .subnav button {
  min-height: 52px; margin-bottom: -1px; padding: 0; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted);
  font: inherit; text-decoration: none; cursor: pointer;
}
.subnav a:hover, .subnav button:hover { color: var(--ink); }
.subnav [aria-current="page"], .subnav [aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.subnav .count { color: var(--muted); }
.page-head { padding-block: 64px 72px; }

/* ---------- Паспарту, кнопки ---------- */
.plate { padding: 16px; background: var(--plate); border: 1px solid var(--plate-line); }
.plate--sm { padding: 10px; border-color: var(--plate-line-soft); }
.plate img { width: 100%; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border: 1px solid var(--gold); background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); background: rgba(191, 154, 88, 0.12); }
.btn--solid { min-height: 52px; padding: 0 40px; background: var(--gold); color: var(--bg); font-size: 16px; font-weight: 500; }
.btn--solid:hover { background: var(--gold-hover); color: var(--bg); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(236, 223, 200, 0.3); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-hover); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-head--loose { padding-bottom: 32px; }

/* ---------- Главная: слайдер и вступление ---------- */
.slider { padding-top: 24px; }
.slider__frame { position: relative; display: grid; }
.slider__frame img {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1920 / 900;
  object-fit: cover;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s ease, visibility 0s;
}
.slider__frame img[hidden] {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, visibility 0s linear 0.65s;
}
.slider__controls { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 14px; font-size: 14px; color: var(--muted); }

.intro { display: flex; flex-wrap: wrap; gap: 32px 80px; padding-block: 56px var(--section); }
.intro__title { flex: 7 1 520px; font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; letter-spacing: -0.005em; color: var(--ink); }
.intro__text { flex: 5 1 360px; padding-top: 10px; font-size: 16px; line-height: 1.78; color: var(--text); }

/* ---------- Главная: оглавление интерьеров ---------- */
.home-interiors { padding-bottom: var(--section); }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; }
.tab { min-height: 44px; padding: 0; display: inline-flex; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid transparent;
  background: none; color: var(--muted); font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.tab .count { color: var(--muted); }

.index { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.index__list { flex: 7 1 520px; min-width: 0; list-style: none; padding: 0; }
.index__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
  padding: 18px 0 16px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.index__name { flex: 1 1 280px; font-family: var(--font-display); font-weight: 400; font-size: 33px; line-height: 1.15; color: var(--ink); }
.index__row:hover .index__name, .index__row.is-active .index__name { color: var(--gold-hover); }
.index__count { font-size: 14px; color: var(--muted); }
.index__preview { flex: 5 1 360px; min-width: 0; padding-top: 28px; align-self: flex-start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.index__preview img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--plate); }
.index__caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.index__caption a { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 23px; }
.index__caption span { font-size: 14px; color: var(--muted); }

/* ---------- Главная: развеска картин в масштабе ---------- */
.art-band { padding-block: 128px 112px; }
.hang { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px 64px; padding: 96px 0 24px; }
.hang figure { display: flex; flex-direction: column; gap: 16px; }
.hang img { height: var(--h, 240px); width: auto; box-shadow: 0 20px 36px rgba(0, 0, 0, 0.4); }
.work-caption { font-size: 13px; line-height: 1.5; color: var(--muted); }
.work-caption__title { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 20px; color: var(--ink); }

/* ---------- Главная: о себе, услуги, публикации, контакты ---------- */
.home-about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 96px; padding-block: var(--section); }
.home-about__photo { flex: 0 1 340px; width: 340px; aspect-ratio: 2 / 3; object-fit: cover; }
.home-about__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.home-about__quote { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.2; color: var(--ink); }
.home-about__text { max-width: 38em; font-size: 16px; line-height: 1.78; color: var(--text); }

.home-services { padding-bottom: 140px; }
.services-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 48px; padding-top: 48px; }
.services-teaser__item { display: flex; flex-direction: column; gap: 16px; }
.services-teaser ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

.pubs-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px 48px; padding-bottom: 140px; }
.pubs-line__label { font-size: 14px; color: var(--muted); }
.pubs-line__names { display: flex; flex-wrap: wrap; gap: 8px 44px; font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 32px; line-height: 1.25; color: var(--text); }

.contact-band__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px 80px; padding-block: 112px 72px; }
.contact-band__info { display: flex; flex-direction: column; gap: 16px; }
.contact-band__direct { display: flex; flex-direction: column; gap: 8px; }
.contact-band__name { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 28px; color: var(--text); }
.contact-band__phone { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 3.8vw, 52px); line-height: 1.12; font-variant-numeric: lining-nums; text-decoration: none; }
.contact-band__email { font-size: 17px; color: var(--gold); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--bg-band); }
.site-footer__main { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 80px; padding-block: 72px 48px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; }
.site-footer__brand .logo__img { height: 44px; width: auto; }
.site-footer__brand span:last-child { font-size: 15px; color: var(--text); }
.site-footer__contacts { display: flex; flex-direction: column; gap: 4px; }
.site-footer__phone { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.18; font-variant-numeric: lining-nums; text-decoration: none; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px 40px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.legal a { color: var(--muted); }
.legal__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Интерьеры: карточки ---------- */
.page { padding-block: 32px var(--section); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 64px 40px; list-style: none; padding: 0; }
.cards > li[hidden] { display: none; }
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; }
.card__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.card__name { font-family: var(--font-display); font-weight: 500; font-size: 27px; line-height: 1.18; color: var(--ink); }
.card:hover .card__name { color: var(--gold-hover); }
.card__count { font-size: 14px; color: var(--muted); }

/* ---------- Страница проекта ---------- */
.project-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; padding-block: 64px 56px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-grid a { display: block; padding: 8px; background: var(--plate); }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-grid a:first-child { grid-column: span 2; grid-row: span 2; padding: 12px; border: 1px solid var(--plate-line-soft); }
.photo-grid a:first-child img { height: 100%; aspect-ratio: auto; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.pager a:last-child { align-items: flex-end; text-align: right; }
.pager small { font-size: 13px; color: var(--muted); }
.pager span { font-family: var(--font-display); font-weight: 400; font-size: 33px; line-height: 1.15; }

/* ---------- Галерея работ ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 64px 32px; list-style: none; padding: 0; }
.work { display: flex; flex-direction: column; gap: 18px; }
.work__frame { display: flex; align-items: center; justify-content: center; height: 400px; background: var(--bg-band); border: 1px solid rgba(191, 154, 88, 0.16); }
.work__frame img { max-width: 78%; max-height: 78%; width: auto; height: auto; box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45); }
.work figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.work figcaption b { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 23px; line-height: 1.22; color: var(--ink); }

/* ---------- Услуги ---------- */
.services { display: flex; flex-direction: column; gap: 112px; }
.service { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 88px; padding-top: 40px; border-top: 1px solid var(--line); }
.service__aside { flex: 4 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.service__aside img { aspect-ratio: 4 / 3; object-fit: cover; }
.service__list { flex: 7 1 520px; min-width: 0; list-style: none; padding: 0; font-size: 16.5px; line-height: 1.65; color: var(--text); }
.service__list li { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- Текстовые страницы ---------- */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 104px; }
.split__media { flex: 4 1 320px; min-width: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.split__media figcaption { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 21px; color: var(--muted); }
.split__body { flex: 7 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 32px; }
.split--media-right .split__media { order: 2; position: static; max-width: 420px; margin: 120px 0 0 auto; }
.split--media-right .split__media img { aspect-ratio: 13 / 20; object-fit: cover; }
.statement-block { margin-top: 120px; }
.wide-plate { margin-top: 96px; }
.wide-plate img { aspect-ratio: 1200 / 562; object-fit: cover; }

.pub-section { margin-top: 128px; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px 28px; padding-top: 48px; list-style: none; padding-left: 0; }
.pub { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.pub img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.pub span { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 25px; line-height: 1.2; }

/* ---------- Контакты ---------- */
.contacts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px 120px; }
.contacts__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.contacts__name { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.2; }
.contacts dl { display: flex; flex-direction: column; gap: 28px; }
.contacts dt { font-size: 14px; color: var(--muted); }
.contacts__phone { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4vw, 56px); line-height: 1.1; font-variant-numeric: lining-nums; text-decoration: none; }
.contacts__email { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; color: var(--gold); }
.page-head--ruled { border-top: 1px solid var(--line); }

/* ---------- Просмотр фото ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 15, 14, 0.94); color: var(--ink); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox .icon-btn { position: absolute; border-color: transparent; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--muted); }

/* ---------- Мобильные ---------- */
@media (max-width: 760px) {
  .site-header { padding-block: 20px; }
  .logo__img { height: 44px; }
  .main-nav { position: relative; order: 3; width: 100%; }
  .main-nav__list { gap: 6px 20px; }
  .main-nav__item { position: static; }
  .main-nav__toggle { width: 28px; height: 28px; }
  .main-nav__dropdown { top: calc(100% + 6px); left: 0; right: 0; min-width: 0; }
  .main-nav__dropdown a { padding: 12px 18px; font-size: 15px; white-space: normal; }
  .index__preview { display: none; }
  .index__name { font-size: 26px; }
  .hang img { height: calc(var(--h, 240px) * 0.62); }
  .art-band { padding-block: 88px 72px; }
  .hang { padding-top: 56px; gap: 40px; }
  .home-about__photo { width: 100%; flex-basis: 100%; max-width: 360px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-grid a { padding: 4px; }
  .photo-grid a:first-child { grid-row: span 1; padding: 6px; }
  .photo-grid a:first-child img { aspect-ratio: 3 / 4; height: auto; }
  .work__frame { height: 300px; }
  .split__media { position: static; max-width: 420px; }
  .split--media-right .split__media { margin: 0; order: 0; }
  .page-head, .project-head { padding-block: 40px 44px; }
  .pager span { font-size: 26px; }
  .pager a:last-child { align-items: flex-start; text-align: left; }
  /* вкладки и подменю — в одну строку с горизонтальной прокруткой */
  .subnav, .section-head .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0 24px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .subnav::-webkit-scrollbar, .section-head .tabs::-webkit-scrollbar { display: none; }
  .subnav > *, .section-head .tabs > * { flex: none; white-space: nowrap; }
  .section-head .tabs { width: calc(100% + var(--gutter) * 2); }
  .lightbox img { max-width: calc(100vw - 24px); }
}

/* ---------- Утилиты ---------- */
.section-head--plain { border-bottom: 0; padding-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.self-start { align-self: flex-start; }
.img-portrait { aspect-ratio: 2 / 3; object-fit: cover; }
.mt-32 { margin-top: 32px; }
.legal--plain { border-top: 0; }

/* ---------- Пользовательские стили WYSIWYG (Style 1–4 в TinyMCE) и чистая семантика ---------- */
.style1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 2vw, 27px); line-height: 1.48; color: var(--ink); }
.style2 { margin: 24px 0; padding: 40px 0; border-top: 1px solid rgba(191, 154, 88, 0.4); border-bottom: 1px solid rgba(191, 154, 88, 0.4);
  font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.32; color: var(--ink); }
.style3 { max-width: 26em; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.35; color: var(--ink); }
.style4 { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.2; }

.split__body > p:not([class]),
.studio-intro > p:not([class]),
.prose p { font-size: 17px; line-height: 1.78; color: var(--text); }
.studio-intro > p + p { margin-top: 32px; }
.prose { max-width: 780px; display: flex; flex-direction: column; gap: 20px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.prose ul ul { margin-top: 8px; }
.prose h2, .prose h3 { margin-top: 16px; font-family: var(--font-display); font-weight: 500; color: var(--ink); }

.service__list ul { list-style: none; padding: 0; margin: 0; }
.contacts__info a[href^="tel:"] { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4vw, 56px); line-height: 1.1; font-variant-numeric: lining-nums; text-decoration: none; }
.contacts__info a[href^="mailto:"] { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; color: var(--gold); }
.work figcaption b:empty,
.work figcaption span:empty { display: none; }
