:root {
  --bg: #0b0f19;
  --card: #111827;
  --text: #f8fafc;
  --muted: #9ca3af;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --border: #253047;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 2px solid #93c5fd; outline-offset: 4px; }

.header { position: sticky; top: 0; z-index: 20; min-height: 76px; padding: 12px 4%; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #0b0f19ed; backdrop-filter: blur(18px); border-bottom: 1px solid #ffffff12; }
.logo { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 900; }
.logo-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.logo small { display: block; color: #60a5fa; font-size: 10px; letter-spacing: 3px; }
.nav { display: flex; align-items: center; gap: 25px; font-size: 13px; color: #cbd5e1; }
.nav a:hover { color: #60a5fa; }
.whatsapp, .button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border-radius: 11px; padding: 13px 18px; font-weight: 700; font-size: 13px; transition: transform .25s, filter .25s; }
.whatsapp, .primary { background: linear-gradient(120deg, #2563eb, #7c3aed); color: white; }
.whatsapp:hover, .button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.menu-btn { display: none; border: 0; background: #172033; color: white; padding: 11px 14px; border-radius: 9px; font-size: 20px; }

.hero { min-height: 620px; padding: 80px 6%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 55px; background: radial-gradient(ellipse at 15% 20%, #1d4ed822, transparent 50%), radial-gradient(ellipse at 85% 60%, #7c3aed20, transparent 45%); }
.hero-content { max-width: 650px; }
.eyebrow { display: inline-block; margin-bottom: 20px; color: #93c5fd; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
h1 { font-size: clamp(42px, 5.3vw, 75px); line-height: 1.04; letter-spacing: -3px; margin: 0; font-weight: 900; }
h1 span, h2 span { background: linear-gradient(120deg, #60a5fa, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-content > p, .about p, .contacts > p { max-width: 560px; margin: 25px 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.secondary { border: 1px solid #344054; background: #111827; color: white; }
.hero-image { position: relative; height: 440px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; border: 1px solid #ffffff20; }
.image-label { position: absolute; bottom: 18px; left: 18px; padding: 12px 15px; border-radius: 9px; background: #0b0f19d9; font-size: 10px; letter-spacing: 2px; }

.section { padding: 85px 6%; }
.services-section { background: #0e1421; }
.section-title { max-width: 750px; margin-bottom: 25px; }
h2 { margin: 0; font-size: clamp(29px, 4vw, 45px); line-height: 1.2; letter-spacing: -1.4px; }
.section-title p, .note { color: var(--muted); font-size: 13px; line-height: 1.8; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 25px 0; }
.filter { padding: 11px 16px; border: 1px solid #293548; background: #111827; color: #cbd5e1; border-radius: 9px; font-size: 12px; }
.filter:hover, .filter.active { background: var(--blue); border-color: var(--blue); color: white; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.work { position: relative; display: block; overflow: hidden; height: 330px; width: 100%; padding: 0; border: 1px solid #ffffff12; border-radius: 14px; background: var(--card); text-align: left; color: white; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.work:hover img { transform: scale(1.06); }
.work::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #050914ed); pointer-events: none; }
.work > span { position: absolute; z-index: 1; bottom: 18px; left: 18px; right: 12px; pointer-events: none; }
.work small { display: block; margin-bottom: 8px; color: #93c5fd; font-size: 9px; letter-spacing: 2px; }
.work b { font-size: 17px; }
.work.hidden { display: none; }
.note { margin-top: 18px; font-size: 11px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.service { padding: 25px; border: 1px solid #ffffff12; border-radius: 16px; background: linear-gradient(145deg, #111827, #0d1320); }
.service > i { color: #60a5fa; font-size: 26px; }
.service h3 { margin: 20px 0 10px; font-size: 16px; }
.service p { color: var(--muted); font-size: 12px; line-height: 1.8; min-height: 65px; }
.service a { color: #93c5fd; font-size: 11px; font-weight: 700; }
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; background: #0e1421; }
.about img { width: 100%; height: 380px; object-fit: cover; border-radius: 18px; }
.contacts { text-align: center; }
.contacts > p { margin: 20px auto 25px; }
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; text-align: left; margin-top: 50px; padding-top: 30px; border-top: 1px solid #ffffff12; }
.contact-info > div { display: flex; flex-direction: column; gap: 10px; }
.contact-info small { color: #60a5fa; font-size: 10px; letter-spacing: 2px; }
.contact-info a, .contact-info b { font-size: 13px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 6%; border-top: 1px solid #ffffff12; color: #9ca3af; font-size: 11px; }

.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: #000e; align-items: center; justify-content: center; flex-direction: column; padding: 25px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.lightbox p { color: white; font-size: 13px; }
#closeLightbox { position: absolute; top: 12px; right: 22px; border: 0; background: transparent; color: white; font-size: 40px; }

@media (max-width: 950px) { .nav { gap: 12px; } .hero { gap: 30px; } .services { grid-template-columns: repeat(2, 1fr); } .work { height: 280px; } }
@media (max-width: 680px) {
  .header { flex-wrap: wrap; padding: 12px 5%; }
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; align-items: stretch; flex-direction: column; padding: 10px 0 15px; }
  .nav.open { display: flex; }
  .nav a { padding: 7px 0; }
  .nav .whatsapp { padding: 13px; }
  .hero { grid-template-columns: 1fr; padding: 55px 5%; gap: 30px; }
  h1 { font-size: 46px; letter-spacing: -2px; }
  .hero-image { height: 300px; }
  .section { padding: 60px 5%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work { height: 235px; }
  .work b { font-size: 13px; }
  .work > span { left: 12px; bottom: 13px; }
  .services { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service { padding: 16px; }
  .service h3 { font-size: 14px; }
  .service p { font-size: 11px; min-height: 90px; }
  .about { grid-template-columns: 1fr; gap: 25px; }
  .about img { height: 270px; }
  .contact-info { grid-template-columns: 1fr; gap: 22px; }
  footer { padding: 22px 5%; }
}
@media (max-width: 380px) { .gallery { grid-template-columns: 1fr; } .work { height: 280px; } .services { grid-template-columns: 1fr; } .service p { min-height: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }


/* MOBILE POLISH — более аккуратная версия для телефонов */
.mobile-order { display: none; }

@media (max-width: 680px) {
  html { scroll-padding-top: 78px; }
  body { overflow-x: hidden; }

  .header {
    min-height: 66px;
    padding: 10px 18px;
    gap: 12px;
  }
  .logo { gap: 9px; font-size: 17px; }
  .logo-icon { width: 40px; height: 40px; border-radius: 13px; }
  .logo small { font-size: 9px; letter-spacing: 2.5px; }
  .menu-btn {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #ffffff12;
    background: #151e30;
  }
  .nav {
    position: absolute;
    top: calc(100% + 7px);
    left: 12px;
    right: 12px;
    width: auto;
    padding: 10px;
    gap: 4px;
    border: 1px solid #ffffff18;
    border-radius: 17px;
    background: rgba(13, 19, 32, .98);
    box-shadow: 0 18px 48px #0008;
    backdrop-filter: blur(18px);
  }
  .nav.open { display: flex; }
  .nav a:not(.whatsapp) { padding: 12px; border-radius: 10px; }
  .nav a:not(.whatsapp):active { background: #ffffff0c; }
  .nav .whatsapp { width: 100%; margin-top: 5px; padding: 13px; }

  .hero {
    min-height: auto;
    padding: 42px 20px 32px;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    background:
      radial-gradient(ellipse at 0% 0%, #1d4ed82b, transparent 48%),
      radial-gradient(ellipse at 100% 38%, #7c3aed24, transparent 46%),
      var(--bg);
  }
  .hero-content { min-width: 0; }
  .eyebrow {
    margin-bottom: 15px;
    font-size: 9px;
    line-height: 1.6;
    letter-spacing: 1.35px;
  }
  h1 {
    max-width: 560px;
    font-size: clamp(37px, 10.2vw, 48px);
    line-height: .99;
    letter-spacing: -2.2px;
    overflow-wrap: normal;
  }
  h1 span, h2 span { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .hero-content > p {
    margin: 18px 0 21px;
    font-size: 13.5px;
    line-height: 1.78;
  }
  .hero-buttons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-buttons .button { width: 100%; min-height: 48px; border-radius: 13px; font-size: 13px; }
  .secondary { background: #111827b8; }
  .hero-image { height: clamp(215px, 62vw, 300px); min-width: 0; }
  .hero-image img { border-radius: 18px; }
  .image-label { left: 12px; bottom: 12px; padding: 10px 12px; font-size: 8px; letter-spacing: 1.5px; }

  .section { padding: 56px 20px; }
  .section-title { margin-bottom: 20px; }
  .section-title .eyebrow { margin-bottom: 12px; }
  h2 { font-size: clamp(28px, 7.8vw, 36px); line-height: 1.12; letter-spacing: -1.2px; }
  .section-title p, .note { font-size: 12.5px; line-height: 1.75; }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 7px;
    margin: 19px -2px 17px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; padding: 10px 13px; white-space: nowrap; border-radius: 999px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work { height: auto; aspect-ratio: .78; min-width: 0; border-radius: 13px; }
  .work::after { inset: 24% 0 0; }
  .work > span { left: 11px; right: 8px; bottom: 12px; }
  .work small { margin-bottom: 6px; font-size: 7.5px; line-height: 1.35; letter-spacing: 1px; }
  .work b { display: block; font-size: clamp(11.5px, 3.35vw, 14px); line-height: 1.25; }
  .note { margin-top: 15px; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .service {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px 13px;
    border-radius: 15px;
  }
  .service > i {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border-radius: 12px;
    background: #60a5fa16;
    font-size: 20px;
  }
  .service h3 { margin: 13px 0 8px; font-size: 13.5px; line-height: 1.3; }
  .service p { min-height: 0; flex: 1; margin: 0 0 14px; font-size: 11.5px; line-height: 1.65; }
  .service a { display: inline-block; font-size: 11px; }

  .about { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 54px; padding-bottom: 54px; }
  .about p { margin: 15px 0 19px; font-size: 13px; line-height: 1.78; }
  .about .button { width: 100%; min-height: 49px; border-radius: 13px; }
  .about img { height: clamp(225px, 68vw, 300px); border-radius: 17px; }

  .contacts { padding-top: 57px; padding-bottom: 48px; }
  .contacts h2 { max-width: 360px; margin-inline: auto; }
  .contacts > p { margin: 15px auto 22px; font-size: 13px; line-height: 1.75; }
  .contacts > .button { width: 100%; min-height: 50px; border-radius: 13px; }
  .contact-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 29px;
    padding-top: 0;
    border-top: 0;
  }
  .contact-info > div { gap: 7px; padding: 15px 0; border-bottom: 1px solid #ffffff12; }
  .contact-info > div:last-child { border-bottom: 0; }
  .contact-info a, .contact-info b { font-size: 14px; overflow-wrap: anywhere; }

  footer { padding: 22px 20px calc(88px + env(safe-area-inset-bottom)); font-size: 11px; }
  .mobile-order {
    position: fixed;
    z-index: 35;
    right: 15px;
    bottom: calc(13px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #ffffff32;
    border-radius: 999px;
    background: linear-gradient(120deg, #16a34a, #15803d);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 9px 28px #16a34a50, 0 2px 8px #0005;
    transform: translateZ(0);
  }
  .mobile-order i { font-size: 19px; }
  .mobile-order:active { transform: scale(.97); }
}

@media (max-width: 380px) {
  .hero { padding-inline: 16px; }
  .section { padding-inline: 16px; }
  h1 { font-size: clamp(35px, 10.5vw, 40px); letter-spacing: -1.9px; }
  .work { aspect-ratio: .74; }
  .service { padding: 14px 11px; }
  .service h3 { font-size: 13px; }
  .mobile-order { right: 12px; bottom: calc(11px + env(safe-area-inset-bottom)); }
}
