:root {
  --forest: #16382c;
  --forest-deep: #0b1f18;
  --moss: #1f6b52;
  --mint: #7dba9e;
  --fog: #eef3f0;
  --paper: #f7faf8;
  --ink: #101a16;
  --muted: #5c6e66;
  --line: rgba(16, 26, 22, 0.1);
  --amber: #d2a85c;
  --danger: #a33b3b;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(125, 186, 158, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(210, 168, 92, 0.12), transparent 50%),
    var(--paper);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a {
  color: var(--moss);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--forest);
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(247, 250, 248, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--forest);
}

.nav-links {
  display: flex;
  gap: 0.35rem 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a:not(.btn) {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.78;
}

.nav-links a:not(.btn):hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.72rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--forest);
  color: #f4faf7;
  box-shadow: 0 10px 28px rgba(11, 31, 24, 0.18);
}

.btn-primary:hover {
  background: var(--moss);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid rgba(22, 56, 44, 0.22);
}

.btn-ghost:hover {
  border-color: var(--moss);
  background: rgba(31, 107, 82, 0.06);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-sm);
}

.hero {
  min-height: min(92vh, 920px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: #f4faf7;
  padding: 3rem 1.5rem 4rem;
  background:
    linear-gradient(115deg, rgba(11, 31, 24, 0.92) 18%, rgba(22, 56, 44, 0.55) 58%, rgba(31, 107, 82, 0.35) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(125, 186, 158, 0.35), transparent 50%),
    linear-gradient(160deg, #0b1f18, #1f6b52 70%, #16382c);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero::after {
  content: "";
  position: absolute;
  width: 42vw;
  max-width: 520px;
  aspect-ratio: 1;
  right: -6%;
  bottom: -18%;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 35% 35%, rgba(125, 186, 158, 0.45), transparent 65%);
  filter: blur(2px);
  animation: drift 14s var(--ease) infinite alternate;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11vw, 6.2rem);
  font-weight: 800;
  line-height: 0.88;
  margin: 0 0 0.45rem;
  letter-spacing: -0.06em;
}

.hero-ru {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.25rem 0;
  font-size: 0.98rem;
  font-weight: 500;
  opacity: 0.78;
  border-bottom: 1px solid rgba(244, 250, 247, 0.25);
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.95rem;
  max-width: 22ch;
  animation: rise 0.9s var(--ease) 0.14s both;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  opacity: 0.9;
  font-size: 1.05rem;
  animation: rise 0.9s var(--ease) 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.28s both;
}

.hero .btn-ghost {
  color: #f4faf7;
  border-color: rgba(244, 250, 247, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(244, 250, 247, 0.1);
  border-color: rgba(244, 250, 247, 0.55);
  color: #fff;
}

.section {
  padding: 5rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--forest-deep);
  margin: 0 0 0.55rem;
}

.section .lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

.features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  padding: 1.35rem 1.25rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  animation: rise 0.7s var(--ease) both;
}

.feature:nth-child(1) {
  animation-delay: 0.05s;
}
.feature:nth-child(2) {
  animation-delay: 0.12s;
}
.feature:nth-child(3) {
  animation-delay: 0.19s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 107, 82, 0.28);
  background: #fff;
}

.feature-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--moss);
  margin-bottom: 0.85rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
  color: var(--forest);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.band {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: #e9f3ee;
  padding: 4.5rem 1.5rem;
}

.band::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(125, 186, 158, 0.22), transparent 60%);
  pointer-events: none;
}

.band-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.25fr 0.9fr;
  align-items: center;
}

.band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  font-weight: 700;
}

.band p {
  margin: 0;
  opacity: 0.88;
}

.demo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.demo-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.demo-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

.pricing-note {
  border-left: 3px solid var(--amber);
  padding-left: 1rem;
  color: var(--muted);
}

.site-footer {
  padding: 2.25rem 1.5rem 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
}

/* App shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--fog);
}

.app-nav {
  background: var(--forest-deep);
  color: #e8efe6;
  padding: 1.35rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-nav .brand {
  color: #f4faf7;
  margin: 0 0.35rem 1.15rem;
}

.app-nav a {
  color: rgba(244, 250, 247, 0.78);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}

.app-nav a:hover,
.app-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-main {
  padding: 1.75rem 1.5rem 2.5rem;
}

.app-main h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 1.1rem;
  color: var(--forest-deep);
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.messages li {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  background: #dfece4;
}

.messages li.error {
  background: #f3d9d9;
  color: var(--danger);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
}

.stat .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.stat .value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--forest);
  margin-top: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.data th {
  background: var(--fog);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  max-width: 480px;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(31, 107, 82, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 107, 82, 0.12);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.cal-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cal {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.75rem;
}

.cal th,
.cal td {
  border: 1px solid var(--line);
  min-width: 2rem;
  height: 2.15rem;
  text-align: center;
  padding: 0.15rem;
}

.cal th.room,
.cal td.room {
  position: sticky;
  left: 0;
  background: var(--fog);
  text-align: left;
  padding: 0.35rem 0.55rem;
  min-width: 7.5rem;
  font-weight: 600;
  z-index: 1;
}

.cal .busy {
  background: var(--moss);
  color: #fff;
}

.cal .blocked {
  background: repeating-linear-gradient(
    45deg,
    #d9d9d9,
    #d9d9d9 4px,
    #cfcfcf 4px,
    #cfcfcf 8px
  );
}

.cal-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.auth-box {
  max-width: 400px;
  margin: 4.5rem auto;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.85rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(11, 31, 24, 0.08);
}

.auth-box h1 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  margin-top: 0.75rem;
}

.book-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.book-page h1 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--forest-deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-4%, -3%, 0) rotate(8deg);
  }
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }

  .band-inner {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
