:root {
  --bg: #f2f5fa;
  --bg-soft: #eaf0f8;
  --card: #ffffff;
  --text: #11233c;
  --muted: #566882;
  --line: #d7e0ec;
  --navy: #122b4b;
  --navy-2: #193862;
  --gold: #d7a343;
  --success: #2f7f53;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 10% -10%, #f8fbff 0%, rgba(248, 251, 255, 0) 38%),
    radial-gradient(circle at 90% -20%, #eef3fa 0%, rgba(238, 243, 250, 0) 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 250, 254, 0.96) 0%, rgba(241, 245, 251, 0.96) 100%);
  backdrop-filter: blur(9px);
  box-shadow: 0 8px 20px rgba(17, 35, 60, 0.05);
}

.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  min-width: 220px;
  min-height: 66px;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(248, 250, 254, 0.96) 0%, rgba(241, 245, 251, 0.96) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(17, 35, 60, 0.05);
}

.logo-mark {
  width: 34px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: none;
}

.logo-text strong {
  display: block;
  white-space: nowrap;
  font-size: 33px;
  line-height: 0.96;
  font-weight: 800;
}

.logo-text strong .just {
  color: #e4a43a;
}

.logo-text strong .book {
  color: var(--navy);
}

.logo-subtitle {
  display: block;
  margin-top: 3px;
  color: #6e7f98;
  font-size: 13px;
  font-weight: 700;
}

.top-note {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(18, 43, 75, 0.2);
  background: linear-gradient(180deg, #fdfcf8 0%, #f8f4ea 100%);
  color: #284569;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}

.top-note span {
  color: var(--success);
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  text-decoration: none;
  color: var(--navy);
  border: 1px solid rgba(18, 43, 75, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  box-shadow: 0 3px 10px rgba(17, 35, 60, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.menu a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(17, 35, 60, 0.09);
  filter: brightness(1);
}

.page {
  padding: 18px 20px 30px;
  display: grid;
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(17, 35, 60, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(17, 35, 60, 0.11);
}

.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 43, 75, 0.11), rgba(215, 163, 67, 0.14));
  position: relative;
  overflow: hidden;
}

.card-header::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -40px;
  width: 220px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.card-header h1,
.card-header h2 {
  margin: 0;
  color: var(--navy);
}

.card-header h1 {
  font-size: 28px;
  line-height: 1.1;
}

.card-header h2 {
  font-size: 20px;
}

.card-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-body p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.hero-grid {
  padding: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.35fr 0.8fr;
}

.hero-grid p {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
  color: var(--muted);
}

.trial-copy {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c8dfcf;
  background: linear-gradient(180deg, #f5fbf6 0%, #eef8f1 100%);
  color: #2e6440 !important;
  font-weight: 600;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.price-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.price-box small {
  display: block;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price-box strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.04;
}

.price-box p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

li {
  line-height: 1.5;
}

.gallery-shell {
  padding: 16px;
}

.gallery-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.gallery-showcase {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
  box-shadow: 0 10px 24px rgba(17, 35, 60, 0.08);
  overflow: hidden;
}

.gallery-track {
  position: relative;
  min-height: 460px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #f4f7fc;
  display: block;
}

.gallery-slide figcaption {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 9px 12px;
  font-size: 13px;
  color: #304666;
  font-weight: 700;
}

.gallery-nav {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(18, 43, 75, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gallery-nav:hover {
  transform: scale(1.04);
  background: #fff;
  box-shadow: 0 8px 16px rgba(17, 35, 60, 0.16);
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.gallery-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery-dots .dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #c2cfdf;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-dots .dot.is-active {
  transform: scale(1.3);
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 0 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #fff;
  border-color: rgba(18, 43, 75, 0.52);
  box-shadow: 0 6px 14px rgba(18, 43, 75, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--navy);
  border-color: rgba(18, 43, 75, 0.22);
  box-shadow: 0 4px 12px rgba(17, 35, 60, 0.06);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(0.99);
}

.mail {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.mail:hover {
  text-decoration: underline;
}

.phone {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.phone:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f9fd 0%, #eff3f9 100%);
}

.footer-inner {
  padding: 16px 20px 22px;
}

.footer-inner p {
  margin: 0 0 6px;
  color: #526784;
  font-size: 13px;
  line-height: 1.45;
}

.footer-inner p:last-child {
  margin-bottom: 0;
}

.footer-inner a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-page .card-header h1 {
  font-size: 26px;
}

.legal-copy h2 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.legal-copy p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.legal-copy ul {
  margin: 0 0 10px;
}

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

  .card-header h1 {
    font-size: 24px;
  }

  .price-box strong {
    font-size: 26px;
  }
}

@media (max-width: 780px) {
  .menu {
    display: none;
  }

  .top-note {
    display: none;
  }

  .topbar-inner {
    min-height: 64px;
  }

  .gallery-track {
    min-height: 300px;
  }

  .gallery-slide img {
    height: 260px;
  }
}
