/*
Theme Name: Альянс Отель Менеджмент
Author: Alliance Hotels
Description: Сайт управляющей компании «Альянс Отель Менеджмент».
Version: 1.0.0
Text Domain: ah
*/

:root {
  --navy: #1c354f;
  --navy-2: #14283c;
  --wine: #ac063c;
  --wine-2: #8d0532;
  --ink: #1d2430;
  --muted: #5c6774;
  --line: #e4e8ee;
  --paper: #f6f4f1;
  --white: #fff;
  --shadow: 0 18px 50px rgba(20, 40, 60, .18);
  --serif: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--navy); color: #fff; padding: 8px 12px;
}
.skip:focus { top: 8px; }

.site-header { background: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; }
.header-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; min-height: 84px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 64px; width: auto; }
.header-search { display: flex; border: 1px solid #d5dbe3; border-radius: 8px; overflow: hidden; background: #fff; }
.header-search input { border: 0; padding: 10px 12px; width: 100%; outline: none; }
.header-search button { border: 0; background: transparent; width: 42px; cursor: pointer; color: var(--navy); }
.header-contacts { text-align: right; }
.header-phone { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 20px; }
.header-mail { display: block; color: var(--wine); font-size: 14px; }
.nav-toggle { display: none; border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 8px; padding: 8px 12px; }

.site-nav { background: var(--navy); color: #fff; }
.nav-row { display: flex; gap: 8px; }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 16px;
  color: #fff; text-decoration: none; font-weight: 600;
}
.nav-item.is-current > a, .nav-item > a:hover { color: #ffd0de; }
.sub-toggle { display: none; }
.nav-sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow); padding: 8px 0; z-index: 5;
}
.nav-sub a { display: block; padding: 8px 16px; color: var(--navy); text-decoration: none; }
.nav-sub a:hover { background: var(--paper); }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }

.hero { position: relative; min-height: 640px; color: #fff; background: var(--navy-2); overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background: #1c354f center/cover no-repeat; opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: flex-end;
}
.hero-slide.is-on { opacity: 1; }
.hero-slide p {
  margin: 0 0 28px 6vw; max-width: 460px; font-size: 22px; font-weight: 650;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,24,38,.55), rgba(12,24,38,.15) 55%, rgba(12,24,38,.35)); }
.hero-layout {
  position: relative; z-index: 1; min-height: 640px;
  display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: center;
}
.hero-copy h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
.lead { font-size: 18px; max-width: 560px; }
.hero-nav { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: flex; gap: 8px; }
.hero-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer;
}

.book-card {
  background: var(--navy); color: #fff; border-radius: 8px; padding: 22px 20px 18px; box-shadow: var(--shadow);
}
.book-card-title, .book-label { margin: 0 0 12px; font-weight: 700; }
#tl-search-form, #tl-booking-form { min-height: 80px; }
.book-card a { color: #fff; }

.section { padding: 64px 0; }
.section-map { background: var(--paper); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { padding: 12px 0 12px 16px; border-left: 3px solid var(--wine); margin-bottom: 10px; background: #fff; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.text-link { font-weight: 700; text-decoration: none; }
.map { height: 460px; background: #d5dde6; border-radius: 8px; }
.map-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; }
.map-list a { color: var(--navy); font-weight: 650; text-decoration: none; }

.page-head { background: var(--navy); color: #fff; padding: 28px 0 22px; }
.page-head h1 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 40px); }
.crumbs { font-size: 14px; color: #c9d4e0; }
.crumbs a { color: #fff; }
.crumbs span { margin: 0 6px; }

.hotel-list { display: grid; gap: 22px; padding: 36px 0 64px; }
.hotel { display: grid; grid-template-columns: 280px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hotel-media { min-height: 200px; background: var(--navy); }
.hotel-media img { width: 100%; height: 100%; object-fit: cover; }
.hotel-fallback { display: grid; place-items: center; height: 100%; color: #fff; padding: 16px; text-align: center; }
.hotel-body { padding: 18px 22px 20px; }
.hotel-body h2 { margin: 0 0 6px; font-size: 24px; }
.hotel-rooms { color: var(--wine); font-weight: 700; margin: 0 0 8px; }
.hotel-body ul { margin: 8px 0; padding-left: 18px; }
.hotel-address { color: var(--muted); }
.hotel-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hotel-links a { color: var(--navy); font-weight: 650; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wine); color: #fff; text-decoration: none; border: 0; border-radius: 6px;
  padding: 12px 18px; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--wine-2); }

.news-grid, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card, .service-card {
  display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; text-decoration: none; color: inherit; background: #fff; min-height: 180px;
}
.news-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; }
.news-card h3, .service-card h2 { margin: 0; font-size: 20px; color: var(--navy); }
.news-date { color: var(--wine); font-size: 14px; font-weight: 700; margin: 0; }
.more { margin-top: auto; color: var(--wine); font-weight: 700; }
.service-grid, .news-grid { padding-bottom: 48px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 48px; }
.pager a { min-width: 36px; text-align: center; padding: 6px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); border-radius: 6px; }
.pager a[aria-current="page"] { background: var(--navy); color: #fff; }

.prose { padding-bottom: 28px; }
.prose h2 { margin-top: 1.6em; color: var(--navy); }
.narrow { width: min(820px, calc(100% - 32px)); }
.article-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; margin: 8px 0 16px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 20px; }
.person { border-top: 3px solid var(--wine); background: var(--paper); padding: 16px 18px; }
.person h3 { margin: 0 0 4px; }
.role { font-weight: 700; color: var(--navy); }
.legal-block { white-space: pre-line; background: var(--paper); padding: 16px 18px; }

.ask { background: var(--paper); padding: 48px 0; }
.ask-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 28px; }
.ask-form, .search-line { display: grid; gap: 12px; }
.ask-form label, .search-line { font-weight: 650; }
.ask-form input, .ask-form textarea, .search-line input, #tl-hotel-select {
  width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 6px; background: #fff;
}
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; }
.form-ok { background: #e7f6ec; padding: 12px 14px; border-radius: 8px; }
.search-line { grid-template-columns: 1fr auto; align-items: end; margin: 20px 0 28px; }
.office { background: var(--paper); padding: 18px 20px; border-radius: 10px; }
.booking-wrap { padding: 28px 0 64px; }

.site-footer { background: var(--navy-2); color: #d5deea; padding: 36px 0 18px; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-row nav { display: grid; gap: 6px; }
.footer-brand { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 14px; font-size: 14px; }

.cookie[hidden], .to-top[hidden] { display: none !important; }
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--navy); color: #fff; padding: 14px 16px; border-radius: 10px;
  width: min(720px, calc(100% - 32px));
}
.cookie a { color: #fff; }
.cookie button { border: 0; background: var(--wine); color: #fff; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.to-top {
  position: fixed; right: 16px; bottom: 16px; border: 0; background: var(--navy); color: #fff;
  border-radius: 50%; width: 44px; height: 44px; cursor: pointer;
}

@media (max-width: 900px) {
  .header-row { grid-template-columns: 1fr auto; }
  .header-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .nav-row { flex-direction: column; padding: 8px 0 16px; }
  .nav-sub { position: static; display: none; box-shadow: none; background: transparent; min-width: 0; }
  .nav-item.is-open .nav-sub { display: block; }
  .nav-sub a { color: #fff; }
  .sub-toggle { display: inline-flex; margin-left: 8px; border: 0; background: transparent; color: #fff; }
  .hero, .hero-layout { min-height: 0; }
  .hero { padding-top: 280px; }
  .hero-layout { grid-template-columns: 1fr; padding: 24px 0 32px; }
  .split, .ask-grid, .hotel, .team, .news-grid, .service-grid, .footer-row, .footer-bottom { grid-template-columns: 1fr; display: grid; }
  .footer-row, .footer-bottom { display: grid; }
  .map { height: 320px; }
}
