/* ATTACH | WEB — стили лендинга */

/* --------------------------------------------------------------------- hero */

.hero { padding: calc(var(--nav-h) + 90px) 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 8px; }
.hero h1 .line { display: block; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--dim); font-size: 13.5px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 2s infinite; }

.typer { color: var(--c1); border-right: 2px solid var(--c1); padding-right: 3px; animation: caret 1s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }

/* стеклянная «панель кода» справа */
.hero-visual { position: relative; }
.code-panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-9deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.code-panel:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-6px); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-bar i:nth-child(1) { background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; }
.code-bar span { margin-left: 8px; font-size: 12px; color: var(--dim); font-family: var(--font-mono); }
.code-body { padding: 20px 22px; font-family: var(--font-mono); font-size: 12.8px; line-height: 1.85; color: #b9c2dc; overflow-x: auto; }
.code-body .k { color: #ff7edb; }
.code-body .s { color: #7ee787; }
.code-body .c { color: #4d5570; }
.code-body .f { color: #22e1ff; }
.code-body .n { color: #ffc46b; }

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(12, 14, 24, 0.9);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600;
  animation: bob 5s var(--ease) infinite alternate;
}
.float-chip .em { font-size: 19px; }
.float-chip small { display: block; color: var(--dim); font-weight: 500; font-size: 11.5px; }
.float-chip.one { top: -26px; left: -34px; }
.float-chip.two { bottom: -26px; right: -20px; animation-delay: -2.5s; }
@keyframes bob { to { transform: translateY(-14px); } }

/* ------------------------------------------------------------------ статы */

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin-top: 76px;
}
.stat { background: #070811; padding: 30px 26px; text-align: center; transition: background 0.3s; }
.stat:hover { background: #0b0d18; }
.stat b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.5rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* ----------------------------------------------------------------- бегущая */

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: rgba(255, 255, 255, 0.015); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 15px; font-weight: 600; color: var(--dim); display: flex; align-items: center; gap: 46px; white-space: nowrap; letter-spacing: 0.02em; }
.marquee-track span::after { content: '◆'; color: var(--c2); font-size: 9px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- услуги */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 32px 30px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.service::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.service:hover { transform: translateY(-6px); }
.service:hover::after { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--grad-soft); border: 1px solid var(--line);
  margin-bottom: 22px;
}
.service-photo {
  aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 22px; background: rgba(255, 255, 255, 0.03);
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service:hover .service-photo img { transform: scale(1.05); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 14.7px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.service-price { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--c1); }

/* ---------------------------------------------------------------- процесс */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.process::before {
  content: ''; position: absolute; top: 30px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c2), var(--c1), transparent);
  opacity: 0.45;
}
.step { position: relative; padding-top: 0; }
.step b {
  width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center;
  font-size: 17px; font-weight: 800; margin-bottom: 20px;
  background: #0a0c16; border: 1px solid var(--line-strong); color: var(--c1);
  position: relative; z-index: 1;
  transition: 0.35s var(--ease);
}
.step:hover b { background: var(--grad); color: #06070d; border-color: transparent; box-shadow: var(--glow); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.3px; }

/* ------------------------------------------------------------------- кейсы */

.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case {
  padding: 34px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--panel); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
  min-height: 250px; display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.case-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(80px); opacity: 0.28; top: -110px; right: -80px; transition: opacity 0.4s; }
.case:hover .case-glow { opacity: 0.5; }
.case[data-accent='cyan'] .case-glow { background: var(--c1); }
.case[data-accent='violet'] .case-glow { background: var(--c2); }
.case[data-accent='magenta'] .case-glow { background: var(--c3); }
.case[data-accent='lime'] .case-glow { background: var(--c4); }
.case.has-photo { padding: 0; overflow: hidden; }
.case.has-photo > *:not(.case-photo):not(.case-glow) { padding-inline: 34px; }
.case.has-photo > *:last-child { padding-bottom: 30px; }
.case-photo {
  aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.03); position: relative; z-index: 1;
}
.case-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.case:hover .case-photo img { transform: scale(1.06); }
.case-cat { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 700; position: relative; z-index: 1; }
.case h3 { margin: 12px 0 10px; font-size: 1.6rem; }
.case p { color: var(--muted); font-size: 14.7px; }
.case-foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.case-result { font-weight: 700; font-size: 15.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-stack { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------------- тарифы */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  padding: 36px 32px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--panel); position: relative; transition: transform 0.4s var(--ease);
}
.plan:hover { transform: translateY(-5px); }
.plan.featured {
  background: linear-gradient(165deg, rgba(123, 92, 255, 0.14), rgba(34, 225, 255, 0.05));
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: 0 30px 80px -40px rgba(123, 92, 255, 0.9);
}
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #06070d; font-size: 11px; font-weight: 800;
  padding: 6px 16px; border-radius: 100px; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan h3 { font-size: 1.25rem; }
.plan .price { font-size: 2.05rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 6px; }
.plan .note { color: var(--muted); font-size: 14px; min-height: 42px; }
.plan ul { margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); align-items: flex-start; }
.plan li::before { content: '✦'; color: var(--c1); flex: none; font-size: 12px; margin-top: 3px; }

/* -------------------------------------------------------------- shop teaser */

.shop-teaser {
  border-radius: var(--r-xl); padding: 60px; position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.2), rgba(34, 225, 255, 0.08) 50%, rgba(255, 78, 203, 0.14));
}
.shop-teaser::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
}
.shop-teaser-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: center; }
.teaser-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.teaser-card {
  padding: 20px; border-radius: 18px; background: rgba(8, 10, 18, 0.72);
  border: 1px solid var(--line); backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease);
}
.teaser-card:hover { transform: translateY(-5px) scale(1.02); }
.teaser-card .em { font-size: 24px; }
.teaser-card b { display: block; margin-top: 10px; font-size: 14.5px; }
.teaser-card small { color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ отзывы */

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.review .quote { font-size: 38px; line-height: 1; color: var(--c2); font-family: Georgia, serif; }
.review p { color: var(--text); font-size: 15px; margin: 12px 0 22px; }
.review-author { display: flex; align-items: center; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--grad); display: grid; place-items: center;
  color: #06070d; font-weight: 800; font-size: 15px;
}
.review-author b { font-size: 14.5px; display: block; }
.review-author small { color: var(--dim); font-size: 12.5px; }

/* --------------------------------------------------------------------- FAQ */

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(123, 92, 255, 0.5); }
.faq-q { width: 100%; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 26px; text-align: left; font-size: 16px; font-weight: 600; }
.faq-q i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-style: normal; transition: 0.3s var(--ease); font-size: 15px; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--grad); color: #06070d; border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { padding: 0 26px 24px; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ контакт */

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 46px; align-items: start; }
.contact-card { padding: 38px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.contact-list .ic {
  width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); font-size: 17px;
}
.contact-list small { display: block; color: var(--dim); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 12.5px; color: var(--dim); margin-top: 4px; }

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .code-panel { transform: none; }
  .services-grid, .reviews-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
  .shop-teaser-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-chip.one { left: 0; }
  .float-chip.two { right: 0; }
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .services-grid, .reviews-grid, .pricing-grid, .cases-grid, .process { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .shop-teaser { padding: 34px 24px; }
  .hero { padding-top: calc(var(--nav-h) + 54px); }
  .float-chip { display: none; }
}
