/*
Theme Name: Аврора
Theme URI: https://avrorakursk.ru/
Author: Гостиничный комплекс «Аврора»
Description: Официальный сайт гостиничного комплекса «Аврора» в Курске.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: av
*/

:root {
    --ink: #241910;
    --muted: #6e6258;
    --paper: #f7f2eb;
    --paper-2: #efe4d6;
    --white: #fffaf6;
    --line: rgba(36, 25, 16, 0.12);
    --pine: #5c2e24;
    --pine-2: #3a1e18;
    --leaf: #8d3d2c;
    --gold: #d0893a;
    --gold-2: #f0c48a;
    --header: 76px;
    --wrap: 1160px;
    --serif: Literata, 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: 560;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin: 0 0 0.28em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.45em; }
h3 { font-size: 1.35rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.85em; }
.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; }

.topbar {
    background: var(--pine-2);
    color: rgba(246, 243, 234, 0.88);
    font-size: 13px;
}
.topbar-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 36px;
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto;
}
.topbar a { text-decoration: none; }
.topbar .grow { margin-left: auto; }
.langs { display: flex; gap: 10px; }
.langs a { text-decoration: none; opacity: 0.72; }
.langs a[aria-current="true"] { opacity: 1; font-weight: 700; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(251, 252, 250, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto;
    min-height: var(--header);
    display: flex;
    align-items: center;
    gap: 18px;
}
.logo {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: var(--pine);
    margin-right: auto;
}
.logo-img { display: block; height: 54px; width: auto; max-width: 190px; }
.logo-name { display: block; font-size: 1.45rem; line-height: 1; }
.logo-place { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.header-phone { text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    min-height: 40px;
    padding: 0 14px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 8px;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}
.nav-item.is-current > a { color: var(--leaf); }
.sub-toggle {
    display: none;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
}
.nav-sub {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    min-width: 240px;
    max-height: 70vh;
    overflow: auto;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(48, 24, 16, 0.12);
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub { display: grid; }
.nav-sub a {
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
}
.nav-sub a:hover { background: var(--paper-2); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
}
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-solid { background: var(--gold); color: #241b0c; }
.btn-solid:hover { background: var(--gold-2); }
.btn-ghost { border-color: currentColor; background: transparent; }

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 760px;
    color: #f6f3ea;
    background: #2a1612;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(22, 10, 8, 0.62) 0%, rgba(22, 10, 8, 0.18) 28%, rgba(22, 10, 8, 0.22) 58%, rgba(22, 10, 8, 0.78) 100%),
        linear-gradient(90deg, rgba(22, 10, 8, 0.5) 0%, rgba(22, 10, 8, 0.12) 46%, transparent 72%);
}
.hero-copy { padding: 148px 0 36px; }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 18px rgba(22, 10, 8, 0.35); }
.hero .lead { max-width: 62ch; color: rgba(246, 243, 234, 0.92); font-size: 1.08rem; text-shadow: 0 1px 10px rgba(22, 10, 8, 0.35); }
.eyebrow {
    margin: 0 0 0.6em;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.hero .eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(22, 10, 8, 0.72);
    color: #f7f2eb;
    border: 1px solid rgba(240, 196, 138, 0.55);
    letter-spacing: 0.16em;
}
.hero-facts {
    display: flex;
    gap: 22px;
    padding: 0;
    margin: 8px 0 22px;
    list-style: none;
}
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.6rem; }
.hero-facts span { color: rgba(246, 243, 234, 0.75); font-size: 14px; }
.tl-search {
    background: rgba(36, 18, 14, 0.88);
    color: #f7f2eb;
    border: 1px solid rgba(247, 242, 235, 0.16);
    border-radius: 20px;
    padding: 16px 18px 12px;
    max-width: 980px;
    box-shadow: 0 18px 40px rgba(22, 10, 8, 0.28);
    backdrop-filter: blur(10px);
}
.tl-container { min-height: 74px; }
.search-band {
    background: var(--paper);
    padding: 18px 0;
}
.search-band .tl-search { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }

.section { padding: 64px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--pine-2); color: #f6f3ea; }
.section-dark .eyebrow { color: var(--gold-2); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.lead { color: var(--muted); font-size: 1.05rem; }
.section-dark .lead, .hero .lead { color: inherit; }
.section-more { margin: 22px 0 0; }

.reason-grid, .card-grid, .offer-grid, .review-grid, .split-links {
    display: grid;
    gap: 16px;
}
.reason-grid, .card-grid { grid-template-columns: repeat(3, 1fr); }
.offer-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
.reason, .info-card, .offer, .review, .split-links a {
    background: var(--white);
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
}
.section-dark .split-links a { position: relative; overflow: hidden; min-height: 240px; color: #f6f3ea; justify-content: flex-end; background: #2a1612; }
.split-links img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-links a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 12, 8, 0.88), rgba(28, 12, 8, 0.12)); }
.split-links a > :not(img) { position: relative; z-index: 1; }
.reason h3, .info-card-name, .offer h3 { font-size: 1.35rem; }
.reason p, .info-card-text, .offer p, .review p { color: var(--muted); }
.split-links { grid-template-columns: repeat(4, 1fr); }
.split-links a { display: flex; flex-direction: column; gap: 8px; color: inherit; min-height: 180px; }
.split-links strong { font-family: var(--serif); font-size: 1.45rem; }

.media-fallback {
    display: flex;
    align-items: flex-end;
    min-height: 92px;
    margin: -18px -18px 14px;
    padding: 16px;
    border-radius: 18px 18px 0 0;
    background:
        linear-gradient(160deg, rgba(198, 161, 90, 0.35), transparent 55%),
        linear-gradient(180deg, #5c2e24, #2a1612);
    color: #f6f3ea;
    font-family: var(--serif);
    font-size: 1.7rem;
}
.info-card { display: flex; flex-direction: column; overflow: hidden; }
.info-card-name { display: block; margin-bottom: 6px; }
.info-card-text { display: block; }
.card-photo {
    display: block;
    margin: -18px -18px 14px;
    height: 210px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-wrap { padding-top: 28px; }
.gallery-page h2 { margin-top: 36px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 28px; }
.gallery-item {
    padding: 0;
    border: 0;
    background: #4a2a22;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}
.gallery-item:first-child:nth-last-child(n + 3) { grid-column: span 2; grid-row: span 2; aspect-ratio: 16 / 10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.news-list { display: grid; gap: 10px; }
.news-list a {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}
.news-list time { color: var(--muted); }
.news-list span { grid-column: 2; color: var(--muted); }

.meta, .ticks { padding: 0; margin: 0 0 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.meta li {
    background: var(--white);
    border-radius: 14px;
    padding: 10px 12px;
    min-width: 120px;
}
.meta span { display: block; color: var(--muted); font-size: 13px; }
.ticks { list-style: none; }
.ticks li { padding: 8px 0 8px 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.spec { margin-top: 22px; }
.spec ul { margin: 0; padding-left: 18px; }
.spec li { margin: 0 0 6px; }
.note {
    background: #f6e6cf;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 8px 0 18px;
}
.facts, .contact-grid, .footer-grid {
    display: grid;
    gap: 16px;
}
.facts { grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.facts div, .contact-grid > div {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
}
.facts strong { display: block; font-family: var(--serif); font-size: 1.8rem; }
.contact-grid { grid-template-columns: 1.3fr 1fr 1fr; }
.page-intro { padding: 42px 0 0; }
.page-intro-flat { padding-top: 0; }
.intro-actions { margin-top: 8px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: inherit; }
.faq details {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.review-by { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.review-by span { color: var(--muted); }

.site-footer { background: #2a1612; color: rgba(246, 243, 234, 0.86); padding: 42px 0 20px; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: 28px; }
.footer-grid a { display: block; text-decoration: none; margin: 0 0 6px; }
.footer-label { margin: 0 0 8px; color: var(--gold-2); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-base {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
    font-size: 14px;
}
.footer-base nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-base a { color: inherit; }

.cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    background: var(--white);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 12px 40px rgba(42, 22, 18, 0.2);
}
.cookie p { margin: 0; }
html.cookie-ok .cookie { display: none; }
.lightbox { border: 0; padding: 0; background: transparent; overflow: visible; max-width: calc(100vw - 24px); }
.lightbox::backdrop { background: rgba(22, 10, 8, 0.9); }
.lightbox-frame { position: relative; }
.lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1100px, 86vw);
    max-height: 82vh;
    margin: 0 auto;
    object-fit: contain;
    background: #2a1612;
}
.lightbox-nav, .lightbox-close {
    border: 0;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}
.lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
}
.lightbox-count {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 2;
    margin: 0;
    text-align: center;
    color: #f6f3ea;
    font-size: 14px;
}

@media (max-width: 1680px) {
    .reason-grid, .card-grid, .split-links { grid-template-columns: repeat(2, 1fr); }
    .header-phone { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 8px 16px 18px;
        max-height: calc(100vh - 120px);
        overflow: auto;
        flex-direction: column;
        align-items: stretch;
    }
    body.nav-open .nav { display: flex; }
    .nav-item { display: flex; flex-wrap: wrap; align-items: center; }
    .nav-item > a { flex: 1; }
    .sub-toggle { display: inline-flex; }
    .sub-toggle::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
    .nav-sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 100%; }
    .nav-item.is-open .nav-sub, .nav-item:hover .nav-sub { display: none; }
    .nav-item.is-open .nav-sub { display: grid; }
    .facts, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .reason-grid, .card-grid, .offer-grid, .review-grid, .split-links, .facts, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .news-list a { grid-template-columns: 1fr; }
    .news-list span { grid-column: 1; }
    .hero { min-height: 0; }
    .hero-copy { padding-top: 108px; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-item:first-child:nth-last-child(n + 3) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
    .hero-facts { flex-direction: column; gap: 10px; }
    .logo-img { height: 42px; width: auto; }
    .topbar span { display: none; }
    .section { padding: 42px 0; }
    .cookie { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
