/*
Theme Name: Экскурсии по Тюмени
Theme URI: https://экскурсии-тюмень.рф/
Author: Виталий и команда проекта
Description: Редактируемая тема для экскурсий по Тюмени: каталог, расписание, остатки мест, заявки, FAQ и юридические страницы.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ekskursii-tyumen
*/

@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-cyrillic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-cyrillic-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-cyrillic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-cyrillic-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Prata"; src: url("assets/fonts/prata-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

.admin-bar .site-header { top: 32px; }
.wp-primary-menu { height: 100%; display: flex; align-items: center; gap: clamp(14px, 1.55vw, 24px); margin: 0; padding: 0; list-style: none; }
.wp-primary-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.wp-primary-menu > li > a { min-height: 46px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; white-space: nowrap; }
.wp-primary-menu .sub-menu { position: absolute; top: 100%; left: 50%; z-index: 80; min-width: 260px; margin: 0; padding: 14px 20px; list-style: none; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 55px rgba(18,29,20,.16); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .16s; }
.wp-primary-menu li:hover > .sub-menu, .wp-primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.wp-primary-menu .sub-menu a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: block; margin: 11px 0; color: #e0e5e1; font-size: 13px; }
.page-prose { max-width: 900px; }
.home-editor-content { padding-block: 80px; }
.home-editor-content .prose { max-width: 100%; }
.excursion-editor-content { margin-bottom: 30px; }
.brand-mark.has-custom-logo,
.footer-mark.has-custom-logo { overflow: hidden; background: #5f7a61; }
.brand-mark.has-custom-logo::before,
.brand-mark.has-custom-logo::after { display: none; }
.brand-mark.has-custom-logo img,
.footer-mark.has-custom-logo img { width: 100%; height: 100%; object-fit: cover; }

.excursion-gallery { margin: 64px 0 58px; }
.excursion-gallery-head { position: relative; padding: 25px 70px 24px 0; border-top: 1px solid var(--ink); }
.excursion-gallery-head .eyebrow { margin-bottom: 13px; }
.excursion-gallery-head h2 { max-width: 620px; margin: 0; font-size: clamp(34px, 4vw, 48px); }
.excursion-gallery-head > span { position: absolute; top: 30px; right: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.excursion-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.excursion-gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-soft); }
.excursion-gallery-item.is-featured { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.excursion-gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .35s ease, filter .35s ease; }
.excursion-gallery-item > span { position: absolute; right: 10px; bottom: 10px; padding: 8px 11px; border-radius: 2px; background: rgba(255,253,248,.92); color: var(--ink); font-size: 11px; font-weight: 800; opacity: 0; transform: translateY(5px); transition: .2s ease; }
.excursion-gallery-item:hover img { transform: scale(1.025); filter: saturate(1); }
.excursion-gallery-item:hover > span,
.excursion-gallery-item:focus-visible > span { opacity: 1; transform: translateY(0); }
.faq-answer > :last-child { margin-bottom: 0; }
.booking-page > .form-message { margin: 26px 0 0; }
.booking-error { background: #f3dfda; color: #8a3329; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-note .footer-socials { margin-top: 24px; }
.contact-note .footer-socials a { color: var(--ink); border-color: #9ca899; }
.navigation.pagination { margin-top: 42px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 6px 10px; border: 1px solid var(--line); }
.page-numbers.current { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.alignwide { width: min(1100px, 100%); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { height: auto; }
.special-catalog-grid .info-card { display: flex; min-width: 0; flex-direction: column; }
.special-catalog-grid .info-card-body { display: flex; flex: 1; flex-direction: column; }
.special-catalog-grid .info-card-body > p:not(.eyebrow) { flex: 1; }
.special-catalog-grid .info-card .button { margin-top: 20px; }
.info-card-placeholder { display: grid; aspect-ratio: 4 / 3; width: 100%; background: #e6ebe3; color: var(--green); place-items: center; }
.info-card-placeholder span { display: grid; width: 76px; height: 76px; border: 1px solid currentColor; border-radius: 50% 50% 50% 12px; font: 400 24px Prata, Georgia, serif; place-items: center; }
.site-footer .button-gold:hover,
.site-footer .button-gold:focus-visible { color: #14140f; }
.generic-page-content { padding-top: 72px; }
.generic-page-panel { width: 100%; padding: clamp(28px, 4vw, 54px); border: 1px solid var(--line); background: var(--white); }
.generic-page-panel > :first-child { margin-top: 0; }
.generic-page-panel > :last-child { margin-bottom: 0; }
.about-story { align-items: center; }
.about-story .about-photo { position: sticky; top: 155px; }
.about-story .about-photo img { width: 100%; height: min(690px, 70vh); object-fit: cover; object-position: center; }
.about-story .about-values { display: grid; gap: 12px; padding: 0; list-style: none; }
.about-story .about-values li { position: relative; padding: 13px 16px 13px 42px; border: 1px solid var(--line); background: rgba(255,253,248,.65); }
.about-story .about-values li::before { position: absolute; top: 13px; left: 16px; color: var(--green); content: "✓"; font-weight: 800; }
.about-cta { margin-top: 56px; padding: 34px; background: var(--green-soft); }
.about-cta h2 { margin-top: 0; }
.about-cta .button { margin-top: 10px; text-decoration: none; }
body.order-modal-open { overflow: hidden; }
.order-modal { position: fixed; z-index: 120; inset: 0; display: grid; padding: 24px; place-items: center; }
.order-modal-backdrop { position: absolute; inset: 0; background: rgba(8,18,11,.72); backdrop-filter: blur(5px); }
.order-dialog { position: relative; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(255,255,255,.35); background: var(--paper); box-shadow: 0 30px 90px rgba(8,18,11,.4); }
.order-dialog h2 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 52px); }
.order-product { margin-bottom: 28px; color: var(--green); font-weight: 800; }
.order-modal-close { position: absolute; top: 16px; right: 16px; display: grid; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; font-size: 28px; line-height: 1; place-items: center; }
.order-form .field span { font-weight: 800; }
.order-form .button { width: 100%; }
.order-form-error { margin: 16px 0; padding: 13px 15px; background: #f3dfda; color: #8a3329; }
.order-success { padding-block: 30px 12px; text-align: center; }
.order-success > span { display: grid; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; place-items: center; }
.order-success h3 { margin: 0 0 10px; font: 400 clamp(30px, 4vw, 42px) Prata, Georgia, serif; }
.order-success p { max-width: 430px; margin: 0 auto 24px; color: var(--muted); }

@media (max-width: 1040px) {
  .admin-bar .site-header { top: 32px; }
  .wp-primary-menu { height: auto; flex-direction: column; align-items: stretch; gap: 0; }
  .wp-primary-menu > li { height: auto; display: block; }
  .wp-primary-menu > li > a { width: 100%; min-height: 62px; justify-content: space-between; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .wp-primary-menu .sub-menu { position: static; width: auto; min-width: 0; margin: 0 0 12px; padding: 8px 16px 15px; border-radius: 14px; opacity: 1; visibility: visible; transform: none; }
}

@media screen and (max-width: 700px) {
  nav#main-menu { width: 100%; }
  .nav-dropdown.nav-dropdown-wide { margin-top: 10px !important; margin-bottom: 10px !important; }
  .detail-head h1 { margin-bottom: 20px; font-size: clamp(30px, 4.5vw, 66px); }
  .eyebrow { margin-bottom: 18px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
  .hero-copy h1 { margin-bottom: 15px !important; font-size: 35px; line-height: 1.08; }
  .excursion-gallery { margin-block: 50px; }
  .excursion-gallery-head { padding-right: 0; }
  .excursion-gallery-head > span { position: static; display: block; margin-top: 10px; }
  .excursion-gallery-grid { grid-template-columns: 1fr; }
  .excursion-gallery-item.is-featured { grid-column: auto; aspect-ratio: 4 / 3; }
  .excursion-gallery-item > span { opacity: 1; transform: none; }
  .about-story .about-photo { position: relative; top: auto; }
  .about-story .about-photo img { height: 420px; }
  .generic-page-panel { padding: 24px 20px; }
  .about-cta { margin-top: 42px; padding: 25px 20px; }
  .order-modal { align-items: end; padding: 0; }
  .order-dialog { width: 100%; max-height: 94vh; padding: 30px 18px 24px; border-radius: 18px 18px 0 0; }
  .order-dialog .form-grid { grid-template-columns: 1fr; }
  .order-modal-close { top: 12px; right: 12px; }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
