/* =========================
   BudTechCrane — styles.css (FULL REWRITE)
   UA site • Dark glass style • Responsive burger right
   Images used: hero2.png, Logo2.png
   ========================= */

/* ---------- TOKENS ---------- */
:root{
  --bg:#05070b;
  --text:#e9eef7;
  --muted:rgba(233,238,247,0.72);

  --accent:#3b82f6;
  --accent2:#93c5fd;

  --stroke: rgba(255,255,255,0.14);
  --stroke2: rgba(255,255,255,0.22);

  --glass1: rgba(255,255,255,0.08);
  --glass2: rgba(0,0,0,0.46);

  --shadow1: 0 10px 26px rgba(0,0,0,0.38);
  --shadow2: 0 18px 52px rgba(0,0,0,0.62);

  --r12: 12px;
  --r16: 16px;
  --r20: 20px;
  --r999: 999px;

  --wrap: 1200px;
  --headerH: 78px;

  /* typography */
  --h1: clamp(34px, 4.2vw, 58px);
  --h2: clamp(22px, 2.4vw, 34px);
  --h3: clamp(16px, 1.6vw, 20px);
  --p: 16px;
  --p2: 15px;
  --lh: 1.65;

  /* rhythm */
  --secY: 72px;
  --secY-sm: 54px;

  --gap: 18px;
  --gap-lg: 24px;
}

/* ---------- BASE ---------- */
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: var(--p);
  color: var(--text);
  min-height:100vh;
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(59,130,246,0.16), transparent 60%),
    radial-gradient(900px 520px at 20% 0%, rgba(147,197,253,0.12), transparent 55%),
    linear-gradient(
      to bottom,
      rgba(5,7,11,0.82) 0%,
      rgba(5,7,11,0.52) 32%,
      rgba(5,7,11,0.34) 62%,
      rgba(5,7,11,0.86) 100%
    ),
    url("hero2.png") center top / cover no-repeat;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
p{line-height: var(--lh);}
ul{padding-left: 18px;}
.wrap{max-width: var(--wrap);margin:0 auto;padding: 0 16px;}
.muted{color: var(--muted); font-size: var(--p2);}
.section-anchor{scroll-margin-top: calc(var(--headerH) + 14px);}

/* ---------- TYPOGRAPHY ---------- */
h1{font-size: var(--h1); letter-spacing:-0.6px; line-height:1.05;}
h2{font-size: var(--h2); letter-spacing:-0.35px; line-height:1.15;}
h3{font-size: var(--h3); line-height:1.25;}
.lead{font-size: clamp(16px, 1.35vw, 20px); line-height:1.55; color: rgba(255,255,255,0.92);}

/* ---------- GLASS / CARDS ---------- */
.glass{
  border: 1px solid var(--stroke);
  border-radius: var(--r20);
  box-shadow: var(--shadow1);
  background-clip: padding-box;
}
.glass--light{
  background: var(--glass1);
  backdrop-filter: blur(10px);
}
.glass--strong{
  background: var(--glass2);
  backdrop-filter: blur(10px);
}
.pad{padding: 18px;}
.hover-up{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.hover-up:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
  border-color: var(--stroke2);
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: var(--r999);
  font-weight: 900;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0,0,0,0.48); }
.btn:active{ transform: translateY(0); }
.btn-primary{
  background: linear-gradient(135deg, rgba(59,130,246,0.98), rgba(147,197,253,0.92));
  border-color: rgba(147,197,253,0.55);
  color:#fff;
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(147,197,253,0.92), rgba(59,130,246,0.98));
  border-color: rgba(147,197,253,0.72);
}
.btn-ghost{
  background: rgba(255,255,255,0.10);
  color:#fff;
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.22);
}
.btn-wide{width:100%;}

/* ---------- HEADER / NAV ---------- */
.header{
  position: sticky;
  top:0;
  z-index: 2000;
  height: var(--headerH);
  background: rgba(5,7,11,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.head-row{
  height: var(--headerH);
  display:flex;
  align-items:center;
  gap: 14px;
}

.brand{display:flex;align-items:center;position:relative;z-index:2100;}
.logo{
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  transform: translateY(10px);
  box-shadow: 0 14px 35px rgba(0,0,0,.55);
}

/* Desktop nav */
.main-nav{
  flex: 1 1 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-left: 52px;
  gap: 8px;
}
.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border-radius: var(--r999);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.nav-link:hover{
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(59,130,246,0.50), rgba(147,197,253,0.26));
  border-color: rgba(147,197,253,0.45);
  box-shadow: 0 12px 26px rgba(59,130,246,0.18);
}
.nav-link.active{
  background: linear-gradient(135deg, rgba(59,130,246,0.95), rgba(147,197,253,0.70));
  border-color: rgba(147,197,253,0.65);
  box-shadow: 0 14px 30px rgba(59,130,246,0.30);
}

/* Burger right (mobile/tablet) */
.burger{
  display:none;
  margin-left:auto;          /* push to right */
  width: 30px;
  height: 22px;
  border:0;
  background:none;
  cursor:pointer;
  flex-direction:column;
  justify-content:space-between;
}
.burger span{
  display:block;
  height:3px;
  border-radius: 999px;
  background:#fff;
}

/* ---------- HERO (index) ---------- */
.hero{
  padding: 128px 0 64px;
}
.hero-content{
  max-width: 1020px;
  margin: 0 auto;
  text-align:center;
}
.hero-content h1{
  text-shadow: 0 0 30px rgba(0,0,0,.75);
  margin-bottom: 18px;
}
.hero-text{
  text-align:left;
  padding: 18px;
}
.hero-text p{margin-bottom: 10px;}
.hero-actions{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 14px;
}

.hero-info{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--gap);
}
.hero-info-block{
  padding: 14px 16px;
  text-align:left;
}
.hero-info-block p{color: rgba(255,255,255,0.82); font-size: 14px;}

/* ---------- PAGE HERO (all inner pages) ---------- */
.page-hero{
  padding: 120px 0 40px; /* FIX: не прилипает к шапке */
}
.page-hero .glass{
  padding: 18px;
}

/* ---------- SECTIONS / GRIDS ---------- */
.section{ padding: var(--secY) 0; }
.section-head{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 24px;
}
.section-sub{ color: var(--muted); }

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap-lg);
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

/* ---------- FAQ ---------- */
.faq{display:grid;gap: 14px;}
.faq-item{padding: 18px;}
.faq-q{font-weight: 950; margin-bottom: 10px; font-size: 15px;}
.faq-a{color: var(--muted);}

/* ---------- PARTNERS ---------- */
.partners-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap-lg);
}
.partner-card{padding: 18px;}
.partner-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: var(--r999);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 12px;
}
.partner-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.partner-link:hover{ border-bottom-color: rgba(147,197,253,0.55); }

/* ---------- FEEDBACK (form page/section) ---------- */
.feedback{
  position:relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.26));
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.feedback::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.42);
  pointer-events:none;
}
.feedback .wrap{ position:relative; z-index:2; }

.feedback-row{
  display:grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--gap-lg);
  align-items: stretch;
}

.fb-form{padding: 18px;}
.field{display:block;margin-bottom: 10px;}
.field span{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,0.74);
  margin: 0 0 6px 2px;
}
.field input,
.field textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: var(--r12);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.30);
  color:#fff;
  outline:none;
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus,
.field textarea:focus{
  border-color: rgba(147,197,253,0.60);
  background: rgba(0,0,0,0.38);
}
.field textarea{min-height: 130px; resize: vertical;}
.form-status{margin-top: 10px; font-size: 13px;}

.fb-info{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding: 18px;
}
.mini-list{margin-top: 12px; display:grid; gap: 10px;}
.mini-item{
  padding: 10px 12px;
  border-radius: var(--r12);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
}

/* ---------- CONTACTS ---------- */
.contacts-row{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-lg);
  align-items:start;
}
.contact-card{padding: 18px;}
.contact-card h2{margin-bottom: 12px;}
.contact-line{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r12);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 10px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.contact-line:hover{
  transform: translateY(-2px);
  border-color: rgba(147,197,253,0.35);
  background: rgba(255,255,255,0.08);
}
.contact-addr{margin-top: 10px;}

.contact-ico{
  width:18px;height:18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
  opacity:0.95;
}
.contact-ico--phone{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M4 3l3 1 1 4-2 2c2 3 4 5 7 7l2-2 4 1 1 3c-1 1-3 2-5 2C9 20 2 11 2 6c0-2 1-4 2-5z'/%3E%3C/svg%3E");
}
.contact-ico--mail{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M3 5h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/%3E%3Cpath d='M1 7l8 6 8-6'/%3E%3C/svg%3E");
}

/* socials */
.social-card{padding: 18px;}
.social-card h3{margin-bottom: 12px;}
.socials{display:grid;gap: 10px;}
.social{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: var(--r12);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.social:hover{
  transform: translateY(-2px);
  border-color: rgba(147,197,253,0.35);
  background: rgba(255,255,255,0.08);
}
.social-ico{
  width:18px;height:18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
}
.social--fb .social-ico{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23ffffff'%3E%3Cpath d='M11 6h2V3h-2c-1.7 0-3 1.3-3 3v2H6v3h2v7h3v-7h2l1-3h-3V6c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
}
.social--ig .social-ico{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='3' y='3' width='12' height='12' rx='3'/%3E%3Cpath d='M8 9a3 3 0 1 0 6 0 3 3 0 0 0-6 0z'/%3E%3Cpath d='M13 5h.01'/%3E%3C/svg%3E");
}
.social--tg .social-ico{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23ffffff'%3E%3Cpath d='M16 3L2 9l4 1 1 4 3-3 4 3 2-11zM7 14l-.6-2.4L13.7 5.9 8 11l-1 3z'/%3E%3C/svg%3E");
}
.social--in .social-ico{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23ffffff'%3E%3Cpath d='M3 3h3v12H3V3zm1.5-2A1.5 1.5 0 1 1 4.5 4 1.5 1.5 0 0 1 4.5 1zM8 7h3v1.7c.4-.9 1.6-1.9 3.3-1.9 3 0 3.7 2 3.7 4.7V15h-3v-3.4c0-1.6 0-3.6-2.2-3.6s-2.5 1.7-2.5 3.5V15H8V7z'/%3E%3C/svg%3E");
}

/* ---------- SERVICE PAGE (your classes exist in HTML) ---------- */
.service-hero-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap-lg);
}
.service-hero-card{
  position:relative;
  border-radius: var(--r20);
  overflow:hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow1);
  min-height: 360px;
}
.service-hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 30% 10%, rgba(59,130,246,0.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(0,0,0,0.55));
}
.service-hero-content{
  position:relative;
  padding: 18px;
}
.service-hero-content p{ color: rgba(255,255,255,0.86); margin: 8px 0 10px; }
.service-hero-content ul{ margin-top: 10px; }
.service-hero-content li{ color: rgba(233,238,247,0.78); margin-bottom: 6px; }

/* subtle variations */
.service-hero-card--one .service-hero-overlay{
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(147,197,253,0.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(0,0,0,0.55));
}
.service-hero-card--two .service-hero-overlay{
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(59,130,246,0.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(0,0,0,0.55));
}

/* ---------- POSLUGY tiles (your classes exist in HTML) ---------- */
.tile-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap-lg);
}
.tile{
  padding: 18px;
}
.tile h3{ margin-top: 8px; margin-bottom: 8px; }
.tile .muted{ margin-bottom: 10px; }

/* Icons placeholders (no images needed) */
.tile-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(147,197,253,0.28), transparent 65%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(0,0,0,0.35));
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* ---------- FOOTER ---------- */
.footer{
  background: rgba(0,0,0,0.74);
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 18px 0;
}
.footer-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap: 10px;
  font-size: 13px;
}
.footer-row a{ border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-row a:hover{ border-bottom-color: rgba(147,197,253,0.55); }

/* ---------- PAGE ENTER (optional, if you wrap content in .page) ---------- */
body.is-loading{ overflow:hidden; }
.page{
  opacity: 1; /* safe default */
}
body.is-ready .page{
  animation: pageIn .38s ease both;
}
@keyframes pageIn{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px){
  .main-nav{ margin-left: 36px; }
  .hero{ padding-top: 110px; }
}

@media (max-width: 980px){
  :root{ --secY: 60px; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .partners-grid{ grid-template-columns: 1fr; }
  .contacts-row{ grid-template-columns: 1fr; }
  .feedback-row{ grid-template-columns: 1fr; }
  .service-hero-grid{ grid-template-columns: 1fr; }
  .tile-grid{ grid-template-columns: 1fr; }
  .hero-info{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  /* burger visible */
  .burger{ display:flex; }

  /* mobile menu dropdown */
  .main-nav{
    position:absolute;
    left:0; right:0;
    top: var(--headerH);
    display:none;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap: 10px;
    padding: 14px 16px 18px;
    margin-left: 0;
    background: rgba(5,7,11,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .main-nav.open{ display:flex; }

  .hero{ padding: 96px 0 48px; }
  .page-hero{ padding: 96px 0 28px; }

  .logo{ width: 88px; height: 88px; transform: translateY(8px); }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
  .glass--light,.glass--strong{ backdrop-filter:none; }
}
