/*
Theme Name: Демидов Плаза
Theme URI: https://demidovplaza.ru/
Author: Отель «Демидов Плаза»
Description: Официальный сайт отеля «Демидов Плаза» 4* в Нижнем Тагиле.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dp
*/

:root {
    --indigo: #1a237e;
    --indigo-2: #12185f;
    --ink: #1c1f33;
    --muted: #5c6178;
    --line: #e4e6f0;
    --paper: #f6f7fb;
    --white: #fff;
    --wrap: 1144px;
    --serif: "Cormorant Infant", Georgia, serif;
    --sans: Montserrat, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 .4em; }
p { margin: 0 0 .9em; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--white);
    padding: 8px 12px;
    z-index: 20;
}
.skip:focus { top: 12px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.logo { text-decoration: none; flex: 0 0 auto; }
.logo img { height: 64px; width: auto; }
.logo span {
    font-family: var(--serif);
    font-size: 1.7rem;
    color: var(--indigo);
}
.head-meta, .head-phone, .head-visa { text-decoration: none; font-size: 14px; font-weight: 500; }
.head-phone { color: var(--indigo); font-weight: 700; white-space: nowrap; }
.head-visa { color: var(--indigo); }
.reputation { min-width: 120px; min-height: 28px; }
.langs { margin-left: auto; display: flex; gap: 8px; }
.langs a { text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 700; color: var(--muted); }
.langs a[aria-current="true"] { color: var(--indigo); }
.nav-toggle {
    display: none;
    border: 0;
    background: var(--indigo);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
}

.main-nav { background: var(--indigo); color: var(--white); }
.nav-row { display: flex; flex-wrap: wrap; gap: 4px 18px; min-height: 52px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > span {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
}
.nav-item.is-current > a { box-shadow: inset 0 -3px 0 #fff; }
.nav-sub {
    display: none;
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(18, 24, 95, .16);
    padding: 8px 0;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub, .nav-item.is-open .nav-sub { display: block; }
.nav-sub a { display: block; padding: 8px 16px; text-decoration: none; font-size: 14px; }
.nav-sub a:hover { background: var(--paper); color: var(--indigo); }

.hero { position: relative; min-height: 560px; background: var(--indigo-2); color: var(--white); overflow: hidden; }
.hero-slides, .hero-slides img, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 40, .25), rgba(10, 14, 40, .45)); }
.hero-copy { position: relative; z-index: 1; min-height: 560px; display: flex; align-items: flex-end; padding: 0 0 130px; }
.ph { background: linear-gradient(135deg, #1a237e, #3949ab); }

.booking-band { background: var(--paper); padding: 22px 0 8px; margin-top: -72px; position: relative; z-index: 2; }
.advantages-title { font-weight: 700; color: var(--indigo); margin-bottom: 8px; }
.advantages ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0 0 16px; padding: 0; }
.advantages li { background: var(--white); border-top: 3px solid var(--indigo); padding: 12px; font-size: 13px; line-height: 1.4; }
.search-form__container, .tl-container { min-height: 92px; background: rgba(26, 35, 126, .94); }
.inner-search { background: var(--paper); padding: 16px 0; }

.home-cards { padding: 28px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { text-decoration: none; background: var(--paper); min-height: 220px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: var(--white); }
.card-img, .card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-title, .card-caption { position: relative; z-index: 1; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.card-title { font-family: var(--serif); font-size: 2rem; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(10,14,40,.72)); }

.about { padding: 36px 0 64px; }
.about-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 36px; }
.caption { color: var(--indigo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.badges img { height: 72px; width: auto; }
.about-side { display: flex; flex-direction: column; gap: 10px; }
.side-link, .btn, .text-link { font-weight: 700; }
.side-link, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    background: var(--indigo);
    color: var(--white);
    text-decoration: none;
}
.side-link:hover, .btn:hover { background: var(--indigo-2); }
.text-link { color: var(--indigo); }

.page-head { padding: 42px 0 10px; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.lead { color: var(--muted); font-size: 1.05rem; }
.section { padding: 10px 0 64px; }
.prose { max-width: 820px; }
.prose ul, .news-card ul { padding-left: 1.2em; }
.room-list, .hall-list, .news-list, .cards-stack { display: grid; gap: 22px; }
.room, .hall, .info-card, .news-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.hall, .info-card, .news-card { grid-template-columns: 1fr; }
.room-img { width: 100%; height: 200px; object-fit: cover; }
.price { color: var(--indigo); font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0 0 8px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service { background: var(--paper); padding: 18px; font-weight: 600; }
.menu-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.menu-list a { color: var(--indigo); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding-top: 6px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-lines a { color: var(--indigo); text-decoration: none; font-weight: 600; }
.map { width: 100%; min-height: 460px; border: 0; }
.news-card h2 a { text-decoration: none; }
.news-card h2 a:hover { color: var(--indigo); }

.site-footer { background: var(--indigo-2); color: rgba(255,255,255,.88); padding: 28px 0; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.site-footer a { text-decoration: none; }
.footer-links, .social { display: flex; flex-direction: column; gap: 6px; }
.cookie {
    position: fixed;
    z-index: 30;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(18, 24, 95, .16);
    padding: 14px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.cookie p { margin: 0; font-size: 14px; }
.cookie a { color: var(--indigo); }
.cookie button { border: 0; background: var(--indigo); color: var(--white); padding: 10px 16px; cursor: pointer; white-space: nowrap; }
html.cookie-ok .cookie { display: none; }

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .header-row { flex-wrap: wrap; padding: 12px 0; }
    .head-meta, .head-visa, .reputation { display: none; }
    .main-nav { display: none; }
    .main-nav.is-open { display: block; }
    .nav-row { flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
    .nav-sub { position: static; box-shadow: none; background: transparent; color: var(--white); display: none; padding: 0 0 8px 12px; }
    .nav-item.is-open .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
    .nav-sub a:hover { background: transparent; color: var(--white); }
    .advantages ul, .cards, .service-grid, .gallery, .about-grid, .contact-grid, .room { grid-template-columns: 1fr; }
    .menu-list { grid-template-columns: 1fr; }
    .hero, .hero-copy { min-height: 420px; }
    .hero-copy { padding-bottom: 96px; }
}
