/*
Theme Name: EonExpert
Theme URI: https://eonexpert.ru
Author: Дмитрий
Description: Тема для сайта-каталога ЭОНЭКСПЕРТ
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: eonexpert
*/

/* блок переменные */
:root{
  --navy:#1F2A44;
  --dark:#151F37;
  --gold:#C6A75E;
  --pale:#F6F1E6;
  --ink:#1F2A44;
  --muted:#6B7280;
  --beige:#E8DCC8;
  --line:#E3D9C4;
  --radius:20px;
  --shadow:0 8px 30px rgba(16,24,40,.08);
}

/* блок база */
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:'Manrope',Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.5;
}
a{text-decoration:none;color:inherit}
button{font:inherit;cursor:pointer;border:0}
img{max-width:100%;height:auto;display:block}

/* блок шапка */
.topbar{
  background:var(--dark);
  color:#E8DCC8;
  font-size:12px;
  padding:8px 5%;
  display:flex;
  justify-content:space-between;
}
header{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.nav{
  max-width:1240px;
  margin:0 auto;
  padding:0 24px;
  height:72px;
  display:flex;
  align-items:center;
  gap:32px;
}
.logo{display:flex;align-items:center;gap:10px}
.logo img{height:40px;width:auto}
.nav-links{
  display:flex;
  gap:24px;
  margin-left:40px;
  font-size:14px;
  font-weight:600;
}
.nav-links a{
  color:#344054;
  padding:8px 0;
  border-bottom:2px solid transparent;
  transition:.2s;
}
.nav-links a:hover,
.nav-links a.active{
  color:var(--navy);
  border-bottom-color:var(--gold);
}
.btn{
  display:inline-block;
  background:var(--gold);
  color:#fff;
  padding:12px 20px;
  border-radius:10px;
  font-weight:700;
  font-size:14px;
  transition:.2s;
  box-shadow:0 4px 12px rgba(198,167,94,.35);
  border:none;
  cursor:pointer;
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(198,167,94,.45);
}
.btn-outline{
  background:#fff;
  color:var(--navy);
  border:1px solid #E3D9C4;
  box-shadow:none;
}
.btn-sm{padding:8px 16px;font-size:13px}
.burger{
  display:none;
  background:none;
  font-size:24px;
  color:var(--navy);
  margin-left:auto;
}

/* блок hero */
.hero{
  background:linear-gradient(115deg,#F6F1E6 0%,#fff 60%);
  padding:80px 24px;
}
.hero-inner{
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:60px;
  align-items:center;
}
.eyebrow{
  color:var(--gold);
  font-size:12px;
  font-weight:800;
  letter-spacing:.15em;
  margin-bottom:16px;
}
h1{
  font-size:clamp(36px,5vw,64px);
  line-height:1.05;
  letter-spacing:-.03em;
  margin-bottom:20px;
}
h2{
  font-size:clamp(28px,4vw,40px);
  letter-spacing:-.02em;
}
.hero p.lead{
  font-size:18px;
  color:#475467;
  max-width:560px;
  margin-bottom:32px;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero-card{
  background:var(--navy);
  color:#fff;
  padding:32px;
  border-radius:28px;
  position:relative;
  overflow:hidden;
  min-height:320px;
}
.hero-card::before{
  content:'';
  position:absolute;
  width:340px;
  height:340px;
  border:2px solid rgba(198,167,94,.18);
  border-radius:50%;
  top:-120px;
  right:-120px;
}
.hero-card::after{
  content:'';
  position:absolute;
  width:210px;
  height:210px;
  border:1.5px solid rgba(198,167,94,.12);
  border-radius:50%;
  top:-40px;
  right:-40px;
}
.hero-card img.logo-in{
  height:50px;
  background:#fff;
  padding:8px 12px;
  border-radius:10px;
  margin-bottom:20px;
  position:relative;
  z-index:1;
}
.hero-card h2{
  font-size:28px;
  margin:20px 0 12px;
  position:relative;
  z-index:1;
  max-width:280px;
}
.hero-card p{
  color:#E8DCC8;
  position:relative;
  z-index:1;
}
.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:24px;
  position:relative;
  z-index:1;
}
.chip{
  border:1px solid rgba(255,255,255,.3);
  padding:8px 14px;
  border-radius:99px;
  font-size:12px;
}

/* блок секции */
section{padding:80px 24px}
.wrap{
  max-width:1240px;
  margin:0 auto;
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:40px;
}
.section-head p{
  color:var(--muted);
  max-width:480px;
}
.kicker{
  color:var(--navy);
  font-size:12px;
  font-weight:800;
  letter-spacing:.15em;
  margin-bottom:8px;
}

/* блок статистика */
.stats{background:var(--pale)}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.stat{
  background:#fff;
  padding:24px;
  border-left:3px solid var(--gold);
  border-radius:0 16px 16px 0;
}
.stat strong{
  font-size:36px;
  color:var(--navy);
  display:block;
}
.stat span{
  color:var(--muted);
  font-size:14px;
}

/* блок карточки */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  background:#fff;
  transition:.2s;
  box-shadow:var(--shadow);
}
.card:hover{transform:translateY(-4px)}
.card-icon{
  width:48px;
  height:48px;
  background:#F6F1E6;
  color:var(--navy);
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:22px;
  margin-bottom:20px;
}
.card h3{
  font-size:20px;
  margin-bottom:12px;
}
.card p{
  color:var(--muted);
  font-size:15px;
}
.card-link{
  color:var(--navy);
  font-weight:700;
  display:inline-block;
  margin-top:16px;
  font-size:14px;
}

/* блок этапы */
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.step{
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}
.step-num{
  color:var(--gold);
  font-weight:900;
  font-size:14px;
}
.step h3{margin:12px 0 8px}
.step p{
  color:var(--muted);
  font-size:15px;
}

/* блок split */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.check{
  display:flex;
  gap:12px;
  margin:16px 0;
  color:#475467;
}
.check-icon{
  width:22px;
  height:22px;
  background:#F6F1E6;
  color:var(--navy);
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:12px;
  flex-shrink:0;
  margin-top:2px;
}

/* блок page-hero */
.page-hero{
  background:var(--pale);
  padding:64px 24px;
}
.page-hero h1{font-size:clamp(32px,4vw,48px)}
.page-hero p{
  font-size:17px;
  color:var(--muted);
  max-width:600px;
  margin-top:12px;
}

/* блок каталог */
.filter-bar{
  display:flex;
  gap:12px;
  margin-bottom:32px;
  flex-wrap:wrap;
}
.filter-btn{
  padding:10px 20px;
  border:1px solid var(--line);
  border-radius:99px;
  background:#fff;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
  cursor:pointer;
  transition:.2s;
}
.filter-btn:hover,
.filter-btn.active{
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}
.catalog-card{
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.catalog-visual{
  height:160px;
  position:relative;
  flex-shrink:0;
}
.catalog-visual::after{
  content:'';
  position:absolute;
  width:140px;
  height:140px;
  border:16px solid rgba(255,255,255,.15);
  border-radius:50%;
  top:-40px;
  right:-20px;
}
.catalog-body{
  padding:24px;
  display:flex;
  flex-direction:column;
  flex-grow:1;
}
.tag{
  color:var(--gold);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}
.catalog-body h3{margin:8px 0 12px}
.catalog-body p{flex-grow:1}
.price{
  color:var(--navy);
  font-weight:800;
  font-size:18px;
  margin-top:12px;
}
.price span{
  font-weight:400;
  font-size:13px;
  color:var(--muted);
}
.catalog-actions{
  display:flex;
  gap:8px;
  margin-top:16px;
  flex-wrap:wrap;
}
.price-note{
  font-size:15px;
  color:#475467;
  margin-top:16px;
  line-height:1.6;
  max-width:100%;
}

/* блок формы */
.form-box{
  background:var(--navy);
  padding:36px;
  border-radius:24px;
  color:#fff;
}
.form-box h3{
  font-size:26px;
  margin-bottom:8px;
}
.form-box>p{
  color:#E8DCC8;
  margin-bottom:24px;
  font-size:15px;
}
.input{
  width:100%;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  padding:14px;
  border-radius:10px;
  margin-bottom:12px;
  font:inherit;
}
.input::placeholder{color:#E8DCC8}
.input:focus{
  outline:none;
  border-color:#fff;
}
textarea.input{
  resize:vertical;
  min-height:80px;
}
.consent{
  display:flex;
  gap:10px;
  align-items:start;
  margin:16px 0;
  font-size:13px;
  color:#E8DCC8;
  line-height:1.4;
}
.consent input{
  margin-top:3px;
  flex-shrink:0;
}
.form-box .btn{
  width:100%;
  text-align:center;
}
.form-success{
  display:none;
  padding:40px 20px;
  text-align:center;
}
.form-success h4{
  font-size:22px;
  margin-bottom:8px;
}
.form-success p{color:#E8DCC8}

/* блок контакты */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.contact-info h3{
  font-size:14px;
  margin-bottom:6px;
  color:var(--navy);
  text-transform:uppercase;
  letter-spacing:.08em;
}
.contact-info b{
  font-size:22px;
  display:block;
  margin-bottom:4px;
}
.contact-info p{
  color:var(--muted);
  font-size:14px;
  margin-bottom:28px;
}
.map-placeholder{
  background:repeating-linear-gradient(135deg,#F6F1E6 0 12px,#EAE3D2 12px 14px);
  border-radius:24px;
  min-height:300px;
  display:grid;
  place-items:center;
  color:var(--navy);
  font-weight:700;
  text-align:center;
  padding:20px;
}

/* блок документы */
.doc-list{display:grid;gap:12px}
.doc{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
}
.doc-icon{
  font-size:24px;
  flex-shrink:0;
}
.doc b{display:block}
.doc span{
  color:var(--muted);
  font-size:13px;
}
.doc .btn{
  margin-left:auto;
  flex-shrink:0;
}

/* блок новости */
.news-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.news-date{
  color:var(--gold);
  font-size:12px;
  font-weight:800;
}
.news-card h3{
  font-size:18px;
  margin:12px 0 8px;
}
.news-card p{font-size:14px}

/* блок футер */
footer{
  background:#151F37;
  color:#E8DCC8;
  padding:48px 24px 32px;
}
.footer-inner{
  max-width:1240px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
}
.footer-logo{margin-bottom:8px}
.footer-logo img{
  height:36px;
  background:#fff;
  padding:6px 10px;
  border-radius:8px;
}
.footer-note{
  font-size:13px;
  color:#9AA3B8;
}
.footer-links{
  display:flex;
  gap:24px;
  font-size:13px;
}
.footer-links a{color:#9AA3B8}
.footer-links a:hover{color:#fff}
.footer-bottom{
  max-width:1240px;
  margin:32px auto 0;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:12px;
  color:#9AA3B8;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}

/* блок модалка */
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:200;
  background:rgba(0,0,0,.5);
  align-items:center;
  justify-content:center;
  padding:20px;
}
.modal.active{display:flex}
.modal-content{
  background:#fff;
  border-radius:20px;
  max-width:480px;
  width:100%;
  max-height:90vh;
  overflow-y:auto;
  position:relative;
}
.modal-header{
  padding:24px 24px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.modal-header h3{font-size:22px}
.modal-close{
  background:none;
  font-size:24px;
  color:var(--muted);
  cursor:pointer;
}
.modal-body{padding:24px}
.modal-body .input{
  background:#F9FAFB;
  border:1px solid var(--line);
  color:var(--ink);
}
.modal-body .input::placeholder{color:var(--muted)}
.modal-body .consent{color:var(--muted)}
.modal-body .consent a{
  color:var(--navy);
  text-decoration:underline;
}

/* блок адаптив */
@media(max-width:968px){
  .hero-inner,.split,.contact-grid{grid-template-columns:1fr;gap:32px}
  .grid-3,.steps,.news-grid{grid-template-columns:1fr 1fr}
  .stats-grid{grid-template-columns:1fr 1fr}
  .section-head{
    flex-direction:column;
    align-items:start;
    gap:16px;
  }
}
@media(max-width:640px){
  .topbar{display:none}
  .nav{
    height:64px;
    padding:0 16px;
  }
  .nav-links{
    display:none;
    position:absolute;
    top:64px;
    left:0;
    right:0;
    background:#fff;
    flex-direction:column;
    padding:20px;
    border-bottom:1px solid var(--line);
    box-shadow:0 10px 30px rgba(0,0,0,.1);
    z-index:99;
  }
  .nav-links.open{display:flex}
  .nav-links a{
    font-size:16px;
    padding:12px 0;
    border-bottom:1px solid var(--line);
  }
  .burger{display:block}
  .nav>.btn{display:none}
  .hero{padding:48px 16px}
  section{padding:48px 16px}
  .grid-3,.steps,.news-grid,.stats-grid{grid-template-columns:1fr}
  .hero-card h2{margin-top:20px}
  .doc{flex-wrap:wrap}
  .doc .btn{
    margin-left:0;
    width:100%;
    margin-top:12px;
  }
}
/* блок кнопка в шапке */
.header-cta{
  margin-left:80px;
}

/* блок отступ шапки от панели админки */
body.admin-bar header{top:32px}
@media (max-width:782px){body.admin-bar header{top:46px}}

/* блок новости */
.news-thumb{margin-bottom:12px}
.news-thumb img{width:100%;height:180px;object-fit:cover;border-radius:8px}
.news-card h3 a{color:inherit;text-decoration:none}

/* блок отдельная новость */
.news-single{max-width:800px;margin:0 auto}
.news-single-thumb{margin-bottom:25px}
.news-single-thumb img{width:100%;border-radius:12px}
.news-single-content p{margin-bottom:16px;line-height:1.7}

/* блок контакты - телефоны */
.contact-info p{margin-bottom:16px;line-height:1.5}
.contact-info strong{color:var(--ink);font-size:15px}
.contact-info a{color:var(--navy);font-weight:600;font-size:16px;text-decoration:none}
.contact-info a:hover{text-decoration:underline}

/* ===== палитра navy + gold: тёмные поверхности и акценты ===== */
.topbar{background:linear-gradient(90deg,#1F2A44,#2A3A5F)}

.page-hero{background:linear-gradient(135deg,#1F2A44 0%,#2B3A5E 100%)}
.page-hero h1,.page-hero h2,.page-hero p,
.page-hero .breadcrumbs,.page-hero .breadcrumbs a{color:#fff}
.page-hero .eyebrow{color:#C6A75E}

.hero-card{background:linear-gradient(150deg,#222D4B,#2F4068)}
.hero-card h2,.hero-card p{color:#F6F1E6}
.chip{border-color:rgba(230,220,200,.35);color:#E8DCC8}
.hero-card img.logo-in{max-width:230px;height:auto;display:block;margin-bottom:22px}

.btn,.header-cta{
  background:linear-gradient(135deg,#DCC183,#C6A75E);
  color:#1F2A44;
  box-shadow:0 8px 20px rgba(198,167,94,.35);
}
.btn:hover,.header-cta:hover{
  background:linear-gradient(135deg,#C4A468,#A9893F);
  box-shadow:0 6px 16px rgba(169,137,63,.4);
  transition:background .25s,box-shadow .25s;
}

/* ===== футер ===== */
.footer-inner{align-items:flex-start}
.footer-col{display:flex;flex-direction:column;gap:14px}
.footer-col-right{margin-left:auto;align-items:flex-end}
.footer-links{flex-direction:column;gap:10px;text-align:right}
.footer-logo img{background:none;padding:0;border-radius:0;height:44px;width:auto}
.footer-mail{
  color:#C6A75E;font-weight:700;font-size:15px;
  border-bottom:1px solid rgba(198,167,94,.4);
  align-self:flex-start;padding-bottom:2px;
}
.footer-mail:hover{color:#E8DCC8;border-color:#E8DCC8}
.footer-social{display:flex;gap:10px;align-items:center}
.footer-social a{
  width:38px;height:38px;display:grid;place-items:center;
  border:1px solid rgba(230,220,200,.3);border-radius:50%;
  color:#E8DCC8;transition:.2s;
}
.footer-social a:hover{background:#C6A75E;color:#1F2A44;border-color:#C6A75E}
