/* ============================================
   DEV.SOLO · Shared Stylesheet
   Dark premium portfolio theme
   ============================================ */

/* View transitions: см. /view-transitions.css (подключается в HTML) */

/* --- Variables --- */
:root {
  --bg: #050507;
  --bg-soft: #0d0f15;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f4f8;
  --accent: #7c4dff;
  --accent-2: #00d4ff;
  --success: #3ad29f;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  --muted: #9ea3b8;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --transition: 0.28s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(124, 77, 255, 0.25), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(0, 212, 255, 0.18), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.preview-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1 {
  font-size: clamp(32px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.6px;
  line-height: 1.15;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
}

p {
  line-height: 1.65;
}

.lead {
  color: var(--muted);
  max-width: 780px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.65;
  margin-bottom: 30px;
}

.muted {
  color: var(--muted);
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff, #afbcff 45%, #6ce7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-word {
  background: linear-gradient(90deg, #9e7dff, #60dfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(124, 77, 255, 0.25);
  font-weight: 800;
}

/* --- Layout --- */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

section {
  padding: 86px 0;
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.35), rgba(0, 212, 255, 0.35), transparent);
  opacity: 0.35;
}

/* --- Header / Topbar --- */
.topbar {
  position: sticky;
  top: max(12px, env(safe-area-inset-top, 0px));
  z-index: 10;
  margin: 14px auto 0;
  width: min(1100px, 92%);
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: clamp(14px, 2vw, 17px);
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: var(--accent-2);
}

.menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--transition);
}

.menu a:hover {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.menu .menu-contact {
  color: #f4f7ff;
  border-color: rgba(124, 77, 255, 0.72);
  background: linear-gradient(120deg, rgba(124, 77, 255, 0.34), rgba(0, 212, 255, 0.2));
  font-weight: 700;
}

.menu .menu-contact:hover {
  color: #ffffff;
  border-color: rgba(176, 196, 255, 0.9);
  background: linear-gradient(120deg, rgba(124, 77, 255, 0.5), rgba(0, 212, 255, 0.32));
  box-shadow: 0 10px 22px rgba(124, 77, 255, 0.28);
}

/* --- Cards --- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.055);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* --- Buttons --- */
.btn {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(124, 77, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5f8dff, var(--accent-2));
  background-size: 100% 100%;
  border: none;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -160%;
  width: 120%;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.25) 50%, transparent 80%);
  transform: translateX(0);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.25s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(260%);
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.btn-portfolio {
  background: linear-gradient(120deg, #ff4da0, #8d66ff, #57deff);
  background-size: 200% 100%;
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 24px;
  box-shadow: 0 14px 28px rgba(141, 102, 255, 0.32);
  animation: portfolioGlow 3.8s ease-in-out infinite;
  isolation: isolate;
  overflow: visible;
}

.btn-portfolio:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 34px rgba(141, 102, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-portfolio::before,
.btn-portfolio::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  border: 2px solid rgba(141, 102, 255, 0.65);
  opacity: 0;
  transform: scale(0.92);
  animation: portfolioPulse 1.85s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

.btn-portfolio::after {
  border-color: rgba(87, 222, 255, 0.5);
  animation-delay: 0.92s;
}

/* --- Section Titles & Badges --- */
.section-title {
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.section-text {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #dfe4ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #8d66ff, #57deff);
  box-shadow: 0 0 14px rgba(87, 222, 255, 0.55);
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--card);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.stat h3 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 6px;
}

.stat p {
  color: var(--muted);
  font-size: 14px;
}

/* --- Footer --- */
footer {
  color: #858998;
  text-align: center;
  padding: 24px 0 36px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover {
  color: #fff;
}

/* --- CTA Section --- */
.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta p {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-link {
  color: #cfd6ff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(207, 214, 255, 0.55);
  transition: var(--transition);
}

.contact-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

/* --- Pricing Cards --- */
.price-box {
  border: 1px solid rgba(124, 77, 255, 0.45);
  background: linear-gradient(160deg, rgba(124, 77, 255, 0.2), rgba(0, 212, 255, 0.07));
}

.discount {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 13px;
  color: #e8ebf8;
  background: rgba(255, 255, 255, 0.06);
}

.discount-highlight {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 77, 255, 0.55);
  background: linear-gradient(120deg, rgba(124, 77, 255, 0.22), rgba(0, 212, 255, 0.16));
  color: #eef2ff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(124, 77, 255, 0.2);
  white-space: nowrap;
}

/* --- Price Table (for /pricing page) --- */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
}

.price-table thead {
  background: rgba(124, 77, 255, 0.15);
}

.price-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #dfe4ff;
  border-bottom: 1px solid var(--line);
}

.price-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 15px;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.price-table .price-value {
  color: var(--text);
  font-weight: 700;
}

/* --- Selling Section (feature highlight block) --- */
.selling-section {
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 26px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(160deg, rgba(124, 77, 255, 0.12), rgba(0, 212, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.selling-lead {
  font-size: clamp(17px, 2.2vw, 22px);
  color: #e7ebff;
  max-width: 980px;
  margin-bottom: 26px;
  line-height: 1.55;
}

/* --- Hero (main page) --- */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  padding: clamp(24px, 4vw, 54px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(8px);
  background: radial-gradient(circle at 40% 40%, rgba(124, 77, 255, 0.56), transparent 64%);
  top: -40px;
  right: -80px;
  animation: pulseLite 8s ease-in-out infinite;
  z-index: -1;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  color: #d8dbeb;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.03);
  animation: floatLite 7s ease-in-out infinite;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--success);
  box-shadow: 0 0 18px var(--success);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 120px 0 60px;
  position: relative;
  text-align: center;
}

.page-hero .section-title {
  margin-bottom: 16px;
}

.page-hero .lead {
  margin: 0 auto 20px;
  text-align: center;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  user-select: none;
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* --- Content Section (blog / articles) --- */
.content-section {
  padding: 48px 0 86px;
}

.content-section article {
  max-width: 780px;
  margin: 0 auto;
}

.content-section h2 {
  margin: 40px 0 14px;
  font-size: clamp(22px, 3vw, 32px);
}

.content-section h3 {
  margin: 28px 0 10px;
  font-size: clamp(18px, 2.5vw, 24px);
}

.content-section p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 16px;
}

.content-section ul,
.content-section ol {
  margin: 14px 0 22px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.content-section ul {
  list-style: disc;
}

.content-section ol {
  list-style: decimal;
}

.content-section li {
  margin-bottom: 6px;
}

.content-section a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.content-section a:hover {
  color: #fff;
}

.content-section blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 22px 0;
  background: rgba(124, 77, 255, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #ccd2ea;
  font-style: italic;
}

.content-section code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--accent-2);
}

.content-section pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  overflow-x: auto;
  margin: 22px 0;
}

.content-section pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.content-section img {
  border-radius: var(--radius-md);
  margin: 22px 0;
  border: 1px solid var(--line);
}

/* --- Social Buttons --- */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #eef1ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.social-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.social-icon.tg  { background: #2aabee; color: #fff; }
.social-icon.vk  { background: #2787f5; color: #fff; }
.social-icon.max { background: #8a63ff; color: #fff; }
.social-icon.wa  { background: #25d366; color: #fff; }

/* --- QR Card --- */
.qr-card {
  width: min(360px, 100%);
  margin: 10px auto 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.qr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.qr-card img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.qr-caption {
  margin-top: 10px;
  color: #b7bdd1;
  font-size: 13px;
  line-height: 1.5;
}

/* --- Decorative: Noise Overlay --- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.11;
  z-index: 0;
}

/* --- Decorative: Glow Blobs --- */
.glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: var(--radius-pill);
  filter: blur(34px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  animation: none;
}

.glow.one {
  background: #6f5cff;
  top: 55%;
  left: -120px;
}

.glow.two {
  background: var(--accent-2);
  top: 30%;
  right: -120px;
  animation-duration: 16s;
}

/* --- Portfolio-specific (card with left accent border) --- */
.portfolio-card {
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #8d66ff, #57deff);
  opacity: 0.92;
}

.portfolio-card h3,
.portfolio-card p,
.portfolio-card .hero-actions {
  position: relative;
  z-index: 1;
}

/* --- Service cards --- */
.service-card {
  position: relative;
  padding-top: 46px;
}

.service-num {
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #f6f7ff;
  background: linear-gradient(130deg, rgba(124, 77, 255, 0.9), rgba(0, 212, 255, 0.9));
  box-shadow: 0 8px 16px rgba(124, 77, 255, 0.3);
}

/* --- Trust Strip --- */
.trust-strip {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #dce1f7;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  line-height: 1.55;
}

/* --- Capabilities Box --- */
.capabilities-box {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.capabilities-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #f0f3ff;
}

.capabilities-note {
  font-size: 14px;
  color: #cad0e6;
  margin-bottom: 12px;
  line-height: 1.55;
}

.capabilities-accent {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 77, 255, 0.45);
  background: linear-gradient(120deg, rgba(124, 77, 255, 0.2), rgba(0, 212, 255, 0.16));
  color: #edf2ff;
  font-weight: 700;
  white-space: nowrap;
}

.capabilities-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.capabilities-list li {
  font-size: 14px;
  color: #e1e6f7;
  line-height: 1.45;
  position: relative;
  padding-left: 16px;
}

.capabilities-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, #8d66ff, #57deff);
  box-shadow: 0 0 10px rgba(87, 222, 255, 0.45);
}

/* --- Login Note (yellow warning box) --- */
.login-note {
  margin-top: 12px;
  border: 1px solid rgba(255, 226, 133, 0.5);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 211, 92, 0.18), rgba(255, 170, 74, 0.12));
  padding: 10px 12px;
  color: #fff1bf;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

/* --- Hero Contact Card --- */
.hero-contact-wrap {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 18px;
}

.hero-contact-card {
  width: min(260px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 10px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero-contact-card img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-contact-card:hover {
  border-color: rgba(124, 77, 255, 0.62);
  background: rgba(124, 77, 255, 0.12);
  transform: translateY(-2px);
}

.hero-contact-title {
  color: #eaf0ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  text-decoration: none;
  display: inline-block;
}

.hero-contact-sub {
  color: #bcc5de;
  font-size: 12px;
  line-height: 1.35;
}

/* --- Project Logos --- */
.project-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-logo {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

/* --- Preview Button / Modal --- */
.preview-wrap {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
}

.preview-btn {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.1);
  color: #e7f9ff;
  font-weight: 700;
}

.preview-panel { display: none; }
.preview-wrap.open .preview-panel { display: none; }
.preview-panel iframe { display: none; }
.preview-hint { display: none; }

.site-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1400;
}

.site-preview-modal.open { display: flex; }

.site-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.site-preview-modal__content {
  position: relative;
  width: min(980px, 94vw);
  height: min(640px, 82vh);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: #0a0d14;
  overflow: hidden;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.56);
  z-index: 1;
  display: grid;
  grid-template-rows: 40px 1fr;
}

.site-preview-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #dce3fb;
  font-size: 13px;
  font-weight: 600;
}

.site-preview-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.site-preview-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

/* --- Mini Modal (generic small dialog) --- */
.mini-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.mini-modal.open { display: flex; }

.mini-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.mini-modal__content {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 20, 30, 0.96), rgba(11, 13, 19, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  padding: 20px;
  z-index: 1;
}

.mini-modal__title {
  margin-bottom: 10px;
  font-size: 19px;
  color: #f3f4ff;
}

.mini-modal__text {
  color: #ccd2ea;
  line-height: 1.6;
  margin-bottom: 14px;
}

.mini-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #f2f4ff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

/* --- Rainbow (VIP card) --- */
.rainbow-box {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(130deg, rgba(255, 79, 181, 0.15), rgba(122, 92, 255, 0.14), rgba(0, 205, 255, 0.14));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(123, 94, 255, 0.18);
}

.rainbow-title {
  background: linear-gradient(90deg, #ff3f8e, #ff8a00, #f7ff00, #3dff7b, #00d9ff, #7e5dff, #ff3f8e);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 6s linear infinite;
}

.rainbow-text {
  background: linear-gradient(90deg, #ff4a9f, #ff9f43, #faff61, #53ff9a, #57deff, #a789ff, #ff4a9f);
  background-size: 340% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 8s linear infinite;
  font-weight: 600;
}

.rainbow-box h3,
.rainbow-box p {
  background-size: 340% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 8s linear infinite;
}

.rainbow-box h3 {
  background-image: linear-gradient(90deg, #ff3f8e, #ff8a00, #f7ff00, #3dff7b, #00d9ff, #7e5dff, #ff3f8e);
}

.rainbow-box p {
  background-image: linear-gradient(90deg, #ff4a9f, #ff9f43, #faff61, #53ff9a, #57deff, #a789ff, #ff4a9f);
  font-weight: 600;
}

/* --- Branded Buttons --- */
.btn-kulibin {
  background: linear-gradient(120deg, #b07a2c, #d6a04a);
  border-color: rgba(230, 183, 102, 0.7);
  color: #1a1208;
  font-weight: 700;
}

.btn-kulibin:hover {
  box-shadow: 0 12px 24px rgba(214, 160, 74, 0.28);
  border-color: rgba(255, 214, 144, 0.95);
  color: #130d05;
}

.btn-kavaler {
  background: linear-gradient(120deg, #101014, #23232a);
  border-color: rgba(255, 72, 72, 0.7);
  color: #ffffff;
  font-weight: 700;
}

.btn-kavaler:hover {
  box-shadow: 0 12px 24px rgba(255, 70, 70, 0.26);
  border-color: rgba(255, 132, 132, 0.95);
}

.btn-crm {
  background: linear-gradient(120deg, #2f8bff, #5bb8ff);
  border-color: rgba(147, 210, 255, 0.75);
  color: #031a2f;
  font-weight: 800;
}

.btn-crm:hover {
  box-shadow: 0 12px 24px rgba(66, 159, 255, 0.3);
  border-color: rgba(201, 235, 255, 0.95);
  color: #001224;
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulseLite {
  0%, 100% { transform: scale(1); opacity: 0.84; }
  50%      { transform: scale(1.06); opacity: 1; }
}

@keyframes floatLite {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@keyframes rainbowShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes portfolioGlow {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 0 14px 28px rgba(141, 102, 255, 0.28);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 18px 34px rgba(87, 222, 255, 0.36);
  }
}

@keyframes portfolioPulse {
  0%   { opacity: 0.85; transform: scale(0.92); }
  55%  { opacity: 0.12; transform: scale(1.08); }
  100% { opacity: 0;    transform: scale(1.22); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .selling-lead {
    font-size: 17px;
  }

  .page-hero {
    padding: 100px 0 48px;
  }

  .price-table th,
  .price-table td {
    padding: 10px 14px;
  }
}

@media (max-width: 600px) {
  .topbar {
    top: max(8px, env(safe-area-inset-top, 0px));
    padding: 10px 12px;
    border-radius: var(--radius-md);
  }

  .menu {
    gap: 6px;
  }

  .menu a {
    font-size: 13px;
    padding: 10px 12px;
  }

  section {
    padding: 62px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

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

  .capabilities-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .hero-contact-wrap {
    justify-content: flex-start;
  }

  .preview-panel {
    display: none;
  }

  .preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-wrap.open .preview-panel {
    display: none;
  }

  .glow {
    display: none;
  }

  .noise {
    display: none;
  }

  section::after {
    opacity: 0.22;
  }

  .page-hero {
    padding: 80px 0 36px;
    text-align: left;
  }

  .page-hero .lead {
    text-align: left;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .content-section p {
    font-size: 15px;
  }

  .price-table {
    font-size: 14px;
  }

  .price-table th,
  .price-table td {
    padding: 10px 12px;
  }
}

/* --- Blog articles: fixed back to list --- */
a.article-back {
  position: fixed;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: max(22px, calc(12px + env(safe-area-inset-bottom, 0px)));
  z-index: 10001;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(124, 77, 255, 0.98), rgba(0, 212, 255, 0.88));
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

a.article-back:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 14px 38px rgba(124, 77, 255, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

a.article-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  a.article-back {
    width: 54px;
    height: 54px;
    font-size: 26px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html, body {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
