:root{
  --navy:#082348;
  --navy2:#0c315f;
  --blue:#eaf3fb;
  --orange:#e9650b;
  --gold:#d79b2b;
  --cream:#fbf7ef;
  --cream2:#f5ecdd;
  --ink:#10243d;
  --muted:#607086;
  --line:#e7dfd1;
  --white:#fff;
  --shadow:0 16px 42px rgba(8,35,72,.10);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:#fffdf8;
  font-family:Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%;display:block}
button,input{font:inherit}
.wrap{width:min(1180px,calc(100% - 40px));margin:0 auto}
.serif{font-family:Georgia,'Times New Roman',serif}
.orange{color:var(--orange)}

/* header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,253,248,.96);
  border-bottom:1px solid rgba(8,35,72,.08);
  backdrop-filter:blur(12px);
}
.nav{height:76px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;text-decoration:none;flex:0 0 auto}
.brand img{height:50px;width:auto}
.navlinks{margin-left:auto;display:flex;align-items:center;gap:28px}
.navlinks a{text-decoration:none;font-size:14px;font-weight:700;color:var(--ink)}
.navlinks a:hover{color:var(--orange)}
.cta-top{
  display:inline-flex!important;align-items:center;justify-content:center;
  padding:13px 20px;border-radius:999px;background:var(--navy);color:#fff!important;
}
.menu-btn{display:none;margin-left:auto;border:0;background:transparent;color:var(--navy);font-size:28px;line-height:1;cursor:pointer}

/* hero */
.hero{background:linear-gradient(90deg,#f7f1e7 0%,#fffdf8 48%,#edf6fd 100%);overflow:hidden}
.hero-inner{display:grid;grid-template-columns:45% 55%;min-height:500px;align-items:stretch}
.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:58px 46px 58px 0;position:relative;z-index:2}
.hero-kicker{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:900;color:var(--navy2);margin-bottom:14px}
.hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(43px,5.2vw,68px);line-height:.98;letter-spacing:-.045em;margin:0 0 18px;color:var(--navy)}
.hero-copy p{font-size:20px;line-height:1.45;margin:0 0 26px;max-width:560px;color:#263a52}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border-radius:999px;padding:14px 22px;font-weight:800;border:1px solid transparent;transition:.18s ease}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--orange);color:#fff;box-shadow:0 8px 22px rgba(233,101,11,.18)}
.btn.secondary{background:#fff;color:var(--navy);border-color:#c9d5e4}
.btn.navy{background:var(--navy);color:#fff}
.hero-photo{position:relative;min-height:500px}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-photo:before{content:"";position:absolute;inset:0 auto 0 0;width:16%;z-index:1;background:linear-gradient(90deg,#fffdf8,rgba(255,253,248,0));pointer-events:none}

/* benefit strip */
.benefit-strip{background:#fff;padding:18px 0;border-bottom:1px solid var(--line)}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.benefit{display:flex;gap:13px;align-items:center;justify-content:center;color:var(--navy);font-weight:800;font-size:14px}
.benefit-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--cream);color:var(--orange);font-size:21px;border:1px solid #efe5d5}

/* sections */
.section{padding:64px 0}
.section.alt{background:var(--cream)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:28px}
.section-head h2{font-family:Georgia,'Times New Roman',serif;color:var(--navy);font-size:clamp(34px,4vw,48px);letter-spacing:-.035em;margin:0 0 5px}
.section-head p{margin:0;color:var(--muted);font-size:16px;line-height:1.5}
.section-link{white-space:nowrap;text-decoration:none;color:var(--orange);font-weight:800;font-size:14px}

/* books */
.book-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.book-card{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;
  padding:18px;display:flex;flex-direction:column;min-width:0;box-shadow:0 9px 26px rgba(8,35,72,.06)
}
.book-cover-wrap{height:330px;display:flex;align-items:flex-end;justify-content:center;margin-bottom:18px}
.book-cover{max-height:100%;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 15px 13px rgba(8,35,72,.18))}
.new-badge{position:absolute;right:14px;top:14px;background:linear-gradient(135deg,#e5b746,#c98c17);color:#fff;font-weight:900;font-size:12px;letter-spacing:.04em;padding:9px 13px;border-radius:999px;box-shadow:0 6px 18px rgba(193,126,0,.25);z-index:2}
.book-category{text-transform:uppercase;color:var(--orange);font-size:11px;letter-spacing:.08em;font-weight:900;margin-bottom:7px}
.book-card h3{font-family:Georgia,'Times New Roman',serif;color:var(--navy);font-size:24px;line-height:1.05;margin:0 0 9px}
.book-card p{color:var(--muted);font-size:14px;line-height:1.52;margin:0 0 18px;flex:1}
.book-promise{display:flex;align-items:center;gap:9px;color:var(--navy2);font-size:13px;font-weight:800;margin-bottom:17px}
.book-promise span:first-child{width:30px;height:30px;border-radius:50%;background:#fff1d7;display:grid;place-items:center;color:#b8730b}
.book-card .btn{align-self:flex-start;padding:11px 16px;font-size:13px}

/* theme explorer */
.theme-section{padding:58px 0;background:linear-gradient(180deg,#fffdf8,#f8f0e5)}
.theme-shell{border:1px solid #eadfce;border-radius:28px;background:rgba(255,255,255,.72);padding:28px;box-shadow:0 10px 30px rgba(8,35,72,.05)}
.theme-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}
.theme-head h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(34px,4vw,48px);line-height:1;margin:0;color:var(--navy)}
.theme-head p{margin:8px 0 0;color:var(--muted)}
.theme-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:22px}
.theme-tab{border:1px solid #ddd7ca;background:#fff;color:var(--navy);border-radius:16px;padding:13px 12px;font-weight:800;cursor:pointer;display:flex;gap:9px;align-items:center;justify-content:center;min-height:54px}
.theme-tab[aria-selected="true"]{background:var(--navy);color:white;border-color:var(--navy);box-shadow:0 9px 20px rgba(8,35,72,.15)}
.theme-tab .ico{font-size:20px}
.theme-panel{display:grid;grid-template-columns:38% 62%;gap:0;overflow:hidden;border-radius:20px;border:1px solid #eadfce;background:#fff}
.theme-media{min-height:270px;background:var(--blue);display:flex;align-items:center;justify-content:center;overflow:hidden}
.theme-media img{width:100%;height:100%;object-fit:cover}
.theme-media .big-icon{font-size:76px;color:var(--navy);opacity:.7}
.theme-copy{padding:32px;display:flex;flex-direction:column;justify-content:center}
.theme-eyebrow{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--orange);font-weight:900}
.theme-copy h3{font-family:Georgia,'Times New Roman',serif;font-size:34px;line-height:1.05;color:var(--navy);margin:8px 0 10px}
.theme-copy p{margin:0 0 20px;color:var(--muted);line-height:1.6}
.theme-actions{display:flex;gap:10px;flex-wrap:wrap}
.theme-actions a{font-size:13px}

/* articles */
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.article-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(8,35,72,.05)}
.article-card img{width:100%;height:190px;object-fit:cover}
.article-body{padding:17px}
.article-tag{color:var(--orange);text-transform:uppercase;letter-spacing:.07em;font-size:10px;font-weight:900}
.article-card h3{font-family:Georgia,'Times New Roman',serif;font-size:23px;line-height:1.1;margin:8px 0;color:var(--navy)}
.article-card p{font-size:14px;line-height:1.48;color:var(--muted);margin:0 0 13px}
.article-card a{color:var(--orange);font-weight:800;text-decoration:none;font-size:13px}

/* resources */
.resources-block{padding:54px 0;background:#f8f0e2}
.resources-box{display:grid;grid-template-columns:1.25fr .75fr;gap:24px;align-items:center;background:#fff;border:1px solid #e9decf;border-radius:26px;padding:28px;box-shadow:0 10px 28px rgba(8,35,72,.05)}
.resources-left h2{font-family:Georgia,'Times New Roman',serif;font-size:36px;margin:0 0 8px;color:var(--navy)}
.resources-left>p{color:var(--muted);margin:0 0 20px;line-height:1.55}
.resource-links{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.resource-link{display:flex;gap:10px;align-items:center;background:#fffaf0;border:1px solid #eee0c9;border-radius:14px;padding:13px;text-decoration:none;font-size:12px;font-weight:800;color:var(--navy)}
.resource-link .ico{font-size:20px;color:var(--orange)}
.resources-cta{background:linear-gradient(135deg,#eaf3fb,#dcebf7);border-radius:20px;padding:24px;text-align:center}
.resources-cta strong{display:block;font-family:Georgia,'Times New Roman',serif;color:var(--navy);font-size:26px;line-height:1.1;margin-bottom:9px}
.resources-cta p{font-size:13px;line-height:1.5;color:#4f6278;margin:0 0 16px}

/* compact about */
.about{padding:50px 0;background:#fff}
.about-box{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:34px 0}
.about h2{font-family:Georgia,'Times New Roman',serif;color:var(--navy);font-size:32px;margin:0 0 8px}
.about p{margin:0;max-width:790px;color:var(--muted);line-height:1.65}

/* footer */
.footer{background:#071c37;color:#cfd9e7;padding:34px 0 20px}
.footer-top{display:flex;justify-content:space-between;gap:30px;align-items:center}
.footer-brand{background:#fff;padding:5px 8px;border-radius:9px}.footer-brand img{height:40px;width:auto}
.footer-links{display:flex;gap:18px;flex-wrap:wrap;justify-content:center}
.footer-links a,.social-links a{color:#dbe4ef;text-decoration:none;font-size:12px}
.social-links{display:flex;gap:12px;flex-wrap:wrap}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:24px;padding-top:16px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#8ea2ba;flex-wrap:wrap}

/* catalog page */
.page-hero{background:linear-gradient(120deg,#edf5fb,#fff8ed);padding:64px 0 46px;border-bottom:1px solid var(--line)}
.page-hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(44px,6vw,68px);color:var(--navy);margin:0 0 12px;letter-spacing:-.04em}
.page-hero p{font-size:18px;color:var(--muted);max-width:760px;line-height:1.6;margin:0}
.catalog-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px}
.filter-btn{border:1px solid #ddd7ca;background:white;color:var(--navy);font-weight:800;border-radius:999px;padding:10px 15px;cursor:pointer}
.filter-btn.active{background:var(--navy);color:white;border-color:var(--navy)}
.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.catalog-card{background:white;border:1px solid var(--line);border-radius:22px;padding:20px;display:grid;grid-template-columns:150px 1fr;gap:20px;position:relative;box-shadow:0 8px 24px rgba(8,35,72,.05)}
.catalog-card .book-cover-wrap{height:220px;margin:0}
.catalog-card h2{font-family:Georgia,'Times New Roman',serif;color:var(--navy);font-size:25px;line-height:1.05;margin:0 0 8px}
.catalog-card p{font-size:14px;color:var(--muted);line-height:1.55;margin:0 0 14px}
.catalog-actions{display:flex;gap:8px;flex-wrap:wrap}
.catalog-actions .btn{padding:10px 14px;font-size:12px}

@media(max-width:1050px){
  .book-grid{grid-template-columns:repeat(2,1fr)}
  .book-cover-wrap{height:360px}
  .theme-tabs{grid-template-columns:repeat(3,1fr)}
  .catalog-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
  .wrap{width:min(100% - 28px,1180px)}
  .menu-btn{display:block}
  .navlinks{display:none;position:absolute;right:14px;top:68px;background:white;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:var(--shadow);min-width:230px;flex-direction:column;align-items:stretch;gap:6px}
  .navlinks.open{display:flex}
  .navlinks a{padding:10px 12px}
  .hero-inner{grid-template-columns:1fr;min-height:0}
  .hero-copy{padding:42px 0 28px}
  .hero-photo{min-height:340px;border-radius:22px 22px 0 0;overflow:hidden;order:2}
  .hero-photo:before{display:none}
  .benefits{grid-template-columns:1fr;gap:10px}
  .benefit{justify-content:flex-start}
  .section{padding:48px 0}
  .section-head{align-items:start;flex-direction:column}
  .theme-head{align-items:start;flex-direction:column}
  .theme-tabs{grid-template-columns:1fr 1fr}
  .theme-panel{grid-template-columns:1fr}
  .theme-media{min-height:240px}
  .article-grid{grid-template-columns:1fr}
  .resources-box{grid-template-columns:1fr}
  .resource-links{grid-template-columns:1fr}
  .about-box{grid-template-columns:1fr}
  .footer-top{flex-direction:column;align-items:flex-start}
  .catalog-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .nav{height:68px}
  .brand img{height:42px}
  .hero h1{font-size:43px}
  .hero-copy p{font-size:17px}
  .hero-photo{min-height:280px}
  .book-grid{grid-template-columns:1fr}
  .book-cover-wrap{height:390px}
  .theme-tabs{grid-template-columns:1fr}
  .theme-copy{padding:24px 20px}
  .theme-copy h3{font-size:29px}
  .catalog-card{grid-template-columns:115px 1fr;gap:15px;padding:15px}
  .catalog-card .book-cover-wrap{height:180px}
}
