
/*
Theme Name: Digitarus Knigi
Theme URI: https://digitarus.ru/
Author: Digitarus
Description: Одностраничный лендинг комплекта электронных книг для digitarus.ru/knigi.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: digitarus-knigi
*/

:root{
  --green:#274b35;
  --green-2:#3f6a43;
  --leaf:#6f8f42;
  --cream:#f6f0e5;
  --paper:#fffdf8;
  --brown:#4b382b;
  --brown-2:#765844;
  --gold:#c9943a;
  --gold-dark:#a86f1f;
  --text:#263126;
  --muted:#687067;
  --line:#ded8cb;
  --shadow:0 18px 45px rgba(46,37,27,.13);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:var(--cream);
  font-family:"PT Sans",Arial,Verdana,sans-serif;
  font-size:18px;
  line-height:1.6;
}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
.container{width:min(1160px,calc(100% - 40px));margin:auto}
.site-header{
  position:absolute;top:0;left:0;right:0;z-index:10;
  padding:20px 0;color:#fff;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{font-weight:700;letter-spacing:.06em;text-decoration:none;font-size:20px}
.header-link{
  border:1px solid rgba(255,255,255,.45);border-radius:999px;
  padding:8px 16px;text-decoration:none;font-size:16px;
}
.hero{
  position:relative;overflow:hidden;color:#fff;
  background:
    linear-gradient(115deg,rgba(24,48,32,.96),rgba(39,75,53,.88) 48%,rgba(62,73,42,.74)),
    url("assets/covers-all.jpg") center/cover;
}
.hero:after{
  content:"";position:absolute;inset:auto -10% -90px;height:180px;
  background:var(--cream);border-radius:50% 50% 0 0/100% 100% 0 0;
}
.hero-grid{
  position:relative;z-index:1;min-height:820px;
  display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;
  padding:120px 0 120px;
}
.hero-copy{max-width:590px}
.eyebrow{
  display:inline-block;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);padding:7px 13px;border-radius:999px;
  font-size:14px;letter-spacing:.08em;text-transform:uppercase;
}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.12;margin:0 0 20px}
h1{font-size:clamp(42px,5vw,68px);letter-spacing:-.02em}
h2{font-size:clamp(34px,4vw,50px)}
h3{font-size:26px}
.hero-copy p{font-size:21px;color:rgba(255,255,255,.9);max-width:570px}
.price{display:flex;align-items:end;gap:14px;margin:25px 0}
.price strong{font-size:48px;line-height:1;color:#ffd78a}
.price span{font-size:17px;color:rgba(255,255,255,.76)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:58px;padding:15px 26px;border-radius:14px;
  font-weight:700;text-decoration:none;border:0;cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--gold);color:#2e2115;box-shadow:0 12px 30px rgba(0,0,0,.2)}
.btn-primary:hover{background:#d8a64e}
.micro{font-size:14px!important;line-height:1.45;color:rgba(255,255,255,.72)!important;margin-top:11px}
.hero-image{
  padding:12px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);
  border-radius:26px;box-shadow:0 30px 70px rgba(0,0,0,.28);transform:rotate(1deg);
}
.hero-image img{border-radius:16px}

.section{padding:92px 0}
.section-alt{background:#fffdf8}
.section-head{max-width:720px;margin:0 auto 48px;text-align:center}
.section-head p{color:var(--muted);font-size:20px}
.books{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.book-card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);
}
.book-cover{aspect-ratio:1/1.62;object-fit:cover;width:100%}
.book-body{padding:25px}
.book-body h3{font-size:25px}
.book-body p{color:#5e665f;margin-bottom:0}
.book-num{
  color:var(--green-2);font-size:14px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;margin-bottom:8px
}

.benefits{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px
}
.benefit{
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;
}
.icon{
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  background:#e9efe3;color:var(--green);font-weight:700;margin-bottom:18px
}
.benefit h3{font-size:22px;margin-bottom:10px}
.benefit p{color:var(--muted);margin:0}

.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.step{position:relative;padding:30px;background:#fff;border-radius:18px;border:1px solid var(--line)}
.step-number{
  font-size:40px;color:var(--gold);font-family:Georgia,serif;font-weight:700;line-height:1
}
.step h3{font-size:22px;margin-top:16px}
.step p{margin:0;color:var(--muted)}

.guarantee{
  background:linear-gradient(135deg,#294b35,#426343);color:#fff;border-radius:28px;
  padding:54px 60px;display:flex;align-items:center;justify-content:space-between;gap:35px;
}
.guarantee h2{font-size:36px;margin-bottom:10px}
.guarantee p{margin:0;color:rgba(255,255,255,.86);max-width:750px}
.guarantee a{color:#ffe0a0}

.final-cta{
  background:
    linear-gradient(rgba(44,58,35,.88),rgba(44,58,35,.92)),
    url("assets/covers-all.jpg") center/cover;
  color:#fff;text-align:center;
}
.final-cta p{color:rgba(255,255,255,.85);font-size:20px;max-width:650px;margin:0 auto 28px}

.site-footer{background:#2b3029;color:#d9ded5;padding:42px 0 28px;font-size:15px}
.footer-grid{display:flex;justify-content:space-between;gap:30px;align-items:flex-start}
.footer-brand{font-weight:700;color:#fff;font-size:18px}
.footer-links{display:flex;flex-wrap:wrap;gap:10px 20px;justify-content:flex-end}
.footer-links a{color:#d9ded5;text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.copyright{border-top:1px solid rgba(255,255,255,.12);margin-top:26px;padding-top:18px;color:#aeb7aa}

.cookie{
  position:fixed;left:18px;right:18px;bottom:18px;z-index:999;
  background:#fffdf8;border:1px solid var(--line);box-shadow:0 18px 50px rgba(0,0,0,.22);
  border-radius:18px;padding:16px 18px;display:none;align-items:center;gap:18px;
}
.cookie.show{display:flex}
.cookie p{margin:0;color:#555d55;font-size:14px;flex:1}
.cookie a{color:var(--green)}
.cookie button{white-space:nowrap;border:0;border-radius:10px;padding:11px 18px;background:var(--green);color:#fff;font-weight:700;cursor:pointer}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;min-height:auto;padding:115px 0 100px}
  .hero-copy{max-width:none}
  .hero-image{max-width:680px;margin:auto}
  .books,.benefits,.steps{grid-template-columns:1fr 1fr}
  .guarantee{flex-direction:column;align-items:flex-start}
}
@media(max-width:620px){
  body{font-size:17px}
  .container{width:min(100% - 28px,1160px)}
  .site-header{padding:14px 0}
  .header-link{font-size:14px;padding:7px 12px}
  h1{font-size:40px}
  .hero-copy p{font-size:19px}
  .books,.benefits,.steps{grid-template-columns:1fr}
  .section{padding:65px 0}
  .guarantee{padding:35px 25px}
  .footer-grid{flex-direction:column}
  .footer-links{justify-content:flex-start}
  .cookie{left:10px;right:10px;bottom:10px;flex-direction:column;align-items:stretch}
}
