/* ===== Design tokens ===== */
:root{
  --emerald-900:#0b3d2e;
  --emerald-800:#0f4a38;
  --emerald-700:#146349;
  --gold-600:#b8863b;
  --gold-500:#c9932f;
  --gold-400:#d9ab5a;
  --sand-100:#f4efe4;
  --sand-50:#faf7f0;
  --ink:#1e2a24;
  --border-soft:#e6ddc8;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Poppins',ui-sans-serif,system-ui,sans-serif;
  background:linear-gradient(180deg,var(--sand-50) 0%,var(--sand-100) 100%);
  color:var(--ink);
  padding:20px 12px;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
i[data-lucide]{width:1em;height:1em;}

.card-shell{
  max-width:1480px;
  margin:0 auto;
  position:relative;
  background:rgba(255,255,255,.6);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 25px 60px -20px rgba(0,0,0,.25);
}

/* ===== Header ===== */
.site-header{
  position:relative;
  z-index:20;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:24px 48px 12px;
}
.brand{
  display:flex;
  align-items:flex-start;
  gap:16px;
}

.brand-logo{
  width:76px;
  height:76px;
  object-fit:contain;
  margin-top:0;

  transform-origin:50% 55%;
  will-change:transform;
  animation:flutter 3.2s ease-in-out infinite;
}
.brand-name{font-family:'Playfair Display',serif;font-weight:700;font-size:1.8rem;line-height:1.1;margin:0;color:var(--emerald-900);}
.brand-name--last{color:var(--gold-600);}
.brand-tagline{font-size:11px;letter-spacing:.15em;text-transform:uppercase;opacity:.8;margin:6px 0 0;}

.header-controls{display:flex;align-items:center;gap:24px;margin-top:8px;flex-wrap:wrap;}
.lang-switcher{display:flex;align-items:center;gap:16px;font-family:'Playfair Display',serif;font-size:1rem;}
.lang-btn{
  background:none;border:none;cursor:pointer;
  color:var(--ink);opacity:.65;font-weight:600;letter-spacing:.03em;
  padding-bottom:3px;border-bottom:2px solid transparent;
  transition:color .15s ease, opacity .15s ease, border-color .15s ease;
  font-family:inherit;font-size:inherit;
}
.lang-btn.active{color:var(--gold-600);opacity:1;border-bottom-color:var(--gold-600);}

.sound-btn{
  background:#fff;border:1px solid var(--border-soft);
  border-radius:9999px;padding:8px 14px;
  display:flex;align-items:center;gap:8px;cursor:pointer;
  transition:background .2s ease;
  color:var(--emerald-800);
}
.sound-btn:hover{background:var(--sand-100);}
.sound-btn span{font-size:12px;font-weight:600;letter-spacing:.03em;}

/* ===== Hero ===== */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
}

/* LEFT column: padding-left creates room for decor art, content is pushed right */
.hero-left{
  position:relative;
  padding:24px 32px 12px 140px; /* extra left space reserved for leaves/sparkles */
  overflow:visible;
  z-index:1;
}
.decor-leaves{
  position:absolute;
  left:-5px;
  top:65px;
  width:170px;
  opacity:.95;
  pointer-events:none;
  z-index:0;
}

.hero-left-content{position:relative;z-index:2;}

.hero-title{
  font-family:'Playfair Display',serif;
  font-weight:800;
  font-size:2.4rem;
  line-height:1.15;
  margin:0 0 4px;
  color:var(--emerald-900);
}
.hero-title--gold{color:var(--gold-600);}
.title-underline{width:160px;height:1px;background:var(--gold-500);margin:16px 0;}

.hero-sub{font-size:15px;margin:0 0 4px;opacity:.9;max-width:420px;}
.hero-sub:last-of-type{margin-bottom:24px;}

.contact-list{display:flex;flex-direction:column;gap:12px;margin-bottom:24px;max-width:420px;}
.contact-row{display:flex;align-items:center;gap:12px;}
.contact-row a, .contact-row span{font-size:15px;}
.contact-row a:hover{opacity:.7;}
.contact-icon{
  width:34px;height:34px;border-radius:9999px;flex-shrink:0;
  background:var(--emerald-800);color:var(--sand-50);
  display:flex;align-items:center;justify-content:center;
}

.cta-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;}
.btn{
  border-radius:10px;padding:12px 20px;
  display:flex;align-items:center;gap:12px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn i{width:16px;height:16px;flex-shrink:0;}
.btn-text{display:flex;flex-direction:column;line-height:1.25;text-align:left;}
.btn-title{font-weight:700;font-size:13px;letter-spacing:.03em;}
.btn-subtitle{font-size:11px;opacity:.85;}

.btn-call{background:var(--emerald-800);color:var(--sand-50);}
.btn-call:hover{transform:translateY(-2px);box-shadow:0 12px 24px -10px rgba(11,61,46,.55);}
.btn-mail{background:linear-gradient(135deg,var(--gold-500),var(--gold-600));color:#fff;}
.btn-mail:hover{transform:translateY(-2px);box-shadow:0 12px 24px -10px rgba(184,134,59,.55);}
.btn-whatsapp{background:#fff;color:#25923f;border:1px solid var(--border-soft);}
.btn-whatsapp:hover{transform:translateY(-2px);box-shadow:0 12px 24px -10px rgba(0,0,0,.15);}
.btn-whatsapp i{color:#25923f;}
.whatsapp-icon{
  position:relative;
  display:inline-block;
  width:22px;
  height:22px;
  min-width:22px;
  flex:0 0 22px;
  color:currentColor;
}

.whatsapp-icon > svg:first-child{
  position:absolute;
  inset:0;
  width:22px !important;
  height:22px !important;
  stroke-width:1.8;
}

.whatsapp-icon > svg.whatsapp-phone{
  position:absolute;
  left:6px;
  top:5px;
  width:10px !important;
  height:10px !important;
  stroke-width:2.4;
}

.privacy-note{display:flex;align-items:center;gap:8px;font-size:12px;opacity:.8;}
.privacy-note i{width:14px;height:14px;color:var(--gold-600);}

/* RIGHT column */
.hero-media{
  position:relative;
  min-height:0;
  height:490px;
  align-self:start;
  overflow:visible;

  /* весь правый блок: влево и вниз */
  transform:translate(-34px, 28px);
}

.hero-photo{
  position:absolute;
  top:0;
  right:0;
  bottom:auto;
  left:auto;

  height:100%;
  width:63%;
  max-width:none;

  object-fit:contain;
  z-index:2;

  /* только фотография с книгой — вправо */
  transform:translateX(12px);
}

.hero-panel{
  position:absolute;
  inset:0;
  z-index:1;

  background:linear-gradient(
    160deg,
    var(--emerald-800),
    var(--emerald-900)
  );

  clip-path:polygon(
    0 0,
    74% 0,
    55% 100%,
    0 100%
  );

  color:var(--sand-50);
  padding:44px 48px 44px 40px;

  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:24px;

  /* только зелёный блок — влево */
  transform:translateX(-10px);
}
.checklist{
  display:flex;
  flex-direction:column;
  gap:10px;

  /* текст заканчивается до начала фотографии */
  width:61%;
  max-width:430px;
}

.check-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}

.check-row i{
  width:18px;
  height:18px;
  color:var(--gold-400);
  flex-shrink:0;
  margin-top:2px;
}

.check-row span{
  min-width:0;
  font-size:14px;
  line-height:1.3;

  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:auto;
}

.gold-cta{
  background:linear-gradient(135deg,var(--gold-500),var(--gold-600));
  color:var(--emerald-900);
  border-radius:16px;
  padding:16px 20px;
  display:flex;align-items:center;gap:14px;
  width:56%;
  max-width:390px;
}
.gold-cta-chart{
  display:block;
  width:44px;
  height:44px;
  min-width:44px;
  flex:0 0 44px;
  color:var(--emerald-900);
}
.gold-cta-title{font-family:'Playfair Display',serif;font-weight:700;font-size:15px;margin:0;}
.gold-cta-subtitle{font-size:13px;margin:2px 0 0;}

/* ===== Services title ===== */
.services-title-wrap{
  padding:6px 48px 4px;
  text-align:center;
}
.services-title{
  font-family:'Playfair Display',serif;font-weight:700;
  font-size:1.5rem;letter-spacing:.03em;text-transform:uppercase;
  color:var(--emerald-900);
  display:inline-flex;align-items:center;gap:24px;
  margin:0;
}
.services-title::before,.services-title::after{content:"";display:inline-block;width:60px;height:1px;background:var(--gold-500);}

/* ===== Service grid (7 columns, footer bug fixed) ===== */
.services-section{
  padding:8px 48px 12px;
}
.service-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
}
.service-card{
  border-right:1px solid var(--border-soft);
  padding:0 8px;
  min-width:0; /* critical: allows grid items to shrink instead of overflowing */
}
.service-card:last-child{border-right:none;}

.service-icon-row{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px;}
.service-icon{
  width:48px;height:48px;border-radius:9999px;flex-shrink:0;
  background:radial-gradient(circle at 30% 30%, #fbe9d0, #f2d9ae);
  display:flex;align-items:center;justify-content:center;color:var(--gold-600);
}
.service-icon i{width:22px;height:22px;}
.service-title{
  font-family:'Playfair Display',serif;
  font-weight:800;
  font-size:11px;
  line-height:1.3;
  text-transform:uppercase;
  color:var(--emerald-900);
  padding-top:6px;
  word-break:break-word;
  hyphens:auto;
}

.service-title span{
  border-bottom:none;
  padding-bottom:0;
}

.service-items{display:flex;flex-direction:column;gap:8px;}
.service-item-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.service-item-row i,
.service-item-row svg{
  width:16px !important;
  height:16px !important;

  min-width:16px;
  max-width:16px;
  flex:0 0 16px;

  margin-top:2px;
  color:var(--emerald-900);
  stroke-width:2.2;
}
.service-item-row span{
  font-size:11px;line-height:1.35;opacity:.9;
  word-break:break-word;
  hyphens:auto;
}

/* ===== Footer ===== */
.site-footer{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:12px;padding:12px 48px;
  border-top:1px solid var(--border-soft);
  background:var(--sand-100);
}
.footer-brand{display:flex;align-items:center;gap:12px;}
.footer-brand img{width:28px;height:28px;object-fit:contain;}
.footer-brand p{font-size:13px;opacity:.8;margin:0;}
.footer-contacts{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;}
.footer-contacts a{display:flex;align-items:center;gap:6px;}
.footer-contacts a:hover{opacity:.7;}
.footer-contacts i{width:14px;height:14px;}

/* ===== Animations ===== */
.fade-in{animation:fadeIn .7s ease both;}
@keyframes fadeIn{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:translateY(0);}}
@keyframes flutter{
  0%,
  100%{
    transform:translateY(0) rotate(0deg) scale(1);
  }

  25%{
    transform:translateY(-2px) rotate(-4deg) scale(1.03);
  }

  50%{
    transform:translateY(-4px) rotate(0deg) scale(1.08);
  }

  75%{
    transform:translateY(-2px) rotate(4deg) scale(1.03);
  }
}
@media (prefers-reduced-motion: reduce){
  .fade-in{animation:none;}
  .brand-logo{animation:none;}
}

/* ===== Responsive breakpoints ===== */

/* Tablet: collapse hero to single column, disable diagonal clip-path */
@media (max-width:1024px){
  .service-grid{grid-template-columns:repeat(4,1fr);}
  .service-card{border-right:none;border-bottom:1px solid var(--border-soft);padding-bottom:16px;margin-bottom:16px;}
  .service-card:nth-child(4n){border-right:none;}
}

@media (max-width:900px){
  .hero-media{
  transform:none;
  }
  .hero{grid-template-columns:1fr;}
  .hero-left{padding:24px 24px 32px 90px;}
  .decor-leaves{width:110px;top:140px;left:-25px;}
  .hero-panel{
    position:relative;
    clip-path:none;
    padding:32px 24px;
  }
  .hero-media{
  display:flex;
  flex-direction:column;
  height:auto;
  min-height:0;
}

.hero-photo{
  position:relative;
  top:auto;
  right:auto;
  left:auto;
  width:100%;
  height:220px;
  max-width:100%;
  object-fit:cover;
  object-position:center;
  z-index:auto;
}
}

@media (max-width:640px){
  .site-header{padding:20px 20px 8px;}
  .hero-left{padding-left:70px;}
  .decor-leaves{width:80px;left:-20px;top:120px;}
  .hero-title{font-size:1.8rem;}
  .service-grid{grid-template-columns:repeat(2,1fr);}
  .service-card{border-right:none;}
  .services-title{font-size:1.1rem;gap:12px;}
  .services-title::before,.services-title::after{width:28px;}
  .cta-buttons{flex-direction:column;}
  .btn{width:100%;}
}
