/* ============================================================
   Реклами Бојков — stylesheet
   ============================================================ */

:root{
  /* surfaces */
  --bg:            #0a111c;
  --bg-alt:        #0b131d;
  --card:          #0e1725;
  --border:        #1c2739;
  --border-soft:   rgba(255,255,255,.07);

  /* hero */
  --navy:          #1a2845;
  --navy-deep:     #16223a;

  /* brand */
  --blue:          #3b82f6;
  --blue-600:      #2563eb;
  --blue-700:      #1d4ed8;

  /* text */
  --text:          #f8fafc;
  --muted:         #94a3b8;
  --muted-dim:     #64748b;
  --ink:           #4b5563;

  --container:     1280px;
  --header-h:      83px;

  --radius:        12px;
  --radius-sm:     8px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:var(--header-h); }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Inter","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; }

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid rgba(15,23,42,.08);
  transition:box-shadow .25s ease;
}
.site-header.scrolled{ box-shadow:0 2px 16px rgba(15,23,42,.10); }

.header-inner{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo img{ height:40px; width:auto; }

.nav-desktop{ display:flex; align-items:center; gap:34px; }
.nav-desktop a{
  position:relative;
  font-size:15px;
  font-weight:400;
  color:var(--ink);
  padding:6px 0;
  transition:color .2s ease;
}
.nav-desktop a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:100%; height:2px;
  background:var(--blue-600);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .25s ease;
}
.nav-desktop a:hover{ color:#0f172a; }
.nav-desktop a:hover::after{ transform:scaleX(1); transform-origin:left; }

/* hamburger */
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px; height:44px;
  padding:0;
  background:none;
  border:0;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px; width:24px;
  margin-inline:auto;
  background:#0f172a;
  border-radius:2px;
  transition:transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-mobile{
  display:none;
  flex-direction:column;
  background:#fff;
  border-top:1px solid rgba(15,23,42,.08);
  padding:8px 24px 20px;
}
.nav-mobile a{
  padding:13px 0;
  font-size:16px;
  color:var(--ink);
  border-bottom:1px solid rgba(15,23,42,.06);
}
.nav-mobile a:last-child{ border-bottom:0; }
.nav-mobile.open{ display:flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  min-height:calc(100vh - var(--header-h));
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:var(--navy);
  isolation:isolate;
}

/* diamond cross-hatch */
.hero-pattern{
  position:absolute;
  inset:0;
  z-index:-2;
  background-color:var(--navy);
  background-image:
    repeating-linear-gradient( 45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient( 45deg, rgba(0,0,0,.10) 1px 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.10) 1px 2px, transparent 2px 22px);
}
/* vignette — subtle: the lattice must stay visible edge to edge */
.hero-pattern::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse 85% 65% at 50% 46%,
              rgba(40,62,110,.28) 0%,
              rgba(26,40,69,0) 58%,
              rgba(10,17,28,.42) 100%);
}

/* soft blue glow behind the wordmark */
.hero-glow{
  position:absolute;
  z-index:-1;
  top:46%;
  left:50%;
  width:min(860px,88vw);
  height:220px;
  transform:translate(-50%,-50%);
  background:radial-gradient(ellipse at center,
              rgba(59,130,246,.13) 0%,
              rgba(59,130,246,.05) 45%,
              rgba(59,130,246,0) 72%);
  filter:blur(18px);
  pointer-events:none;
}

.hero-inner{
  max-width:808px;          /* 760px content + 2 × 24px gutter */
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding-block:80px;
}

.hero-rule{
  width:100%;
  height:1px;
  background:rgba(255,255,255,.85);
}

.hero-title{
  margin:30px 0 0;
  font-size:clamp(2.05rem,5.42vw,4.55rem);
  font-weight:800;
  line-height:1.05;
  letter-spacing:.055em;
  white-space:nowrap;
  color:#fff;
  text-shadow:
     0 0 14px rgba(191,219,254,.5),
     0 0 34px rgba(59,130,246,.42),
     0 0 66px rgba(37,99,235,.28);
}

.hero-subtitle{
  margin:16px 0 30px;
  font-size:clamp(.66rem,1.55vw,1.375rem);
  font-weight:700;
  letter-spacing:.085em;
  white-space:nowrap;
  color:#fff;
  text-shadow:0 0 16px rgba(59,130,246,.3);
}

.btn-hero{
  margin-top:50px;
  display:inline-block;
  padding:16px 54px;
  background:var(--blue-600);
  color:#fff;
  font-size:15px;
  font-weight:700;
  letter-spacing:.09em;
  border-radius:2px;
  box-shadow:0 8px 30px rgba(37,99,235,.35);
  transition:background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn-hero:hover{
  background:var(--blue-700);
  transform:translateY(-2px);
  box-shadow:0 12px 38px rgba(37,99,235,.5);
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section{ padding-block:96px; }

.section-head{ text-align:center; margin-bottom:56px; }

.eyebrow{
  margin:0 0 10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--blue);
  text-transform:uppercase;
}

.section-title{
  margin:0;
  font-size:clamp(1.9rem,4vw,3rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--text);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about{ background:var(--bg); }

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:72px;
  align-items:center;
}

.about-media{ position:relative; padding:26px; }

.about-accent-top{
  position:absolute;
  top:0; left:0;
  width:120px; height:88px;
  background:#182b4d;
  border-radius:14px;
}
.about-accent-bottom{
  position:absolute;
  right:34px; bottom:0;
  width:118px; height:104px;
  border:2px solid var(--blue-600);
  border-radius:14px;
}

.about-photo{
  position:relative;
  z-index:1;
  border-radius:6px;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.about-photo img{ width:100%; height:100%; object-fit:cover; }

.about-title{ margin-bottom:22px; }

.lead{
  margin:0 0 30px;
  font-size:17px;
  line-height:1.72;
  color:var(--muted);
}
.lead strong{ color:var(--text); font-weight:700; }

.feature-list{ list-style:none; margin:0; padding:0; display:grid; gap:24px; }
.feature-list li{ display:flex; gap:14px; align-items:flex-start; }

.feature-list .check{
  flex:0 0 auto;
  width:22px; height:22px;
  margin-top:2px;
  color:var(--blue);
}
.feature-list h3{
  margin:0 0 5px;
  font-size:16px;
  font-weight:700;
  color:var(--text);
}
.feature-list p{
  margin:0;
  font-size:14.5px;
  line-height:1.62;
  color:var(--muted);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products{ background:var(--bg-alt); }

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.product-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.product-card:hover{
  transform:translateY(-6px);
  border-color:rgba(59,130,246,.45);
  box-shadow:0 18px 44px rgba(0,0,0,.45);
}

.product-img{ aspect-ratio:286/186; overflow:hidden; background:#0b1220; }
.product-img img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.product-card:hover .product-img img{ transform:scale(1.06); }

.product-body{ padding:22px 22px 26px; }
.product-body h3{
  margin:0 0 10px;
  font-size:17px;
  font-weight:700;
  color:var(--text);
}
.product-body p{
  margin:0;
  font-size:14.5px;
  line-height:1.65;
  color:var(--muted);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process{ background:var(--bg); }

.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.process-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:34px 26px 32px;
  text-align:center;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.process-card:hover{
  transform:translateY(-6px);
  border-color:rgba(59,130,246,.45);
  box-shadow:0 18px 44px rgba(0,0,0,.45);
}

.process-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px; height:56px;
  margin-bottom:20px;
  background:var(--blue-600);
  border-radius:14px;
  color:#fff;
  box-shadow:0 8px 22px rgba(37,99,235,.35);
}
.process-icon svg{ width:26px; height:26px; }

.process-card h3{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  color:var(--text);
}
.process-card p{
  margin:0;
  font-size:14px;
  line-height:1.65;
  color:var(--muted);
}

/* stats */
.stats{
  margin-top:96px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  text-align:center;
}
.stat-num{
  display:block;
  font-size:clamp(2.2rem,4.4vw,3.25rem);
  font-weight:800;
  line-height:1.1;
  letter-spacing:-.02em;
  color:var(--text);
}
.stat-label{
  display:block;
  margin-top:6px;
  font-size:15px;
  color:var(--muted);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio{ background:var(--bg); }

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.gallery-item{
  position:relative;
  display:block;
  padding:0;
  margin:0;
  border:0;
  background:#0b1220;
  border-radius:var(--radius-sm);
  overflow:hidden;
  aspect-ratio:3/2;
  cursor:zoom-in;
}
.gallery-item img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.gallery-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(11,18,32,.35);
  opacity:0;
  transition:opacity .35s ease;
}
.gallery-item:hover img{ transform:scale(1.07); }
.gallery-item:hover::after{ opacity:1; }
.gallery-item:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{ background:var(--bg-alt); }

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:76px;
  max-width:1120px;
  margin-inline:auto;
}

.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.field{ margin-bottom:22px; }
.field-row .field{ margin-bottom:0; }

.field label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:500;
  color:#cbd5e1;
}

.field input,
.field textarea{
  width:100%;
  padding:13px 15px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  color:var(--text);
  font-family:inherit;
  font-size:15px;
  line-height:1.5;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field textarea{ resize:vertical; min-height:150px; }

.field input::placeholder,
.field textarea::placeholder{ color:var(--muted-dim); }

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--blue-600);
  box-shadow:0 0 0 3px rgba(37,99,235,.22);
}

.field input:user-invalid,
.field textarea:user-invalid{ border-color:#dc2626; }

.btn-submit{
  width:100%;
  margin-top:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 24px;
  background:var(--blue-600);
  border:0;
  border-radius:999px;
  color:#fff;
  font-size:15.5px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 8px 26px rgba(37,99,235,.32);
  transition:background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn-submit svg{ width:18px; height:18px; }
.btn-submit:hover{
  background:var(--blue-700);
  transform:translateY(-2px);
  box-shadow:0 12px 32px rgba(37,99,235,.45);
}
.btn-submit:disabled{ opacity:.65; cursor:not-allowed; transform:none; }

.form-status{
  margin:14px 0 0;
  min-height:20px;
  font-size:14px;
  color:var(--blue);
}
.form-status.error{ color:#f87171; }

/* honeypot — kept out of sight and out of the tab order, never display:none
   (bots skip hidden fields, which would defeat the trap) */
.hp{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
  overflow:hidden;
}

/* server-rendered banner for visitors without JS */
.form-alert{
  margin:0 0 22px;
  padding:13px 16px;
  border-radius:var(--radius-sm);
  font-size:14.5px;
  line-height:1.55;
}
.form-alert.is-ok{
  background:rgba(37,99,235,.14);
  border:1px solid rgba(59,130,246,.4);
  color:#bfdbfe;
}
.form-alert.is-err{
  background:rgba(220,38,38,.13);
  border:1px solid rgba(248,113,113,.42);
  color:#fecaca;
}

/* info column */
.contact-info{ display:flex; flex-direction:column; gap:26px; }

.info-row{
  display:flex;
  align-items:center;
  gap:20px;
  transition:transform .2s ease;
}
.info-row:hover{ transform:translateX(3px); }

.info-icon{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px; height:48px;
  border-radius:12px;
  background:rgba(37,99,235,.16);
  border:1px solid rgba(59,130,246,.22);
  color:var(--blue);
}
.info-icon svg{ width:21px; height:21px; }

.info-text{
  font-size:15.5px;
  font-weight:600;
  color:var(--text);
}

.map{
  margin-top:6px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:#0b1220;
}
.map iframe{
  display:block;
  width:100%;
  height:190px;
  border:0;
  filter:grayscale(.05);
}

.map-note{
  margin:0;
  font-size:13.5px;
  color:var(--muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:var(--bg-alt);
  border-top:1px solid var(--border);
  padding-block:34px;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  flex-wrap:wrap;
}

.footer-logo img{ height:22px; width:auto; }

.footer-nav{ display:flex; gap:28px; flex-wrap:wrap; }
.footer-nav a{
  font-size:14.5px;
  color:var(--muted);
  transition:color .2s ease;
}
.footer-nav a:hover{ color:var(--text); }

.footer-copy{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  background:rgba(5,9,16,.94);
  backdrop-filter:blur(4px);
  animation:lbIn .22s ease;
}
.lightbox[hidden]{ display:none; }

@keyframes lbIn{ from{opacity:0} to{opacity:1} }

.lb-img{
  max-width:min(1100px,92vw);
  max-height:86vh;
  width:auto;
  border-radius:var(--radius-sm);
  box-shadow:0 30px 80px rgba(0,0,0,.7);
}

.lb-close,.lb-prev,.lb-next{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
  cursor:pointer;
  border-radius:999px;
  transition:background .2s ease;
}
.lb-close:hover,.lb-prev:hover,.lb-next:hover{ background:rgba(255,255,255,.2); }

.lb-close{ top:24px; right:28px; width:44px; height:44px; font-size:28px; line-height:1; }
.lb-prev,.lb-next{ top:50%; transform:translateY(-50%); width:52px; height:52px; font-size:32px; line-height:1; }
.lb-prev{ left:26px; }
.lb-next{ right:26px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1100px){
  .product-grid,
  .process-grid{ grid-template-columns:repeat(2,1fr); }
  .about-grid{ gap:48px; }
  .contact-grid{ gap:52px; }
}

@media (max-width:900px){
  :root{ --header-h:72px; }

  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }

  .section{ padding-block:72px; }

  .about-grid{ grid-template-columns:1fr; gap:44px; }
  .about-media{ max-width:520px; margin-inline:auto; }

  .contact-grid{ grid-template-columns:1fr; gap:48px; }

  .gallery-grid{ gap:14px; }

  .footer-inner{ flex-direction:column; text-align:center; }
  .footer-nav{ justify-content:center; gap:20px; }
}

@media (max-width:640px){
  .container{ padding-inline:18px; }

  .section{ padding-block:60px; }
  .section-head{ margin-bottom:40px; }

  .hero-inner{ padding-block:60px; }
  .hero-title{ margin-top:26px; }
  .btn-hero{ margin-top:44px; padding:16px 30px; font-size:13px; }

  .product-grid,
  .process-grid{ grid-template-columns:1fr; }

  .stats{ margin-top:64px; grid-template-columns:1fr; gap:34px; }

  .gallery-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }

  .field-row{ grid-template-columns:1fr; gap:0; }
  .field-row .field{ margin-bottom:22px; }

  .lightbox{ padding:16px; }
  .lb-prev,.lb-next{ width:42px; height:42px; font-size:26px; }
  .lb-prev{ left:10px; } .lb-next{ right:10px; }
  .lb-close{ top:14px; right:14px; }
}

/* Below ~420px the single-line hero strapline no longer fits the column,
   so let it wrap instead of being clipped by the hero's overflow:hidden. */
@media (max-width:420px){
  .hero-title{ font-size:7.9vw; }
  .hero-subtitle{
    white-space:normal;
    font-size:12px;
    line-height:1.5;
    letter-spacing:.06em;
  }
}
