/* ololoAkJol — стили
   Фирменные цвета: #1B9ED8 (синий) + белый */

/* ===== Шрифт Atyp Display ===== */
@font-face {
  font-family: "Atyp Display";
  src: url("AtypDisplay/AtypDisplay-Light.woff2") format("woff2"),
       url("AtypDisplay/AtypDisplay-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atyp Display";
  src: url("AtypDisplay/AtypDisplay-Regular.woff2") format("woff2"),
       url("AtypDisplay/AtypDisplay-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atyp Display";
  src: url("AtypDisplay/AtypDisplay-Medium.woff2") format("woff2"),
       url("AtypDisplay/AtypDisplay-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atyp Display";
  src: url("AtypDisplay/AtypDisplay-Semibold.woff2") format("woff2"),
       url("AtypDisplay/AtypDisplay-Semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atyp Display";
  src: url("AtypDisplay/AtypDisplay-Bold.woff2") format("woff2"),
       url("AtypDisplay/AtypDisplay-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --blue: #1B9ED8;
  --blue-dark: #1786b8;
  --blue-light: #e8f6fc;
  --text: #1a2733;
  --muted: #5a6a78;
  --border: #e2eaf0;
  --bg: #ffffff;
  --bg-soft: #f6fafd;
  --shadow: 0 4px 18px rgba(27, 158, 216, 0.10);
  --radius: 14px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Atyp Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 18px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex; align-items: center; flex-shrink: 0;
}
.logo img {
  height: 36px; width: auto;
}

.nav {
  display: flex; gap: 4px; flex-wrap: nowrap; align-items: center;
}
.nav a {
  color: var(--text); font-weight: 500; font-size: 13px;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  transition: all .18s ease;
}
.nav a:hover { background: var(--blue-light); color: var(--blue); }

.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: 12px;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
  transition: all .18s ease;
}
.lang-switch button:hover { color: var(--blue); border-color: var(--blue); }
.lang-switch button.active {
  background: var(--blue); color: #fff; border-color: var(--blue);
}

.menu-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  font-size: 24px; color: var(--text); padding: 4px 8px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #2bb8e8 100%);
  color: #fff;
  padding: 64px 18px 56px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 10px; font-size: 44px; font-weight: 800; letter-spacing: -1px;
}
.hero p { margin: 0; font-size: 18px; opacity: .95; }

/* ===== Секции ===== */
section {
  max-width: 1180px; margin: 0 auto; padding: 56px 18px 24px;
}
section h2 {
  font-size: 30px; margin: 0 0 28px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--text);
  position: relative; padding-bottom: 12px;
}
section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; background: var(--blue); border-radius: 2px;
}

/* ===== Карточки ===== */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(27, 158, 216, 0.18); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ===== Check-in ===== */
.checkin-flex { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.checkin-flex .card { flex: 1 1 240px; text-align: center; display: flex; align-items: center; justify-content: center; }
.checkin-flex .card strong { display: block; font-size: 26px; color: var(--blue); }

/* ===== Таблицы ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table {
  width: 100%; border-collapse: collapse; background: #fff;
}
table.has-minw { min-width: 480px; }
th, td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 15px;
}
th {
  background: var(--blue-light); color: var(--blue);
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .3px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-soft); }

.note {
  margin-top: 14px; font-size: 14px; color: var(--muted); font-style: italic;
}

/* ===== Списки ===== */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li {
  position: relative; padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border); font-size: 15px;
}
ul.clean li:last-child { border-bottom: none; }
ul.clean li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ===== Услуги ===== */
.service-group { margin-bottom: 22px; }
.service-group h3 {
  font-size: 20px; margin: 0 0 14px; color: var(--blue);
}
.service-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.service-item {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px;
  transition: all .18s ease;
}
.service-item:hover { border-color: var(--blue); transform: translateY(-2px); }
.service-item .label { font-size: 14px; color: var(--text); }
.service-item .price {
  font-weight: 700; color: var(--blue); font-size: 16px; white-space: nowrap; margin-left: 12px;
}

/* ===== Аккордеон номеров ===== */
.accordion-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; background: #fff; overflow: hidden;
}
.accordion-head {
  width: 100%; background: #fff; border: none; cursor: pointer;
  padding: 16px 20px; font-size: 16px; font-weight: 600; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
  transition: background .18s ease;
}
.accordion-head:hover { background: var(--bg-soft); }
.accordion-head .chev {
  color: #6b7b8a; font-size: 20px; font-weight: 300;
  transition: transform .25s ease;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0;
}
.accordion-item.open .accordion-head .chev { transform: rotate(90deg); }
.accordion-body {
  display: none;
  padding: 4px 20px 18px;
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body ul { columns: 2; column-gap: 24px; padding-left: 18px; margin: 8px 0; }
.accordion-body li { font-size: 14px; padding: 4px 0; break-inside: avoid; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.about-card { padding: 22px; }
.about-card p { margin: 0 0 10px; }
.contact-card { background: var(--blue); color: #fff; }
.contact-card h3 { margin: 0 0 10px; font-size: 20px; }
.contact-card a { color: #fff; font-weight: 700; font-size: 22px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 18px; transition: all .18s ease;
}
.socials a:hover { background: #fff; color: var(--blue); }

/* ===== Footer ===== */
footer {
  margin-top: 60px;
  background: var(--bg-soft); border-top: 1px solid var(--border);
  padding: 22px 18px;
  text-align: center; color: var(--muted); font-size: 14px;
}
footer .admin-link {
  display: inline-block; margin-left: 10px;
  color: #c8d2da; font-size: 11px; opacity: .55;
}
footer .admin-link:hover { opacity: 1; color: var(--blue); }

/* ===== Кнопки общие ===== */
.btn {
  display: inline-block; background: var(--blue); color: #fff;
  border: none; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; cursor: pointer; font-size: 14px;
  transition: all .18s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn.danger { background: #e74c3c; }
.btn.danger:hover { background: #c0392b; }

/* ===== Адаптив ===== */
@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
         flex-direction: column; background: #fff; border-bottom: 1px solid var(--border);
         padding: 10px 18px; gap: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  section { padding: 40px 16px 16px; }
  section h2 { font-size: 24px; margin-bottom: 20px; }
  .grid-2, .grid-3, .about-grid { grid-template-columns: 1fr; }
  .accordion-body ul { columns: 1; }
  .service-item .price { font-weight: 600; }
  th, td { padding: 10px 10px; font-size: 14px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 12px; gap: 8px; }
  .logo img { height: 30px; }
  .lang-switch button { padding: 5px 8px; font-size: 11px; }
  .hero { padding: 44px 16px 38px; }
  .hero h1 { font-size: 26px; }
  .service-item .price { font-weight: 600; font-size: 14px; }
  th, td { padding: 8px 8px; font-size: 13px; }
}

/* ===== Floating phone button ===== */
.floating-phone {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 16px rgba(27, 158, 216, 0.35);
  transition: all .2s ease; text-decoration: none;
}
.floating-phone:hover { background: var(--blue-dark); color: #fff; transform: scale(1.08); }

/* ===== Service photo cards ===== */
.reception-note {
  font-size: 15px; color: var(--muted); font-style: italic; margin: 0 0 22px;
}
.service-cards-row {
  display: flex; gap: 18px; margin-bottom: 28px; flex-wrap: wrap;
}
.service-photo-card {
  flex: 1 1 300px; max-width: calc(50% - 9px);
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background-size: cover; background-position: center;
  position: relative; cursor: pointer; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-photo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(27, 158, 216, 0.22); animation: none; }

/* Slow pulsing glow to indicate cards are clickable */
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(27, 158, 216, 0.10); }
  50% { box-shadow: 0 6px 24px rgba(27, 158, 216, 0.35); }
}
.service-photo-card { animation: cardGlow 3s ease-in-out infinite; }
.service-photo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  border-radius: var(--radius);
}
.service-photo-label {
  position: absolute; bottom: 16px; left: 18px; z-index: 1;
  color: #fff; font-size: 22px; font-weight: 500; letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* ===== Modal overlay ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: #fff; border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 10;
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.modal-close:hover { background: rgba(0,0,0,0.7); }

/* ===== Modal slider ===== */
.modal-slider {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: var(--radius) var(--radius) 0 0;
}
.modal-slider-track {
  display: flex; width: 100%; height: 100%;
  transition: transform .4s ease;
}
.modal-slider-track img {
  min-width: 100%; width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; font-weight: 300; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease; z-index: 2;
}
.slider-arrow:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.55); cursor: pointer; padding: 0;
  transition: all .18s ease;
}
.slider-dot.active { background: #fff; transform: scale(1.3); }

/* ===== Modal info & prices ===== */
.modal-info {
  padding: 18px 22px 0; text-align: center;
}
.modal-reception-note {
  font-size: 14px; color: var(--muted); font-style: italic; margin: 0 0 12px;
}
.modal-phone-btn {
  font-size: 16px; padding: 12px 24px; display: inline-flex; align-items: center;
}
.modal-phone-btn:hover { color: rgba(255,255,255,0.7); }
.modal-prices {
  padding: 18px 22px 22px;
}
.modal-prices h3 {
  font-size: 18px; color: var(--blue); margin: 0 0 12px;
}

@media (max-width: 880px) {
  .service-photo-card { max-width: 100%; }
}
@media (max-width: 480px) {
  .floating-phone { width: 48px; height: 48px; font-size: 18px; bottom: 16px; right: 16px; }
  .service-photo-label { font-size: 18px; }
}

/* ===== Админ-панель ===== */
.admin-body { background: var(--bg-soft); min-height: 100vh; }
.login-box {
  max-width: 380px; margin: 100px auto; padding: 30px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center;
}
.login-box h1 { margin: 0 0 18px; color: var(--blue); }
.login-box input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; margin-bottom: 14px;
}
.login-box input:focus { outline: none; border-color: var(--blue); }

.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 18px 60px; }
.admin-wrap h1 { color: var(--blue); margin: 0 0 6px; }
.admin-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin: 12px 0 24px; padding: 14px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.admin-section {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.admin-section h2 {
  font-size: 18px; color: var(--blue); margin: 0 0 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.admin-row { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.admin-row:last-child { border-bottom: none; }
.lang-fields {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px;
}
@media (max-width: 720px) { .lang-fields { grid-template-columns: 1fr; } }
.lang-fields label { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.lang-fields input, .lang-fields textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical;
}
.lang-fields input:focus, .lang-fields textarea:focus { outline: none; border-color: var(--blue); }
.field-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.row-actions { display: flex; gap: 6px; margin-top: 6px; }
.row-actions .btn { padding: 6px 12px; font-size: 12px; }

.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  background: var(--blue); color: #fff; padding: 12px 18px;
  border-radius: 10px; box-shadow: var(--shadow); font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: all .25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #e74c3c; }

.price-row {
  display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: center;
  margin-bottom: 6px;
}
@media (max-width: 720px) { .price-row { grid-template-columns: 1fr; } }
