

/* ===== Base ===== */
:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --border: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.45);

  --primary: #3b82f6;
  --primary-2: #60a5fa;

  --radius: 18px;
  --radius-sm: 14px;

  --container: 1120px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(96,165,250,.25), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(59,130,246,.18), transparent 50%),
              var(--bg);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 650;
  letter-spacing: .2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #08101a;
  box-shadow: 0 12px 30px rgba(59,130,246,.25);
}
.btn--primary:hover{
  box-shadow: 0 16px 36px rgba(59,130,246,.30);
}

.btn--ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.btn--full{ width: 100%; }

/* ===== Topbar ===== */
/* ===== Fixed header show on scroll ===== */

/* ===== Header transparent → solid on scroll ===== */

.topbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* transparent state */
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;

  transition: all .35s ease;
}

/* when user scrolls */
.topbar.scrolled{
  background: rgba(11,15,20,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}



.topbar__inner{
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.burger{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
}
.burger span{
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.86);
  border-radius: 2px;
  display: block;
}
.topbar__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Brand ===== */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(96,165,250,.9));
  color: #08101a;
  font-weight: 900;
  letter-spacing: .5px;
  box-shadow: 0 10px 25px rgba(59,130,246,.25);
}
.brand__logo--mini{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 14px;
}
.brand__text{
  display: grid;
  line-height: 1.1;
  min-width: 0;
}
.brand__name{
  font-weight: 850;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__tag{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Side drawer (CSS-only) ===== */
.nav-toggle{ position:absolute; opacity:0; pointer-events:none; }
/* ===== Side menu always opens from top ===== */

.sidedrawer{
  position: fixed;     /* attach to viewport */
  top: 0;              /* start from top */
  left: 0;
  height: 100vh;       /* full screen height */
  width: min(320px, 86vw);

  z-index: 1200;

  transform: translateX(-105%);
  transition: transform .25s ease;

  background: rgba(10,14,18,.95);
  backdrop-filter: blur(14px);

  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);

  display: flex;
  flex-direction: column;
}


/* overlay also scrolls with page */
.overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.overlay{
  position: fixed;   /* cover full screen */
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1100;

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}


.nav-toggle:checked ~ .sidedrawer{ transform: translateX(0); }
.nav-toggle:checked ~ .overlay{
  opacity: 1;
  pointer-events: auto;
}









.sidedrawer__header{
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.sidedrawer__title{
  display:flex;
  align-items:center;
  gap: 10px;
}
.sidedrawer__name{ font-weight: 850; }
.sidedrawer__sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }
.close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:grid;
  place-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
}

.sidedrawer__nav{
  padding: 12px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.sidedrawer__nav a{
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.sidedrawer__nav a:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  transform: translateX(2px);
}

.sidedrawer__footer{
  margin-top: auto;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.mini-contacts{
  display:grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.mini-contacts a{ color: rgba(255,255,255,.88); }
.muted{ color: var(--muted); }

/* ===== Hero ===== */
.hero{
  position: relative;
  padding: 46px 0 26px;
  overflow: hidden;
}
.hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .55;
}
.hero__bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.3) contrast(1.2) brightness(1.05);
  transform: scale(1.05);
}
.hero__bg::after{
  content:"";
  position:absolute;
  inset:0;

  /* lighter overlay so image shows more */
  background: linear-gradient(
    180deg,
    rgba(11,15,20,.25),
    rgba(11,15,20,.55) 70%,
    rgba(11,15,20,.85)
  );
}


.hero__content{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: start;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  font-weight: 650;
  font-size: 13px;
}

h1{
  margin: 12px 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.lead{
  color: rgba(255,255,255,.85);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.6;
  font-weight: 500;

 margin: 60px auto 20px;
 /* pushes text down */
  max-width: 60ch;

  text-align: center;
}


.hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.hero__stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.stat{
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.stat__num{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.stat__label{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
}

/* Right cards */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  overflow: hidden;
}
.card--glass{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.card h3{
  margin: 0;
  padding: 16px 16px 6px;
  font-size: 16px;
}
.contact-list{
  display: grid;
  gap: 10px;
  padding: 10px 16px 16px;
}
.contact-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.contact-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}
.icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:grid;
  place-content:center;
  background: rgba(59,130,246,.18);
  border: 1px solid rgba(59,130,246,.25);
}
.contact-item strong{ display:block; }
.contact-item .muted{ display:block; font-size: 12px; margin-top: 2px; }

.mini-gallery{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}





.mini-gallery img{
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  height: 120px;
  width: 100%;
  object-fit: cover;
  background: rgba(255,255,255,.04);
}

/* ===== Sections ===== */
.section{
  padding: 56px 0;
}
.section--alt{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.section__head{
  margin-bottom: 18px;
}
.section__head h2{
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.3px;
}
.section__head p{ margin: 0; }

/* ===== Grid: services ===== */
.grid{
  display: grid;
  gap: 14px;
}
.grid--services{
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.service{
  grid-column: span 6;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.service:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.service--wide{ grid-column: span 12; }
.service__img{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  height: 160px;
  background: rgba(255,255,255,.03);
}
.service__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service h3{
  margin: 12px 0 6px;
  font-size: 16px;
  line-height: 1.25;
}
.service p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

/* ===== Timeline ===== */
.timeline{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.timeline__item{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.timeline__num{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-content: center;
  font-weight: 950;
  color: #08101a;
  background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(96,165,250,.9));
  box-shadow: 0 12px 26px rgba(59,130,246,.22);
}
.timeline__body h3{
  margin: 4px 0 6px;
  font-size: 16px;
}
.timeline__body p{
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

.request-card{
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(59,130,246,.25);
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(255,255,255,.04));
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}
.request-card h3{ margin: 0 0 6px; }
.request-card p{ margin: 0; }
.request-card__actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* ===== About split ===== */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
}
.bullets{
  display:grid;
  gap: 12px;
  margin-top: 12px;
}
.bullet{
  display:grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.bullet__dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  margin-top: 7px;
  background: rgba(96,165,250,.9);
  box-shadow: 0 0 0 6px rgba(96,165,250,.12);
}
.bullet h3{ margin: 0 0 6px; font-size: 15px; }
.bullet p{ margin: 0; color: rgba(255,255,255,.78); line-height: 1.5; }

.split__media{
  display:grid;
  gap: 12px;
}
.media-card{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.media-card img{
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.media-card__caption{
  padding: 12px 14px;
  display:grid;
  gap: 4px;
}

/* ===== Why ===== */
.grid--why{
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.why{
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);

  border: 1px solid rgba(255,255,255,.10);
}
.why h3{ margin: 0 0 8px; font-size: 16px; }
.why p{ margin: 0; color: rgba(255,255,255,.78); line-height: 1.5; }

/* ===== Gallery ===== */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.gallery figure{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.gallery img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery figure:hover img{ transform: scale(1.04); }

/* ===== Contact ===== */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card{
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.contact-card h3{ margin: 0 0 10px; }

.contact-lines{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 10px;
  color: rgba(255,255,255,.80);
}
.contact-lines li{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.contact-lines span:first-child{
  min-width: 90px;
  color: var(--muted);
}
.contact-card__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.form{
  display:grid;
  gap: 12px;
  margin-top: 10px;
}
label{
  display:grid;
  gap: 6px;
  color: rgba(255,255,255,.86);
  font-weight: 650;
  font-size: 13px;
}
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 5px rgba(96,165,250,.12);
}

/* ===== Footer ===== */
.footer{
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.footer__left{
  display:flex;
  align-items:center;
  gap: 12px;
}
.footer__name{ font-weight: 850; }
.footer__right{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__right a{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.footer__right a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}

/* ===== Floating buttons ===== */
.float-actions{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  gap: 10px;
}
.float-btn{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.float-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.float-btn__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-content:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.float-btn__text{ font-weight: 750; font-size: 13px; }
.float-btn--tg{
  border-color: rgba(96,165,250,.30);
}
.float-btn--wa{
  border-color: rgba(34,197,94,.28);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero__content{ grid-template-columns: 1fr; }
  .hero__stats{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .grid--why{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid{ grid-template-columns: 1fr; }
  .topbar__actions{ display:none; }
}

@media (max-width: 640px){
  .grid--services{ grid-template-columns: 1fr; }
  .service{ grid-column: auto; }
  .service__img{ height: 150px; }
  .gallery img{ height: 150px; }
  .float-btn__text{ display:none; } /* compact on small screens */
}
/* ===== Modal (CSS-only via :target) ===== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.modal:target{
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.modal__card{
  position: relative;
  width: min(520px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,18,.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 16px;
}

.modal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal__head h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.modal__close{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.modal__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.modal__btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 750;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.modal__btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.modal__btn--tg{
  border-color: rgba(96,165,250,.30);
}

.modal__btn--wa{
  border-color: rgba(34,197,94,.28);
}

.modal__foot{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 520px){
  .modal__grid{ grid-template-columns: 1fr; }
}

/* icons inside modal buttons */
.modal__icon{
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.modal__icon svg{
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,.92);
}

/* optional: tint per platform */
.modal__btn--tg .modal__icon svg{
  fill: rgba(96,165,250,.95);
}
.modal__btn--wa .modal__icon svg{
  fill: rgba(34,197,94,.95);
}

/* floating icons SVG */
.float-btn__icon svg{
  width: 22px;
  height: 22px;
  fill: white;
}

/* platform colors */
.float-btn--tg .float-btn__icon svg{
  fill: #60a5fa;
}

.float-btn--wa .float-btn__icon svg{
  fill: #22c55e;
}

/* ===== Pulse animation for floating buttons ===== */
@keyframes pulseGlow {
  0%   { box-shadow: 0 14px 32px rgba(0,0,0,.35), 0 0 0 0 var(--pulse); }
  70%  { box-shadow: 0 14px 32px rgba(0,0,0,.35), 0 0 0 16px rgba(0,0,0,0); }
  100% { box-shadow: 0 14px 32px rgba(0,0,0,.35), 0 0 0 0 rgba(0,0,0,0); }
}

/* brand pulse colors */
.float-btn--tg { --pulse: rgba(96,165,250,.35); }
.float-btn--wa { --pulse: rgba(34,197,94,.35); }

/* apply pulse */
.float-btn{
  animation: pulseGlow 1.9s ease-out infinite;
}

/* stagger the second button so they don't pulse together */
.float-btn--wa{
  animation-delay: .55s;
}

/* pause pulse on hover (optional) */
.float-btn:hover{
  animation-play-state: paused;
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .float-btn{ animation: none; }
}

/* ===== Service modals (CSS-only via :target) ===== */
.service--link{
  display: block;
  color: inherit;
}
.service--link p{ margin-bottom: 0; }

/* modal container */
.svc-modal{
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
}
.svc-modal:target{
  display: grid;
  place-items: center;
  padding: 18px;
}

.svc-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(6px);
}

.svc-modal__card{
  position: relative;
  width: min(860px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,18,.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.svc-modal__head{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.svc-modal__head h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.svc-modal__close{
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.svc-modal__media{
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.svc-modal__media img{
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.svc-modal__text{
  padding: 16px;
}
.svc-modal__text p{
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
}

.svc-modal__actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px){
  .svc-modal__media img{ height: 220px; }
}


.hero__right .card{
  transform: scale(.82);
  opacity: .8;
  filter: blur(1px);
  transition: all .4s cubic-bezier(.22,.9,.32,1);
}

.hero__right .card:hover{
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  box-shadow: 0 35px 90px rgba(0,0,0,.6);
}

/* ===== Hero right card shrink + expand effect ===== */

/* target the right side card */
.hero__right .card{
  transform: scale(.85);       /* smaller by default */
  opacity: .85;                /* slightly transparent */
  transition: all .35s ease;
}

/* grow on hover */
.hero__right .card:hover{
  transform: scale(1);         /* normal size */
  opacity: 1;
}

/* smooth feel */
.hero__right{
  perspective: 1000px;
}
 

/* ===== Make service cards clearly clickable ===== */

.service--link{
  cursor: pointer;
  position: relative;
  transition: all .25s ease;
}

/* hover lift effect */
.service--link:hover{
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(96,165,250,.6);
  box-shadow: 0 25px 60px rgba(59,130,246,.25);
  background: rgba(255,255,255,.08);
}

/* click press effect */
.service--link:active{
  transform: translateY(-2px) scale(.99);
}

/* add arrow indicator */
.service--link::after{
  content: "→";
  position: absolute;
  right: 18px;
  top: 18px;

  font-size: 20px;
  font-weight: bold;
  color: rgba(96,165,250,.8);

  transition: transform .2s ease;
}

/* arrow moves when hover */
.service--link:hover::after{
  transform: translateX(6px);
}

/* image zoom effect */
.service--link .service__img img{
  transition: transform .35s ease;
}

.service--link:hover .service__img img{
  transform: scale(1.08);
}

/* small "click hint" text */
.service--link h3::after{
  content: " (нажмите)";
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: normal;
}

/* ===== Make service cards clearly clickable ===== */

.service--link{
  cursor: pointer;
  position: relative;
  transition: all .25s ease;
}

/* hover lift effect */
.service--link:hover{
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(96,165,250,.6);
  box-shadow: 0 25px 60px rgba(59,130,246,.25);
  background: rgba(255,255,255,.08);
}

/* click press effect */
.service--link:active{
  transform: translateY(-2px) scale(.99);
}

/* add arrow indicator */
.service--link::after{
  content: "→";
  position: absolute;
  right: 18px;
  top: 18px;

  font-size: 20px;
  font-weight: bold;
  color: rgba(96,165,250,.8);

  transition: transform .2s ease;
}

/* arrow moves when hover */
.service--link:hover::after{
  transform: translateX(6px);
}

/* image zoom effect */
.service--link .service__img img{
  transition: transform .35s ease;
}

.service--link:hover .service__img img{
  transform: scale(1.08);
}

/* small "click hint" text */
.service--link h3::after{
  content: " (нажмите)";
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: normal;
}

/* ===== Этапы обмена interactive movement ===== */

/* whole section slight movement */
#steps{
  transition: transform .4s ease;
}

/* when pointing on section */
#steps:hover{
  transform: translateY(-10px);
}

/* timeline items animation */
.timeline__item{
  transition: all .3s ease;
}

/* lift each step */
.timeline__item:hover{
  transform: translateX(10px) scale(1.02);
  background: rgba(255,255,255,.08);
  border-color: rgba(96,165,250,.5);
  box-shadow: 0 20px 50px rgba(59,130,246,.25);
}

/* number animation */
.timeline__num{
  transition: all .3s ease;
}

/* glowing step number */
.timeline__item:hover .timeline__num{
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(59,130,246,.7);
}


/* ===== 3D TILT (CSS-only) for Steps ===== */
/* softer 3D tilt */
#steps .timeline__item:hover{
  transform: rotateX(5deg) rotateY(-5deg) translateY(-3px) translateZ(4px);
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 14px 35px rgba(0,0,0,.45);
}

/* variation for even cards */
#steps .timeline__item:nth-child(even):hover{
  transform: rotateX(5deg) rotateY(5deg) translateY(-3px) translateZ(4px);
}
#steps .timeline__item:hover .timeline__num{
  transform: translateZ(12px) scale(1.03);
}

/* ===== Side menu hover movement ===== */

.sidedrawer__nav a{
  position: relative;
  transition: all .25s ease;
  padding-left: 14px;
}

/* slide right when pointing */
.sidedrawer__nav a:hover{
  transform: translateX(10px);
  background: rgba(255,255,255,.09);
  border-color: rgba(96,165,250,.5);
  box-shadow: 0 10px 25px rgba(59,130,246,.2);
}

/* animated arrow indicator */
.sidedrawer__nav a::after{
  content: "→";
  position: absolute;
  right: 14px;
  opacity: 0;
  transition: all .25s ease;
  color: rgba(96,165,250,.9);
}

/* arrow appears and moves */
.sidedrawer__nav a:hover::after{
  opacity: 1;
  transform: translateX(6px);
}

/* subtle press effect */
.sidedrawer__nav a:active{
  transform: translateX(4px) scale(.98);
}

/* ===== Side menu ACTIVE state ===== */

/* base style */
.sidedrawer__nav a{
  position: relative;
  overflow: hidden;
}

/* left active bar */
.sidedrawer__nav a::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#60a5fa;
  transform: scaleY(0);
  transition: transform .25s ease;
  border-radius:0 4px 4px 0;
}

/* hover shows bar */
.sidedrawer__nav a:hover::before{
  transform: scaleY(1);
}

/* active when clicked */
.sidedrawer__nav a:active{
  background: rgba(96,165,250,.15);
  border-color: rgba(96,165,250,.7);
}

/* highlight when section is targeted */
:target ~ .sidedrawer .sidedrawer__nav a[href*="#services"],
:target ~ .sidedrawer .sidedrawer__nav a[href*="#steps"],
:target ~ .sidedrawer .sidedrawer__nav a[href*="#about"],
:target ~ .sidedrawer .sidedrawer__nav a[href*="#why"],
:target ~ .sidedrawer .sidedrawer__nav a[href*="#gallery"],
:target ~ .sidedrawer .sidedrawer__nav a[href*="#contact"]{
  background: rgba(96,165,250,.18);
}

/* =====================================================
   SAME HOVER EFFECT for "О нас" and "Почему"
   (like Этапы обмена)
===================================================== */

/* add perspective */
#about,
#why{
  perspective: 1000px;
}

/* ---------- О НАС ---------- */

/* text blocks */
#about .bullet{
  transition: all .3s ease;
  transform-style: preserve-3d;
}

#about .bullet:hover{
  transform: rotateX(5deg) rotateY(-5deg) translateY(-5px);
  background: rgba(255,255,255,.08);
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

/* media cards (images) */
#about .media-card{
  transition: all .3s ease;
}

#about .media-card:hover{
  transform: rotateX(5deg) rotateY(5deg) translateY(-5px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0,0,0,.5);
}


/* ---------- ПОЧЕМУ ---------- */

#why .why{
  transition: all .3s ease;
  transform-style: preserve-3d;
}

#why .why:hover{
  transform: rotateX(5deg) rotateY(-5deg) translateY(-5px);
  background: rgba(255,255,255,.08);
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

/* variation so it looks natural */
#why .why:nth-child(even):hover{
  transform: rotateX(5deg) rotateY(5deg) translateY(-5px);
}


.sidedrawer{ min-height: 100vh; }
body{
  padding-top: 72px; /* same as header height */
}

/* =====================================================
   Scroll reveal (reuses your hover-style feel)
===================================================== */

/* base hidden state */
.reveal{
  opacity: 0;
  transform: translateY(18px) scale(.98);
  filter: blur(1px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.9,.2,1), filter .55s ease;
  will-change: transform, opacity;
}

/* visible state */
.reveal.in-view{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* a little “lift” feeling when becoming visible */
.reveal.in-view{
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

/* stagger support */
.reveal{
  transition-delay: var(--d, 0ms);
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ===== Lead text animation ===== */

/* ===== Strong floating motion ===== */

@keyframes leadFloat{
  0%, 100%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-25px); /* much higher movement */
  }
}

.lead{
  animation: leadFloat 6s ease-in-out infinite; /* longer animation */
}
