/* =========================
   AntWeb — style.css
   (полный файл)
   ========================= */

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

html, body { height: 100%; }

html{
  scroll-behavior: smooth; /* базовый плавный скролл */
}

body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: rgba(245, 247, 255, 0.92);
  background: #070a12;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Убираем “полосочку” и любые дефолтные обводки */
button, a{
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, a:focus-visible{
  outline: 2px solid rgba(120, 190, 255, .55);
  outline-offset: 3px;
}
button:focus:not(:focus-visible), a:focus:not(:focus-visible){
  outline: none;
}

img{
  max-width: 100%;
  display: block;
}

a{ color: inherit; text-decoration: none; }

ul{ margin: 0; padding-left: 18px; }
li{ margin: 0; }

/* ---- Variables ---- */
:root{
  --bg: #070a12;
  --panel: rgba(14, 18, 33, 0.68);
  --panel-2: rgba(18, 26, 46, 0.72);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(155, 205, 255, 0.25);

  --text: rgba(245, 247, 255, 0.92);
  --muted: rgba(245, 247, 255, 0.68);

  --accent-a: #6d6cff;
  --accent-b: #2de1ff;

  --shadow: 0 18px 55px rgba(0,0,0,.35);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.22);

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --container: 1120px;
}

/* ---- Background ---- */
.bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg__glow{
  position: absolute;
  width: 680px;
  height: 680px;
  filter: blur(60px);
  opacity: .55;
  transform: translateZ(0);
}

.bg__glow--a{
  left: -160px;
  top: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(109,108,255,.55), transparent 60%);
}

.bg__glow--b{
  right: -220px;
  top: 220px;
  background: radial-gradient(circle at 40% 40%, rgba(45,225,255,.45), transparent 60%);
}

.bg__grid{
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 18%, black 35%, transparent 70%);
}

/* ---- Layout helpers ---- */
.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section{
  padding: 74px 0;
}

.h2{
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.lead{
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 74ch;
}

/* ---- Header ---- */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(7,10,18,.72), rgba(7,10,18,.30));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header__inner{
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: inline-flex;
  gap: 2px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__mark{
  color: rgba(245,247,255,.95);
}
.brand__rest{
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu{
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(245,247,255,.78);
  font-weight: 500;
  font-size: 14px;
}

.menu a{
  position: relative;
  padding: 10px 6px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}

.menu a:hover{
  background: rgba(255,255,255,.06);
  color: rgba(245,247,255,.92);
}

.menu__cta{
  padding: 10px 14px !important;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

/* ---- Burger ---- */
.burger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.burger span{
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 10px;
  background: rgba(245,247,255,.92);
  transition: transform .22s ease, opacity .18s ease, top .22s ease;
}

.burger span:nth-child(1){ top: 14px; }
.burger span:nth-child(2){ top: 21px; }
.burger span:nth-child(3){ top: 28px; }

.burger.is-open span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity: 0; }
.burger.is-open span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* ---- Hero ---- */
.hero{
  padding-top: 46px;
}

.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(245,247,255,.78);
  width: fit-content;
}

.badge .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38ff98;
  box-shadow: 0 0 0 4px rgba(56,255,152,.12);
}

.hero__title{
  font-size: clamp(34px, 3.7vw, 58px);
  line-height: 1.02;
  margin: 16px 0 12px;
  letter-spacing: -0.04em;
}

.hero__desc{
  margin: 0 0 22px;
  color: rgba(245,247,255,.70);
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.6;
}

.accent{
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__chips{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.chip{
  padding: 16px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
}

.chip__top{
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chip__sub{
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(245,247,255,.68);
}

/* ---- Buttons ---- */
.btn{
  display: inline-flex;
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(245,247,255,.92);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;

  /* фикс “полосочки” */
  outline: none;
  box-shadow: none;
  background-clip: padding-box;

  transition: transform .15s ease, background .2s ease, border-color .2s ease, filter .2s ease;
}

.btn:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
}

.btn--primary{
  border: 0;
  background: linear-gradient(90deg, rgba(109,108,255,.95), rgba(45,225,255,.92));
  box-shadow: 0 14px 40px rgba(45,225,255,.14);
}

.btn--primary:hover{
  filter: brightness(1.06);
}

.btn--ghost{
  background: rgba(255,255,255,.04);
}

.btn--full{
  width: 100%;
}

.btn--small{
  padding: 10px 14px;
  border-radius: 14px;
}

.btn--pill{
  border-radius: 999px;
  padding: 12px 14px;
}

/* ---- Offer card ---- */
.offer{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(140deg, rgba(16,22,40,.78), rgba(10,14,25,.62));
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

.offer::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 20% 20%, rgba(109,108,255,.35), transparent 48%),
              radial-gradient(circle at 90% 10%, rgba(45,225,255,.25), transparent 52%);
  pointer-events: none;
}

.offer__tabs{
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pill{
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(245,247,255,.80);
}

.pill--active{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
}

.offer__title{
  position: relative;
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.offer__list{
  position: relative;
  margin: 0 0 14px;
  color: rgba(245,247,255,.78);
  line-height: 1.65;
}

.offer__bottom{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.offer__price{
  display: grid;
  gap: 4px;
}

.offer__label{
  font-size: 12px;
  color: rgba(245,247,255,.65);
}

.offer__value{
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ---- Cards ---- */
.card{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.card__title{
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card__text{
  color: rgba(245,247,255,.72);
  line-height: 1.55;
}

/* ---- About ---- */
.about__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ---- Services ---- */
.services__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.service__top{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.service__title{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.service__text{
  color: rgba(245,247,255,.75);
  line-height: 1.55;
}

.service__hint{
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(245,247,255,.65);
}

/* ---- Portfolio ---- */
.portfolio__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: 150px 1fr;
}

.project__thumb{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.project__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.02);
  transition: transform .35s ease;
}

.project:hover .project__thumb img{
  transform: scale(1.08);
}

.project__body{
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.project__title{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.project__meta{
  color: rgba(245,247,255,.68);
  font-size: 12.5px;
  line-height: 1.45;
}

/* ---- Pricing ---- */
.pricing__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.price{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.price__head{
  margin-bottom: 12px;
}

.price__name{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.price__value{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.price__list{
  margin: 0 0 16px;
  color: rgba(245,247,255,.75);
  line-height: 1.65;
}

.price--best{
  border-color: rgba(45,225,255,.28);
  background: linear-gradient(140deg, rgba(14, 22, 42, .75), rgba(10, 14, 25, .62));
}

.price__badge{
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(45,225,255,.10);
  border: 1px solid rgba(45,225,255,.24);
}

/* ---- Contact ---- */
.contact__grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 12px;
  align-items: start;
}

.contact__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.contact__note{
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
}

.note__row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: rgba(245,247,255,.75);
}

.note__row b{ color: rgba(245,247,255,.92); }

.mini__title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.mini__text{
  color: rgba(245,247,255,.72);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* ---- Footer ---- */
.footer{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(245,247,255,.62);
  font-size: 13px;
}

.footer__links{
  display: flex;
  gap: 14px;
}

.footer__links a:hover{
  color: rgba(245,247,255,.90);
}

/* ---- Reveal animations (повторяемые) ---- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1), filter .7s ease;
  will-change: transform, opacity, filter;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---- Mobile menu behavior ---- */
body.menu-open{
  overflow: hidden;
}

@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .portfolio__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__grid{ grid-template-columns: 1fr; }
  .services__grid{ grid-template-columns: 1fr; }
  .pricing__grid{ grid-template-columns: 1fr; }
  .contact__grid{ grid-template-columns: 1fr; }

  .burger{ display: inline-flex; }

  .menu{
    position: fixed;
    top: 84px;
    left: 14px;
    right: 14px;
    z-index: 60;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(10,14,25,.92);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .menu a{
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
  }

  .menu a:hover{
    background: rgba(255,255,255,.06);
  }

  .menu.is-open{ display: flex; }

  .hero__chips{
    grid-template-columns: 1fr;
  }

  .section{
    padding: 56px 0;
  }
}

/* Extra small phones */
@media (max-width: 420px){
  .container{
    width: min(var(--container), calc(100% - 28px));
  }
  .header__inner{ height: 68px; }
  .menu{ top: 76px; }
  .hero__title{ font-size: 34px; }
  .price__value{ font-size: 26px; }
  .project{ grid-template-rows: 140px 1fr; }
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ transition: none; }
  .btn{ transition: none; }
  .project__thumb img{ transition: none; }
}


.btn:focus-visible{ box-shadow: 0 0 0 3px rgba(45,225,255,.28); }
.btn:focus{ outline: none; }

a.btn{ text-decoration: none; }

button.btn{ -webkit-appearance: none; appearance: none; }
