/*
Theme Name: Гринвуд
Theme URI: https://hotelgreenwood.ru/
Author: Бизнес-отель «Гринвуд»
Description: Официальный сайт бизнес-отеля «Гринвуд» 4* в Красногорске.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: gw
*/

:root {
    --ink: #17241d;
    --muted: #5d6b63;
    --paper: #f4f7f3;
    --paper-2: #e6eee7;
    --white: #fbfcfa;
    --line: rgba(23, 36, 29, 0.12);
    --pine: #1c4a38;
    --pine-2: #143528;
    --leaf: #2f6b4f;
    --gold: #c6a15a;
    --gold-2: #e6d3a1;
    --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;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: var(--pine);
    margin-right: auto;
}
.logo-mark { width: 42px; height: 42px; }
.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(20, 40, 32, 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 {
    background:
        radial-gradient(ellipse at 85% 0%, rgba(198, 161, 90, 0.28), transparent 42%),
        linear-gradient(165deg, #143528 0%, #1f5a42 55%, #0e241c 100%);
    color: #f6f3ea;
    padding: 54px 0 36px;
}
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 62ch; color: rgba(246, 243, 234, 0.86); font-size: 1.08rem; }
.eyebrow {
    margin: 0 0 0.6em;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.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: var(--white);
    color: var(--ink);
    border-radius: 18px;
    padding: 12px;
    max-width: 980px;
}
.tl-container { min-height: 74px; }
.search-band {
    background: var(--pine);
    padding: 14px 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 { background: rgba(255, 255, 255, 0.05); }
.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, #1c4a38, #10281e);
    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; }

.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: #f4ead2;
    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: #10281e; 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(16, 40, 30, 0.18);
}
.cookie p { margin: 0; }
html.cookie-ok .cookie { display: none; }
.lightbox { border: 0; padding: 0; background: transparent; }
.lightbox::backdrop { background: rgba(8, 16, 12, 0.82); }
.lightbox-frame { position: relative; }
.lightbox img { max-height: 82vh; margin: 0 auto; }
.lightbox-close, .lightbox-nav {
    position: absolute;
    border: 0;
    background: var(--white);
    border-radius: 999px;
    min-width: 42px;
    min-height: 42px;
}

@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 { padding-top: 32px; }
    .hero-facts { flex-direction: column; gap: 10px; }
    .topbar span { display: none; }
    .section { padding: 42px 0; }
    .cookie { flex-direction: column; align-items: stretch; }
}

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