/* ==========================================================================
   ФЕДОРОВСКИЕ ИКОНЫ — fikona.ru
   Собственная вёрстка. Никаких внешних зависимостей и CDN.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Шрифт. Файлы лежат локально в assets/fonts, наружу ничего не запрашивается.
   Начертание — свободная гарнитура (лицензия SIL OFL), подключена под
   собственным именем семейства.
   -------------------------------------------------------------------------- */
/* Один вариативный файл на все начертания — вместо семи отдельных.
   Экономит и запросы, и вес. */
@font-face {
  font-family: 'FikonaSans';
  font-style: normal;
  font-weight: 250 1000;
  font-display: swap;
  src: url('../assets/fonts/FikonaSans-VF.woff2') format('woff2-variations'),
       url('../assets/fonts/FikonaSans-VF.woff')  format('woff-variations');
}

/* --------------------------------------------------------------------------
   Переменные
   -------------------------------------------------------------------------- */
:root {
  --cream:       #f9f5ee;   /* фон первого экрана */
  --cream-70:    rgba(249, 245, 238, .7);
  --gold:        #c5a657;   /* кнопки */
  --gold-glow:   rgba(255, 148, 21, .5);
  --gold-widget: #d89e0a;   /* плавающая кнопка «Задать вопрос» */
  --dark:        #171717;   /* подвал */
  --ink:         #000;
  --accent:      #ff8562;   /* ссылки в тексте */
  --font:        'FikonaSans', Arial, Helvetica, sans-serif;

  --container:   1200px;
  --menu-h:      50px;
  --mobilebar-h: 64px;
}

/* --------------------------------------------------------------------------
   Сброс и база
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; border: 0; }
a   { color: inherit; text-decoration: none; }
ul  { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* видно только скринридерам */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid #2015ff;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Сетка
   -------------------------------------------------------------------------- */
/* Ширины повторяют сетку исходного сайта на всех трёх ступенях:
   полная (1160 / 940 / 600), узкая колонка текста (760 / 620 / 600)
   и средняя под видео (960 / 780 / 600). */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 800px; }   /* колонка текста */
.container--mid    { max-width: 1000px; }  /* видео */

@media (max-width: 1200px) {
  .container          { max-width: 960px; padding: 0 10px; }
  .container--narrow  { max-width: 660px; padding: 0 20px; }
  .container--mid     { max-width: 800px; padding: 0 10px; }
}
@media (max-width: 960px) {
  .container,
  .container--narrow,
  .container--mid     { max-width: 640px; padding: 0 20px; }
}

.section { padding: 60px 0; }

/* --------------------------------------------------------------------------
   Типографика.
   Размеры и переносы по трём ступеням ширины — ровно как на исходном сайте:
   больше 1200px, до 1200px и до 640px.
   -------------------------------------------------------------------------- */
.h-hero {
  margin: 0 0 40px;
  font-size: 48px;
  line-height: 1.23;
  font-weight: 600;
}
.h-section {
  margin: 0 0 90px;
  font-size: 42px;
  line-height: 1.23;
  font-weight: 600;
  text-align: center;
  overflow-wrap: break-word;
}
.h-page {
  margin: 0 0 30px;
  font-size: 42px;
  line-height: 1.23;
  font-weight: 600;
}

.lead {
  margin: 0 0 35px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
}

.text {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 300;
  overflow-wrap: break-word;
}

@media (max-width: 1200px) {
  .h-hero    { font-size: 44px; }
  .h-section { font-size: 38px; }
  .h-page    { font-size: 38px; }
  .lead      { font-size: 16px; }
  .text      { font-size: 18px; }
}
@media (max-width: 640px) {
  .h-hero    { font-size: 30px; }
  .h-section { font-size: 30px; }
  .h-page    { font-size: 30px; }
  .lead      { font-size: 14px; line-height: 1.45; }
  .text      { font-size: 16px; line-height: 1.45; }
}
.text p     { margin: 0 0 10px; }
.text ul    { margin: 0 0 10px; padding-left: 20px; list-style: disc; }
.text ol    { margin: 0 0 10px; padding-left: 22px; }
.text li    { margin: 0; }
.text b,
.text strong { font-weight: 700; }
.text a     { color: var(--accent); }
.text h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}
/* Подзаголовки внутри текстовых блоков: по размеру как текст, но выделены —
   так страница остаётся похожей на исходную, а поиск видит структуру. */
.text__h {
  margin: 0 0 4px;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
}
.text__h3 {
  margin: 14px 0 4px;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
}
.text__center { text-align: center; }

/* Заголовок каталога */
.catalog__head { margin-bottom: 40px; }
@media (max-width: 960px) { .catalog__head { margin-bottom: 26px; } }

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 18.8px 60px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  background: var(--gold);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 5px 15px 0 var(--gold-glow);
  cursor: pointer;
  transition: background-color .2s ease-in-out, box-shadow .2s ease-in-out,
              transform .2s ease-in-out, opacity .2s ease-in-out;
}
.btn:hover  { background: #b7975098; background: #b79750; }
.btn:active { transform: translateY(1px); }

.btn--sm    { min-height: 44px; padding: 12px 28px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, .2);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(0, 0, 0, .04); }

/* ==========================================================================
   ШАПКА
   ========================================================================== */

/* — десктоп: полупрозрачная кремовая полоса — */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 990;
  height: var(--menu-h);
  background: var(--cream-70);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--menu-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 1200px) {
  .topbar__inner { max-width: 960px; }
}
.topbar__logo {
  padding-right: 30px;
  font-size: 24px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--ink);
}
.topbar__nav ul {
  display: flex;
  align-items: center;
}
.topbar__nav li + li { margin-left: 30px; }
.topbar__nav a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity .15s ease;
}
.topbar__nav a:hover { opacity: .7; }

/* — мобильная: чёрная полоса с бургером — */
.mobilebar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 990;
  background: #000;
}
.mobilebar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--mobilebar-h);
  padding: 20px;
}
.mobilebar__logo {
  font-size: 24px;
  font-weight: 400;
  white-space: nowrap;
  color: #fff;
}

/* бургер */
.burger {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: .25s ease-in-out;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2),
.burger span:nth-child(3) { top: 8px; }
.burger span:nth-child(4) { top: 16px; }

.burger.is-open span:nth-child(1),
.burger.is-open span:nth-child(4) { top: 8px; left: 50%; width: 0; }
.burger.is-open span:nth-child(2) { transform: rotate(45deg); }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg); }

/* выпадающее мобильное меню */
.mobilemenu {
  display: none;
  padding: 10px 20px 24px;
  background: #000;
}
.mobilemenu.is-open { display: block; }
.mobilemenu a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mobilemenu a:last-child { border-bottom: 0; }

@media (max-width: 980px) {
  .topbar    { display: none; }
  .mobilebar { display: block; }
}

/* отступ под фиксированной шапкой для внутренних страниц */
.page-offset { padding-top: var(--menu-h); }
@media (max-width: 980px) {
  .page-offset { padding-top: var(--mobilebar-h); }
}

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН — текст слева, фото справа, срез по диагонали
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero__wrapper {
  position: relative;
  display: flex;
  height: 100vh;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 40%;
  margin: 0 20px;
}
/* диагональ: контейнер скошен, картинка внутри скошена обратно */
.hero__cover-wrap {
  position: absolute;
  top: 0; bottom: 0;
  left: 30%;
  width: 60%;
  overflow: hidden;
  transform: skew(-30deg, 0);
  transform-origin: bottom left;
}
.hero__cover {
  position: absolute;
  inset: 0 -30vw 0 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform: skew(30deg, 0);
  transform-origin: bottom left;
}

/* На узких экранах диагональ убирается: текст сверху, фото квадратом снизу. */
@media (max-width: 960px) {
  .hero__wrapper {
    flex-direction: column;
    height: auto;
    padding: 0;
  }
  .hero__content {
    width: 100%;
    margin: 0;
    padding: 90px 20px 50px;
  }
  /* position: relative — чтобы фото осталось внутри своего квадрата
     и не наехало на текст выше */
  .hero__cover-wrap {
    position: relative;
    top: auto; bottom: auto; left: 0;
    flex-grow: 1;
    width: 100%;
    padding-bottom: 100%;
    overflow: visible;
    transform: none;
  }
  .hero__cover {
    inset: 0 -30%;
    width: auto;
    transform: none;
  }
}
@media (max-width: 640px) {
  .hero__content { padding: 90px 20px 20px; word-break: normal; overflow-wrap: anywhere; }
  .hero .h-hero  { margin-bottom: 20px; }
  .hero .btn     { width: 100%; }
  .hero__cover   { inset: 0; width: 100%; }
}

/* ==========================================================================
   ЦИТАТА С АВТОРОМ
   ========================================================================== */
.quote { padding: 45px 0 0; }
.quote__grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.quote__text {
  flex: 1 1 auto;
  max-width: 760px;
  margin-left: auto;
  padding: 8px 0 6px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 300;
}
.quote__text strong,
.quote__text em { font-style: italic; font-weight: 700; }
.quote__author {
  flex: 0 0 160px;
  text-align: center;
}
.quote__author img {
  width: 80px;
  height: 80px;
  margin: 8px 0 10px;
  object-fit: cover;
  border-radius: 50%;
}
.quote__author-name {
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.33;
  font-weight: 700;
}
.quote__author-role {
  padding: 0 20px 7px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 300;
}
@media (max-width: 1200px) {
  .quote__text { font-size: 18px; }
}
@media (max-width: 960px) {
  .quote__grid { flex-direction: column; gap: 10px; }
  .quote__text { margin-left: 0; }
  .quote__author { flex: none; align-self: center; margin: 20px 0; }
}
@media (max-width: 640px) {
  .quote__text { font-size: 16px; line-height: 1.45; }
}

/* ==========================================================================
   ШИРОКАЯ КАРТИНКА (баннер)
   ========================================================================== */
.imageband { padding: 75px 0; text-align: center; }
.imageband img { display: inline-block; width: auto; max-width: 100%; height: auto; }
@media (max-width: 960px) { .imageband { padding: 40px 0; } }

/* ==========================================================================
   ВИДЕО
   ========================================================================== */
.videoblock { padding: 30px 0 15px; }
.videoblock__frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  cursor: pointer;
}
.videoblock__poster {
  display: block;
  width: 100%;
  height: 540px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.videoblock__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0));
}
.videoblock__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease;
}
.videoblock__frame:hover .videoblock__play { transform: translate(-50%, -50%) scale(1.15); }
.videoblock__caption {
  position: absolute;
  left: 0; bottom: 0;
  max-width: 560px;
  padding: 38px 43px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
}
.videoblock__player {
  display: none;
  width: 100%;
  height: 540px;
  border: 0;
  border-radius: 30px;
}
.videoblock.is-playing .videoblock__frame  { display: none; }
.videoblock.is-playing .videoblock__player { display: block; }

@media (max-width: 1200px) {
  .videoblock__caption { font-size: 22px; }
}
@media (max-width: 960px) {
  .h-section { margin-bottom: 45px; }
  .videoblock__caption { padding: 26px 30px; }
}
@media (max-width: 640px) {
  .videoblock__poster,
  .videoblock__player { height: 320px; }
  .videoblock__frame,
  .videoblock__player { border-radius: 16px; }
  .videoblock__caption { padding: 20px; font-size: 20px; }
  .videoblock__play { transform: translate(-50%, -50%) scale(.8); }
  .videoblock__frame:hover .videoblock__play { transform: translate(-50%, -50%) scale(.9); }
}

/* ==========================================================================
   ГАЛЕРЕЯ (страница «О мастерской»)
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 960px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ОТЗЫВЫ — скриншоты в столбик
   ========================================================================== */
.reviews { padding: 15px 0 30px; }
.reviews__item { padding: 15px 0; text-align: center; }
.reviews__item img { display: inline-block; width: auto; max-width: 100%; height: auto; }

/* ==========================================================================
   СТРАНИЦА «СПАСИБО»
   ========================================================================== */
.thanks { padding: 90px 0; text-align: center; }
.thanks__uptitle {
  margin: 0;
  padding: 9px 0 93px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.thanks__title {
  margin: 0;
  font-size: 82px;
  line-height: 1.17;
  font-weight: 600;
}
.thanks__descr {
  margin: 0 0 40px;
  padding: 50px 0 9px;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 300;
}
@media (max-width: 1200px) {
  .thanks__title { font-size: 78px; }
  .thanks__descr { font-size: 22px; }
}
@media (max-width: 640px) {
  .thanks__uptitle { font-size: 10px; padding-bottom: 50px; }
  .thanks__title   { font-size: 36px; }
  .thanks__descr   { font-size: 20px; padding-top: 30px; }
}
@media (max-width: 480px) {
  .thanks__title { font-size: 30px; }
}

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
.footer {
  padding: 60px 0 75px;
  background: var(--dark);
  color: #fff;
}
.footer__nav {
  padding: 16px 10px 0;
  text-align: center;
}
.footer__nav li {
  display: inline-block;
  margin: 0;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 600;
}
.footer__nav a {
  display: inline-block;
  color: #fff;
  transition: opacity .15s ease;
}
.footer__nav a:hover { opacity: .7; }
.footer__copy {
  padding: 40px 0 10px;
  font-size: 14px;
  text-align: center;
  color: #fff;
  opacity: .7;
}
@media (max-width: 640px) {
  .footer__nav li { margin-bottom: 20px; }
}

/* ==========================================================================
   ПЛАВАЮЩАЯ КНОПКА «ЗАДАТЬ ВОПРОС»
   ========================================================================== */
.contactwidget {
  position: fixed;
  right: 65px;
  bottom: 50px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.contactwidget__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.contactwidget.is-open .contactwidget__links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.contactwidget__link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contactwidget__label {
  position: relative;
  padding: 9px 13px;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  background: #292929;
  border-radius: 3px;
  white-space: nowrap;
  opacity: .85;
  transition: opacity .1s linear;
}
/* уголок-указатель в сторону кружка */
.contactwidget__label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  width: 0; height: 0;
  border: 10px solid transparent;
  border-left-color: #292929;
  transform: translateY(-50%);
}
/* у соцсетей подпись появляется при наведении — как в оригинале */
.contactwidget__link .contactwidget__label { opacity: 0; }
.contactwidget__link:hover .contactwidget__label { opacity: .85; }
.contactwidget__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.contactwidget__link:hover .contactwidget__icon { transform: scale(1.07); }
.contactwidget__icon svg { width: 50px; height: 50px; border-radius: 50%; }

.contactwidget__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.contactwidget__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  background: var(--gold-widget);
  border: 2px solid #ddd;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}
.contactwidget__toggle:hover .contactwidget__btn { transform: scale(1.05); }
.contactwidget__btn .icon-close { display: none; }
.contactwidget.is-open .contactwidget__btn .icon-write { display: none; }
.contactwidget.is-open .contactwidget__btn .icon-close { display: block; }

@media (max-width: 640px) {
  .contactwidget { right: 10px; bottom: 10px; }
  .contactwidget__label { font-size: 12px; }
  .contactwidget__label::after { border-width: 8px; right: -16px; }
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО (форма заявки, карточка товара, видео)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: 20px;
  overflow-y: auto;
  background: rgba(0, 0, 0, .6);
}
.modal.is-open { display: block; }
body.modal-open { overflow: hidden; }

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
}
.modal__dialog--wide { max-width: 980px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  padding: 0;
  font-size: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  top: 50%; left: 8px;
  width: 20px; height: 2px;
  background: #000;
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after  { transform: rotate(-45deg); }
.modal__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}
.modal__subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
  opacity: .75;
}

@media (max-width: 640px) {
  .modal__dialog { padding: 30px 20px; margin: 10px auto; }
}

/* ==========================================================================
   ФОРМЫ
   ========================================================================== */
.field { margin-bottom: 20px; }
.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 300;
}
.field__control {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  background: #f0f0f0;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: border-color .15s ease, background-color .15s ease;
}
.field__control:focus {
  background: #fff;
  border-color: var(--gold);
  outline: none;
}
.field__control.is-invalid { border-color: #d33; background: #fff4f4; }

.field__error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #d33;
}
.field.has-error .field__error { display: block; }

/* радио и чекбоксы */
.choice { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.choice__item,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
}
.consent {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.5;
  opacity: .7;
}
.choice__item input,
.consent input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}
.consent a { text-decoration: underline; }

.form__submit { margin-top: 10px; }
.form__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .6;
}

/* ==========================================================================
   КАТАЛОГ ТОВАРОВ
   ========================================================================== */
.catalog { padding: 15px 0 45px; }

.catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.catalog__search {
  flex: 1 1 260px;
  height: 46px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  background: #f0f0f0;
  border: 1px solid transparent;
  border-radius: 6px;
}
.catalog__search:focus { background: #fff; border-color: var(--gold); outline: none; }
.catalog__select {
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  background: #f0f0f0;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.catalog__count { font-size: 14px; opacity: .6; }

/* сетка карточек */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .catalog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card__imgwrap {
  position: relative;
  width: 100%;
  padding-bottom: 133.33%;      /* 3:4 — как в оригинале */
  overflow: hidden;
  background: #f2efe9;
  border-radius: 8px;
}
.card__imgwrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__imgwrap img { transform: scale(1.04); }
.card__title {
  margin: 14px 0 6px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}
.card__price {
  font-size: 16px;
  font-weight: 600;
}
.card__price-from {
  font-weight: 300;
  opacity: .6;
}
.card__price-old {
  margin-left: 8px;
  font-weight: 300;
  text-decoration: line-through;
  opacity: .5;
}
.card__btn { margin-top: 12px; }

/* пустое состояние */
.catalog__empty {
  padding: 60px 20px;
  text-align: center;
  background: var(--cream);
  border-radius: 12px;
}
.catalog__empty h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}
.catalog__empty p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  opacity: .8;
}

/* ==========================================================================
   КАРТОЧКА ТОВАРА (в модальном окне)
   ========================================================================== */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.product__gallery img {
  display: block;
  width: 100%;
  border-radius: 8px;
}
.product__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.product__thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s ease;
}
.product__thumbs img:hover { opacity: .85; }
.product__thumbs img.is-active { opacity: 1; outline: 2px solid var(--gold); outline-offset: -2px; }
.product__title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
}
.product__subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
  opacity: .7;
}
.product__price {
  margin-bottom: 4px;
  font-size: 26px;
  font-weight: 600;
}
.product__extra {
  margin-bottom: 20px;
  min-height: 18px;
  font-size: 13px;
  opacity: .6;
}
.product__opt-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.product__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
/* Варианты крышки короба — длинные подписи, поэтому в столбик. */
.product__opts_col { flex-direction: column; align-items: stretch; }
.product__opts_col .product__opt { text-align: left; }

.product__opt {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.35;
  background: #f0f0f0;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.product__opt:hover { background: #e8e8e8; }
.product__opt.is-active { background: #fff; border-color: var(--gold); font-weight: 600; }
.product__descr {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
}
@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; }
}

/* ==========================================================================
   КОРЗИНА
   ========================================================================== */
.cartbtn {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 899;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: #fff;
  background: var(--dark);
  border: 0;
  border-radius: 40px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  cursor: pointer;
}
.cartbtn.is-visible { display: flex; }
.cartbtn__count {
  min-width: 22px;
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: var(--gold);
  border-radius: 11px;
}

.cart__list { margin-bottom: 20px; }
.cart__row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.cart__row img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 4px;
}
.cart__name { font-size: 15px; font-weight: 600; }
.cart__opt  { font-size: 13px; opacity: .6; }
.cart__qty  { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart__qty button {
  width: 26px; height: 26px;
  background: #f0f0f0;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.cart__sum { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cart__remove {
  margin-left: 10px;
  background: none;
  border: 0;
  font-size: 18px;
  line-height: 1;
  opacity: .4;
  cursor: pointer;
}
.cart__remove:hover { opacity: 1; }
.cart__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 600;
}
.cart__empty { padding: 30px 0; text-align: center; opacity: .6; }

/* ==========================================================================
   ПОРТАЛ: хлебные крошки, статьи, указатели разделов, товарный блок
   ========================================================================== */

/* — навигация портала в шапке — */
.topbar--portal .topbar__nav li + li { margin-left: 22px; }
.topbar--portal .topbar__nav a.is-active { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
@media (max-width: 1100px) {
  .topbar--portal .topbar__logo { font-size: 19px; padding-right: 16px; }
  .topbar--portal .topbar__nav a { font-size: 12px; }
  .topbar--portal .topbar__nav li + li { margin-left: 14px; }
}

/* — хлебные крошки — */
.crumbs {
  padding: calc(var(--menu-h) + 18px) 0 0;
  font-size: 13px;
  color: rgba(0, 0, 0, .55);
}
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { margin: 0 8px; opacity: .5; }
@media (max-width: 980px) { .crumbs { padding-top: calc(var(--mobilebar-h) + 14px); } }
.crumbs + .page-offset { padding-top: 0; }

/* — статья — */
.article { padding: 24px 0 10px; }
.article h2 {
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
}
.article p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; font-weight: 300; }
.article__photo { margin: 0 0 28px; text-align: center; }
.article__photo img { width: 100%; max-width: 420px; height: auto; border-radius: 10px; }
.article .lead { font-size: 20px; opacity: .85; }
.article .note {
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.55;
  background: var(--cream);
  border-radius: 8px;
}
@media (max-width: 640px) {
  .article h2 { font-size: 21px; }
  .article p { font-size: 16px; }
  .article .lead { font-size: 17px; }
}

/* — таблица фактов — */
.facts { margin: 0 0 28px; padding: 0; border-top: 1px solid #eee; }
.facts__row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #eee;
}
.facts dt { font-size: 15px; opacity: .6; }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; }
@media (max-width: 640px) {
  .facts__row { grid-template-columns: 1fr; gap: 2px; }
}

/* — список «в чём помогает» — */
.checklist { margin: 0 0 18px; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 300;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 4px; top: 15px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

/* — указатель раздела — */
.index__group { margin: 0 0 36px; }
.index__group h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
}
.index__count {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 300;
  opacity: .45;
}
.index__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px 24px;
  list-style: none;
}
.index__list a {
  display: block;
  padding: 7px 0;
  font-size: 16px;
  font-weight: 300;
  border-bottom: 1px solid #f0f0f0;
}
.index__list a:hover { color: var(--gold); }

/* — сквозной товарный блок — */
.shop {
  margin-top: 50px;
  padding: 52px 0 60px;
  background: var(--cream);
}
.shop__head { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: 600; }
.shop__lead { max-width: 620px; margin: 0 0 28px; font-size: 16px; line-height: 1.5; font-weight: 300; opacity: .75; }
.shop__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.shop__card { display: block; }
.shop__imgwrap {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  padding-bottom: 133.33%;
}
.shop__imgwrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.shop__card:hover .shop__imgwrap img { transform: scale(1.04); }
.shop__title { margin: 12px 0 4px; font-size: 15px; line-height: 1.35; font-weight: 600; }
.shop__price { font-size: 15px; font-weight: 300; opacity: .7; }
.shop__more { margin-top: 30px; }
@media (max-width: 960px) { .shop__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .shop { padding: 36px 0 42px; }
  .shop__head { font-size: 23px; }
  .shop__more .btn { width: 100%; }
}

/* — подвал портала — */
.footer--portal { padding: 54px 0 40px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}
.footer__colhead {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .55;
}
.footer__cols ul { list-style: none; }
.footer__cols li { margin-bottom: 9px; }
.footer__cols a { font-size: 15px; font-weight: 300; color: #fff; opacity: .85; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) { .footer__cols { grid-template-columns: 1fr; gap: 26px; } }

/* — карточки разделов на главной — */
.sects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sect {
  display: block;
  padding: 24px 26px 26px;
  background: var(--cream);
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sect:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.sect__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sect__name { font-size: 20px; font-weight: 600; }
.sect__badge {
  flex: 0 0 auto;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  border-radius: 10px;
  white-space: nowrap;
}
.sect__text { margin: 10px 0 0; font-size: 15px; line-height: 1.5; font-weight: 300; opacity: .8; }
@media (max-width: 960px) { .sects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sects { grid-template-columns: 1fr; } }

/* — молитвы — */
.when {
  margin: 0 0 24px;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.prayer {
  margin: 0 0 26px;
  padding: 22px 24px;
  font-size: 19px;
  line-height: 1.75;
  font-weight: 300;
  background: #fbfaf7;
  border: 1px solid #efe9dc;
  border-radius: 10px;
}
.prayer--ru { background: #fff; border-style: dashed; }
@media (max-width: 640px) { .prayer { padding: 16px 16px; font-size: 17px; } }

/* — переход к соседней странице — */
.pn {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid #eee;
  font-size: 15px;
}
.pn a { max-width: 48%; opacity: .8; }
.pn a:hover { opacity: 1; color: var(--gold); }
.pn__next { margin-left: auto; text-align: right; }

/* — источники под статьёй — */
.sources { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.sources li { display: inline-block; margin: 0 14px 6px 0; }
.sources a { opacity: .55; text-decoration: underline; text-underline-offset: 2px; }
.sources a:hover { opacity: 1; }

/* — календарь — */
.days { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.days a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  font-size: 15px;
  background: var(--cream);
  border-radius: 6px;
  transition: background-color .15s ease;
}
.days a:hover { background: var(--gold); color: #fff; }
.days b { margin-left: 2px; color: var(--gold); }
.days a:hover b { color: #fff; }
.plain { list-style: none; margin: 0 0 8px; }
.plain li { padding: 6px 0; font-size: 16px; font-weight: 300; border-bottom: 1px solid #f2f2f2; }
.kal__h { margin: 40px 0 20px; font-size: 26px; font-weight: 600; }
.feast {
  margin: 0 0 24px;
  padding: 18px 22px;
  background: var(--cream);
  border-radius: 10px;
}
.feast b { font-size: 20px; }
.feast p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; font-weight: 300; }

/* — дни памяти в именинах — */
.namedays { margin: 0 0 24px; }
.nameday {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
}
.nameday__date { font-size: 15px; font-weight: 600; color: var(--gold); }
.nameday b { font-size: 16px; }
.nameday p { margin: 5px 0 0; font-size: 15px; line-height: 1.5; font-weight: 300; opacity: .8; }
@media (max-width: 640px) { .nameday { grid-template-columns: 1fr; gap: 3px; } }

.mt { margin: 26px 0 34px; }

/* — акафист: кондаки и икосы — */
.ak { margin: 0 0 18px; }
.ak__head {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--gold);
}
.ak .prayer { margin: 0; }

/* — частые вопросы — */
.faq {
  margin: 0 0 10px;
  padding: 14px 18px;
  background: #fbfaf7;
  border: 1px solid #efe9dc;
  border-radius: 8px;
}
.faq summary {
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+ '; color: var(--gold); font-weight: 700; }
.faq[open] summary::before { content: '– '; }
.faq p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; font-weight: 300; }
.kaf__when { margin: -6px 0 10px; font-size: 14px; font-weight: 300; opacity: .65; }

/* — карточки статей — */
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.art {
  display: block;
  padding: 20px 22px;
  background: #fbfaf7;
  border: 1px solid #efe9dc;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.art:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.art__title { font-size: 17px; line-height: 1.3; font-weight: 600; }
.art__lead { margin: 8px 0 0; font-size: 14px; line-height: 1.5; font-weight: 300; opacity: .75; }
@media (max-width: 960px) { .arts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .arts { grid-template-columns: 1fr; } }

/* — плеер озвучки — */
.player {
  margin: 0 0 26px;
  padding: 16px 18px;
  background: var(--cream);
  border-radius: 10px;
}
.player__head { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.player audio { width: 100%; height: 38px; }
.player__note { margin-top: 8px; font-size: 13px; opacity: .6; }
.player__note a { text-decoration: underline; }
.hasaudio { margin-left: 6px; color: var(--gold); font-size: 13px; }

/* — расширенный подвал портала — */
.footer--portal .footer__cols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer__about {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
  opacity: .6;
}
.footer__contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__contacts a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  opacity: .85;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}
.footer__contacts a:hover { opacity: 1; border-color: var(--gold); }
.footer--portal .footer__copy { padding-top: 26px; }
@media (max-width: 1100px) { .footer--portal .footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .footer--portal .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

/* ==========================================================================
   СТРАНИЦА «О МАСТЕРСКОЙ»
   Собственная секция. Ничего выше не переопределяет — только новые классы
   с префиксом .abt-, чтобы вёрстка остальных страниц осталась нетронутой.
   ========================================================================== */

/* — надзаголовок секции — */
.abt-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

/* — вводная — */
.abt-intro { padding: 30px 0 0; }
.abt-intro .h-page { margin-bottom: 18px; }
.abt-lead {
  max-width: 820px;
  margin: 0;
  font-size: 21px;
  line-height: 1.6;
  font-weight: 300;
}
.abt-lead + .abt-lead { margin-top: 14px; }
@media (max-width: 1200px) { .abt-lead { font-size: 19px; } }
@media (max-width: 640px)  { .abt-lead { font-size: 17px; line-height: 1.5; } }

/* — цифры — */
.abt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}
.abt-stat {
  padding: 22px 22px 24px;
  background: var(--cream);
  border-radius: 12px;
}
.abt-stat__num {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 600;
}
.abt-stat__num--word { font-size: 24px; line-height: 1.2; }
.abt-stat__txt {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 300;
  opacity: .72;
}
@media (max-width: 860px) { .abt-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .abt-stat { padding: 16px 16px 18px; }
  .abt-stat__num { font-size: 27px; }
  .abt-stat__num--word { font-size: 19px; }
  .abt-stat__txt { font-size: 13px; }
}

/* — смысловой блок — */
.abt-sec { padding: 34px 0 0; }
.abt-sec > .container > .abt-h,
.abt-h {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
}
.abt-text { max-width: 820px; }
.abt-text p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 300;
}
.abt-text p:last-child { margin-bottom: 0; }
.abt-text b, .abt-text strong { font-weight: 600; }
@media (max-width: 640px) {
  .abt-sec { padding: 26px 0 0; }
  .abt-h { font-size: 23px; }
  .abt-text p { font-size: 16px; line-height: 1.55; }
}

/* — разделитель с ромбом — */
.abt-rule {
  position: relative;
  height: 1px;
  margin: 58px 0 0;
  border: 0;
  background: linear-gradient(90deg,
              rgba(197, 166, 87, 0) 0%,
              rgba(197, 166, 87, .45) 50%,
              rgba(197, 166, 87, 0) 100%);
}
.abt-rule::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  margin: -4px 0 0 -4px;
  background: var(--gold);
  transform: rotate(45deg);
}
@media (max-width: 640px) { .abt-rule { margin-top: 40px; } }

/* — декоративный знак над надзаголовком — */
.abt-mark {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 0 8px -3px;
  opacity: .92;
}
@media (max-width: 640px) { .abt-mark { width: 42px; height: 42px; } }

/* — резной разделитель между блоками — */
.abt-div {
  display: block;
  width: 100%;
  max-width: 1400px;
  height: auto;
  margin: 34px auto 0;
  border-radius: 8px;
}
@media (max-width: 640px) { .abt-div { margin-top: 24px; border-radius: 5px; } }

/* — широкая фотополоса — */
.abt-band { margin: 34px 0 0; }
.abt-band img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.abt-cap {
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 300;
  opacity: .55;
}
@media (max-width: 640px) { .abt-band img { border-radius: 10px; } }

/* — текст рядом с фотографией — */
.abt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 30px;
}
.abt-split__media {
  justify-self: end;
  width: 100%;
  max-width: 430px;
}
.abt-split__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.abt-split .abt-text { max-width: none; }
@media (max-width: 860px) {
  .abt-split { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .abt-split__media { order: -1; justify-self: center; max-width: 480px; }
}

/* — этапы производства — */
.abt-steps {
  counter-reset: abtstep;
  margin: 26px 0 0;
  padding: 0;
  max-width: 820px;
  list-style: none;
}
.abt-steps li {
  position: relative;
  min-height: 36px;
  margin: 0 0 18px;
  padding: 4px 0 0 54px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
}
.abt-steps li:last-child { margin-bottom: 0; }
.abt-steps li::before {
  counter-increment: abtstep;
  content: counter(abtstep);
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--gold);
  border-radius: 50%;
}
.abt-steps b { font-weight: 600; }
@media (max-width: 640px) {
  .abt-steps li { padding-left: 44px; font-size: 15px; }
  .abt-steps li::before { width: 30px; height: 30px; font-size: 13px; }
}

/* — выделенная мысль — */
.abt-note {
  max-width: 820px;
  margin: 26px 0 0;
  padding: 18px 22px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
.abt-note b { font-weight: 600; }
@media (max-width: 640px) { .abt-note { padding: 15px 16px; font-size: 15px; } }

/* — три размера — */
.abt-sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.abt-size {
  padding: 24px 24px 26px;
  background: #fbfaf7;
  border: 1px solid #efe9dc;
  border-radius: 12px;
}
.abt-size__dim { font-size: 26px; line-height: 1.2; font-weight: 600; }
.abt-size__price { margin-top: 5px; font-size: 15px; font-weight: 600; color: var(--gold); }
.abt-size__txt {
  margin: 13px 0 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  opacity: .82;
}
@media (max-width: 860px) { .abt-sizes { grid-template-columns: 1fr; } }

/* — варианты крышки короба — */
.abt-lids {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 840px;
  margin-top: 30px;
}
.abt-lid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.abt-lid__name { margin: 15px 0 3px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.abt-lid__price { font-size: 14px; font-weight: 600; color: var(--gold); }
.abt-lid__txt {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  opacity: .82;
}
@media (max-width: 640px) { .abt-lids { grid-template-columns: 1fr; gap: 26px; } }

/* — что проверяем + отзывы — */
.abt-trust {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 26px;
}
.abt-trust .checklist { margin-bottom: 16px; }
.abt-shot { display: block; max-width: 380px; }
.abt-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #eee;
  border-radius: 12px;
}
.abt-shot__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}
.abt-shot:hover .abt-shot__link { color: var(--gold); }
@media (max-width: 860px) {
  .abt-trust { grid-template-columns: 1fr; gap: 28px; }
  .abt-shot { max-width: 420px; }
}

/* — как заказать — */
.abt-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.abt-how__item {
  padding: 22px 24px 24px;
  background: var(--cream);
  border-radius: 12px;
}
.abt-how__n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.abt-how__t { margin: 9px 0 7px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.abt-how__p { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 300; opacity: .82; }
@media (max-width: 860px) { .abt-how { grid-template-columns: 1fr; } }

/* — кнопки в ряд — */
.abt-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
@media (max-width: 640px) {
  .abt-cta { flex-direction: column; align-items: stretch; }
  .abt-cta .btn { width: 100%; }
}

/* — финальная галерея с подписями — */
.abt-gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.abt-gal figure { margin: 0; }
.abt-gal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.abt-gal figcaption {
  margin-top: 11px;
  font-size: 14px;
  font-weight: 300;
  opacity: .65;
}
@media (max-width: 640px) { .abt-gal { grid-template-columns: 1fr; gap: 24px; } }

/* хвост страницы перед товарным блоком */
.abt-tail { padding-bottom: 10px; }

/* — декоративная графика — */
.dechead { margin: 2px 0 22px; text-align: center; }
/* Рисунок в этих иллюстрациях небольшой и стоит по центру, поэтому во всю
   ширину они читались как пустая полоса. Показываем их эмблемой. */
.dechead img {
  display: inline-block;
  width: 100%;
  max-width: 560px;
  height: auto;
  mix-blend-mode: multiply;
}
@media (max-width: 640px) { .dechead img { max-width: 100%; } }
.decdiv { margin: 44px auto 0; max-width: 700px; opacity: .85; }
.decdiv img { display: block; width: 100%; height: auto; }
.grpico {
  width: 30px; height: 30px;
  margin-right: 10px;
  vertical-align: -6px;
  opacity: .9;
}
@media (max-width: 640px) {
  .dechead { margin-bottom: 18px; }
  .dechead img { border-radius: 8px; }
  .grpico { width: 24px; height: 24px; margin-right: 7px; vertical-align: -4px; }
}

/* ==========================================================================
   ОТЗЫВЫ — карточки покупателей (otzivi.html)
   Данные — content/otzyvy.json, разметка статическая.
   Сетка сделана колонками (columns), а не grid: карточки разной высоты
   встают «кирпичной кладкой» без дыр, порядок в JSON уже разложен так,
   чтобы длинные и короткие распределились по колонкам равномерно.
   ========================================================================== */

/* — шапка страницы — */
.otzhero { padding: 30px 0 0; }
.otzhero .h-page { margin-bottom: 18px; }
.otzhero__lead {
  max-width: 760px;
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 300;
  opacity: .8;
}

/* — сводка: крупная оценка + факты — */
.otzsum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 46px;
  margin-top: 34px;
  padding: 26px 32px;
  background: var(--cream);
  border: 1px solid rgba(197, 166, 87, .3);
  border-radius: 18px;
}
.otzsum__score { text-align: center; flex: 0 0 auto; }
.otzsum__num {
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1px;
}
.otzsum__stars {
  margin-top: 6px;
  font-size: 17px;
  letter-spacing: 3px;
  color: var(--gold);
}
.otzsum__cap {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 300;
  opacity: .6;
}
.otzsum__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin: 0;
  padding: 0;
}
.otzsum__facts li { display: flex; flex-direction: column; gap: 3px; }
.otzsum__facts b {
  font-size: 27px;
  line-height: 1.1;
  font-weight: 600;
}
.otzsum__facts span {
  max-width: 190px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
  opacity: .65;
}

/* — сетка карточек — */
.otzlist { padding: 40px 0 70px; }
.otzgrid {
  columns: 3;
  column-gap: 22px;
}

.otzcard {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;          /* без flex: ломает break-inside в колонках */
  margin: 0 0 22px;
  padding: 24px 24px 20px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, .1);
  border-radius: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.otzcard:hover {
  border-color: rgba(197, 166, 87, .55);
  box-shadow: 0 6px 24px rgba(23, 23, 23, .07);
}

/* шапка карточки: буква-аватар, имя, дата, звёзды */
.otzcard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.otzcard__ava {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(197, 166, 87, .45);
  font-size: 18px;
  font-weight: 600;
  color: #8a7434;
}
.otzcard__who {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.otzcard__name {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.otzcard__date {
  font-size: 13px;
  font-weight: 300;
  opacity: .55;
}
.otzcard__stars {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 3px;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--gold);
  white-space: nowrap;
}

.otzcard__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 300;
  overflow-wrap: break-word;
}

/* фото покупателей — маленькие превью */
.otzcard__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.otzcard__ph {
  display: block;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.otzcard__ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.otzcard__ph:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(23, 23, 23, .18); }

/* подвал карточки: какой образ и размер */
.otzcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(23, 23, 23, .08);
}
.otzcard__icon,
.otzcard__size {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 300;
}
.otzcard__icon {
  background: var(--cream);
  color: #6b5a24;
  font-weight: 400;
}
.otzcard__size {
  border: 1px solid rgba(23, 23, 23, .14);
  opacity: .7;
}

/* сноска под сеткой */
.otznote {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  opacity: .55;
}

@media (max-width: 1200px) {
  .otzgrid { columns: 2; }
}
@media (max-width: 960px) {
  .otzhero { padding-top: 22px; }
  .otzhero__lead { font-size: 17px; }
  .otzsum { gap: 18px 32px; padding: 22px 24px; }
  .otzsum__facts { gap: 16px 30px; }
}
@media (max-width: 760px) {
  .otzgrid { columns: 1; column-gap: 0; }
  .otzlist { padding: 30px 0 55px; }
  .otzsum {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 20px;
  }
  .otzsum__score { text-align: left; }
  .otzsum__num { font-size: 46px; }
  .otzsum__facts { flex-direction: column; gap: 14px; }
  .otzsum__facts span { max-width: none; }
  .otzcard { padding: 20px 18px 16px; margin-bottom: 16px; }
  .otzcard__text { font-size: 15px; }
  .otzcard__ph { width: 62px; height: 62px; }
}

/* кнопки под сеткой */
.otzcta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 34px;
}
.otzcta__link {
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(197, 166, 87, .6);
  padding-bottom: 2px;
  transition: opacity .15s ease;
}
.otzcta__link:hover { opacity: .65; }
@media (max-width: 640px) {
  .otzcta { flex-direction: column; align-items: stretch; }
  .otzcta .btn { width: 100%; }
  .otzcta__link { text-align: center; }
}

/* ==========================================================================
   ПРОСМОТР ФОТО ИЗ ОТЗЫВА
   Свой оверлей, а не .modal из app.js: тот заточен под формы.
   ========================================================================== */
.otzbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 64px;
  background: rgba(12, 10, 6, .94);
  cursor: zoom-out;
}
.otzbox[hidden] { display: none; }
body.otzbox-open { overflow: hidden; }

.otzbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.otzbox__close,
.otzbox__nav {
  position: absolute;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s ease;
}
.otzbox__close:hover,
.otzbox__nav:hover { background: rgba(255, 255, 255, .26); }

.otzbox__close { top: 18px; right: 18px; width: 44px; height: 44px; }
.otzbox__close::before,
.otzbox__close::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 19px; height: 2px;
  margin: -1px 0 0 -9.5px;
  background: #fff;
}
.otzbox__close::before { transform: rotate(45deg); }
.otzbox__close::after  { transform: rotate(-45deg); }

.otzbox__nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; }
.otzbox__nav::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.otzbox__nav--prev { left: 14px; }
.otzbox__nav--prev::before { margin: -6px 0 0 -3px; transform: rotate(45deg); }
.otzbox__nav--next { right: 14px; }
.otzbox__nav--next::before { margin: -6px 0 0 -9px; transform: rotate(-135deg); }

@media (max-width: 760px) {
  .otzbox { padding: 64px 14px 78px; }
  .otzbox__nav { top: auto; bottom: 16px; margin-top: 0; }
  .otzbox__nav--prev { left: 50%; margin-left: -56px; }
  .otzbox__nav--next { right: 50%; margin-right: -56px; }
}

/* — графика внутри статей журнала — */
.artmark {
  width: 26px; height: 26px;
  margin-right: 9px;
  vertical-align: -4px;
  opacity: .85;
}
.artfig {
  margin: 30px 0;
  padding: 0;
  text-align: center;
}
.artfig img {
  display: inline-block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 10px;
  transition: transform .3s ease;
}
.artfig a:hover img { transform: scale(1.02); }
.artfig figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  opacity: .7;
}
@media (max-width: 640px) {
  .artmark { width: 22px; height: 22px; margin-right: 7px; }
  .artfig img { max-width: 100%; }
}

/* ---------------------------------------------------- страница «сегодня» */
.spin{display:inline-block;width:14px;height:14px;vertical-align:-2px;
  border:2px solid rgba(0,0,0,.14);border-top-color:var(--accent,#a8874f);
  border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ------------------------------------------------------- аудио-молитвы */
.aud{margin:28px 0 34px;padding:26px 28px;border-radius:14px;
  background:linear-gradient(180deg,#fbf7ef 0%,#f6efe2 100%);
  border:1px solid #e6dbc4;box-shadow:0 1px 0 #fff inset}
.aud__badge{display:inline-block;margin-bottom:10px;padding:4px 12px;
  border-radius:100px;background:#a8874f;color:#fff;
  font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.aud__title{margin:0 0 8px;font-size:24px;line-height:1.25}
.aud__sub{margin:0 0 16px;font-size:16px;line-height:1.55;color:#5c5245}
.aud__player{display:block;width:100%;height:44px;margin-bottom:14px}
.aud__row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.aud__dl{display:inline-flex;align-items:center;gap:9px;
  padding:12px 22px;border-radius:8px;background:#2f2a24;color:#fff;
  font-size:15px;text-decoration:none;transition:background .15s}
.aud__dl:hover{background:#a8874f;color:#fff}
.aud__dlic{font-size:17px;line-height:1}
.aud__meta{font-size:14px;color:#8a7f6d}
.aud--hub{margin-top:8px}

/* врезка-приглашение на страницах без своей записи */
.audp{display:flex;align-items:center;gap:16px;margin:24px 0 30px;
  padding:16px 20px;border-radius:12px;text-decoration:none;color:inherit;
  background:#faf6ee;border:1px solid #e8dfcb;transition:border-color .15s}
.audp:hover{border-color:#a8874f}
.audp__ic{flex:none;width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#a8874f;color:#fff;font-size:19px}
.audp__txt{flex:1;min-width:0}
.audp__txt b{display:block;font-size:16px;margin-bottom:2px}
.audp__txt span{font-size:14px;color:#6b6154;line-height:1.4}
.audp__go{flex:none;font-size:14px;color:#a8874f;white-space:nowrap}

/* список записей на хабе */
.aul li{display:flex;align-items:center;gap:8px}
.aul li a:first-child{flex:1;display:flex;align-items:center;gap:10px;min-width:0}
.aul__play{flex:none;width:22px;height:22px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#eee4d0;color:#8a6c3c;font-size:11px}
.aul__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.aul__time{flex:none;font-size:13px;color:#9a9082;font-variant-numeric:tabular-nums}
.aul__dl{flex:none;padding:2px 7px;border-radius:5px;color:#a8874f;
  text-decoration:none;font-size:15px}
.aul__dl:hover{background:#eee4d0}

@media (max-width:640px){
  .aud{padding:20px 18px;margin:22px -4px 28px}
  .aud__title{font-size:20px}
  .aud__dl{width:100%;justify-content:center}
  .aud__row{gap:10px}
  .audp{gap:12px;padding:14px 15px}
  .audp__go{display:none}
}

/* --------------------------------------------- соседние образы и товарный блок */
.rel{margin:38px 0 6px;padding-top:26px;border-top:1px solid #e8e2d6}
.rel h2{margin:0 0 14px;font-size:22px}
.rel__list{list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 22px}
.rel__list li{margin:0}
.rel__list a{display:block;padding:6px 0;font-size:16px;line-height:1.35;
  border-bottom:1px solid transparent}
.rel__list a:hover{border-bottom-color:#a8874f}
.rel__all{margin:16px 0 0;font-size:15px}
.shop__cell{display:flex;flex-direction:column;min-width:0}
.shop__cell .shop__card{flex:1}
.shop__about{display:block;margin-top:6px;font-size:13px;line-height:1.3;
  color:#8a7f6d;text-decoration:none;text-align:center}
.shop__about:hover{color:#a8874f}
@media (max-width:640px){
  .rel__list{grid-template-columns:1fr;gap:2px}
  .shop__about{font-size:12px}
}
