/* ===== Морской / курортный хостел — игривый макет с волнами ===== */
:root {
  --bg: #f4fbfd;
  --bg-alt: #e3f4f8;
  --text: #143a47;
  --muted: #5a7d88;
  --accent: #07a5c4;
  --accent-dark: #0688a3;
  --sun: #ffb43a;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(7, 120, 150, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; padding-bottom: 76px; }
.container { width: min(1140px, 92%); margin-inline: auto; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.btn { display: inline-block; padding: 0.95rem 2.2rem; border: none; border-radius: 50px; font-size: 1.05rem; font-weight: 800; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.btn-primary { background: var(--sun); color: #4a3000; box-shadow: 0 6px 18px rgba(255,180,58,0.5); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin-bottom: 0.6rem; color: var(--accent-dark); }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 3rem; font-size: 1.1rem; }

/* Волна-разделитель */
.wave { display: block; width: 100%; height: 70px; }
.wave-top { margin-bottom: -1px; }
.wave-bottom { margin-top: -1px; transform: rotate(180deg); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,251,253,0.92); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { font-size: 1.6rem; font-weight: 900; color: var(--accent-dark); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { color: var(--text); font-weight: 700; }
.nav a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 0.5rem 1.3rem; border-radius: 50px; }
.nav-cta:hover { background: var(--accent-dark); }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,120,150,0.55), rgba(7,165,196,0.2)); }
.hero-content { position: relative; color: #fff; max-width: 640px; padding: 3rem 0; }
.hero-kicker { display: inline-block; background: var(--sun); color: #4a3000; font-weight: 800; padding: 0.35rem 1.1rem; border-radius: 50px; font-size: 0.9rem; margin-bottom: 1.2rem; }
.hero-content h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.hero-desc { font-size: 1.2rem; margin-bottom: 2rem; }

/* Преимущества — круглые «пузырьки» */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.feature { text-align: center; }
.feature-icon { width: 92px; height: 92px; display: grid; place-items: center; margin: 0 auto 1.2rem; background: var(--card); border-radius: 50%; font-size: 2.4rem; box-shadow: var(--shadow); }
.feature h3 { margin-bottom: 0.5rem; color: var(--accent-dark); }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Номера */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.room-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.room-card:hover { transform: translateY(-8px) rotate(-0.5deg); }
.room-card img { aspect-ratio: 4/3; object-fit: cover; }
.room-body { padding: 1.5rem; }
.room-body h3 { margin-bottom: 0.5rem; }
.room-body p { color: var(--muted); }
.price { display: inline-block; margin-top: 0.9rem; background: var(--bg-alt); color: var(--accent-dark) !important; font-weight: 800; padding: 0.3rem 1rem; border-radius: 50px; font-size: 1.05rem; }

/* Masonry-галерея */
.gallery { columns: 3; column-gap: 1rem; }
.gallery img { width: 100%; margin-bottom: 1rem; border-radius: var(--radius); break-inside: avoid; transition: transform 0.2s ease; cursor: pointer; }
.gallery img:nth-child(odd) { aspect-ratio: 3/4; object-fit: cover; }
.gallery img:nth-child(even) { aspect-ratio: 4/3; object-fit: cover; }
.gallery img:hover { transform: scale(1.03); }

/* О нас */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-inner img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about-inner .section-title { text-align: left; }
.about-inner p { margin-bottom: 1rem; color: var(--muted); }

/* Форма */
.booking-wrap { max-width: 780px; margin-inline: auto; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; background: var(--card); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
.req { color: var(--accent); }
.field input, .field select, .field textarea { padding: 0.75rem 0.9rem; border: 2px solid #cfe7ee; border-radius: 14px; font-size: 1rem; font-family: inherit; background: #fbfeff; transition: border-color 0.2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.error-msg { display: none; color: #d93025; font-size: 0.85rem; margin-top: 0.3rem; }
.field input:user-invalid { border-color: #d93025; background: #fce8e6; }
.field input:user-invalid ~ .error-msg { display: block; }
.form-success { grid-column: 1 / -1; text-align: center; background: #e6f7ea; color: #137333; padding: 1rem; border-radius: 14px; font-weight: 700; }

/* Липкая панель брони снизу */
.booking-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--accent-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.5rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); }
.booking-bar p { font-weight: 700; margin: 0; }
.booking-bar small { display: block; font-weight: 400; opacity: 0.85; font-size: 0.8rem; }
.booking-bar .btn { padding: 0.7rem 1.6rem; font-size: 0.95rem; white-space: nowrap; }

/* Подвал */
.site-footer { background: #0c2e38; color: #9fc3cd; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.site-footer a { color: #7fd4e8; }
.site-footer a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; opacity: 0.7; }

@media (max-width: 820px) { .gallery { columns: 2; } }
@media (max-width: 720px) {
  .nav { gap: 0.8rem; font-size: 0.9rem; }
  .nav a:not(.nav-cta) { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .booking-form { grid-template-columns: 1fr; padding: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .booking-bar p { font-size: 0.9rem; }
  .booking-bar small { display: none; }
}
@media (max-width: 520px) { .gallery { columns: 1; } }
