/*
 * Правки по претензиям заказчика (видео 13.11.2026) и макету Figma
 * «НОВОГОДНИЙ ПОДАРОК / Новый объёмный вариант».
 * Подключается последним (header.php), переопределяет style.css.
 * Размеры шрифтов взяты из Figma: desktop 1162:872, mobile 1162:1275.
 */

/* ---------- Общее ---------- */

/* Белая полоса под гирляндой: у фона блока «О выставке» прозрачный верх */
.intro {
  background-color: #8b020a;
}

/* Гирлянда шире экрана, как в макете */
.garland-divider {
  overflow-x: clip;
  overflow-y: visible;
}

/* Страховка от горизонтальной прокрутки из-за широких декоративных элементов */
html,
body {
  overflow-x: clip;
}

.garland-divider img {
  left: -5%;
  width: 110%;
}

/* Гирлянда с подвешенными фото вместо ленты со стрелками */
.snapshot-garland {
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.snapshot-garland img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* Кнопки без стрелок */
.intro-actions .button span,
.review-cta .button span {
  display: none;
}

/* ---------- Десктоп ---------- */
@media (min-width: 1051px) {
  :root {
    --container: 1110px;
  }

  /* 1. Меню крупнее */
  .main-nav a {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
  }

  /* 2–3. «О выставке»: высота по пропорции фона 1440×766 — Дед Мороз не обрезается */
  .intro {
    min-height: calc(100vw * 766 / 1440);
    padding: calc(100vw * 95 / 1440) 0 calc(100vw * 50 / 1440);
    background-size: cover;
    background-position: center top;
  }

  .intro-copy {
    width: min(600px, 54%);
  }

  .intro h2 {
    font-family: 'Montserrat', 'Geologica', sans-serif;
    font-size: 48px;
    line-height: 1.22;
  }

  .intro-logo {
    max-width: 440px;
    margin-bottom: 14px;
  }

  .intro p:not(.eyebrow):not(.intro-free):not(.intro-gift) {
    font-size: 20px;
    line-height: 28px;
  }

  .intro-free {
    margin: 26px 0 14px;
    font-family: 'Geologica', sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 50px;
  }

  .intro-gift {
    font-family: 'Geologica', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    white-space: nowrap;
  }

  /* Тематики: подписи в одну строку, как в макете */
  .theme-card h3 br {
    display: none;
  }

  /* 4. Кнопки крупнее, без стрелок */
  .intro-actions .button {
    min-width: 0;
    min-height: 64px;
    padding: 0 58px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
  }

  /* Заголовки секций — как в макете */
  .section-heading h2,
  .festival-copy h2 {
    font-size: 48px;
    line-height: 1.12;
  }

  .eyebrow {
    font-size: 14px;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Тематики */
  .theme-card h3 {
    font-size: 16px;
    line-height: 1.15;
  }

  /* 5. Гирлянда с фото */
  .snapshot {
    padding-top: 0;
  }

  .snapshot-garland {
    margin-top: -20px;
  }

  .handwritten {
    margin-top: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.5;
  }

  .handwritten-bg {
    font-size: 28px;
  }

  /* 6–7. Фестиваль: заголовок в две строки на всю ширину, крупные тексты */
  .festival-copy {
    width: 100%;
  }

  .festival-copy h2 {
    position: relative;
    z-index: 2;
    max-width: none;
    margin-bottom: 28px;
  }


  .festival-copy > *:not(h2) {
    position: relative;
    z-index: 2;
  }

  /* Дед Мороз — справа, как в макете (картинка 888px от x≈640 при 1440) */
  .festival-santa {
    z-index: 1;
    left: calc(50% + 10px);
    right: auto;
    top: 120px;
    width: 600px;
    height: auto;
  }

  .festival-santa img {
    width: 100%;
    height: auto;
  }

  .festival-big {
    max-width: 720px;
    font-family: 'Geologica', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 37px;
  }

  .festival-big strong {
    font-size: inherit;
    font-weight: 400;
  }

  .festival-big img {
    width: 190px;
    height: auto;
  }

  .festival-big small {
    display: block;
    margin-top: 14px;
    font-size: 30px;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .festival-extra {
    max-width: 760px;
  }

  .festival-extra p {
    font-family: 'Geologica', sans-serif;
    font-size: 32px;
    line-height: 43px;
  }

  .festival-extra p b {
    font-weight: 400;
  }

  .festival-extra img {
    width: 92px;
    height: auto;
  }

  /* Фото фестиваля сеткой: 3 сверху, 2 снизу (широкая + узкая) */
  .festival-gallery {
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    overflow: visible;
    width: var(--container);
    margin-left: auto;
    margin-right: auto;
  }

  .festival-gallery img {
    width: 100%;
    min-width: 0;
    height: 228px;
    object-fit: cover;
    border-radius: 10px;
  }

  .festival-gallery img:nth-child(-n+3) {
    grid-column: span 4;
  }

  .festival-gallery img:nth-child(4) {
    grid-column: span 7;
    height: 444px;
  }

  .festival-gallery img:nth-child(5) {
    grid-column: span 5;
    height: 444px;
  }

  .festival-controls {
    display: none !important;
  }

  .festival-partner {
    margin-left: calc((100% - var(--container)) / 2);
  }

  .festival-partner p {
    font-family: 'Geologica', sans-serif;
    font-size: 20px;
    line-height: 1.6;
  }

  .festival-partner img {
    width: 320px;
    height: auto;
    max-height: none;
  }

  .festival-signoff {
    width: var(--container);
    margin: 30px auto 0;
    padding: 8px 20px;
    background: #94000B;
    border-radius: 4px;
    font-size: 28px;
    line-height: 44px;
    font-style: italic;
    font-weight: 700;
  }

  /* 9. Отзывы крупнее */
  .review-grid blockquote p {
    font-size: 16px;
    line-height: 1.5;
  }

  .review-cta h2 {
    font-size: 43px;
    line-height: 1.15;
  }

  .review-cta .button {
    min-height: 52px;
    padding: 0 48px;
    font-size: 16px;
    font-weight: 600;
  }

  /* 10. Галерея */
  .gallery-more {
    min-height: 52px;
    padding: 0 48px;
    font-family: 'Geologica', sans-serif;
    font-size: 20px;
    font-weight: 400;
  }

  /* Новости */
  .news-card h3 {
    font-size: 18px;
    line-height: 24px;
  }

  /* Контакты — по макету */
  .venue-card h3 {
    font-size: 40px;
    line-height: 46px;
  }

  .venue-card p:not(.eyebrow):not(.muted) {
    font-size: 23px;
    line-height: 34px;
  }

  .venue-card .muted {
    font-size: 16px;
    line-height: 22px;
  }

  .date-big {
    font-size: 48px;
    line-height: 1.2;
  }

  .date-month {
    font-size: 31px;
  }

  .time-row span {
    font-size: 16px;
  }

  .time-row b {
    font-size: 29px;
  }

  .free-label {
    font-size: 21px;
  }

  .contact-bar a {
    font-size: 28px;
  }
}

/* ---------- Планшет ---------- */
@media (min-width: 761px) and (max-width: 1050px) {
  .main-nav a {
    font-size: 13px;
    font-weight: 600;
  }

  .intro {
    background-size: cover;
    background-position: 75% top;
  }
}

/* ---------- Телефон (макет 320px) ---------- */
@media (max-width: 760px) {
  /* Баннер из макета: текст уже на картинке */
  .mobile-hero-copy {
    display: none !important;
  }

  .hero-banner {
    height: auto !important;
  }

  .hero-banner picture {
    position: static;
  }

  .hero-banner picture img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Общая типографика как в макете */
  .eyebrow {
    font-size: 12px;
    letter-spacing: .02em;
  }

  .section-heading h2,
  .festival-copy h2,
  .intro h2,
  .review-cta h2 {
    font-size: 24px;
    line-height: 1.17;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.35;
  }

  /* «О выставке»: фон с семьёй и Дедом Морозом внизу, текст сверху */
  .intro {
    min-height: calc(100vw * 874 / 320);
    padding: 52px 0 24px;
    background-size: 100% auto;
    background-position: center bottom;
  }

  .intro-grid {
    min-height: calc(100vw * 874 / 320 - 76px);
    display: flex;
    flex-direction: column;
  }

  .intro p:not(.eyebrow):not(.intro-free):not(.intro-gift) {
    font-size: 14px;
    line-height: 20px;
  }

  .intro-logo {
    max-width: 240px;
  }

  .intro-free {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 25px;
  }

  .intro-gift {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
  }

  .intro-gift img {
    width: 12px;
    height: 12px;
  }

  .intro-photo {
    display: none !important;
  }

  .intro-actions {
    margin-top: auto;
    display: grid;
    gap: 10px;
  }

  .intro-actions .button {
    min-height: 51px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
  }

  /* Тематики */
  .theme-card h3 {
    font-size: 16px;
  }

  /* Гирлянда с фото */
  .snapshot {
    padding-top: 10px;
  }

  .snapshot-dots,
  .snapshot .strip-controls {
    display: none !important;
  }

  .handwritten,
  .handwritten-bg {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    line-height: 20px;
  }

  /* Фестиваль */
  .festival-big,
  .festival-extra p {
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
  }

  .festival-big strong,
  .festival-extra p b {
    font-size: inherit;
    font-weight: 400;
  }

  .festival-big small {
    font-size: 16px;
  }

  .festival-big img {
    width: 95px;
    height: auto;
  }

  .festival-extra img {
    width: 52px;
    height: auto;
  }

  .festival-santa img {
    max-height: 420px;
    width: auto;
    margin: 0 auto;
  }

  .festival-partner p {
    font-size: 14px;
    line-height: 18px;
  }

  .festival-signoff {
    font-size: 18px;
    line-height: 1.3;
  }

  /* Отзывы */
  .review-grid blockquote p {
    font-size: 14px;
    line-height: 20px;
  }

  /* Новости */
  .news-card h3 {
    font-size: 14px;
    line-height: 22px;
  }

  /* Контакты */
  .venue-card h3 {
    font-size: 26px;
    line-height: 30px;
  }

  .venue-card p:not(.eyebrow):not(.muted) {
    font-size: 16px;
    line-height: 24px;
  }

  .venue-card .muted {
    font-size: 12px;
    line-height: 19px;
  }

  .contact-bar a {
    font-size: 22px;
  }
}

/* Галерея: в свёрнутом виде на компьютере 12 фото (4 ряда), остальные — по «Смотреть ещё» */
@media (min-width: 761px) {
  .gallery-grid.is-collapsed .gallery-item:nth-child(n+13) {
    display: none;
  }
}

/* Отзывы — тёмный текст, как в макете; «Настоящие эмоции» — белым */
.review-grid blockquote p {
  color: #173c30;
}

.gallery .section-heading h2 em {
  color: #fff;
}

/* Мобильная гирлянда под баннером — крупнее, как в макете (763px при ширине 320) */
@media (max-width: 760px) {
  .garland-divider img {
    left: -64%;
    width: 238%;
  }
}

/* Мобильные новости: картинка сверху, как в макете */
@media (max-width: 760px) {
  .news-card {
    display: flex !important;
    flex-direction: column;
  }

  .news-card img {
    width: 100% !important;
    height: 170px !important;
    object-fit: cover;
  }

  .news-card-body {
    padding: 16px 16px 18px;
  }
}

/* ---------- Планшет 761–1050: текст не поверх лиц, меню в одну строку ---------- */
@media (min-width: 761px) and (max-width: 1050px) {
  .main-nav {
    gap: 14px !important;
  }

  .main-nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .intro {
    background:
      linear-gradient(90deg, rgba(139, 2, 10, .96) 0%, rgba(139, 2, 10, .9) 42%, rgba(139, 2, 10, 0) 68%),
      url('../img/rectangle-17116.png') right top / cover no-repeat,
      #8b020a;
  }

  .intro-copy {
    width: 56%;
  }

  .festival-santa {
    left: auto !important;
    right: -140px;
    width: 520px;
    opacity: .9;
  }

  .festival-santa img {
    width: 100%;
    height: auto;
  }

  .festival-copy {
    position: relative;
    z-index: 2;
    max-width: 62%;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .main-nav {
    gap: 10px !important;
  }

  .main-nav a {
    font-size: 11px;
  }

  .festival-copy {
    max-width: 70%;
  }

  .festival-santa {
    right: -200px;
    width: 460px;
    opacity: .55;
  }
}
