/* ========= Core / tokens ========= */
:root{
  --brand:#29296b;
  --bg:#e9edf5;
  --text:#121212;
  --muted:#8a8a8a;
  --white:#fff;

  --radius-xl:25px;
  --radius-md:20px;

  --page-x:40px;
  --content-max:1350px;
  --header-top:30px;
  --header-h:64px;
  --pill-pad-x:40px;

  --fz-body:clamp(14px, 1.1vw, 16px);
  --fz-h1:clamp(28px, 4vw, 44px);
  --fz-h2:clamp(18px, 2.1vw, 26px);
  --fz-small:clamp(13px, 0.95vw, 15px);
}

/* ========= Reset ========= */
*{margin:0;padding:0;box-sizing:border-box}
html,body{
  height:100%;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  scroll-behavior:smooth;
  font-size:var(--fz-body);
}

/* ========= Header ========= */
.site-header{
  position:fixed;
  inset:var(--header-top) var(--page-x) auto var(--page-x);
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* белая таблетка */
.nav-pill{
  position:relative;
  width:100%;
  height:var(--header-h);
  background:var(--white);
  border-radius:var(--radius-xl);
  padding:0 var(--pill-pad-x);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}

/* внутренняя ширина = ширина контента */
.nav-inner{
  max-width:var(--content-max);
  width:100%;
  height:100%;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* логотип */
.logo-box{
  position:absolute;
  left:0; top:50%;
  transform:translateY(-50%);
  width:160px; height:100%;
  background:var(--brand);
  border-radius:var(--radius-xl);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  overflow:hidden;
  z-index:3;
}
.logo-box img{
  max-height:55%;
  max-width:90%;
  object-fit:contain;
  display:block;
}

/* телефон */
.phone-box{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  gap:50px;
  text-decoration:none;
}
.phone-text{
  font-weight:300;
  color:#666;
  font-size:17px;
  white-space:nowrap;
}
.phone-icon{
  height:var(--header-h);
  min-width:var(--header-h);
  width:auto;
  padding:0 18px;
  border-radius:var(--radius-xl);
  background:var(--brand);
  display:flex;
  align-items:center;
  justify-content:center;
}
.phone-icon img{width:20px;height:20px;filter:brightness(0) invert(1)}

/* nav */
.main-nav{list-style:none;display:flex;align-items:center;gap:50px;padding:0}
.nav-divider{width:1px;height:24px;background:#ccc}
.main-nav a{
  position:relative; font-weight:380; font-size:17px; color:var(--muted);
  text-decoration:none; white-space:nowrap; transition:color .25s ease;
}
.main-nav a::after{
  content:""; position:absolute; left:50%; bottom:-22px;
  width:30px; height:4px; border-radius:10px; background:var(--brand);
  transform:translateX(-50%) scaleX(0); transform-origin:center; transition:transform .25s ease;
}
.main-nav a:hover{color:var(--brand)}
.main-nav a:hover::after{transform:translateX(-50%) scaleX(1)}

/* бургер */
.burger{
  position:absolute;
  left:190px;
  top:50%;
  transform:translateY(-50%);
  width:30px;height:18px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  z-index:101;
}
.burger span{
  height:3px;
  background:#bfbfbf;
  border-radius:2px;
  transition:background-color .3s;
}
.burger:hover span{background:var(--brand)}

/* ========= Overlay + dropdown ========= */
.overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.2);
  opacity:0; pointer-events:none; transition:opacity .35s;
  z-index:200; display:flex; justify-content:center; align-items:flex-start; padding:0;
}
.overlay.active{opacity:1;pointer-events:auto}

.dropdown-panel{
  position:fixed;
  top:var(--header-top);
  left:var(--page-x);
  right:var(--page-x);
  background:#fff; border-radius:var(--radius-xl);
  padding:60px 60px; width:auto; box-shadow:0 10px 30px rgba(0,0,0,.1);
  z-index:201;
}
.cases-row{display:flex;gap:80px;flex-wrap:wrap;justify-content:center}
.case-item{
  font-weight:380;font-size:17px;color:var(--muted);cursor:pointer;position:relative;text-decoration:none;transition:color .25s;
  padding:6px 10px;
}
.case-item::after{
  content:"";position:absolute;left:50%;bottom:-12px;width:34px;height:4px;border-radius:10px;
  background:var(--brand);transform:translateX(-50%) scaleX(0);transition:transform .25s;
}
.case-item a{display:block;text-decoration:none;color:inherit}
.case-item:hover{color:var(--brand)}
.case-item:hover::after{transform:translateX(-50%) scaleX(1)}

/* ========= Page layout ========= */
.page{
  padding:0 var(--page-x);
}

.page-hero{
  margin-top:calc(var(--header-top) + var(--header-h) + 36px);
  padding:26px 0 0; /* было 40px — подняли плашку ближе к заголовку */
}

/* ✅ общий контейнер, чтобы заголовок и плашка были на одной “линейке” */
.content-wrap{
  max-width: none;     /* было: var(--content-max) */
  margin: 0;           /* было: 0 auto */
  width: 100%;
}

.page-title{
  font-weight:900;
  color:var(--brand);
  font-size:var(--fz-h1);

  /* ✅ как на главной странице (products-title) */
  padding-left:min(100px, 6vw);

  margin:10px 0 40px;
}


/* ========= Requisites card ========= */
.req-card{
  background:#fff;
  border-radius:var(--radius-xl);
  padding:46px 44px;
  width:100%;
  max-width:100%;          /* ✅ теперь ширина берётся от .content-wrap */
  margin:0 auto 40px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

/* ✅ выравниваем “ООО…” и email по той же линейке, что и заголовки блоков */
.req-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;

  padding:0 22px 22px;     /* ✅ добавили внутренние поля слева/справа */
  border-bottom:1px solid rgba(0,0,0,.06);
  margin-bottom:28px;
}

/* ✅ ООО «КРУТОФФ» = как “Основные данные” */
.req-name{
  font-weight:900;
  color:var(--brand);
  font-size:var(--fz-h2);
  letter-spacing:0.2px;
}

/* ✅ подзаголовок = как “Орг.-правовая форма” */
.req-sub{
  margin-top:8px;
  color:#6b6b6b;
  font-weight:500;
  line-height:1.35;
}

/* ссылки */
.req-link{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
  transition:opacity .2s ease;
}
.req-link:hover{opacity:.8}

/* grid блоков */
.req-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:22px;
}

.req-block{
  background:rgba(41,41,107,.04);
  border-radius:22px;
  padding:22px 22px;
}

.req-title{
  font-weight:900;
  color:var(--brand);
  font-size:var(--fz-h2);
  margin-bottom:14px;
}

.req-row{
  display:grid;
  grid-template-columns: 1fr 1.3fr;
  gap:14px;
  padding:12px 0;
  border-top:1px solid rgba(0,0,0,.06);
}
.req-row:first-of-type{border-top:none;padding-top:6px}

.req-label{
  color:#6b6b6b;
  font-weight:500;
  line-height:1.35;
}
.req-value{
  color:var(--text);
  font-weight:600;
  line-height:1.35;
  word-break:break-word;
}

.req-foot{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(0,0,0,.06);
}
.req-note{
  color:#666;
  font-size:var(--fz-small);
  line-height:1.6;
}

/* ========= Footer ========= */
.footer-bar{
  margin:0 var(--page-x) 40px;
  padding:20px 40px;
  background:var(--brand);
  border-radius:var(--radius-xl);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:80px;
}
.footer-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
}
.footer-logo{height:40px}
.footer-divider{width:1px;height:28px;background:rgba(255,255,255,.6)}
.footer-link{
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  transition:opacity .25s ease;
}
.footer-link:hover{opacity:0.8}
.footer-link.is-active{opacity:0.9}

/* ========= Responsive ========= */
@media (max-width:1440px){
  :root{ --page-x:32px; --pill-pad-x:32px }
  .main-nav{gap:36px}
  .phone-box{gap:18px}
}

@media (max-width:1280px){
  :root{ --page-x:28px; --content-max:1200px; --pill-pad-x:28px }
  .main-nav{gap:28px}
  .nav-divider{display:none}
  .req-grid{grid-template-columns:1fr}
}

@media (max-width:1024px){
  :root{ --page-x:24px; --pill-pad-x:24px }
  .burger{display:flex}
  .main-nav{display:none}
  .phone-text{display:none}
  .logo-box{width:140px}

  .page-title{padding-left:0;text-align:center}
  .req-card{padding:34px 26px}
  .req-head{
    flex-direction:column;
    padding:0 22px 18px; /* на планшете убираем “добавку 22px”, чтобы не разъезжалось */
  }
}

@media (max-width:768px){
  :root{
    --page-x:16px;
    --pill-pad-x:16px;
    --header-top:18px;
    --header-h:56px;
    --content-max:100%;
  }

  .site-header{inset:var(--header-top) var(--page-x) auto var(--page-x)}
  .logo-box{width:128px;height:100%}
  .phone-text{display:none}
  .phone-icon{height:var(--header-h);min-width:var(--header-h);width:auto;padding:0 14px}
  .burger{left:50%;transform:translate(-50%, -50%)}

  .dropdown-panel{
    top:var(--header-top);
    left:var(--page-x); right:var(--page-x);
    padding:28px 18px;
  }
  .cases-row{flex-direction:column;align-items:stretch;gap:10px}
  .case-item{display:block;text-align:center;padding:14px 12px;font-size:18px}
  .case-item::after{bottom:-6px;width:40px}

  .page-hero{padding-top:22px}
  .req-card{padding:28px 18px}
  .req-head{padding:0 22px 18px}
  .req-row{grid-template-columns:1fr;gap:6px}

  .footer-bar{margin:0 var(--page-x) 28px;padding:16px 20px;min-height:70px}
  .footer-content{gap:12px}
  .footer-logo{height:28px}
  .footer-divider{height:20px}
  .footer-link{font-size:14px}
}
