/**
 * Новая главная страница (templates/index2.php). Отдельный файл, НЕ в bundle-core.min.css —
 * стили нужны только здесь, пересобирать бандл не требуется. Подключается с ?v=1 из шаблона.
 *
 * Georgia в стеке заголовков — не украшение: пока грузится PT Serif Caption, заголовки рисует
 * запасной шрифт, и с одним общим serif подмена меняет высоту первого экрана (замером поймал
 * CLS 0.0418 на холодном прогоне). С Georgia метрики ближе, сдвиг не появляется.
 *
 * Высоту первого экрана намеренно задаёт столбец с фото (у него фиксированный aspect-ratio),
 * а не текст: если текст выше, подмена шрифта меняет число строк заголовка и двигает всю
 * страницу. Ради этого в диапазоне 1001–1200px заголовок мельче — не трогать не глядя.
 */
.ix { --brown:#4B1E00; --ink:#2b2016; --muted:#8a7157; --text:#6f5a44; --paper:#faf7f2; --sand:#efe6d8; --dark:#1c130b; --line:rgba(75,30,0,.14); width:100%; color:var(--ink); font-family:'Roboto',sans-serif; }
.ix *, .ix *::before, .ix *::after { box-sizing:border-box; }
.ix h1, .ix h2, .ix h3, .ix h4 { font-family:'PT Serif Caption',Georgia,'Times New Roman',serif; font-weight:400; color:var(--ink); text-align:left; margin:0; padding:0; width:auto; max-width:none; text-shadow:none; text-transform:none; }
.ix p, .ix li { margin:0; color:var(--text); text-align:left; }
.ix ul { margin:0; padding:0; list-style:none; }
.ix img { display:block; width:100%; height:100%; object-fit:cover; }
.ix > section { width:100%; max-width:none; margin:0; }
.ix-wrap { width:100%; max-width:1200px; margin:0 auto; padding:0 20px; }
.ix-kicker { font:700 11.5px/1 'Roboto',sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.ix-btn { display:inline-flex; align-items:center; justify-content:center; font:700 12.5px/1 'Roboto',sans-serif; letter-spacing:.08em; text-transform:uppercase; padding:15px 22px; border:1px solid var(--brown); text-decoration:none !important; white-space:nowrap; transition:background .2s,color .2s,border-color .2s; }
.ix-btn--solid { background:var(--brown); color:#fff !important; }
.ix-btn--solid:hover { background:#6B2C00; }
.ix-btn--line { background:transparent; color:var(--brown) !important; }
.ix-btn--line:hover { background:rgba(75,30,0,.08); }
.ix-todo { display:inline-block; font:700 10.5px/1.4 'Roboto',sans-serif; letter-spacing:.08em; text-transform:uppercase; color:#9a3b00; background:#fff1e0; border:1px dashed #d98a3a; padding:4px 7px; vertical-align:middle; }

/* ——— первый экран ——— */
.ix-hero { background:linear-gradient(180deg,#fff 0%,var(--paper) 100%); border-bottom:1px solid var(--line); padding:52px 0 46px; }
.ix-hero__inner { width:100%; max-width:1200px; margin:0 auto; padding:0 20px; display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.ix-hero h1 { font:700 11.5px/1 'Roboto',sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-family:'Roboto',sans-serif; }
.ix-hero__title { font-family:'PT Serif Caption',Georgia,'Times New Roman',serif; font-size:46px; line-height:1.1; color:var(--ink) !important; margin-top:16px !important; text-wrap:balance; }
.ix-hero__title em { font-style:italic; color:var(--brown); }
.ix-hero__lede { font-size:17.5px; line-height:1.55; margin-top:18px !important; }
.ix-hero__btns { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.ix-hero__meta { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:24px; font-size:13.5px; color:var(--muted); }
.ix-hero__meta b { font:400 17px/1 'PT Serif Caption',Georgia,'Times New Roman',serif; color:var(--brown); }
.ix-hero__meta a { color:var(--muted) !important; text-decoration:none !important; border-bottom:1px solid var(--line); }
.ix-hero__meta a:hover { color:var(--brown) !important; }
/* Золотое сечение, как на жанровых страницах, но рамка пошире (5/4): при 1/1 главный кадр
   выходил почти вертикальным, и object-fit:cover срезал у пары головы. */
.ix-stage { display:grid; grid-template-columns:61.8fr 38.2fr; grid-template-rows:61.8fr 38.2fr; gap:10px; aspect-ratio:5/4; }
.ix-stage figure { margin:0; overflow:hidden; background:var(--sand); }
.ix-stage figure:first-child { grid-row:1 / span 2; }
/* Точка фокуса под конкретные кадры: пара смещена вправо и вверх, портрет — лицо в верхней трети. */
.ix-stage figure:nth-child(1) img { object-position:64% 32%; }
.ix-stage figure:nth-child(2) img { object-position:50% 28%; }
.ix-stage figure:nth-child(3) img { object-position:50% 40%; }

/* ——— цифры + сводка ——— */
.ix-stats { background:var(--dark); }
.ix-stats .ix-wrap { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding-top:30px; padding-bottom:30px; }
.ix-stat b { display:block; font:400 30px/1 'PT Serif Caption',Georgia,'Times New Roman',serif; color:#fff; }
.ix-stat span { display:block; font-size:13px; line-height:1.45; color:rgba(255,255,255,.72); margin-top:8px; }
.ix-stat a { color:#fff !important; text-decoration:none !important; }
.ix-stat a:hover b { color:#e8cfa8; }
.ix-summary { background:#fff; border-bottom:1px solid var(--line); }
.ix-summary .ix-wrap { padding-top:30px; padding-bottom:30px; }
.ix-summary p { font-size:16.5px; line-height:1.65; max-width:900px; }

/* ——— общие блоки ——— */
.ix-block { padding:60px 0; }
.ix-block--paper { background:var(--paper); }
.ix-block--white { background:#fff; }
.ix-head { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:end; margin-bottom:32px; }
.ix-head h2 { font-size:36px; line-height:1.15; text-wrap:balance; margin-top:12px !important; }
.ix-head p { font-size:16px; line-height:1.6; }

/* ——— карточки жанров ——— */
.ix-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ix-card { position:relative; background:#fff; border:1px solid var(--line); display:flex; flex-direction:column; transition:border-color .2s; }
.ix-card:hover { border-color:var(--brown); }
.ix-block--white .ix-card { background:var(--paper); }
.ix-card__pic { aspect-ratio:4/3; overflow:hidden; background:var(--sand); }
.ix-card__pic img { transition:transform .6s ease; }
.ix-card:hover .ix-card__pic img { transform:scale(1.04); }
.ix-card__body { padding:22px; display:flex; flex-direction:column; flex:1; }
.ix-card h3 { font-size:23px; line-height:1.2; }
.ix-card__text { font-size:14.5px; line-height:1.55; margin-top:11px !important; }
.ix-card__link { color:var(--ink) !important; text-decoration:none !important; }
.ix-card__link::after { content:''; position:absolute; inset:0; z-index:1; }
.ix-card:hover .ix-card__link { color:var(--brown) !important; }
.ix-card__more { display:block; margin-top:auto; padding-top:18px; font:700 12px/1 'Roboto',sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--brown); }
.ix-card:hover .ix-card__more { text-decoration:underline; }

/* ——— одна общая ссылка на цены вместо цен в карточках ——— */
.ix-price-line { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; margin-top:20px; border:1px solid var(--line); background:#fff; padding:20px 22px; }
.ix-price-line p { font-size:16px; line-height:1.5; }

/* ——— что входит ——— */
.ix-incl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.ix-incl > div { background:#fff; padding:26px 22px; }
.ix-incl b { display:block; font:400 26px/1 'PT Serif Caption',Georgia,'Times New Roman',serif; color:var(--brown); }
.ix-incl span { display:block; font-size:14.5px; line-height:1.5; color:var(--text); margin-top:10px; }

/* ——— галерея ——— */
.ix-gal { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.ix-gal figure { margin:0; aspect-ratio:1/1; overflow:hidden; background:var(--sand); }
.ix-gal figure:nth-child(1), .ix-gal figure:nth-child(8) { grid-column:span 2; grid-row:span 2; }
.ix-gal img { transition:transform .6s ease; }
.ix-gal figure:hover img { transform:scale(1.05); }
.ix-gal-foot { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }

/* ——— обо мне ——— */
.ix-about { display:grid; grid-template-columns:5fr 7fr; gap:44px; align-items:start; }
.ix-about__pic { aspect-ratio:4/3; overflow:hidden; background:var(--sand); }
.ix-about h2 { font-size:34px; line-height:1.15; margin-top:12px !important; text-wrap:balance; }
.ix-about p + p { margin-top:14px !important; }
.ix-about__text p { font-size:16px; line-height:1.65; }
.ix-about__text p:first-of-type { font-size:18px; }

/* ——— отзывы ——— */
.ix-rev { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ix-rev article { background:#fff; border:1px solid var(--line); padding:24px 22px; display:flex; flex-direction:column; }
.ix-rev p { font-size:15px; line-height:1.6; }
.ix-rev cite { margin-top:auto; padding-top:16px; font-style:normal; font:700 12px/1 'Roboto',sans-serif; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.ix-rev-foot { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; margin-top:24px; }
.ix-google { display:inline-flex; align-items:baseline; gap:8px; text-decoration:none !important; color:var(--muted) !important; font-size:14px; }
.ix-google b { font:400 26px/1 'PT Serif Caption',Georgia,'Times New Roman',serif; color:var(--brown); }
.ix-google:hover { color:var(--brown) !important; }

/* ——— заготовки (ждут контента от владельца) ——— */
.ix-ph { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ix-ph > div { border:1px dashed #d98a3a; background:#fffaf4; padding:24px 22px; }
.ix-ph h3 { font-size:20px; margin-bottom:10px !important; }
.ix-ph p { font-size:14px; line-height:1.55; margin-top:10px !important; }
.ix-partners { display:flex; flex-wrap:wrap; align-items:center; gap:14px 28px; margin-top:22px; }
.ix-partners img { width:auto; height:auto; max-height:40px; object-fit:contain; }

/* ——— FAQ ——— */
.ix-faq { border-top:1px solid var(--line); }
.ix-faq details { border-bottom:1px solid var(--line); }
.ix-faq summary { list-style:none; cursor:pointer; padding:20px 44px 20px 0; position:relative; font:400 19px/1.35 'PT Serif Caption',Georgia,'Times New Roman',serif; color:var(--ink); }
.ix-faq summary::-webkit-details-marker { display:none; }
.ix-faq summary::after { content:''; position:absolute; right:10px; top:27px; width:10px; height:10px; border-right:2px solid var(--brown); border-bottom:2px solid var(--brown); transform:rotate(45deg); transition:transform .2s; }
.ix-faq details[open] summary::after { transform:rotate(-135deg); top:29px; }
.ix-faq details > p { font-size:15.5px; line-height:1.65; padding:0 44px 22px 0; }

/* ——— финальный призыв ——— */
.ix-cta { background:var(--dark); padding:64px 0; }
.ix-cta h2 { color:#fff; font-size:36px; line-height:1.15; text-wrap:balance; }
.ix-cta p { color:rgba(255,255,255,.75) !important; font-size:16.5px; line-height:1.6; margin-top:16px !important; max-width:620px; }
.ix-cta__btns { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.ix-cta .ix-btn--solid { background:#fff; color:var(--brown) !important; border-color:#fff; }
.ix-cta .ix-btn--solid:hover { background:#e8cfa8; border-color:#e8cfa8; }
.ix-cta .ix-btn--line { color:#fff !important; border-color:rgba(255,255,255,.55); }
.ix-cta .ix-btn--line:hover { background:rgba(255,255,255,.12); }

/* Высоту ряда первого экрана должен задавать столбец с фото (у него фиксированный aspect-ratio),
   а не текст: иначе подмена шрифта меняет число строк заголовка и весь низ страницы прыгает
   (поймано замером: один холодный прогон дал CLS 0.0418 на сдвиге .ix-stage / .ix-summary).
   Поэтому в диапазоне 1001–1200px заголовок мельче — текстовый столбец остаётся ниже фото. */
@media (min-width:1001px) and (max-width:1200px) {
  .ix-hero__title { font-size:37px; }
  .ix-hero__lede { font-size:16px; }
}
@media (max-width:1000px) {
  .ix-hero { padding:34px 0 30px; }
  .ix-hero__inner { grid-template-columns:1fr; gap:26px; }
  .ix-hero__title { font-size:31px; }
  .ix-hero__lede { font-size:16px; }
  .ix-stage { aspect-ratio:4/3; }
  .ix-stats .ix-wrap { grid-template-columns:repeat(2,1fr); gap:22px 20px; }
  .ix-block { padding:42px 0; }
  .ix-head { grid-template-columns:1fr; gap:12px; }
  .ix-head h2, .ix-about h2, .ix-cta h2 { font-size:27px; }
  .ix-cards, .ix-rev, .ix-ph { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ix-incl { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ix-about { grid-template-columns:1fr; gap:22px; }
  .ix-about__pic { aspect-ratio:16/10; }
  .ix-summary p { font-size:15.5px; }
  .ix-gal { grid-template-columns:repeat(3,1fr); gap:6px; }
  .ix-gal figure:nth-child(1), .ix-gal figure:nth-child(8) { grid-column:span 1; grid-row:span 1; }
}
@media (max-width:620px) {
  .ix-cards, .ix-rev, .ix-ph, .ix-incl { grid-template-columns:1fr; }
  .ix-hero__btns .ix-btn, .ix-cta__btns .ix-btn, .ix-price-line .ix-btn { flex:1 1 100%; }
  .ix-price-line { display:block; }
  .ix-price-line p { margin-bottom:14px !important; }
  .ix-hero__title { font-size:27px; }
  .ix-faq summary { font-size:17px; }
}

/* Звёзды в блоке отзывов: сама цифра рейтинга стоит только в первом экране,
   здесь — звёзды и число отзывов, чтобы не повторять «5.0» на странице дважды. */
.ix-stars { font-size:17px; line-height:1; letter-spacing:2px; color:#E7A427; }

/* Биография на главной полная (10 абзацев), поэтому на десктопе фото «едет» рядом с текстом,
   иначе левый столбец остаётся пустым на два экрана. На узких экранах блок и так стопкой. */
@media (min-width:1001px) { .ix-about__pic { position:sticky; top:90px; } }
