/* Közös alap stílusok: minden oldalon használt reset, tipográfia, navbar,
   gombok, footer és általános komponensek (grid-ek, kártyák, űrlapok, hero). */

@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800;900&family=Frank+Ruhl+Libre:wght@300;400;500;700;900&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  overscroll-behavior: none;
}
body {
  font-family: "Red Hat Display", sans-serif;
  color: #3a3a3a;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.55;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: "Red Hat Display", sans-serif;
  cursor: pointer;
}

/* ── Content wrapper: max-width 1485px, 80px padding ── */
.wrap {
  max-width: 1485px;
  margin: 0 auto;
  padding: 0 80px;
}
.section {
  padding: 64px 0;
}

/* ── NAVBAR ──
   Height: 80px fixed (design spec)
   Logo: 80px height (tight crop = readable)
   Left padding: 80px (matches .wrap → logo aligns with content left edge)
   Links: right-aligned
── */
.navbar {
  background: #fff;
  height: 79px;
  position: sticky;
  top: 0;
  z-index: 900;
}
.navbar-inner {
  max-width: 1485px;
  margin: 0 auto;
  padding: 0 80px; /* SAME as .wrap → logo at content left margin */
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-logo a {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-logo img {
  height: 63px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-spacer {
  flex: 1;
}
.nav-links-right {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.nav-links-right a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3a3a3a;
  padding: 8px 14px;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links-right a:hover {
  color: #000;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 1.5px solid #1f1c2d;
  border-radius: 23px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f1c2d;
  background: transparent;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-nav:hover {
  background: #1f1c2d;
  color: #fff;
}
/* Hamburger: always margin-left:auto → right edge, same padding as content */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3a3a3a;
  border-radius: 2px;
}
.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.mob-menu.open {
  display: flex;
}
.mob-menu a {
  font-size: 1.15rem;
  font-weight: 700;
  color: #3a3a3a;
}
.mob-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── BUTTONS ── */
.btn-y {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px;
  border-radius: 23px;
  background: #f9c047;
  color: #1f1c2d;
  border: none;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-y:hover {
  background: #e8b030;
}
.btn-ol-y {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px;
  border-radius: 23px;
  background: transparent;
  color: #f9c047;
  border: 1.5px solid #f9c047;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-ol-y:hover {
  background: #f9c047;
  color: #1f1c2d;
}
.btn-ol-dk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px;
  border-radius: 23px;
  background: transparent;
  color: #1f1c2d;
  border: 1.5px solid #1f1c2d;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-ol-dk:hover {
  background: #1f1c2d;
  color: #fff;
}
.btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px;
  border-radius: 23px;
  background: #0eca97;
  color: #fff;
  border: none;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-g:hover {
  background: #09ba88;
}
.btn-view-pkg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 23px;
  background: transparent;
  color: #1f1c2d;
  border: 1.5px solid #1f1c2d;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  width: 100%;
  line-height: 1;
}
.btn-view-pkg:hover {
  background: #1f1c2d;
  color: #fff;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── BADGES ── */
.badge-blue {
  display: inline-block;
  background: none;
  border: 1px solid #032C4D;
  color: #032C4D;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 12.5px;
}
.badge-blue-light {
  display: inline-block;
  background: #90CAF9;
  border: 1px solid #90CAF9;
  color: #002C50;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 12.5px;
}
.badge-orange {
  display: inline-block;
  background: none;
  border: 1px solid #ed6c02;
  color: #ed6c02;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 12.5px;
}

/* ── INDEX HERO ──
   Desktop: clean background image, HTML text overlay
   Tablet (601-960): mobile image, text bottom
   Mobile (≤600): mobile image, text top (more spacing), full height
── */
.hero-outer {
  background: #fff;
}
.hero-box {
  max-width: 1485px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 593px;
}
/* Desktop image: slight overflow (left:21px right:21px within 1485 box) */
.hero-img-desktop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  right: 21px;
  overflow: hidden;
}
.hero-img-desktop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
/* Mobile image: hidden on desktop */
.hero-img-mobile {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Text: ONE layer, padding matches .wrap → aligns with content left */
.hero-text-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 80px;
}
.hero-text {
  max-width: 560px;
  padding: 52px 0;
}
.hero-badge-wrap {
  margin-bottom: 16px;
}
.hero-kv {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.hero-sub {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 2.55rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
  white-space: nowrap;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
  line-height: 1.6;
  white-space: nowrap;
}
.hero-row1 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.hero-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.68);
}
/* Both btns same min-width */
.hero-btn {
  min-width: 228px;
  justify-content: center;
  line-height: 1;
}

/* ── SECTIONS ── */
.sec-h {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #1f1c2d;
  margin-bottom: 6px;
}
.sec-sub {
  font-size: 0.92rem;
  color: #3a3a3a;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── FEATURES CARDS ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.feature-card {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-direction: column;
}
.feature-title {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: #1f1c2d;
  margin-bottom: 5px;
  line-height: 1.4;
}

/* ── BOOK CARDS ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.book-card {
  cursor: pointer;
}
.book-card-img {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 390/249;
  background: #eee;
}
.book-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.book-card:hover .book-card-img img {
  opacity: 0.92;
}
.book-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 5px;
  min-height: 34px;
}
.book-date {
  font-size: 0.78rem;
  color: #3a3a3a;
  font-weight: 600;
}
.book-title {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1f1c2d;
  margin-bottom: 5px;
  line-height: 1.4;
}
.book-desc {
  font-size: 0.85rem;
  color: #575757;
  line-height: 1.5;
}

/* ── PACKAGE CARDS ── */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pkg-card {
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pkg-c1 {
  background: #f7f2f3;
}
.pkg-c2 {
  background: #f5f3f3;
}
.pkg-c3,
.pkg-c4 {
  background: #ede9e9;
}
.pkg-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px 0;
  min-height: 168px;
}
.pkg-img img {
  width: 100%;
  max-height: 155px;
  object-fit: contain;
}
.pkg-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pkg-type {
  font-size: 0.76rem;
  color: #575757;
  margin-bottom: 2px;
  font-weight: 500;
}
.pkg-name {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f1c2d;
  margin-bottom: 10px;
  line-height: 1.3;
}
.pkg-feats {
  list-style: none;
  margin-bottom: 13px;
  flex: 1;
}
.pkg-feats li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #3a3a3a;
  padding: 3px 0;
}
.pkg-feats li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: #09ba88
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    center/11px no-repeat;
  border-radius: 50%;
}
.pkg-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  color: #575757;
  font-weight: 600;
}
.trust-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.test-section {
  background: #fefaf7;
  padding: 40px 0;
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.test-card {
  padding: 0 40px;
}
.test-card:first-child {
  padding-left: 0;
}
.test-card:last-child {
  padding-right: 0;
}
.test-card + .test-card {
  border-left: 1px solid #d8d8d8;
}
.test-q {
  font-size: 0.93rem;
  color: #3a3a3a;
  line-height: 1.72;
  margin-bottom: 14px;
}
.test-author {
  font-size: 0.82rem;
  color: #575757;
  font-weight: 600;
}

/* ── GIFTS ── */
.gifts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.gift-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.gift-img {
  width: 100%;
  max-width: 460px;
  border-radius: 14px;
  overflow: hidden;
}
.gift-img img {
  width: 100%;
}
.gift-title {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f1c2d;
}

/* ── FOOTER ──
   Logo: 96px height, aligns to TOP of "Írj nekünk!" (align-items:flex-start)
   Left margin: 80px (same as .wrap → aligns with content)
── */
.footer {
  background: #001734;
  position: relative;
  overflow: hidden;
  min-height: 304px;
}
.footer-bg {
  position: absolute;
  inset: 0;
}
.footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.footer-ov {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 46, 0.5);
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1485px;
  margin: 0 auto;
  padding: 36px 80px 22px; /* 80px left = same as content */
  min-height: 304px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-top {
  display: flex;
  align-items: flex-start; /* logo top = "Írj nekünk!" top */
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}
/* Footer logo: 96px → text is readable, aligns to "Írj nekünk!" top */
.footer-logo img {
  height: 96px;
  width: auto;
  margin-top: 0; /* both logo and "Írj nekünk!" start at same top baseline */
}
.footer-right {
  text-align: right;
}
.footer-irj {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}
.footer-irj-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}
.footer-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 45px;
  padding: 0 20px;
  border-radius: 22.5px;
  background: #87d4d1;
  color: #001734;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.footer-email-btn:hover {
  background: #6ec4c1;
}
.footer-bottom {
  display: flex;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 20px;
  flex: 1;
}
.footer-nav a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  transition: color 0.15s;
  white-space: nowrap;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-fb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.footer-fb img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  width: 100%;
  margin-top: 10px;
}

/* ── OVERLAYS – black text ── */
.ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}
.ov.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.97) translateY(10px);
  transition: transform 0.2s;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.2);
}
.ov.open .modal {
  transform: scale(1) translateY(0);
}
.modal-hd {
  padding: 24px 26px 16px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}
.modal-hd h2 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}
.modal-hd p {
  font-size: 0.84rem;
  color: #222;
  font-weight: 500;
}
.mc {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
  padding: 4px;
  line-height: 1;
}
.mc:hover {
  color: #000;
}
.modal-bd {
  padding: 20px 26px 24px;
}
.fg {
  margin-bottom: 14px;
}
.fl {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 5px;
}
.fi {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #b0b0b0;
  border-radius: 10px;
  font-family: "Red Hat Display", sans-serif;
  font-size: 0.92rem;
  color: #111;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}
.fi:focus {
  border-color: #f9c047;
  color: #000;
}
.fi::placeholder {
  color: #666;
  font-weight: 400;
}
textarea.fi {
  resize: vertical;
  min-height: 88px;
}
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.f-sec {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
  margin: 16px 0 8px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e0e0e0;
}
.pay-note {
  background: #fffaed;
  border: 2px solid rgba(249, 192, 71, 0.5);
  border-radius: 9px;
  padding: 10px 13px;
  margin-bottom: 13px;
  font-size: 0.82rem;
  color: #5a3e00;
  line-height: 1.5;
  font-weight: 500;
}
.fcheck {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 13px;
}
.fcheck input {
  margin-top: 3px;
  accent-color: #f9c047;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.fcheck label {
  font-size: 0.82rem;
  color: #222;
  line-height: 1.5;
  font-weight: 500;
}
.fcheck a {
  color: #000;
  text-decoration: underline;
  font-weight: 700;
}
.modal-note {
  font-size: 0.78rem;
  color: #444;
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1f1c2d;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── REVEAL ── */
.au {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.au.in {
  opacity: 1;
  transform: translateY(0);
}
/* ── CUSTOM CLASSES ── */
p.helper_text {
  font-size: 14px;
}
/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wrap,
  .navbar-inner,
  .footer-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero-text-layer {
    padding: 0 40px;
  }
  .hero-img-desktop {
    left: 10px;
    right: 10px;
  }
}
/* Tablet: 601-960px → mobile image, text bottom with bg card */
@media (min-width: 601px) and (max-width: 960px) {
  .hero-img-desktop {
    display: none;
  }
  .hero-img-mobile {
    display: block;
  }
  .hero-box {
    min-height: 520px;
  }
  .hero-text-layer {
    padding: 0 40px;
    align-items: flex-end;
    padding-bottom: 36px;
  }
  .hero-text {
    padding: 18px 20px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    backdrop-filter: blur(3px);
  }
  .hero-kv {
    font-size: 1.05rem;
  }
  .hero-sub {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }
  .hero-desc {
    white-space: normal;
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  .hero-row1 {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-btn {
    min-width: 0;
  }
}
/* Mobile ≤600px */
@media (max-width: 960px) {
  .nav-links-right,
  .nav-cta-w {
    display: none;
  }
  .nav-spacer {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  /* Mobile navbar: compact, logo proportional to desktop */
  .navbar {
    height: 58px;
  }
  .navbar-inner {
    padding: 0 20px;
  }
  .nav-logo img {
    height: 44px;
  }
  /* Footer mobile */
  .footer-inner {
    padding: 24px 20px 18px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .footer-right {
    text-align: left;
    width: 100%;
  }
  .footer-logo img {
    height: 72px;
  }
  .footer-nav {
    gap: 4px 14px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }
  /* Mobile hero: full image visible */
  .hero-img-desktop {
    display: none;
  }
  .hero-img-mobile {
    display: block;
  }
  /* Hero box: intrinsic aspect ratio so full mobile image shows */
  .hero-box {
    min-height: 0;
    padding-bottom: calc(100% * 1728 / 910);
  }
  /* Text: positioned in upper portion of image (where book is visible) */
  .hero-text-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    padding: 28px 20px 0;
  }
  .hero-text {
    padding: 0;
    max-width: 100%;
    width: 100%;
  }
  .hero-badge-wrap {
    margin-bottom: 12px;
  }
  .hero-kv {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  .hero-sub {
    font-size: 1.45rem;
    margin-bottom: 12px;
  }
  .hero-desc {
    white-space: normal;
    font-size: 0.88rem;
    margin-bottom: 20px;
  }
  .hero-row1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  .hero-count {
    font-size: 0.78rem;
  }
  .hero-btn {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  /* Sections */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
  .test-grid {
    grid-template-columns: 1fr;
  }
  .test-card + .test-card {
    border-left: none;
    border-top: 1px solid #d8d8d8;
    padding: 20px 0 0;
    margin-top: 14px;
  }
  .test-card {
    padding: 0;
  }
  .gifts-grid {
    grid-template-columns: 1fr;
  }
  .pkg-grid {
    grid-template-columns: 1fr;
  }
  .f-row {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 44px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
