/* ═══════════════════════════════════════════════════════
   IRIDO DESIGN SYSTEM — Applied to Herbal Medicine Site
   Skill: Organic Wellness · Dual-Theme · Glass & Depth
═══════════════════════════════════════════════════════ */

/* ── THEME 1: Dark Wood (Dark Terracotta) DEFAULT ── */
:root,
html.dark,
html[data-theme="dark"] {
  --emerald-50:#ecfdf5;--emerald-100:#d1fae5;--emerald-200:#a7f3d0;
  --emerald-300:#6ee7b7;--emerald-400:#34d399;--emerald-500:#10b981;
  --emerald-600:#059669;--emerald-700:#047857;--emerald-800:#065f46;
  --emerald-900:#064e3b;--emerald-950:#022c22;
  --slate-50:#f8fafc;--slate-100:#f1f5f9;--slate-200:#e2e8f0;
  --slate-500:#64748b;--slate-600:#475569;--slate-800:#1e293b;

  --bg-main:#1d1615;--bg-sec:#140f0e;--nav-bg:rgba(29,22,21,0.85);
  --text-base:#e3d8d6;--text-muted:#a19390;--text-heading:#fcf9f8;--brand-color:#cc6b49;
  --btn-primary-bg:#a84b2c;--btn-primary-text:#ffffff;--btn-primary-hover:#8f3d21;
  --card-bg:#29201e;--card-border:#3d312e;--border-subtle:#362a28;--icon-box:#1d1615;
  --glass-bg:rgba(41,32,30,0.7);--glass-border:rgba(204,107,73,0.15);
  --badge-bg:rgba(168,75,44,0.2);--badge-text:#e6a791;
  --blur-1:rgba(204,107,73,0.12);--blur-2:rgba(168,75,44,0.15);
  --footer-bg:#140f0e;
  --about-bg:#241a18;--about-label:#cc6b49;--about-h4:#e6a791;
  --about-li:#e3d8d6;--about-dot:#cc6b49;
  --btn-details-bg:#a84b2c;--btn-details-text:#ffffff;--btn-details-hover:#8f3d21;
  --modal-overlay:rgba(0,0,0,0.7);--modal-bg:#241a18;--modal-hover:#2e2220;
  --font-sans:'Inter',sans-serif;--font-serif:'Playfair Display',serif;
  --nav-height:80px;--r-sm:1rem;--r-md:1.5rem;--r-lg:2rem;
}

/* ── THEME 2: Emerald Wellness (Light) ── */
html[data-theme="emerald"] {
  --bg-main:var(--slate-50);--bg-sec:#ffffff;
  --nav-bg:rgba(255,255,255,0.7);
  --text-base:var(--slate-800);--text-muted:var(--slate-500);
  --text-heading:var(--emerald-950);--brand-color:var(--emerald-700);
  --btn-primary-bg:var(--emerald-900);--btn-primary-text:#ffffff;--btn-primary-hover:var(--emerald-800);
  --card-bg:var(--slate-50);--card-border:#c7c7c7;--border-subtle:var(--slate-200);
  --icon-box:#ffffff;
  --glass-bg:rgba(255,255,255,0.6);--glass-border:rgba(255,255,255,0.4);
  --badge-bg:var(--emerald-100);--badge-text:var(--emerald-800);
  --blur-1:rgba(209,250,229,0.5);--blur-2:var(--emerald-50);
  --footer-bg:var(--slate-50);
  --about-bg:var(--emerald-900);--about-label:var(--emerald-300);
  --about-h4:var(--emerald-200);--about-li:var(--emerald-100);
  --about-dot:var(--emerald-400);
  --btn-details-bg:var(--emerald-500);--btn-details-text:#022c22;--btn-details-hover:var(--emerald-400);
  --modal-overlay:rgba(2,44,34,0.4);--modal-bg:#ffffff;--modal-hover:var(--slate-50);
}

/* ── THEME 3: Ocean (Dark Blue) ── */
html[data-theme="ocean"] {
  --bg-main:#0b1222;--bg-sec:#0d1a2e;--nav-bg:rgba(11,18,34,0.88);
  --text-base:#ccd6f0;--text-muted:#7a8fbb;--text-heading:#e8edf8;--brand-color:#4fa3e0;
  --btn-primary-bg:#1a5fa8;--btn-primary-text:#ffffff;--btn-primary-hover:#1751921;
  --card-bg:#111e36;--card-border:#1e3055;--border-subtle:#1a2d4a;--icon-box:#0b1222;
  --glass-bg:rgba(17,30,54,0.75);--glass-border:rgba(79,163,224,0.18);
  --badge-bg:rgba(26,95,168,0.25);--badge-text:#88c4f0;
  --blur-1:rgba(79,163,224,0.14);--blur-2:rgba(26,95,168,0.12);
  --footer-bg:#0b1222;
  --about-bg:#0e1f3a;--about-label:#4fa3e0;--about-h4:#88c4f0;
  --about-li:#ccd6f0;--about-dot:#4fa3e0;
  --btn-details-bg:#2680c7;--btn-details-text:#ffffff;--btn-details-hover:#4fa3e0;
  --modal-overlay:rgba(0,5,20,0.72);--modal-bg:#0d1a2e;--modal-hover:#111e36;
}

/* ── THEME 4: Amethyst (Dark Purple) ── */
html[data-theme="amethyst"] {
  --bg-main:#130d1f;--bg-sec:#0f0b18;--nav-bg:rgba(19,13,31,0.88);
  --text-base:#ddd6f0;--text-muted:#9485be;--text-heading:#f0ecfa;--brand-color:#a879e6;
  --btn-primary-bg:#7c3aed;--btn-primary-text:#ffffff;--btn-primary-hover:#6d28d9;
  --card-bg:#1d1430;--card-border:#2e2048;--border-subtle:#261c3d;--icon-box:#130d1f;
  --glass-bg:rgba(29,20,48,0.75);--glass-border:rgba(168,121,230,0.18);
  --badge-bg:rgba(124,58,237,0.2);--badge-text:#c4a7f5;
  --blur-1:rgba(168,121,230,0.14);--blur-2:rgba(124,58,237,0.12);
  --footer-bg:#0f0b18;
  --about-bg:#1a1130;--about-label:#a879e6;--about-h4:#c4a7f5;
  --about-li:#ddd6f0;--about-dot:#a879e6;
  --btn-details-bg:#8b5cf6;--btn-details-text:#ffffff;--btn-details-hover:#a879e6;
  --modal-overlay:rgba(0,0,10,0.72);--modal-bg:#1a1130;--modal-hover:#1d1430;
}

/* ── THEME 5: Ivory (Warm Light) ── */
html[data-theme="ivory"] {
  --bg-main:#faf7f2;--bg-sec:#ffffff;--nav-bg:rgba(250,247,242,0.78);
  --text-base:#3d2e1e;--text-muted:#8a7060;--text-heading:#2a1a0a;--brand-color:#b45309;
  --btn-primary-bg:#92400e;--btn-primary-text:#ffffff;--btn-primary-hover:#78350f;
  --card-bg:#fdf9f4;--card-border:#c7c7c7;--border-subtle:#e8d8c4;--icon-box:#ffffff;
  --glass-bg:rgba(255,252,248,0.65);--glass-border:rgba(255,255,255,0.5);
  --badge-bg:#fef3c7;--badge-text:#92400e;
  --blur-1:rgba(251,191,36,0.18);--blur-2:rgba(245,158,11,0.1);
  --footer-bg:#faf7f2;
  --about-bg:#92400e;--about-label:#fcd34d;--about-h4:#fef3c7;
  --about-li:#fef9ee;--about-dot:#fbbf24;
  --btn-details-bg:#d97706;--btn-details-text:#ffffff;--btn-details-hover:#b45309;
  --modal-overlay:rgba(60,30,0,0.4);--modal-bg:#ffffff;--modal-hover:#faf7f2;
}


/* ── RESET ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
@media (min-width: 1024px) { html { font-size: 17px; } }
body{
  background-color:var(--bg-main);color:var(--text-base);
  font-family:var(--font-sans);font-weight:400;line-height:1.8;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  transition:background-color .5s ease,color .5s ease;overflow-x:hidden
}
body.modal-open{overflow:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* ── TYPE ── */
h1,h2,h3,h4{
  font-family:var(--font-serif);color:var(--text-heading);
  letter-spacing:-0.02em;transition:color .5s ease
}

/* ── LAYOUT ── */
.container{max-width:1280px;margin:0 auto;padding:0 1.5rem}

/* ── NAVBAR ── */
.navbar{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background-color:var(--nav-bg);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border-subtle);
  box-shadow:0 4px 30px rgba(0,0,0,.03);
  height:var(--nav-height);
  transition:all .5s cubic-bezier(.16,1,.3,1);
}
.navbar.scrolled{
  height:65px;
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  box-shadow:0 15px 40px -10px rgba(0,0,0,.1);
  border-bottom-color:transparent;
}
.navbar-inner{display:flex;align-items:center;height:100%;gap:1.5rem}
.nav-logo{display:flex;align-items:center;gap:.75rem;flex-shrink:0;text-decoration:none}
.nav-logo-icon{
  width:40px;height:40px;border-radius:.75rem;
  background-color:var(--btn-primary-bg);
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;flex-shrink:0;transition:background-color .5s ease
}
.nav-logo-text{display:flex;flex-direction:column;line-height:1.15}
.nav-logo-text .brand-name{
  font-family:var(--font-serif);font-size:1.05rem;font-weight:700;
  color:var(--text-heading);transition:color .5s ease
}
.nav-logo-text .brand-tagline{
  font-size:.58rem;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--brand-color);transition:color .5s ease;
  margin-top:.4rem;
}
.nav-links{display:flex;gap:.15rem;margin:0 auto;list-style:none}
.nav-links a{
  font-size:.78rem;font-weight:500;color:var(--text-muted);
  padding:.4rem .65rem;border-radius:.5rem;transition:all .3s ease
}
.nav-links a:hover,.nav-links a.active{color:var(--text-heading);background-color:var(--border-subtle)}
.nav-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}
.theme-btn{
  width:36px;height:36px;border-radius:50%;background:none;border:none;cursor:pointer;
  color:var(--text-muted);display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;transition:all .3s ease
}
.theme-btn:hover{background-color:var(--border-subtle);color:var(--text-heading)}

/* Hamburger */
.hamburger{
  display:none;flex-direction:column;gap:5px;cursor:pointer;
  padding:4px;background:none;border:none;
  width:36px;height:36px;border-radius:50%;
  align-items:center;justify-content:center;transition:background-color .3s ease
}
.hamburger:hover{background-color:var(--border-subtle)}
.hamburger span{display:block;width:18px;height:1.5px;background:var(--text-muted);transition:all .3s ease;border-radius:1px}

/* Mobile Menu */
.mobile-menu{
  display:none;position:fixed;top:var(--nav-height);left:0;right:0;
  background-color:var(--nav-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border-subtle);
  padding:1.5rem;z-index:49;flex-direction:column;gap:.25rem;
  box-shadow:0 20px 40px rgba(0,0,0,.1)
}
.mobile-menu.open{display:flex}
.mobile-menu a{
  padding:.6rem .75rem;border-radius:.75rem;
  font-size:.875rem;font-weight:500;color:var(--text-muted);transition:all .2s ease
}
.mobile-menu a:hover,.mobile-menu a.active{background-color:var(--border-subtle);color:var(--text-heading)}

/* ── BUTTONS ── */
.btn-primary{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:1rem 2rem;background-color:var(--btn-primary-bg);
  color:var(--btn-primary-text);border-radius:var(--r-sm);
  font-family:var(--font-sans);font-size:.875rem;font-weight:600;
  border:none;cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.15);transition:all .4s cubic-bezier(.16,1,.3,1);
  text-decoration:none;position:relative;overflow:hidden;
}
.btn-primary::after{
  content:'';position:absolute;top:0;left:-100%;width:50%;height:100%;
  background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,0.2) 50%,rgba(255,255,255,0) 100%);
  transform:skewX(-20deg);transition:none;
}
.btn-primary:hover::after{
  left:200%;transition:left .7s ease;
}
.btn-primary:hover{background-color:var(--btn-primary-hover);transform:translateY(-3px);box-shadow:0 15px 30px rgba(0,0,0,.25)}
.btn-primary:hover .btn-arr{transform:translateX(5px)}
.btn-arr{transition:transform .4s cubic-bezier(.16,1,.3,1)}

.btn-secondary{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:1rem 2rem;background-color:transparent;
  color:var(--text-heading);border-radius:var(--r-sm);
  font-family:var(--font-sans);font-size:.875rem;font-weight:600;
  border:1px solid var(--border-subtle);cursor:pointer;transition:all .3s ease;text-decoration:none
}
.btn-secondary:hover{background-color:var(--card-border);transform:translateY(-1px)}

.btn-details{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.75rem 1.5rem;background-color:var(--btn-details-bg);
  color:var(--btn-details-text);border-radius:var(--r-sm);
  font-size:.875rem;font-weight:600;border:none;cursor:pointer;
  transition:all .3s ease;text-decoration:none
}
.btn-details:hover{background-color:var(--btn-details-hover);transform:translateY(-1px)}

/* ── PILL BADGE ── */
.pill-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.25rem .75rem;border-radius:999px;
  background-color:var(--badge-bg);color:var(--badge-text);
  font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  transition:background-color .5s ease,color .5s ease
}

/* ── BLUR BLOBS ── */
.blob-wrap{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.blur-blob-1{
  position:absolute;top:-25%;right:-10%;width:50vw;height:50vw;
  background-color:var(--blur-1);border-radius:50%;filter:blur(100px);
  transition:background-color .8s ease;
  animation:blobMovement1 20s ease-in-out infinite alternate;
}
.blur-blob-2{
  position:absolute;bottom:-20%;left:-15%;width:40vw;height:40vw;
  background-color:var(--blur-2);border-radius:50%;filter:blur(100px);
  transition:background-color .8s ease;
  animation:blobMovement2 25s ease-in-out infinite alternate;
}
@keyframes blobMovement1{
  0%{transform:translate(0,0) scale(1); opacity: 0.8;}
  100%{transform:translate(-10%,10%) scale(1.1); opacity: 1;}
}
@keyframes blobMovement2{
  0%{transform:translate(0,0) scale(1); opacity: 0.8;}
  100%{transform:translate(10%,-10%) scale(1.15); opacity: 1;}
}

/* ── HERO ── */
.hero{
  min-height:100vh;padding-top:var(--nav-height);
  position:relative;overflow:hidden;
  background-color:var(--bg-main);transition:background-color .5s ease
}
.hero-inner{
  display:grid;grid-template-columns:1fr 1fr;
  align-items:center;gap:2rem;
  min-height:calc(100vh - var(--nav-height))
}
.hero-content{
  padding:4rem 0;position:relative;z-index:1;
  display:flex;flex-direction:column;gap:1.75rem
}
.hero-title{
  font-size:clamp(3.5rem,6vw,5rem);font-weight:700;
  line-height:1.05;color:var(--text-heading);transition:color .5s ease;
  letter-spacing:-0.03em;
}
.hero-title em{font-style:italic;color:var(--brand-color);transition:color .5s ease}
.hero-desc{
  font-size:1.15rem;color:var(--text-muted);max-width:34rem;
  border-left:2px solid var(--brand-color);padding-left:1.25rem;
  transition:color .5s ease,border-color .5s ease;line-height:1.8;
}
.hero-btns{display:flex;gap:1rem;flex-wrap:wrap}
/* Hero Visual */
.hero-visual{position:relative;height:580px;z-index:1}
.img-main{position:absolute;right:0;top:0;width:80%;height:430px;
  border-radius:3rem 8rem 3rem 3rem;overflow:hidden;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.25);cursor:pointer;
  transform:scale(1);
  transition:transform .5s cubic-bezier(.16,1,.3,1),
             box-shadow .5s ease,
             z-index 0s .25s;
  z-index:25
}
.img-main:hover .img-fill{transform:scale(1.05)}
.img-overlap{
  position:absolute;left:0;bottom:0;width:62%;height:340px;
  border-radius:2rem 2rem 2rem 6rem;overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,.2);
  border:none;cursor:pointer;
  transform:scale(1);
  transition:transform .5s cubic-bezier(.16,1,.3,1),
             box-shadow .5s ease,
             z-index 0s .25s;
  z-index:20
}
.img-overlap:hover .img-fill{transform:scale(1.05)}
.img-main.img-front,
.img-overlap.img-front{z-index:30;
  transform:scale(1.03);
  box-shadow:0 40px 80px -10px rgba(0,0,0,.45);
  transition:transform .5s cubic-bezier(.16,1,.3,1),
             box-shadow .5s ease,
             z-index 0s 0s
}
.img-fill{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.16,1,.3,1)}

/* Frame art backgrounds */
.frame-art-main{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#4a2218 0%,#2a1410 100%);
}
html[data-theme="emerald"] .frame-art-main, html[data-theme="ivory"] .frame-art-main {
  background:linear-gradient(135deg,var(--emerald-700) 0%,var(--emerald-900) 100%);
}

.frame-art-overlap{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#3d2820 0%,#4f3028 100%);
}
html[data-theme="emerald"] .frame-art-overlap, html[data-theme="ivory"] .frame-art-overlap {
  background:linear-gradient(135deg,var(--emerald-100) 0%,var(--emerald-200) 100%);
}

/* Glass Badge */
.glass-badge{
  position:absolute;right:2rem;bottom:4.5rem;z-index:40;
  background:var(--glass-bg);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  padding:1.25rem 1.5rem;border-radius:var(--r-md);
  box-shadow:0 30px 60px -10px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,0.6);
  border:1px solid var(--glass-border);
  display:flex;align-items:center;gap:1.25rem;pointer-events:none;
  transition:all .5s ease;animation:float 6s ease-in-out infinite
}
.badge-icon{
  width:3.5rem;height:3.5rem;border-radius:50%;
  background:linear-gradient(135deg, var(--badge-bg), transparent);
  border:1px solid var(--glass-border);
  color:var(--brand-color);
  display:flex;align-items:center;justify-content:center;
  transition:all .5s ease;
  box-shadow:0 8px 16px rgba(0,0,0,.05);
}
.badge-icon svg{width:24px;height:24px}
.badge-text .num{
  font-family:var(--font-serif);font-size:1.6rem;font-weight:700;
  color:var(--text-heading);line-height:1;transition:color .5s ease
}
.badge-text .lbl{
  font-size:.75rem;font-weight:600;color:var(--text-muted);
  letter-spacing:.08em;text-transform:uppercase;transition:color .5s ease
}

/* ── SECTIONS ── */
.section{
  padding:6rem 0;position:relative;overflow:hidden;
  background-color:var(--bg-main);transition:background-color .5s ease
}
.section.bg-sec{background-color:var(--bg-sec)}
.section-header{margin-bottom:4rem}
.section-label{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.75rem;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:var(--brand-color);margin-bottom:1rem;
  transition:color .5s ease
}
.section-label::before{
  content:'';width:20px;height:2px;background-color:var(--brand-color);
  border-radius:1px;transition:background-color .5s ease
}
.section-title{
  font-size:clamp(2rem,3.5vw,2.5rem);font-weight:600;
  color:var(--text-heading);line-height:1.2;transition:color .5s ease
}
.section-title em{font-style:italic;color:var(--brand-color);transition:color .5s ease}

/* ── SERVICE CARDS — Premium Glass ── */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem}
.service-card{
  background:var(--glass-bg);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-radius:var(--r-lg);
  padding:3rem 2.5rem;border:1px solid var(--glass-border);cursor:pointer;
  transition:all .6s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column;gap:1.5rem;text-decoration:none;
  position:relative;overflow:hidden;
  transform-style:preserve-3d;
  box-shadow:0 10px 30px rgba(0,0,0,.02);
}
.service-card::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 50% 0%, rgba(255,255,255,0.4), transparent 70%);
  opacity:0;transition:opacity .6s ease;pointer-events:none;
}
.service-card:hover{
  border-color:var(--brand-color);
  box-shadow:0 35px 60px -15px rgba(0,0,0,.4), 0 0 0 1px var(--brand-color) inset;
  transform:translateY(-10px);
}
html[data-theme="emerald"] .service-card:hover, html[data-theme="ivory"] .service-card:hover {
  box-shadow:0 35px 60px -15px rgba(0,0,0,.1), 0 0 0 1px var(--brand-color) inset;
}
.service-card:hover::before{opacity:1;}
.service-icon-wrapper{
  width:5rem;height:5rem;border-radius:var(--r-md);
  background:linear-gradient(135deg,var(--badge-bg),transparent);
  border:1px solid var(--glass-border);
  box-shadow:0 12px 24px rgba(0,0,0,.06);
  display:flex;align-items:center;justify-content:center;font-size:2rem;
  color:var(--brand-color);
  transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s ease, background-color .6s ease;
}
.service-icon-wrapper svg{width:32px;height:32px}
.service-card:hover .service-icon-wrapper{
  transform:translateY(-5px) scale(1.05);
  background-color:var(--badge-bg);
  box-shadow:0 15px 30px rgba(0,0,0,.1);
}
.service-card h3{font-size:1.35rem;font-weight:600;color:var(--text-heading);transition:color .4s ease;letter-spacing:-0.01em;}
.service-card p{font-size:.95rem;color:var(--text-muted);line-height:1.7;flex:1;transition:color .4s ease}
.service-card:hover h3{color:var(--brand-color)}
.service-card .card-link{
  font-size:.85rem;font-weight:600;color:var(--text-muted);
  display:flex;align-items:center;gap:.35rem;transition:color .4s ease, transform .4s ease;
  margin-top:auto;
}
.service-card:hover .card-link{color:var(--brand-color); transform:translateX(5px);}

/* ── ABOUT — Dark Brand Panel ── */
.about-section{
  padding:6rem 0;background-color:var(--about-bg);
  position:relative;overflow:hidden;transition:background-color .5s ease
}
.about-section::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 30% 50%,rgba(255,255,255,.06),transparent 60%);
  pointer-events:none
}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;position:relative;z-index:1}
.about-image-wrap{position:relative}
.about-portrait{
  width:100%;height:480px;border-radius:3rem 8rem 3rem 3rem;
  overflow:hidden;position:relative
}
.about-portrait-art{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#3d2820 0%,#1d1210 100%);
}
html[data-theme="emerald"] .about-portrait-art, html[data-theme="ivory"] .about-portrait-art {
  background:linear-gradient(145deg,var(--emerald-800) 0%,var(--emerald-950) 100%);
}

/* White quote card — always #ffffff per skill rule */
.about-quote{
  position:absolute;bottom:-1.5rem;right:-1.5rem;
  background-color:#ffffff;padding:1.5rem;
  border-radius:var(--r-sm);box-shadow:0 20px 25px -5px rgba(0,0,0,.2);
  max-width:250px;z-index:10
}
.about-quote p{font-family:var(--font-serif);font-style:italic;color:#1d1615;font-size:.875rem;line-height:1.5}
.about-quote .q-author{
  margin-top:.6rem;font-size:.65rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;color:#059669
}
.about-content{display:flex;flex-direction:column;gap:1.85rem}
.about-section .section-label{color:var(--about-label)}
.about-section .section-label::before{background-color:var(--about-label)}
.about-section h2{font-size:clamp(2.5rem,4vw,3.5rem);color:#ffffff;line-height:1.1;letter-spacing:-0.02em;}
.about-section h2 em{font-style:italic;color:var(--about-label)}
.about-section .about-desc{color:var(--about-li);font-size:1.05rem;line-height:1.85;opacity:.9}
.about-stats{display:flex;gap:3rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.15)}
.stat-item .num{font-family:var(--font-serif);font-size:3rem;font-weight:700;color:var(--about-dot);line-height:1}
.stat-item .lbl{font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--about-h4);margin-top:.25rem}

/* ── INFO CARDS ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.info-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all .6s cubic-bezier(.16, 1, .3, 1);
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.info-card:hover {
  border-color: var(--brand-color);
  box-shadow:0 35px 60px -15px rgba(0,0,0,.4);
  transform: translateY(-8px);
}
html[data-theme="emerald"] .info-card:hover, html[data-theme="ivory"] .info-card:hover {
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, .15);
}

.info-card .icon{
  width:4.5rem;height:4.5rem;border-radius:var(--r-sm);
  background:linear-gradient(135deg,var(--badge-bg),transparent);
  border:1px solid var(--glass-border);
  display:flex;align-items:center;justify-content:center;
  color:var(--brand-color);
  font-size:2rem;margin-bottom:1.5rem;
  box-shadow:0 12px 24px rgba(0,0,0,.06);
  transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s ease;
}
.info-card .icon svg{width:28px;height:28px}
.info-card:hover .icon{transform:scale(1.1);box-shadow:0 15px 30px rgba(0,0,0,.1)}
.info-card h3{font-size:1.35rem;font-weight:600;letter-spacing:-0.01em;}
.info-card p{font-size:.95rem;color:var(--text-muted);line-height:1.7;transition:color .5s ease}

/* ── BOOKS ── */
.books-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:2rem}
.book-card{display:flex;flex-direction:column;gap:1rem;cursor:pointer;transition:transform .4s cubic-bezier(.16,1,.3,1)}
.book-card:hover{transform:translateY(-8px)}
.book-cover{aspect-ratio:2/3;border-radius:var(--r-md);overflow:hidden;position:relative;box-shadow:0 20px 40px rgba(0,0,0,.15)}
.book-tag-badge{
  position:absolute;top:.75rem;right:.75rem;
  background:rgba(255,255,255,.15);backdrop-filter:blur(8px);
  color:#fff;font-size:.6rem;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;padding:.25rem .6rem;
  border-radius:999px;border:1px solid rgba(255,255,255,.2)
}
.book-cover-inner{
  width:100%;height:100%;display:flex;flex-direction:column;
  align-items:center;justify-content:center;padding:1.5rem;
  text-align:center;gap:.75rem;position:relative
}
.book-cover-inner::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:4px;
  background:rgba(255,255,255,.3);border-radius:0 2px 2px 0
}
.book-cover-title{font-family:var(--font-serif);font-size:.95rem;font-weight:600;color:rgba(255,255,255,.95);line-height:1.3}
.book-cover-year{font-size:.65rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.book-info-name{font-family:var(--font-serif);font-size:1.05rem;font-weight:600;color:var(--text-heading);transition:color .5s ease}
.book-info-meta{font-size:.75rem;color:var(--brand-color);font-weight:600;letter-spacing:.05em;transition:color .5s ease}
.book-info-desc{font-size:.8rem;color:var(--text-muted);line-height:1.5;margin-top:.25rem;transition:color .5s ease}

/* ── PRICING ── */
.pricing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2rem}
.price-card{
  background-color:var(--card-bg);border:1px solid var(--card-border);
  border-radius:var(--r-lg);padding:3rem 2.5rem;display:flex;flex-direction:column;gap:1.5rem;
  position:relative;transition:all .5s cubic-bezier(.16,1,.3,1);
  transform-style:preserve-3d;
}
.price-card:hover{transform:translateY(-8px);box-shadow:0 30px 60px -15px rgba(0,0,0,.2)}
.price-card.featured{border-color:var(--brand-color);box-shadow:0 15px 35px -5px rgba(0,0,0,.08)}
.price-card.featured:hover{box-shadow:0 35px 70px -15px rgba(0,0,0,.25)}
.price-card.featured::before{
  content:'Популярний';position:absolute;top:-1px;right:1.5rem;
  background:var(--btn-primary-bg);color:#fff;
  font-size:.65rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  padding:.3rem .75rem;border-radius:0 0 .75rem .75rem
}
.price-card h3{font-size:1.25rem;font-weight:600}
.price-amount{font-family:var(--font-serif);font-size:3rem;font-weight:700;color:var(--brand-color);line-height:1;transition:color .5s ease}
.price-amount span{font-size:1rem;color:var(--text-muted);font-family:var(--font-sans);font-weight:400}
.price-features{display:flex;flex-direction:column;gap:.6rem;flex:1}
.price-features li{font-size:.875rem;color:var(--text-muted);display:flex;gap:.6rem;align-items:flex-start;transition:color .5s ease}
.price-features li::before{content:'✓';color:var(--brand-color);font-size:.8rem;flex-shrink:0;margin-top:2px;transition:color .5s ease}

/* ── STEPS ── */
.steps-list{display:flex;flex-direction:column;border-left:2px solid var(--border-subtle);margin-left:1rem;transition:border-color .5s ease}
.step{padding:1.5rem 1.5rem 1.5rem 2rem;position:relative}
.step::before{
  content:'';position:absolute;left:-6px;top:1.75rem;
  width:10px;height:10px;border-radius:50%;
  background:var(--brand-color);border:2px solid var(--bg-main);
  transition:background-color .5s ease,border-color .5s ease
}
.step-num{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--brand-color);margin-bottom:.4rem;transition:color .5s ease}
.step h3{font-size:1.1rem;margin-bottom:.4rem}
.step p{font-size:.875rem;color:var(--text-muted);transition:color .5s ease}

/* ── CONTACT ── */
.contact-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:4rem;align-items:start}
.contact-item{display:flex;flex-direction:column;gap:.35rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border-subtle);transition:border-color .5s ease}
.ci-label{font-size:.65rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--brand-color);transition:color .5s ease}
.ci-value{font-size:1rem;color:var(--text-heading);transition:color .5s ease}
.form-grid{display:flex;flex-direction:column;gap:1.25rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field label{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);transition:color .5s ease}
.field input,.field textarea,.field select{
  background-color:var(--card-bg);border:1px solid var(--card-border);
  color:var(--text-base);font-family:var(--font-sans);font-size:.9rem;
  padding:.85rem 1rem;border-radius:.75rem;outline:none;width:100%;
  transition:all .3s ease
}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--brand-color);box-shadow:0 0 0 3px var(--blur-2)}
.field textarea{resize:vertical;min-height:120px}

/* ── PAYMENT ── */
.payment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem}
.payment-card{
  background-color:var(--card-bg);border:1px solid var(--card-border);
  border-radius:var(--r-md);padding:2rem;display:flex;flex-direction:column;gap:.75rem;
  transition:all .3s ease
}
.payment-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.1)}
.payment-card .pay-icon{font-size:2rem}
.payment-card h3{font-size:1.15rem;font-weight:600}
.payment-card p{font-size:.85rem;color:var(--text-muted);transition:color .5s ease}
.pay-detail{
  background-color:var(--bg-main);border:1px solid var(--border-subtle);
  border-radius:.5rem;padding:.6rem .875rem;font-size:.82rem;
  font-family:'Courier New',monospace;color:var(--brand-color);
  word-break:break-all;transition:all .5s ease
}

/* ── TESTIMONIALS ── */
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.testimonial{
  background-color:var(--card-bg);border:1px solid var(--card-border);
  border-radius:var(--r-md);padding:2rem;display:flex;flex-direction:column;gap:1rem;
  transition:all .3s ease
}
.testimonial:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.1)}
.testimonial .stars{color:#f59e0b;letter-spacing:.1em}
.testimonial blockquote{font-family:var(--font-serif);font-size:1.05rem;font-style:italic;color:var(--text-muted);flex:1;transition:color .5s ease}
.testimonial .author{font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-color);transition:color .5s ease}

/* ── MODAL ── */
.modal-overlay{
  position:fixed;top:0;left:0;width:100vw;height:100vh;
  background-color:var(--modal-overlay);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  z-index:100;display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;transition:opacity .4s ease
}
.modal-overlay.active{opacity:1;pointer-events:auto}
.modal-content{
  background-color:var(--modal-bg);width:90%;max-width:420px;
  border-radius:var(--r-md);box-shadow:0 25px 50px -12px rgba(0,0,0,.3);
  border:1px solid var(--border-subtle);
  transform:translateY(20px) scale(.95);
  transition:transform .4s cubic-bezier(.16,1,.3,1),background-color .5s ease;
  overflow:hidden;padding:2rem
}
.modal-overlay.active .modal-content{transform:translateY(0) scale(1)}

/* ── PAGE HERO ── */
.page-hero{
  padding-top:calc(var(--nav-height) + 2.5rem);padding-bottom:3.5rem;
  background:linear-gradient(180deg, var(--bg-sec) 0%, var(--bg-main) 100%);
  position:relative;overflow:hidden;
  transition:background-color .5s ease
}

/* Decorative circles */
.hero-deco-circle {
  position:absolute; border-radius:50%;
  pointer-events:none; z-index:0;
}
.hero-deco-1 {
  width:600px; height:600px;
  top:-10%; right:-5%;
  background:radial-gradient(circle, var(--blur-1) 0%, transparent 70%);
  opacity:0.5;
  animation:decoFloat 25s ease-in-out infinite alternate;
}
.hero-deco-2 {
  width:400px; height:400px;
  bottom:-15%; left:-8%;
  background:radial-gradient(circle, var(--blur-2) 0%, transparent 70%);
  opacity:0.4;
  animation:decoFloat 30s ease-in-out infinite alternate-reverse;
}
.hero-deco-3 {
  width:200px; height:200px;
  top:30%; left:40%;
  background:radial-gradient(circle, var(--blur-1) 0%, transparent 70%);
  opacity:0.2;
  animation:decoFloat 20s ease-in-out infinite alternate;
}
@keyframes decoFloat {
  0% { transform:translate(0,0) scale(1); }
  100% { transform:translate(5%,-8%) scale(1.1); }
}

/* Noise - more subtle */
.noise-overlay {
  position:absolute; inset:0;
  pointer-events:none; z-index:1;
  opacity:var(--noise-opacity, 0.05);
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
html[data-theme="emerald"] .noise-overlay, html[data-theme="ivory"] .noise-overlay { 
  mix-blend-mode: multiply; opacity: 0.03; 
}
.page-hero-title{
  font-size:clamp(2.8rem,6vw,4.5rem);font-weight:700;
  color:var(--text-heading);line-height:1.1;max-width:700px;margin-top:1rem;
  transition:color .5s ease
}
.page-hero-title em{font-style:italic;color:var(--brand-color);transition:color .5s ease}
.page-hero .hero-desc{margin-top:1.25rem;position:relative;z-index:1}

/* ── FOOTER ── */
footer{
  background-color:var(--footer-bg);border-top:1px solid var(--border-subtle);
  padding:4rem 0 2rem;transition:background-color .5s ease,border-color .5s ease
}
.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:3rem;margin-bottom:3rem}
.footer-brand .brand-name{font-family:var(--font-serif);font-size:1.35rem;font-weight:700;color:var(--text-heading);margin-bottom:.75rem;transition:color .5s ease}
.footer-brand .brand-name em{color:var(--brand-color);font-style:italic;transition:color .5s ease}
.footer-brand p{font-size:.85rem;color:var(--text-muted);max-width:240px;line-height:1.65;transition:color .5s ease}
.footer-col h4{font-family:var(--font-sans);font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-bottom:1.25rem;transition:color .5s ease}
.footer-col a{display:block;font-size:.875rem;color:var(--text-muted);margin-bottom:.6rem;transition:color .3s ease}
.footer-col a:hover{color:var(--brand-color)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:2rem;border-top:1px solid var(--border-subtle);font-size:.75rem;color:var(--text-muted);transition:border-color .5s ease}

/* ── SOCIAL BUTTONS ── */
.social-btns{display:flex;gap:.5rem;margin-top:.75rem}
.social-btn{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1rem;transition:all .3s ease;text-decoration:none}
.social-btn.tg{background:rgba(59,130,246,.1);color:#3b82f6}
.social-btn.tg:hover{background:rgba(59,130,246,.2)}
.social-btn.wa{background:rgba(34,197,94,.1);color:#22c55e}
.social-btn.wa:hover{background:rgba(34,197,94,.2)}
.social-btn.ig{background:rgba(236,72,153,.1);color:#ec4899}
.social-btn.ig:hover{background:rgba(236,72,153,.2)}
.social-btn.yt{background:rgba(239,68,68,.1);color:#ef4444}
.social-btn.yt:hover{background:rgba(239,68,68,.2)}

/* ═══════════════════════════════════════════════
   BOOKS GALLERY
   ═══════════════════════════════════════════════ */
.books-gallery-grid {
  display: grid; gap: 2rem;
  padding-bottom: 4rem;
}
@media (min-width: 900px) {
  .books-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.glass-card {
  position: relative; overflow: hidden; border-radius: 2rem;
  background: var(--glass-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.6s, border-color 0.6s;
  display: flex; flex-direction: column;
}
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
html[data-theme="emerald"] .glass-card:hover, html[data-theme="ivory"] .glass-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

.aura { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.6; z-index: 0; pointer-events: none; transition: opacity 0.4s; }
.glass-card:hover .aura { opacity: 0.9; filter: blur(70px); }

.aura-thriller { width: 300px; height: 300px; background: rgba(185, 28, 28, 0.25); top: -50px; right: -50px; }
html[data-theme="emerald"] .aura-thriller, html[data-theme="ivory"] .aura-thriller { background: rgba(220, 38, 38, 0.15); }

.aura-irido { width: 250px; height: 250px; background: rgba(29, 78, 216, 0.25); bottom: -50px; right: 0; }
html[data-theme="emerald"] .aura-irido, html[data-theme="ivory"] .aura-irido { background: rgba(37, 99, 235, 0.15); }

.aura-phyto { width: 250px; height: 250px; background: rgba(4, 120, 87, 0.25); top: 50%; left: -50px; }
html[data-theme="emerald"] .aura-phyto, html[data-theme="ivory"] .aura-phyto { background: rgba(5, 150, 105, 0.15); }

.card-inner { position: relative; z-index: 10; display: flex; flex-direction: column; height: 100%; padding: 3rem 2rem; }
.glass-card-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .glass-card-wide .card-inner { flex-direction: row; align-items: center; gap: 4rem; padding: 4rem; }
  .glass-card-wide .book-info { flex: 1; }
  .glass-card-wide .book-visual { flex: 0 0 320px; }
}

.book-visual { display: flex; justify-content: center; perspective: 1200px; margin-bottom: 2.5rem; }
.glass-card-wide .book-visual { margin-bottom: 0; }

.book-info { display: flex; flex-direction: column; height: 100%; }
.tags { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--badge-bg); color: var(--badge-text); }
.tag.accent { background: var(--btn-primary-bg); color: var(--btn-primary-text); }

.book-title { font-family: var(--font-serif); font-size: 2rem; line-height: 1.1; margin-bottom: 1rem; color: var(--text-heading); }
.glass-card-wide .book-title { font-size: 3rem; letter-spacing: -0.02em; }

.book-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; flex-grow: 1; }
.glass-card-wide .book-desc { font-size: 1.05rem; }

.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: auto; }
.btn { padding: 0.8rem 1.5rem; border-radius: 1rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: var(--font-sans); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.btn-main { background: var(--btn-primary-bg); color: var(--btn-primary-text); border: none; }
.btn-main:hover { background: var(--btn-primary-hover); transform: translateY(-2px); }
.btn-sub { background: transparent; color: var(--text-heading); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-sub:hover { background: var(--badge-bg); }

/* ── 3D BOOKS ── */
.book-3d {
  position: relative; width: 180px; height: 270px;
  transform-style: preserve-3d; transform: rotateY(-20deg) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.glass-card-wide .book-3d { width: 250px; height: 375px; }
.book-3d:hover { transform: rotateY(-5deg) rotateX(2deg) scale(1.05); }

.book-front, .book-left, .book-right { position: absolute; }
.book-front {
  top: 0; left: 0; width: 100%; height: 100%;
  transform: translateZ(15px); border-radius: 3px 12px 12px 3px;
  overflow: hidden; box-shadow: -10px 10px 25px rgba(0,0,0,0.3);
}
.glass-card-wide .book-front { transform: translateZ(20px); border-radius: 4px 14px 14px 4px; }
.book-cover-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.book-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 40%); mix-blend-mode: overlay; pointer-events: none; }
.book-front::before {
  content: ''; position: absolute;
  top: 0px; bottom: 0px; right: -2px; width: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 0 12px 12px 0; transform: translateZ(-1px);
}

.book-left {
  top: 0; left: 0; width: 30px; height: 100%;
  transform: rotateY(-90deg) translateZ(15px);
  border-radius: 4px 0 0 4px;
  box-shadow: inset -5px 0 10px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.glass-card-wide .book-left { width: 40px; transform: rotateY(-90deg) translateZ(20px); }
.book-left span { transform: rotate(-90deg); color: #fff; font-family: var(--font-serif); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; opacity: 0.6; }

.book-right {
  right: 3px; top: 3px;
  width: 26px; height: calc(100% - 6px);
  transform: rotateY(90deg) translateZ(13px);
  background: var(--border-subtle);
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px);
  border-radius: 0 8px 8px 0;
}
.glass-card-wide .book-right {
  right: 4px; top: 4px;
  width: 34px; height: calc(100% - 8px);
  transform: rotateY(90deg) translateZ(17px);
  border-radius: 0 10px 10px 0;
}

/* Filters */
.filter-btn {
  padding: 0.6rem 1.5rem; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--text-heading); border-color: var(--text-muted); }
.filter-btn.active { background: var(--text-heading); color: var(--bg-main); border-color: var(--text-heading); }

/* ── AUTHOR GALLERY ── */
.author-gallery-intro {
  max-width: 800px; margin: 0 auto 4rem; text-align: center;
}
.author-gallery-lead {
  font-family: var(--font-serif); font-size: 1.25rem; font-style: italic;
  line-height: 1.7; color: var(--text-heading);
}

.genre-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem; margin-bottom: 4rem;
}
.genre-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-md); padding: 2rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.genre-card:hover {
  border-color: var(--brand-color);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.3);
}
html[data-theme="emerald"] .genre-card:hover, html[data-theme="ivory"] .genre-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
}
.genre-card .genre-icon { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.genre-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.genre-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

.author-philosophy {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 3rem;
}
@media (max-width: 768px) { .author-philosophy { grid-template-columns: 1fr; } }
.philosophy-block {
  padding: 2rem; border-radius: var(--r-md);
  background: var(--glass-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}
.philosophy-block h3 {
  font-size: 1.15rem; margin-bottom: 0.75rem;
  color: var(--brand-color);
}
.philosophy-block p {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.7;
}

.author-gallery-cta {
  text-align: center;
}

/* ── DIPLOMAS HOVER REVEAL ── */
.diplomas-grid {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center; padding: 3rem 0;
}
.diploma-card-wrap {
  perspective: 1000px;
}
.diploma-card {
  position: relative; width: 220px; height: 300px;
  transition: transform 0.5s ease-out;
  transform-style: preserve-3d; cursor: pointer;
}
.diploma-card:hover {
  transform: rotateY(-25deg);
}
.diploma-card-inner {
  width: 100%; height: 100%;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background-size: cover; background-position: center;
  position: relative;
}
.diploma-card-inner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  pointer-events: none;
}
.diploma-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem; z-index: 2;
  color: #fff; font-size: 0.8rem; font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.diploma-reveal-tab {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 120px;
  background: var(--brand-color);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.4s ease;
  pointer-events: none;
}
.diploma-card:hover .diploma-reveal-tab {
  opacity: 1; right: -36px;
}
.diploma-reveal-tab span {
  writing-mode: vertical-lr; text-orientation: mixed;
  color: #fff; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.stagger-2 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.stagger-3 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.stagger-4 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

.animate-fade-in-up{opacity:0;animation:fadeInUp .8s cubic-bezier(.16,1,.3,1) forwards}
.delay-100{animation-delay:100ms}
.delay-200{animation-delay:200ms}
.delay-300{animation-delay:300ms}
.delay-400{animation-delay:400ms}

.reveal{opacity:0;transform:translateY(30px) scale(0.96);filter:blur(8px);transition:opacity 1s cubic-bezier(.16,1,.3,1),transform 1s cubic-bezier(.16,1,.3,1),filter 1s cubic-bezier(.16,1,.3,1)}
.reveal.visible{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .testimonials-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
  .about-grid{grid-template-columns:1fr;gap:3rem}
  .about-portrait{height:360px}
  .about-quote{right:0;bottom:-1rem}
}
@media(max-width:768px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .hero-inner{grid-template-columns:1fr}
  .hero-visual{display:none}
  .hero-content{padding:3rem 0}
  .services-grid{grid-template-columns:1fr}
  .testimonials-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr;gap:2rem}
  .form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:.5rem;text-align:center}
  .about-stats{gap:1.5rem}
}

/* ── UTILS ── */
.full-width{width:100%;justify-content:center}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.grid-2col-start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .grid-2col, .grid-2col-start { gap: 2rem; }
}
@media (max-width: 768px) {
  .grid-2col, .grid-2col-start {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.text-note {
  max-width: 800px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 auto 3rem;
  text-align: center;
}
@media (max-width: 768px) {
  .text-note { text-align: left; }
}

/* ── ARTICLES & MARKDOWN ── */
.article-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card h3 {
  transition: all 0.3s ease;
}
/* Подчеркивание при наведении */
.article-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Поиск */
.search-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}
.search-form input {
  flex: 1;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background-color: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-base);
  font-weight: 600;
  transition: all 0.3s ease;
}
.page-btn:hover {
  background-color: var(--border-subtle);
}
.page-btn.active {
  background-color: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
}

/* Стили для сгенерированного Markdown */
.markdown-content {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-base);
  max-width: 800px;
  margin: 0 auto;
}
.markdown-content h2, .markdown-content h3, .markdown-content h4 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  margin: 3rem 0 1.25rem 0;
  letter-spacing: -0.02em;
}
.markdown-content p {
  margin-bottom: 1.75rem;
}
.markdown-content a {
  color: var(--brand-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}
.markdown-content a:hover {
  color: var(--text-heading);
}
.markdown-content ul, .markdown-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.markdown-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}
.markdown-content li::marker {
  color: var(--brand-color);
}
.markdown-content blockquote {
  border-left: 4px solid var(--brand-color);
  padding: 1.5rem 2.5rem;
  margin: 3rem 0;
  background-color: var(--card-bg);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-heading);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.markdown-content img {
  border-radius: var(--r-md);
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  padding: 1.5rem;
  border-radius: var(--r-md);
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}
.article-nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border-color: var(--brand-color);
}
.article-nav-link .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-color);
  font-weight: 600;
}
.article-nav-link .ttl {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
}
@media(max-width: 768px) {
  .article-nav { flex-direction: column; gap: 1rem; }
}

/* ================= TRANSLATE MODAL & NAV BUTTON ================= */
.nav-actions-wrapper { display: flex; align-items: center; gap: 0.25rem; }
.text-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); transition: all 0.3s ease; padding: 0.35rem 0.75rem; border-radius: 999px; display: flex; align-items: center; gap: 0.35rem; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; }
.text-btn:hover { background-color: var(--border-subtle); color: var(--brand-color); }
.text-btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.text-btn:hover svg { transform: translateY(2px); }

.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.icon-btn:hover { background-color: var(--border-subtle); color: var(--text-heading); }

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.modal-header h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--text-heading); }
.modal-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.lang-option { background: none; border: none; width: 100%; text-align: left; padding: 0.85rem 1.25rem; border-radius: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; color: var(--text-base); font-weight: 500; transition: background-color 0.2s; }
.lang-option:hover { background-color: var(--modal-hover); }
.lang-option.active { background-color: var(--btn-primary-bg); color: #ffffff; font-weight: 600; }
.lang-option .check-icon { display: none; color: #ffffff; width: 16px; }
.lang-option.active .check-icon { display: block; }
.modal-footer { padding: 1.25rem 1.5rem; background-color: var(--modal-hover); border-top: 1px solid var(--border-subtle); }

.custom-checkbox { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.custom-checkbox input { display: none; }
.checkmark { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--text-muted); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--brand-color); border-color: var(--brand-color); }
.checkmark svg { width: 10px; height: 10px; color: white; display: none; }
.custom-checkbox input:checked ~ .checkmark svg { display: block; }

/* ================= IRIS SCANNER BLOCK ================= */
.iris-scanner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.iris-scanner {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 60px rgba(52,211,153,0.2), 0 30px 60px rgba(0,0,0,0.5);
}
.iris-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: contrast(1.1) saturate(1.15);
}
.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(52,211,153,0.1) 20%, rgba(52,211,153,0.8) 50%, rgba(52,211,153,0.1) 80%, transparent 100%);
  box-shadow: 0 0 12px 4px rgba(52,211,153,0.4);
  animation: scanMove 2.8s cubic-bezier(0.45,0,0.55,1) infinite;
  z-index: 3;
  pointer-events: none;
}
@keyframes scanMove {
  0%   { top: 5%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 95%; opacity: 0; }
}
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 4;
  pointer-events: none;
}
.corner::before,.corner::after {
  content: '';
  position: absolute;
  background: rgba(52,211,153,0.85);
}
.corner::before { width: 100%; height: 2px; }
.corner::after  { width: 2px; height: 100%; }
.corner.tl { top: 12%; left: 12%; }
.corner.tl::before { top: 0; left: 0; }
.corner.tl::after  { top: 0; left: 0; }
.corner.tr { top: 12%; right: 12%; }
.corner.tr::before { top: 0; right: 0; left: auto; }
.corner.tr::after  { top: 0; right: 0; left: auto; }
.corner.bl { bottom: 12%; left: 12%; }
.corner.bl::before { bottom: 0; top: auto; left: 0; }
.corner.bl::after  { bottom: 0; top: auto; left: 0; }
.corner.br { bottom: 12%; right: 12%; }
.corner.br::before { bottom: 0; top: auto; right: 0; left: auto; }
.corner.br::after  { bottom: 0; top: auto; right: 0; left: auto; }
.iris-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.pulse-ring {
  transform-origin: 200px 200px;
  animation: pulseRing 2.8s ease-out infinite;
}
@keyframes pulseRing {
  0%   { opacity: 0.6; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.08); }
  100% { opacity: 0;   transform: scale(1.08); }
}
.scan-status {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 999px;
  padding: 5px 14px;
  z-index: 5;
  pointer-events: none;
}
.scan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: blinkDot 1.1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
.scan-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(52,211,153,0.9);
  font-family: 'Inter', monospace;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .iris-scanner { width: 280px; height: 280px; }
}


/* ================= THEME PICKER ================= */
.theme-picker-wrap {
  position: relative;
}
.theme-picker-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s, color .3s, box-shadow .3s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.theme-picker-btn:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.theme-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--modal-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: .75rem 1rem;
  min-width: 160px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 200;
}
.theme-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.theme-panel-title {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.theme-swatches {
  display: flex;
  gap: .5rem;
}
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.swatch:hover { transform: scale(1.18); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.swatch-active {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px var(--brand-color), 0 4px 12px rgba(0,0,0,.35);
  transform: scale(1.12);
}

/* ================= MODERN ARTICLES LAYOUT ================= */

.page-hero-title.small {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  max-width: 900px;
}

.stage-block {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.stage-block h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.stage-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 1. Делаем карточку на всю ширину и включаем Grid */
.bento-card.bento-card-course {
    grid-column: 1 / -1; 
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; 
}

/* 2. Заголовок внутри карточки всегда занимает всю ширину */
.bento-card.bento-card-course .card-header {
    grid-column: 1 / -1;
    margin-bottom: 0; 
}

/* 3. Убираем margin-top у блоков, так как теперь их расталкивает gap */
.bento-card.bento-card-course .stage-block {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

/* 4. Планшеты (выстраиваем в 2-3 колонки) */
@media (min-width: 768px) {
    .bento-card.bento-card-course {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card.bento-card-course .stage-block:last-child {
        grid-column: 1 / -1;
    }
}

/* 5. Десктоп (выстраиваем все 5 этапов в один горизонтальный ряд) */
@media (min-width: 1024px) {
    .bento-card.bento-card-course {
        grid-template-columns: repeat(5, 1fr);
    }
    .bento-card.bento-card-course .stage-block:last-child {
        grid-column: auto; 
    }
}

.detail {
  white-space: pre-line;
}

.about-hero-layout-pro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* --- Left column (Editorial Header) --- */
.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.editorial-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.editorial-badge .sparkle {
  color: var(--brand-color);
  font-size: 0.85rem;
  animation: pulseRotate 4s linear infinite;
}

.editorial-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem 0;
  position: relative;
}

.editorial-headline em {
  color: var(--brand-color);
  font-style: italic;
  font-weight: 400;
  padding-right: 0.2em;
  position: relative;
  display: inline-block;
}
.editorial-headline em::after {
  content:'';
  position:absolute; bottom:0.1em; left:0; right:0.2em;
  height:0.15em;
  background:var(--brand-color);
  opacity:0.2;
  border-radius:1px;
}

.editorial-headline .dot-accent {
  color: var(--brand-color);
  font-size: 0.8em;
  display: inline-block;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-desc-editorial {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 2px solid var(--brand-color);
  padding-left: 1.25rem;
  max-width: 100%;
  transition: border-color 0.5s ease;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content:'';
  position:absolute; top:0; left:-100%; width:50%; height:100%;
  background:linear-gradient(to right, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform:skewX(-20deg);
}
.hero-cta:hover::before { left:200%; transition:left 0.7s ease; }
.hero-cta:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.hero-cta:hover .btn-arr { transform: translateX(5px); }

/* --- Right column (Doctor Identity & Glass Box) --- */
.doctor-identity {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.doctor-identity::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 2px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--brand-color), transparent);
  border-radius: 1px;
}

.doctor-prefix {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-color);
  margin-bottom: 0.25rem;
  display: block;
}

.doctor-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 0.1rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.doctor-patronymic {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Floating experience badge */
.exp-badge {
  display: inline-flex; align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.exp-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.exp-badge-icon {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--brand-color);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.exp-badge-text {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}
.exp-badge-text small {
  display: block;
  font-size: 0.6rem; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.lead-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-bio-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- Glass card (Pro Glassmorphism) --- */
.specialties-glass-pro {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

html[data-theme="emerald"] .specialties-glass-pro, html[data-theme="ivory"] .specialties-glass-pro {
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.specialties-glass-pro:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px var(--brand-color);
}

html[data-theme="emerald"] .specialties-glass-pro:hover, html[data-theme="ivory"] .specialties-glass-pro:hover {
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px var(--brand-color);
}

/* Inner glow */
.specialties-glass-pro::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, var(--brand-color) 0%, transparent 60%);
  opacity: 0.06;
  pointer-events: none;
}
.specialties-glass-pro::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brand-color), transparent);
  opacity: 0.2;
  pointer-events: none;
}

/* ── SPECIALTIES GROUPED LAYOUT ── */

.spec-group-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-color);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  line-height: 1.4;
}
.spec-group-title:first-of-type {
  margin-top: 0;
}

.spec-group-sub {
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0;
}

.spec-group-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.25rem 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spec-group-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-heading);
  transition: all 0.3s ease;
  cursor: default;
  line-height: 1.4;
}

.spec-group-list li:hover {
  color: var(--brand-color);
  transform: translateX(3px);
}

.spec-group-divider {
  height: 1px;
  background: linear-gradient(to right, var(--brand-color), transparent);
  opacity: 0.15;
  margin: 1rem 0;
  position: relative;
  z-index: 2;
}

.cross-bullet {
  color: var(--brand-color);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
  flex-shrink: 0;
}

.spec-group-list li:hover .cross-bullet {
  transform: rotate(90deg);
  opacity: 1;
}

/* ── PATTERN OVERLAY ── */
.pattern-subtle {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.1) 40px, rgba(255,255,255,.1) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.1) 40px, rgba(255,255,255,.1) 41px);
}

/* ── ENHANCED QUOTE CARD ── */
.about-quote-enhanced {
  bottom: -2rem; right: -1.5rem;
  padding: 2rem 1.75rem;
  max-width: 280px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
}
.about-quote-enhanced .q-icon {
  font-size: 1.75rem; line-height: 1;
  color: var(--brand-color); margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}
html[data-theme="emerald"] .about-quote-enhanced .q-icon, html[data-theme="ivory"] .about-quote-enhanced .q-icon { color: var(--emerald-500); }
.about-quote-enhanced p {
  font-size: 0.95rem; line-height: 1.6;
  color: #1d1615;
}
.about-quote-enhanced .q-author {
  margin-top: 0.75rem; font-size: 0.6rem;
}

/* ── STORY TIMELINE ── */
.story-container {
  max-width: 800px; margin: 0 auto;
  position: relative; z-index: 1;
}
.story-timeline {
  position: relative;
  padding-left: 3rem;
}
.story-timeline::before {
  content: '';
  position: absolute; left: 0.75rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-color), var(--border-subtle) 60%, transparent);
  border-radius: 1px;
}

.story-milestone {
  position: relative;
  margin-bottom: 3rem;
}
.story-milestone:last-child { margin-bottom: 0; }

.story-marker {
  position: absolute;
  left: -3rem; top: 0.5rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  width: 2.5rem;
}
.story-year {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-color);
  white-space: nowrap;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  line-height: 1.1;
}
.story-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2.5px solid var(--brand-color);
  flex-shrink: 0;
  z-index: 2;
  transition: background 0.4s ease, transform 0.4s ease;
}
.story-milestone:hover .story-dot {
  background: var(--brand-color);
  transform: scale(1.3);
}
.story-dot-current {
  background: var(--brand-color);
  box-shadow: 0 0 0 4px var(--blur-2);
}

.story-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 2rem 2.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-card:hover {
  border-color: var(--brand-color);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.3);
  transform: translateX(4px);
}
html[data-theme="emerald"] .story-card:hover, html[data-theme="ivory"] .story-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
}

.story-card h3 {
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.75rem;
}
.story-card p {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text-muted);
}

.story-card-accent {
  border-color: var(--brand-color);
  background: linear-gradient(135deg, var(--card-bg), var(--badge-bg));
  position: relative;
}
.story-accent-label {
  display: inline-flex; align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-color);
  margin-bottom: 0.75rem;
}

.story-inline-quote {
  border-left: 3px solid var(--brand-color);
  padding: 1rem 0 1rem 1.5rem;
  margin: 1.25rem 0 0 0;
  font-family: var(--font-serif);
  font-size: 1rem; font-style: italic;
  line-height: 1.6;
  color: var(--text-heading);
  background: none;
  box-shadow: none;
}

/* Final quote */
.story-final-quote {
  max-width: 700px;
  margin: 5rem auto 0;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}
.story-final-quote .sfq-icon {
  font-size: 2.5rem; line-height: 1;
  color: var(--brand-color);
  opacity: 0.3;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}
.story-final-quote p {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-style: italic;
  line-height: 1.5;
  color: var(--text-heading);
}
.story-final-quote .sfq-author {
  margin-top: 1.25rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-color);
}

/* ── MISSION QUOTE ── */
.mission-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-style: italic;
  line-height: 1.5;
  color: var(--text-heading);
  border-left: 2px solid var(--brand-color);
  padding-left: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .story-timeline { padding-left: 2.5rem; }
  .story-marker { left: -2.5rem; }
  .story-year { font-size: 0.55rem; }
  .story-card { padding: 1.5rem; }
  .mission-quote { font-size: 1.15rem; }
  .about-quote-enhanced { right: 0; max-width: 220px; padding: 1.5rem; }
  .story-final-quote { margin-top: 3rem; padding: 2rem 1rem; }
  .story-final-quote p { font-size: 1.2rem; }
}

/* ── ANIMATIONS ── */
@keyframes pulseRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  z-index: 2;
  opacity: 0.5;
  transition: opacity 0.4s ease;
  animation: fadeInUp 1s ease 1.5s both;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator span {
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--brand-color), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-hero-layout-pro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .doctor-identity::before { display: none; }
  .doctor-identity { padding-left: 0; }
  .hero-deco-1, .hero-deco-2 { opacity: 0.2; }
  .hero-deco-3 { display: none; }
  .hero-desc-editorial { max-width: 100%; }
}
@media (max-width: 768px) {
  .page-hero { padding-top: calc(var(--nav-height) + 1.5rem); padding-bottom: 2.5rem; }
  .specialties-glass-pro { padding: 1.25rem 1rem; }
  .spec-group-title { font-size: 0.65rem; }
  .spec-group-list li { font-size: 0.8rem; }
  .hero-desc-editorial { font-size: 0.9rem; padding-left: 0.75rem; }
  .hero-cta { margin-top: 1.25rem; font-size: 0.78rem; padding: 0.65rem 1.25rem; }
  .lead-text { font-size: 0.95rem; }
  .footer-bio-text { font-size: 0.85rem; margin-top: 1rem; padding-top: 0.75rem; }
  .exp-badge { margin-bottom: 1rem; }
  .scroll-indicator { display: none; }
  .about-hero-layout-pro { gap: 1.5rem; }
  .editorial-headline { margin-bottom: 1rem; }
  .exp-badge-icon { width: 1.8rem; height: 1.8rem; font-size: 0.7rem; }
  .exp-badge-text { font-size: 0.7rem; }
  .exp-badge-text small { font-size: 0.55rem; }
}
@media (max-width: 480px) {
  .page-hero { padding-top: calc(var(--nav-height) + 1rem); padding-bottom: 2rem; }
  .editorial-headline { font-size: clamp(1.8rem, 7vw, 2.2rem); }
  .spec-group-list li { font-size: 0.78rem; }
  .exp-badge { width: auto; }
}

/* ═══ AUTHOR PHILOSOPHY (about page) ═══ */
.author-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .author-philosophy { grid-template-columns: 1fr; }
}

/* ═══ DIPLOMAS ═══ */
.diplomas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.diploma-card-wrap {
  perspective: 1000px;
}
.diploma-card {
  position: relative;
  width: 100%; aspect-ratio: 3/4;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border-radius: 1rem;
}
.diploma-card:hover {
  transform: rotateY(-10deg) scale(1.02);
}
.diploma-card-inner {
  position: absolute; inset: 0;
  border-radius: 1rem;
  display: flex; align-items: flex-end;
  padding: 1.5rem;
  background-size: cover; background-position: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  overflow: hidden;
}
.diploma-card-inner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  border-radius: 1rem;
}
.diploma-label {
  position: relative; z-index: 2;
  color: #fff; font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-sans);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.diploma-reveal-tab {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}
.diploma-card:hover .diploma-reveal-tab {
  height: 3rem;
}
.diploma-reveal-tab span {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}
.diploma-card:hover .diploma-reveal-tab span {
  opacity: 1;
}


/* ── Pages stack (Восстановленная 3D-геометрия + Старый Гримуар) ── */
.gallery-patch .book-pages {
  /* ВЫНОСИМ СТРАНИЦЫ ОБРАТНО: они должны выступать вправо, чтобы создать толщину */
  right: -48px; 
  top: 4px; 
  width: 52px; 
  height: calc(100% - 8px);
  transform: translateZ(14px); /* Позиция по глубине між передньою і задньою обкладинкою */
  z-index: 2;
}
.gallery-patch .card-wide .book-pages {
  right: -54px; 
  top: 5px; 
  width: 58px; 
  height: calc(100% - 10px);
  transform: translateZ(18px);
}

.gallery-patch .book-page {
  position: absolute; 
  right: 0;
  border-radius: 0 4px 4px 0;
  
  /* Текстура: сотни слипшихся листов бумаги */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 1px,
    rgba(0,0,0,0.08) 1px, rgba(0,0,0,0.08) 2px
  );
  
  /* Закопченный, грязный торец на каждом слое */
  box-shadow: inset -5px 0 10px rgba(0,0,0,0.4);
}

/* 
  СТРОИМ 3D-БЛОК (Лесенка). 
*/
.gallery-patch .book-page:nth-child(1)  { left: 27px; top: 0px; bottom: 1px; z-index: 10; background-color: #c4a981; }
.gallery-patch .book-page:nth-child(2)  { left: 24px; top: 1px; bottom: 0px; z-index: 9;  background-color: #b89a6f; }
.gallery-patch .book-page:nth-child(3)  { left: 21px; top: 0px; bottom: 2px; z-index: 8;  background-color: #ac8a5e; }
.gallery-patch .book-page:nth-child(4)  { left: 18px; top: 2px; bottom: 0px; z-index: 7;  background-color: #a07b4c; }
.gallery-patch .book-page:nth-child(5)  { left: 15px; top: 0px; bottom: 1px; z-index: 6;  background-color: #946c3b; }
.gallery-patch .book-page:nth-child(6)  { left: 12px; top: 1px; bottom: 0px; z-index: 5;  background-color: #885c29; }
.gallery-patch .book-page:nth-child(7)  { left: 9px;  top: 0px; bottom: 2px; z-index: 4;  background-color: #7b4d18; }
.gallery-patch .book-page:nth-child(8)  { left: 6px;  top: 2px; bottom: 0px; z-index: 3;  background-color: #6f3e06; }
.gallery-patch .book-page:nth-child(9)  { left: 3px;  top: 0px; bottom: 1px; z-index: 2;  background-color: #5c3100; }

/* Самый глубокий слой у корешка: делаем его почти черным от теней */
.gallery-patch .book-page:nth-child(10) { 
  left: 0px;  top: 0px; bottom: 0px; z-index: 1;  
  background-color: #4a2600; 
  box-shadow: inset 8px 0 15px rgba(0,0,0,0.8); 
}

/* Хаотичная грязь и копоть на срезе бумаги (накладывается поверх слоев) */
.gallery-patch .book-pages::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0; width: 15px;
  background: linear-gradient(
    to bottom,
    rgba(20, 5, 0, 0.5) 0%,
    transparent 15%,
    rgba(30, 10, 0, 0.6) 30%,
    transparent 50%,
    rgba(10, 0, 0, 0.5) 75%,
    rgba(40, 15, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 20;
  border-radius: 0 4px 4px 0;
}
/* --- ФІКС ГОЛОВНОГО МЕНЮ --- */
.nav-links {
  gap: 0.1rem; 
}

.nav-links a {
  white-space: nowrap; 
  padding: 0.4rem 0.5rem; 
  letter-spacing: -0.01em; 
}

@media (max-width: 1050px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
}

/* ================= REFACTORED HOME PAGE ADDITIONS ================= */

/* Hero Title Gradient */
.title-gradient {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-heading) 40%, var(--brand-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* Service Card Static (Для блоків без посилання) */
.service-card--static {
  cursor: default;
}
.service-card--static:hover {
  transform: none; 
  box-shadow: 0 10px 30px rgba(0,0,0,.02); 
  border-color: var(--glass-border);
}
.service-card--static:hover::before { 
  opacity: 0; 
}
.service-card--static:hover .service-icon-wrapper {
  transform: none; 
  background: linear-gradient(135deg, var(--badge-bg), transparent);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}
.service-card--static:hover h3 { 
  color: var(--text-heading); 
}

/* CTA Banner Styles */
.cta-banner {
  background-color: var(--about-bg);
  position: relative;
  overflow: hidden;
}
.cta-container {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-badge {
  background: var(--about-dot);
  color: var(--about-bg);
  margin-bottom: 1.5rem;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  margin: 1rem 0 1.25rem;
  line-height: 1.15;
}
.cta-desc {
  display: inline-block;
  font-size: .95rem;
  font-style: italic;
  color: var(--about-li);
  opacity: .8;
  max-width: 420px;
  margin: 0 auto 2.5rem;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.6;
  letter-spacing: .01em;
}
.cta-btn {
  display: inline-flex;
}

.read-more-btn {
display: block; background: none; border: none; color: var(--brand-color);
font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 0; margin-top: 0.5rem;
text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s ease;
}
.read-more-btn:hover { color: var(--text-heading); }

.articles-page .search-wrap {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.articles-page .search-wrap .field { flex: 1; min-width: 200px; }
.articles-page .search-wrap input {
  width: 100%; box-sizing: border-box;
  padding: .85rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg); color: var(--text-main);
  font-size: .9rem; outline: none;
  transition: border-color .3s;
}
.articles-page .search-wrap input:focus { border-color: var(--brand-color); }

.articles-page .glass-card {
  position: relative; overflow: hidden;
  border-radius: 1.5rem;
  background: var(--glass-bg, rgba(255,255,255,0.6));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.18));
  box-shadow: var(--glass-shadow, 0 8px 32px rgba(0,0,0,0.06));
  transition: transform .4s, box-shadow .4s;
  text-decoration: none;
}
.articles-page .glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

/* Featured */
.article-featured {
  display: flex; flex-direction: column;
  margin-bottom: 3rem;
}
@media (min-width: 700px) {
  .article-featured { flex-direction: row; }
}
.article-featured-accent {
  flex: 0 0 6px;
  background: linear-gradient(to bottom, var(--brand-color), #0d9488);
}
.article-featured-body { padding: 2rem 2.25rem; flex: 1; }
.article-featured-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem; margin: 0 0 .6rem;
  line-height: 1.25;
}
.article-featured-body p {
  color: var(--text-muted); font-size: .95rem;
  margin: 0 0 1.25rem; line-height: 1.6;
}
.article-featured-link {
  font-weight: 600; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--brand-color);
  display: inline-flex; align-items: center; gap: .4rem;
  transition: gap .3s;
}
.article-featured:hover .article-featured-link { gap: .7rem; }

/* Grid */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
.article-card {
  display: flex; flex-direction: column;
}
.article-card-top {
  height: 5px; flex-shrink: 0;
}
.article-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card-body h3 {
  font-size: 1.1rem; margin: 0 0 .5rem;
  line-height: 1.3;
}
.article-card-body .meta {
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem;
}
.article-card-body .read-link {
  margin-top: auto; font-weight: 600; font-size: .85rem;
  color: var(--brand-color);
  display: inline-flex; align-items: center; gap: .3rem;
  transition: gap .3s;
}
.article-card:hover .read-link { gap: .6rem; }

/* Theme overrides for glass cards */
html.dark .articles-page .glass-card,
html[data-theme="ocean"] .articles-page .glass-card,
html[data-theme="amethyst"] .articles-page .glass-card {
  background: rgba(24,24,27,0.5);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ================= MOBILE ADAPTATION FOR NAVBAR ================= */
@media (max-width: 1050px) {
  /* Коли центральне меню зникає, притискаємо лого та дії до країв */
  .navbar-inner {
    justify-content: space-between;
  }
  
  /* Плавна поява мобільного меню (перевизначаємо базовий display: none) */
  .mobile-menu {
    display: flex !important; 
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    background-color: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    z-index: 49;
    
    visibility: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    pointer-events: none;
  }
  
  /* Стан відкритого меню */
  .mobile-menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Збільшені пункти меню для зручного натискання пальцем */
  .mobile-menu a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: center;
    transition: all 0.3s ease;
    background: transparent;
  }
  
  .mobile-menu a:hover, 
  .mobile-menu a.active {
    background-color: var(--border-subtle);
    color: var(--brand-color);
  }

  /* Анімація гамбургера (перетворення на хрестик) 
     Переконайтеся, що ваш JS додає клас .open не тільки на #mobileMenu, але й на #hamburger 
  */
  .hamburger span {
    transform-origin: center;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* Точне налаштування позиції меню при скролі */
.navbar.scrolled ~ .mobile-menu { 
  top: 65px; 
}

/* Для смартфонів (до 480px) */
@media (max-width: 480px) {
  .navbar-inner { gap: 0.5rem; }
  .nav-logo { gap: 0.5rem; }
  
  /* Зменшуємо логотип */
  .nav-logo-icon { 
    width: 34px; height: 34px; 
    font-size: 0.9rem; border-radius: 0.5rem; 
  }
  .nav-logo-text .brand-name { font-size: 0.95rem; }
  
  /* Ховаємо слоган і слово "Мова", щоб звільнити місце для кнопок */
  .nav-logo-text .brand-tagline { display: none; }
  #currentLangBtnText { display: none; }
  
  /* Кнопки в шапці робимо компактнішими */
  .text-btn { padding: 0.4rem; gap: 0; }
  .text-btn svg { margin-left: 2px; }
  .theme-picker-btn { width: 34px; height: 34px; }
  .hamburger { width: 34px; height: 34px; padding: 2px; }
  
  /* Меню займає менше висоти при скролі */
  .navbar.scrolled { height: 60px; }
  .navbar.scrolled ~ .mobile-menu { top: 60px; }
}

/* Підтримка безпечних зон для сучасних iPhone (чобіток знизу) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-menu {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

/* ═══════════════════════════════════════════════════════
   IRIDO MOBILE PATCH — Адаптація для мобільних пристроїв
   Підключати ПІСЛЯ style.css: <link rel="stylesheet" href="/css/mobile-patch.css">
═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   1. ГЛОБАЛЬНІ ВІДСТУПИ
   Зменшуємо вертикальні паддінги секцій на мобільному
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
  .about-section {
    padding: 3.5rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }
  .container {
    padding: 0 1.1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.8rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .container {
    padding: 0 0.9rem;
  }
}


/* ─────────────────────────────────────────────────────
   2. NAVBAR
   Кнопки та логотип не мають перетинатися
───────────────────────────────────────────────────────*/
@media (max-width: 480px) {
  .nav-logo-icon {
    display: none; /* Ховаємо іконку ока, лишаємо тільки текст */
  }
  .nav-logo-text .brand-tagline {
    display: none;
  }
  .nav-logo-text .brand-name {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  /* Компактні кнопки дій */
  #currentLangBtnText {
    display: none;
  }
  .text-btn {
    padding: 0.35rem 0.4rem;
  }
  .theme-picker-btn {
    width: 32px;
    height: 32px;
  }
  .hamburger {
    width: 32px;
    height: 32px;
  }
}

/* Library logo area */
@media (max-width: 480px) {
  .library-logo-area {
    gap: 0.4rem;
  }
  .library-logo-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}


/* ─────────────────────────────────────────────────────
   3. HERO — головна
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero-content {
    padding: 2.5rem 0 2rem;
    gap: 1.4rem;
  }
  .hero-title {
    font-size: clamp(2.6rem, 9vw, 3.5rem);
  }
  .hero-desc {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero-btns {
    gap: 0.75rem;
  }
  .btn-primary,
  .btn-secondary {
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
  }
  /* Glass badge перекладаємо під кнопки */
  .glass-badge {
    position: static;
    margin-top: 0.5rem;
    width: fit-content;
    animation: none;
    padding: 1rem 1.25rem;
  }
  .hero-visual {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .glass-badge {
    width: 100%;
  }
}


/* ─────────────────────────────────────────────────────
   4. PAGE HERO (підсторінки)
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 2.5rem;
  }
  .page-hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .page-hero .hero-desc {
    font-size: 0.95rem;
    margin-top: 1rem;
  }
  .hero-deco-1,
  .hero-deco-2,
  .hero-deco-3 {
    opacity: 0.15;
  }
  /* About page editorial layout */
  .about-hero-layout-pro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 480px) {
  .page-hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }
}


/* ─────────────────────────────────────────────────────
   5. SERVICE CARDS
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .service-card {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 1.75rem 1.35rem;
  }
  .service-icon-wrapper {
    width: 4rem;
    height: 4rem;
  }
}


/* ─────────────────────────────────────────────────────
   6. INFO CARDS
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .info-card {
    padding: 2rem 1.75rem;
  }
}


/* ─────────────────────────────────────────────────────
   7. ABOUT SECTION
───────────────────────────────────────────────────────*/
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-portrait {
    height: 320px;
    border-radius: 2rem 5rem 2rem 2rem;
  }
  .about-quote {
    right: 0.5rem;
    bottom: -1rem;
    max-width: 230px;
  }
}

@media (max-width: 768px) {
  .about-portrait {
    height: 260px;
  }
  .about-section h2 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  .about-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }
  .stat-item .num {
    font-size: 2.4rem;
  }
  .about-quote {
    display: none; /* На маленьких екранах ховаємо плаваючу цитату */
  }
}


/* ─────────────────────────────────────────────────────
   8. PRICING CARDS
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .price-card {
    padding: 2.25rem 2rem;
  }
  .price-amount {
    font-size: 2.6rem;
  }
}


/* ─────────────────────────────────────────────────────
   9. TESTIMONIALS
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .testimonial {
    padding: 1.75rem;
  }
}

@media (min-width: 500px) and (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ─────────────────────────────────────────────────────
   10. CONTACT
───────────────────────────────────────────────────────*/
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 1rem; /* Запобігаємо zoom на iOS */
  }
}


/* ─────────────────────────────────────────────────────
   11. PAYMENT CARDS
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 500px) and (max-width: 768px) {
  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ─────────────────────────────────────────────────────
   12. BOOKS GALLERY (3D Books)
───────────────────────────────────────────────────────*/
@media (max-width: 900px) {
  .books-gallery-grid {
    grid-template-columns: 1fr;
  }
  .glass-card-wide .card-inner {
    flex-direction: column;
    padding: 2.5rem 1.75rem;
    gap: 2rem;
  }
  .glass-card-wide .book-visual {
    margin-bottom: 0;
  }
  .glass-card-wide .book-3d {
    width: 180px;
    height: 270px;
  }
  .glass-card-wide .book-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  .glass-card-wide .book-desc {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .book-3d {
    width: 150px;
    height: 225px;
  }
  .glass-card .card-inner {
    padding: 2rem 1.5rem;
  }
  .book-title {
    font-size: 1.6rem;
  }
  .actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .book-3d {
    width: 130px;
    height: 195px;
  }
}


/* ─────────────────────────────────────────────────────
   13. DIPLOMAS GRID
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .diplomas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  .diplomas-grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────
   14. FOOTER
───────────────────────────────────────────────────────*/
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  footer {
    padding: 3rem 0 1.5rem;
  }
  .footer-grid {
    margin-bottom: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    font-size: 0.7rem;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .social-btns {
    margin-top: 0.5rem;
  }
}


/* ─────────────────────────────────────────────────────
   15. MODAL (мова і зображення)
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .modal-content {
    width: 94%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 1.25rem;
  }
  .modal-body {
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lang-option {
    padding: 1rem 1.25rem;
    font-size: 1rem; /* Зручний розмір для пальця */
  }
}


/* ─────────────────────────────────────────────────────
   16. THEME PICKER PANEL
───────────────────────────────────────────────────────*/
@media (max-width: 480px) {
  .theme-panel {
    right: -0.5rem; /* Не виходить за межі екрану */
    min-width: 140px;
  }
  .theme-swatches {
    gap: 0.4rem;
  }
  .swatch {
    width: 24px;
    height: 24px;
  }
}


/* ─────────────────────────────────────────────────────
   17. CTA BANNER
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .cta-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }
  .cta-desc {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ─────────────────────────────────────────────────────
   18. STORY TIMELINE (about)
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .story-timeline {
    padding-left: 2.25rem;
  }
  .story-marker {
    left: -2.25rem;
    width: 2rem;
  }
  .story-year {
    font-size: 0.5rem;
  }
  .story-card {
    padding: 1.5rem 1.25rem;
  }
  .story-card h3 {
    font-size: 1.1rem;
  }
  .story-final-quote p {
    font-size: 1.15rem;
  }
}


/* ─────────────────────────────────────────────────────
   19. ARTICLES
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .articles-page .search-wrap {
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
  }
  .article-featured-body {
    padding: 1.5rem 1.25rem;
  }
  .article-featured-body h2 {
    font-size: 1.3rem;
  }
  .article-nav {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 3rem;
  }
  .markdown-content {
    font-size: 1.05rem;
  }
  .markdown-content blockquote {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    margin: 2rem 0;
  }
}


/* ─────────────────────────────────────────────────────
   20. STEPS LIST
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .steps-list {
    margin-left: 0.5rem;
  }
  .step {
    padding: 1.25rem 1.25rem 1.25rem 1.75rem;
  }
  .step h3 {
    font-size: 1rem;
  }
}


/* ─────────────────────────────────────────────────────
   21. GENRE CARDS
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  .genre-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 420px) {
  .genre-grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────
   22. IRIS SCANNER BLOCK
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .iris-scanner-wrap {
    margin: 2rem 0;
  }
  .iris-scanner {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 400px) {
  .iris-scanner {
    width: 220px;
    height: 220px;
  }
}


/* ─────────────────────────────────────────────────────
   23. GRID-2COL УТИЛІТИ
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .grid-2col,
  .grid-2col-start {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ─────────────────────────────────────────────────────
   24. КНОПКИ — мінімальна ширина для зручного торкання
───────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .btn-details {
    min-height: 44px;
    padding: 0.7rem 1.25rem;
  }
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
  }
  /* Pill badges — переносяться */
  .pill-badge {
    font-size: 0.7rem;
  }
}


/* ─────────────────────────────────────────────────────
   25. SCROLLBAR HIDING — плавний скрол на iOS/Android
───────────────────────────────────────────────────────*/
.modal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}
.modal-body::-webkit-scrollbar {
  width: 4px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: var(--border-subtle);
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────
   26. SAFE AREA INSETS (iPhone notch, dynamic island)
───────────────────────────────────────────────────────*/
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--nav-height) + env(safe-area-inset-top));
  }
  .hero,
  .page-hero {
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
  }
  .mobile-menu {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}


/* ─────────────────────────────────────────────────────
   27. TOUCH HOVER FIX — скасовуємо hover-стани для тач
───────────────────────────────────────────────────────*/
@media (hover: none) {
  .service-card:hover,
  .info-card:hover,
  .glass-card:hover,
  .price-card:hover,
  .testimonial:hover,
  .story-card:hover,
  .genre-card:hover,
  .book-3d:hover,
  .diploma-card:hover {
    transform: none;
    box-shadow: initial;
  }
  .btn-primary:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
}


/* ─────────────────────────────────────────────────────
   28. PRINT — базова підготовка
───────────────────────────────────────────────────────*/
@media print {
  .navbar,
  .mobile-menu,
  .hamburger,
  .theme-picker-wrap,
  #openLangModalBtn,
  footer .social-btns,
  .btn-primary,
  .btn-secondary,
  .scan-line,
  .blur-blob-1,
  .blur-blob-2 {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}