/*
Theme Name: Югра
Theme URI: https://ugra-hotel.ru/
Author: Отель Югра
Description: Официальный сайт отеля «Югра» в Ханты-Мансийске.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ugra
*/

:root {
    --ink: #1c1915;
    --muted: #5e564c;
    --paper: #f4efe6;
    --paper-2: #e8e0d2;
    --white: #fffcf7;
    --line: rgba(28, 25, 21, 0.12);
    --sage: #1d2e28;
    --sage-2: #2c433b;
    --copper: #9a5b3c;
    --copper-2: #c4896c;
    --cream: #f6f1e8;
    --header: 76px;
    --wrap: 1160px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, .logo-name {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); margin: 0 0 0.3em; }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); margin: 0 0 0.4em; }
h3 { font-size: 1.55rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.9em; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, 100%); }
.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--white);
    padding: 8px 12px;
    z-index: 80;
}
.skip:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    color: var(--cream);
    background: var(--sage);
}
.header-inner, .header-tools, .nav, .logo {
    display: flex;
    align-items: center;
}
.header-inner {
    height: 100%;
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto;
    gap: 24px;
}
.logo { text-decoration: none; margin-right: auto; min-width: 0; }
.logo-img { display: block; height: 40px; width: auto; }
.nav { gap: 18px; }
.nav a { text-decoration: none; font-size: 15px; }
.nav a[aria-current="page"] { color: var(--copper-2); }
.header-tools { gap: 14px; }
.lang {
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    border-bottom: 1px solid rgba(246, 241, 232, 0.45);
}
.header-phone { text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav-toggle {
    display: none;
    border: 1px solid rgba(246, 241, 232, 0.35);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 8px 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.btn-solid { background: var(--copper); color: #fff; }
.btn-solid:hover { background: #81492f; }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-small { min-height: 38px; padding: 0 14px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--copper-2);
    outline-offset: 3px;
}

.is-home .site-header {
    position: absolute;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(16, 22, 19, 0.72), rgba(16, 22, 19, 0));
}
.is-home .site-header.is-stuck {
    position: fixed;
    background: rgba(29, 46, 40, 0.94);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: var(--cream);
    overflow: visible;
}
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(14, 18, 16, 0.78) 0%, rgba(14, 18, 16, 0.18) 48%, rgba(14, 18, 16, 0.28) 100%);
}
.hero-copy {
    position: relative;
    z-index: 2;
    padding: 120px 0 42px;
}
.hero h1 { max-width: 11ch; }
.lead { font-size: 1.08rem; max-width: 42rem; color: inherit; }
.hero .lead { color: rgba(246, 241, 232, 0.88); }
.eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--copper-2);
}
.section .eyebrow { color: var(--copper); }
.page-hero .eyebrow, .section-dark .eyebrow { color: var(--copper-2); }
.hero .eyebrow {
    color: var(--cream);
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 22, 19, 0.62);
}
.page-hero a { color: inherit; }

.section { padding: 84px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--sage); color: var(--cream); }
.section-dark .prose p { color: rgba(246, 241, 232, 0.86); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-more { margin: 28px 0 0; }
.prose p:last-child { margin-bottom: 0; }

.room-grid, .adv, .offer-grid, .service-links, .more-grid, .points, .facts, .footer-grid, .contact-grid, .blocks {
    display: grid;
    gap: 18px;
}
.room-grid { grid-template-columns: repeat(5, 1fr); }
.room-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    min-height: 100%;
    color: var(--ink);
}
.room-card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.room-card-empty {
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: var(--sage);
    color: var(--cream);
    font-size: 14px;
}
.room-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.room-card:hover img { transform: scale(1.04); }
.room-card-body { padding: 14px 14px 16px; display: grid; gap: 6px; }
.room-card-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.room-card-meta { color: var(--muted); font-size: 13px; }

.split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.split-media { margin: 0; border-radius: 22px; overflow: hidden; min-height: 320px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.hours { display: grid; gap: 8px; margin: 18px 0 22px; }
.hours div, .room-facts li, .contact-card p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.section-dark .hours div { border-color: rgba(246, 241, 232, 0.16); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }

.offer-grid { grid-template-columns: 1fr 1fr; }
.offer, .book-card, .contact-card, .hall {
    background: var(--white);
    border-radius: 22px;
    padding: 28px;
}
.offer h3, .offer h2 { margin-top: 8px; }
.adv { grid-template-columns: repeat(3, 1fr); }
.adv article {
    padding: 8px 8px 8px 0;
    border-top: 1px solid rgba(246, 241, 232, 0.2);
}
.section-dark .adv p { color: rgba(246, 241, 232, 0.78); }
.service-links { grid-template-columns: 1fr 1fr; }
.service-links a, .blocks article, .more-grid article {
    display: block;
    padding: 22px;
    border-radius: 18px;
    background: var(--white);
    text-decoration: none;
}
.service-links a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.service-links span, .room-card-meta, .footer-label, .book-card span, .contact-card span { color: var(--muted); }
.blocks { grid-template-columns: 1fr 1fr; }
.blocks article.has-photo { grid-column: 1 / -1; }
.more-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
.facts { grid-template-columns: repeat(6, 1fr); text-align: center; }
.facts strong { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }
.facts span { color: var(--muted); font-size: 14px; }

.page-intro { padding: 54px 0 0; }
.page-hero {
    position: relative;
    min-height: 460px;
    display: grid;
    align-items: end;
    color: var(--cream);
    overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 22, 19, 0.78), rgba(16, 22, 19, 0.12));
}
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 42px; }

.room-top { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: end; }
.book-card p { display: flex; justify-content: space-between; }
.book-card-note { color: var(--muted); font-size: 14px; }
.room-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; margin: 22px 0; }
.room-facts li { display: grid; }
.points { grid-template-columns: repeat(3, 1fr); margin: 22px 0 8px; }
.points article { background: var(--white); border-radius: 18px; padding: 18px; }
.chips, .rules { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li, .rules li {
    background: var(--white);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
}
.rules { display: grid; }
.rules li { border-radius: 12px; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin: 18px 0 28px; }
.gallery-item { padding: 0; border: 0; background: var(--paper-2); border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery-item:first-child { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.note { color: var(--muted); font-size: 14px; }
.hall { margin-bottom: 14px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.trio article { background: var(--white); border-radius: 18px; padding: 20px; }
.sheet { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 18px; overflow: hidden; }
.sheet th, .sheet td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th { width: 32%; color: var(--muted); font-weight: 550; }
.contact-grid { grid-template-columns: 0.8fr 1.2fr; align-items: stretch; }
.contact-card { display: grid; align-content: center; gap: 14px; }
.contact-card p { display: grid; gap: 4px; margin: 0; }
.map-frame { width: 100%; min-height: 380px; border: 0; border-radius: 22px; background: var(--paper-2); }
.booking-page { padding: 36px 0 64px; }
.booking-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.search-band { padding: 22px 0 6px; background: var(--paper); }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--white); border-radius: 14px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { display: block; height: 48px; width: auto; }
.site-footer { background: #141c19; color: rgba(246, 241, 232, 0.82); padding: 48px 0 22px; }
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; margin-bottom: 28px; }
.footer-grid a, .footer-base a { display: block; color: inherit; text-decoration: none; margin: 0 0 6px; }
.footer-label { margin: 0 0 8px; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.footer-base {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(246, 241, 232, 0.12);
    padding-top: 16px;
    font-size: 14px;
}
.footer-base nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-base a { margin: 0; }
.is-booking .site-footer { padding-top: 22px; }

.cookie {
    position: fixed;
    z-index: 70;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 24px));
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--sage);
    color: var(--cream);
    border-radius: 16px;
    padding: 14px 16px;
}
.cookie p { margin: 0; font-size: 14px; }
.cookie a { color: var(--copper-2); }
.cookie button {
    border: 0;
    background: var(--copper);
    color: white;
    border-radius: 999px;
    padding: 10px 14px;
    white-space: nowrap;
}
.cookie-ok .cookie { display: none; }

.lightbox { border: 0; padding: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 12, 11, 0.84); }
.lightbox-frame { position: relative; }
.lightbox img { display: block; max-width: min(1100px, 92vw); max-height: 86vh; object-fit: contain; }
.lightbox-nav, .lightbox-close {
    border: 0;
    border-radius: 50%;
    background: rgba(246, 241, 232, 0.94);
    color: var(--ink);
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 30px;
    line-height: 1;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-close {
    position: absolute;
    right: 12px;
    top: 12px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
}

#block-search, #block-search * { box-sizing: border-box; }
#block-search {
    background: rgba(50, 50, 50, 0.79);
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    max-width: 850px;
    margin: 22px auto 0;
}
#block-search .tl-container { max-width: 850px; margin: 0 auto; padding: 16px 22px; }
#block-search-mobile, #block-search-mobile * { box-sizing: border-box; }
#block-search-mobile {
    background: #fcfcfc;
    color: var(--ink);
    border-radius: 24px;
    max-width: 850px;
    margin: 18px auto 0;
}
#block-search-mobile .tl-container { max-width: 850px; margin: 0 auto; padding: 8px 18px; }
#tl-booking-form { width: 100%; max-width: 1392px; margin: 12px auto 0; }
@media (max-width: 899px) { #block-search { display: none; } }
@media (min-width: 900px) { #block-search-mobile { display: none; } }

@media (max-width: 1100px) {
    .room-grid, .facts { grid-template-columns: repeat(3, 1fr); }
    .adv, .more-grid, .points, .trio { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .header-phone { display: none; }
    .header-tools { flex-shrink: 0; }
    .logo { min-width: 0; }
    .logo-img { height: 34px; }
    .nav {
        display: none;
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        background: var(--sage);
        padding: 12px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    body.nav-open .nav { display: flex; }
    .room-grid, .offer-grid, .service-links, .blocks, .split, .room-top, .contact-grid, .footer-grid, .facts, .gallery, .adv, .more-grid, .points, .trio {
        grid-template-columns: 1fr;
    }
    .gallery-item:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
    .footer-base { flex-direction: column; }
    .hero { min-height: auto; }
    .hero-copy { padding-top: 104px; }
    h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
    .section { padding: 56px 0; }
}
@media (max-width: 520px) {
    .header-inner { gap: 8px; width: min(var(--wrap), calc(100% - 16px)); }
    .logo-img { height: 28px; }
    .header-tools { gap: 8px; }
    .header-tools .btn-small { padding: 0 10px; font-size: 12px; min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .room-card img { transition: none; }
}
