﻿/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.16);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.40);
  --text-secondary: rgba(255,255,255,0.65);
  --blur: blur(20px);
  --radius: 16px;
  --radius-lg: 24px;
}

html { scroll-behavior: auto; }


body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===================== CONTAINER ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: rgba(15,15,15,0.80);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s;
  animation: nav-cta-pulse 15s ease-in-out infinite;
}

@keyframes nav-cta-pulse {
  0%, 70%, 100% {
    box-shadow: none;
    border-color: var(--border-light);
    color: var(--text);
  }
  75% {
    box-shadow: 0 0 12px 4px rgba(255, 200, 60, 0.35), 0 0 32px 10px rgba(255, 200, 60, 0.12);
    border-color: rgba(255, 200, 60, 0.5);
    color: var(--text);
  }
  85% {
    box-shadow: none;
    border-color: var(--border-light);
    color: var(--text);
  }
}

.nav-cta:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.28);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lang-switcher:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.4);
}

/* ===================== SECTION LABEL ===================== */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4a843;
  text-shadow: 0 0 8px rgba(212,168,67,0.6), 0 0 20px rgba(212,168,67,0.3);
  margin-bottom: 12px;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #d4a843;
  color: #0f0f0f;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(212,168,67,0.35);
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: #e8c060;
  box-shadow: 0 0 32px rgba(212,168,67,0.55);
  transform: translateY(-1px);
}

.btn-primary--xl {
  padding: 20px 48px;
  font-size: 16px;
}

.btn-primary--outline {
  background: transparent;
  color: #d4a843;
  border: 1.5px solid rgba(212,168,67,0.5);
  box-shadow: 0 0 18px rgba(212,168,67,0.15), inset 0 0 12px rgba(212,168,67,0.05);
}
.btn-primary--outline:hover {
  background: rgba(212,168,67,0.08);
  border-color: rgba(212,168,67,0.8);
  box-shadow: 0 0 28px rgba(212,168,67,0.3), inset 0 0 16px rgba(212,168,67,0.08);
  color: #e8c060;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border: 1px solid var(--border-light);
  color: var(--text);
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: #d4a843;
  color: #0f0f0f;
  border: none;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 0 18px rgba(212,168,67,0.30);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-top: auto;
  width: fit-content;
}

.btn-outline:hover {
  background: #e8c060;
  box-shadow: 0 0 28px rgba(212,168,67,0.50);
  transform: translateY(-1px);
}


/* ===================== HERO ===================== */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(68px + 56px) 48px 40px;
  position: relative;
}

.hero-inner,
.hero-scroll {
  position: relative;
  z-index: 1;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(53px, 8.8vw, 121px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 64px;
  padding: 8px 0;
}

@keyframes hero-line-in {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

@keyframes hero-line-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.hero-line {
  display: block;
  transform: translateY(110%);
  will-change: transform;
  backface-visibility: hidden;
  animation:
    hero-line-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both,
    hero-line-float 2.2s ease-in-out infinite;
  animation-play-state: paused;
}

.hero-line:nth-child(1) { animation-delay: 0.2s, 1.4s; }
.hero-line:nth-child(2) { animation-delay: 0.32s, 1.52s; }
.hero-line:nth-child(3) { animation-delay: 0.44s, 1.64s; }

.hero-fonts-ready .hero-line { animation-play-state: running; }

.hero-line--indent {
  padding-left: 18%;
}

.hero-title-wrap {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  margin: -8px 0;
}

.hero-and-more {
  position: absolute;
  bottom: 64px;
  right: 80px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(10px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0em;
  opacity: 0;
  animation: and-more-pulse 5s ease-in-out 2s infinite;
}

@keyframes and-more-pulse {
  0%, 100% { opacity: 0; }
  30%, 70%  { opacity: 1; }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 280px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll-arrow {
  color: var(--text-muted);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ===================== ABOUT ===================== */
.about {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}

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

.about-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s;
}

.about-photo-wrap:hover .about-photo { filter: grayscale(0%); }

.about-content { display: flex; flex-direction: column; gap: 0; }

.about-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.about-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

.about-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 32px;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(212,168,67,0.07);
  border: 1px solid rgba(212,168,67,0.20);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: #d4a843;
  text-shadow: 0 0 6px rgba(212,168,67,0.4);
  transform: rotate(var(--rx)) translateY(var(--ry));
  animation: tag-float var(--dur, 4s) var(--d, 0s) ease-in-out infinite;
  will-change: transform;
}

.about-tag:nth-child(odd)  { --dur: 4.2s; }
.about-tag:nth-child(even) { --dur: 5.1s; }
.about-tag:nth-child(3n)   { --dur: 3.8s; }

@keyframes tag-float {
  0%, 100% { transform: rotate(var(--rx)) translateY(var(--ry)); }
  50%       { transform: rotate(calc(var(--rx) * -1)) translateY(calc(var(--ry) * -1 - 3px)); }
}

/* ===================== SERVICES ===================== */
.services {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.services-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.services-bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sb-bear * { fill: #ff0000; stroke: none; }
.sb-honey * { fill: #ff0000; stroke: none; }
.sb-honey line { fill: none; stroke: #ff0000; }

.sb-item { opacity: 1; }

@keyframes sb-float1 {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  50%  { transform: translate(0, -18px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}
@keyframes sb-float2 {
  0%   { transform: translate(0, 0) rotate(3deg); }
  50%  { transform: translate(0, 14px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(3deg); }
}
@keyframes sb-float3 {
  0%   { transform: translate(0, 0) rotate(-2deg); }
  50%  { transform: translate(0, -22px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(-2deg); }
}

.sb-f1 { animation: sb-float1 7s ease-in-out infinite; will-change: transform; }
.sb-f2 { animation: sb-float2 9s ease-in-out infinite; will-change: transform; }
.sb-f3 { animation: sb-float3 11s ease-in-out infinite; will-change: transform; }

.services .container { position: relative; z-index: 1; }

/* --- Carousel wrapper --- */
.services-carousel-wrap {
  position: relative;
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  cursor: grab;
  user-select: none;
}
.services-carousel-wrap.is-dragging {
  cursor: grabbing;
}

.services-carousel {
  display: flex;
  gap: 24px;
  will-change: transform;
}

/* --- Cards --- */
.service-card {
  flex: 0 0 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  pointer-events: none;
}
.services-carousel-wrap:not(.is-dragging) .service-card {
  pointer-events: auto;
}
.service-card:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-4px);
}

.service-card-top {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.service-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.service-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.service-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.service-tags span {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Drag hint (desktop only) --- */
.services-drag-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.services-drag-hint::before,
.services-drag-hint::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* --- section inner wrapper --- */
.services-section-inner {
  display: block;
}

.services-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.5s;
  user-select: none;
}
.services-hint::before,
.services-hint::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.services-hint.hidden { opacity: 0; pointer-events: none; }

/* --- dots + arrows nav --- */
.services-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.services-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.services-arrow:hover {
  border-color: var(--accent);
  background: rgba(212,168,67,0.08);
  color: var(--accent);
}
.services-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  border: none;
  padding: 0;
}
.services-dot.active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .services-section-inner {
    display: block;
  }
  .services-carousel-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: default;
    -webkit-mask-image: none;
    mask-image: none;
    padding-bottom: 4px;
  }
  .services-carousel-wrap::-webkit-scrollbar { display: none; }
  .services-carousel {
    display: flex;
    gap: 12px;
    will-change: unset;
    transform: none !important;
    transition: none;
    padding: 0 16px;
  }
  .service-card {
    flex: 0 0 85vw;
    max-width: 340px;
    scroll-snap-align: start;
    pointer-events: auto;
  }
  .services-nav { display: none; }
  .services-hint { display: flex; }
}

/* ===================== WORK ===================== */
.work {
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
}

.work .container { margin-bottom: 24px; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  padding: 0 2px;
}

.work-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #161616;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 20px rgba(255,255,255,0.04);
  transition: box-shadow 0.3s;
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 0 32px rgba(255,255,255,0.08);
}

.work-card--wide {
  grid-column: span 2;
}

.work-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.work-card--wide .work-card-inner { min-height: 500px; }

.work-card-bg {
  position: absolute;
  inset: 0;
  background: var(--card-bg, #111);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
  filter: brightness(0.7);
}

.work-card--widgets    { --card-bg: #0c1a20; }
.work-card--nezno      { --card-bg: #120d16; }
.work-card--kargovargo { --card-bg: #0e1a10; }
.work-card--pixelfix   { --card-bg: #0e0e1a; }
.work-card--zubastikov { --card-bg: #1a0a00; }
.work-card--jaeco      { --card-bg: #0d1a0d; }
.work-card--clower     { --card-bg: #0a0a0f; }

.work-card:hover .work-card-bg {
  transform: scale(1.04);
  filter: brightness(0.5);
}

.work-card-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  transform-origin: top left;
  filter: blur(6px) brightness(0.85) saturate(0.9);
  transition: filter 0.4s;
}

.work-card--preview:hover .work-card-iframe {
  filter: blur(4px) brightness(0.75) saturate(0.9);
}
.work-card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  filter: blur(6px) brightness(0.85) saturate(0.9);
  transition: filter 0.4s;
}

.work-card--widgets .work-card-preview {
  object-position: center 35%;
}

.work-card--pixelfix .work-card-preview {
  object-position: center 20%;
}

.work-card--preview:hover .work-card-preview {
  filter: blur(4px) brightness(0.75) saturate(0.9);
}

.work-card-iframe-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(12,26,32,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.work-card--preview .work-card-content {
  z-index: 2;
}

.work-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
}

.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.work-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

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

.work-tags span {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 11px;
  color: rgba(255,255,255,0.60);
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.20);
}

.work-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(8px);
  transition: transform 0.4s;
}

.work-card:hover .work-card-bottom { transform: translateY(0); }

.work-client {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

.work-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.work-result {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s 0.05s, transform 0.3s 0.05s;
}

.work-card:hover .work-result {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== COST ===================== */
.cost {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

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

.cost-card {
  background: #141414;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: default;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.cost-card:hover {
  border-color: rgba(212,168,67,0.4);
  box-shadow: 0 0 24px rgba(212,168,67,0.10);
  transform: translateY(-3px);
}

.cost-card--wide {
  grid-column: span 2;
}

.cost-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,168,67,0.08);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--gold, #d4a843);
}

.cost-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.cost-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cost-price {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  color: #d4a843;
}

/* ===================== CONTACT ===================== */
.contact {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.contact-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 32px;
}

.underline-text {
  text-decoration: underline;
  text-decoration-color: rgba(212, 160, 23, 0.6);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.gradient-text {
  background: linear-gradient(135deg, #d4a017 0%, #ffe899 25%, #ffffff 50%, #d4a017 75%, #ffe065 100%);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lava-flow 8s ease-in-out infinite;
}

@keyframes lava-flow {
  0%   { background-position: 0% 20%; }
  20%  { background-position: 80% 60%; }
  40%  { background-position: 30% 90%; }
  60%  { background-position: 90% 10%; }
  80%  { background-position: 10% 70%; }
  100% { background-position: 0% 20%; }
}

@keyframes title-breathe {
  0%                { transform: scale(1);    opacity: 1;    }
  7%                { transform: scale(1.02); opacity: 0.85; }
  14%               { transform: scale(1);    opacity: 1;    }
  21%               { transform: scale(1.02); opacity: 0.85; }
  28%, 100%         { transform: scale(1);    opacity: 1;    }
}

.contact-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  padding-right: 10%;
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-link {
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.contact-link:hover {
  border-color: var(--border-light);
  color: var(--text);
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #141414;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.modal-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.4;
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.modal-link:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: var(--surface-hover);
}

/* ===================== FOOTER ===================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .container { padding: 0 24px; }

  .nav { padding: 20px 24px; }
  .nav-links { display: none; }

  .hero { padding: 0 24px 64px; padding-top: calc(56px + 24px); }
  .hero-title { letter-spacing: -2px; margin-bottom: 24px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .hero-and-more {
    position: static;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 0;
    display: block;
    text-align: right;
  }

  .about { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-wrap { aspect-ratio: 4/3; }
  .about-stats { gap: 32px; }

  .services { padding: 60px 0; }
  .service-card { flex: 0 0 80vw; min-width: 260px; padding: 28px 24px; }

  .work { padding: 60px 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: span 1; }
  .work-card-inner { min-height: 300px !important; }

  .cost { padding: 80px 0; }
  .cost-grid { grid-template-columns: 1fr; }
  .cost-card--wide { grid-column: span 1; }

  .contact { padding: 80px 0; }
  .contact-title { font-size: clamp(28px, 8vw, 60px); letter-spacing: -1px; }

  .footer { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Nav */
  .nav { padding: 16px; }
  .nav-cta { display: none; }
  .lang-switcher { font-size: 12px; padding: 4px 10px; }

  /* Hero */
  .hero { padding: 0 16px 48px; padding-top: calc(56px + 32px); min-height: 100svh; overflow: hidden; }
  .hero-title { letter-spacing: -2px; margin-bottom: 32px; font-size: clamp(38px, 13vw, 80px); }
  .hero-label { font-size: 11px; margin-bottom: 16px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-ghost,
  .hero-actions .btn-primary { width: 100%; text-align: center; justify-content: center; }

  /* About */
  .about { padding: 60px 0; }
  .about-grid { gap: 32px; }
  .about-photo-wrap { aspect-ratio: 3/2; }
  .about-stats { flex-direction: column; gap: 20px; }
  .stat-num { font-size: 36px; }

  /* Services */
  .services { padding: 60px 0; }
  .service-card { flex: 0 0 88vw; padding: 24px 20px; gap: 16px; }
  .service-title { font-size: 18px; }
  .service-desc { font-size: 13px; }

  /* Work */
  .work { padding: 60px 0; }
  .work-card-inner { min-height: 240px !important; }
  .work-card-content { padding: 20px; }
  .work-title { font-size: 18px; }
    .work-card-preview {
    inset: 0 12px 80px 12px;
    width: calc(100% - 24px);
    height: calc(100% - 80px);
    object-position: center 15%;
    object-fit: cover;
    transform: none;
    filter: blur(3px) brightness(0.9) saturate(0.9);
    border-radius: 8px;
  }
  .work-card--kargovargo .work-card-preview,
  .work-card--pixelfix .work-card-preview {
    object-position: left 15%;
  }
  .work-card--zubastikov .work-card-preview {
    object-position: center 15%;
  }
  .work-card--jaeco .work-card-preview,
  .work-card--clower .work-card-preview {
    object-position: center 10%;
  }


  /* Cost */
  .cost { padding: 60px 0; }
  .cost-card { padding: 24px 20px; }
  .cost-name { font-size: 13px; }

  /* Contact */
  .contact { padding: 60px 0; overflow: hidden; }
  .contact-title { font-size: clamp(24px, 8vw, 48px); word-break: break-word; overflow-wrap: break-word; }
  .contact-bottom { flex-direction: column; align-items: stretch; }
  .contact-links { flex-direction: column; }
  .contact-links a { width: 100%; text-align: center; justify-content: center; }

  /* Footer */
  .footer { padding: 16px; font-size: 12px; }
}

/* ===================== PRICING GRID (pg2) ===================== */
.pg2-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 170px 140px 150px;
  gap:14px;
}
.pg2-c-landing { grid-column:1; grid-row:1/3; }
.pg2-c-widget  { grid-column:2/4; grid-row:1; }
.pg2-c-site    { grid-column:2; grid-row:2; }
.pg2-c-bots    { grid-column:3; grid-row:2; }
.pg2-c-ads     { grid-column:1; grid-row:3; }
.pg2-c-seo     { grid-column:2/4; grid-row:3; }

.pg2-card{
  background:#141414;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;
  padding:22px 28px;
  display:flex;
  flex-direction:column;
  gap:8px;
  cursor:default;
  transition:border-color .25s, box-shadow .25s, transform .3s;
  position:relative;
  overflow:hidden;
}
.pg2-card:hover{
  border-color:rgba(212,168,67,.35);
  box-shadow:0 8px 40px rgba(0,0,0,.5), 0 0 20px rgba(212,168,67,.08);
  transform:translateY(-3px);
}
.pg2-deco{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  pointer-events:none;
  overflow:visible;
}
@keyframes pg2-float-up {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pg2-cursor-blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.2; }
}
.pg2-anim-float    { animation: pg2-float-up 4s ease-in-out infinite; }
.pg2-anim-float-2  { animation: pg2-float-up 5s ease-in-out infinite 0.8s; }
.pg2-anim-cursor   { animation: pg2-cursor-blink 1.2s ease-in-out infinite; }
@keyframes pg2-pulse-star {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:0.4; transform: scale(0.8); }
}
.pg2-anim-star-1 { animation: pg2-pulse-star 2s ease-in-out infinite; transform-origin: center; }
.pg2-anim-star-2 { animation: pg2-pulse-star 2.5s ease-in-out infinite 0.6s; transform-origin: center; }
@keyframes pg2-quiz-highlight {
  0%,30%,100% { opacity:0.5; }
  15%          { opacity:1; }
}
.pg2-anim-q1 { animation: pg2-quiz-highlight 3s ease-in-out infinite 0s; }
.pg2-anim-q2 { animation: pg2-quiz-highlight 3s ease-in-out infinite 1s; }
.pg2-anim-q3 { animation: pg2-quiz-highlight 3s ease-in-out infinite 2s; }
@keyframes pg2-page-shift {
  0%,100% { transform: rotate(6deg) translateY(0); }
  50%      { transform: rotate(6deg) translateY(-4px); }
}
@keyframes pg2-page-shift2 {
  0%,100% { transform: rotate(3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-3px); }
}
.pg2-anim-page1 { animation: pg2-page-shift  3.5s ease-in-out infinite; transform-origin: center; }
.pg2-anim-page2 { animation: pg2-page-shift2 3.5s ease-in-out infinite 0.4s; transform-origin: center; }
@keyframes pg2-typing-dot {
  0%,60%,100% { opacity:0.15; transform:translateY(0); }
  30%          { opacity:1;    transform:translateY(-3px); }
}
.pg2-anim-dot1 { animation: pg2-typing-dot 1.4s ease-in-out infinite 0s; }
.pg2-anim-dot2 { animation: pg2-typing-dot 1.4s ease-in-out infinite 0.2s; }
.pg2-anim-dot3 { animation: pg2-typing-dot 1.4s ease-in-out infinite 0.4s; }
@keyframes pg2-bubble-in {
  0%,100% { opacity:0.4; transform:translateY(2px); }
  50%      { opacity:0.9; transform:translateY(0); }
}
.pg2-anim-bubble1 { animation: pg2-bubble-in 3s ease-in-out infinite 0s; }
.pg2-anim-bubble2 { animation: pg2-bubble-in 3s ease-in-out infinite 0.8s; }
.pg2-anim-bubble3 { animation: pg2-bubble-in 3s ease-in-out infinite 1.6s; }
@keyframes pg2-rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pg2-crosshair-pulse {
  0%,100% { opacity:0.07; }
  50%      { opacity:0.18; }
}
.pg2-anim-target-outer { animation: pg2-rotate-slow 12s linear infinite; transform-origin: 210px 70px; }
.pg2-anim-target-pulse { animation: pg2-crosshair-pulse 2s ease-in-out infinite; }
@keyframes pg2-graph-dot {
  0%,100% { opacity:1; transform:translateY(0); }
  50%      { opacity:0.5; transform:translateY(-4px); }
}
@keyframes pg2-graph-line-draw {
  0%,100% { stroke-dashoffset: 0; }
  50%      { stroke-dashoffset: -8; }
}
.pg2-anim-gdot1 { animation: pg2-graph-dot 2s ease-in-out infinite 0s; }
.pg2-anim-gdot2 { animation: pg2-graph-dot 2s ease-in-out infinite 0.5s; }
.pg2-anim-gdot3 { animation: pg2-graph-dot 2s ease-in-out infinite 1s; }
.pg2-anim-gline { animation: pg2-graph-line-draw 3s ease-in-out infinite; stroke-dasharray: 8 4; }

.pg2-icon{
  width:46px;height:46px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(212,168,67,.08);
  border-radius:12px;
  color:#d4a843;
  flex-shrink:0;
  position:relative;z-index:1;
}
.pg2-name{font-family:'Unbounded',sans-serif;font-size:15px;font-weight:600;line-height:1.3;position:relative;z-index:1;color:#fff;}
.pg2-desc{font-size:13px;color:rgba(255,255,255,0.60);line-height:1.6;flex:1;position:relative;z-index:1;}
.pg2-price{font-family:'Unbounded',sans-serif;font-size:13px;color:#d4a843;margin-top:auto;position:relative;z-index:1;}

.pg2-c-landing{
  border-color:rgba(212,168,67,.18);
  background:linear-gradient(145deg, #1a1710 0%, #141414 60%);
  justify-content:flex-end;
}
.pg2-c-landing .pg2-name{ font-size:19px; }
.pg2-c-landing .pg2-desc{ font-size:13px; flex:0; }
.pg2-c-landing .pg2-icon{ width:54px;height:54px;border-radius:14px;background:rgba(212,168,67,.12);margin-bottom:4px; }
.pg2-c-landing:hover{ border-color:rgba(212,168,67,.45);box-shadow:0 12px 48px rgba(0,0,0,.6), 0 0 32px rgba(212,168,67,.12); }

.pg2-c-widget{ flex-direction:row;align-items:center;gap:28px;padding:22px 32px; }
.pg2-c-widget .pg2-info{ display:flex;flex-direction:column;gap:10px;flex:1; }
.pg2-c-widget .pg2-price{ margin-top:0;font-size:14px;white-space:nowrap; }

.pg2-c-ads{ flex-direction:row;align-items:center;gap:16px;padding:18px 24px; }
.pg2-c-ads .pg2-info{ display:flex;flex-direction:column;gap:6px;flex:1; }
.pg2-c-ads .pg2-name{ font-size:13px; }
.pg2-c-ads .pg2-desc{ font-size:12px;flex:0; }
.pg2-c-ads .pg2-price{ margin-top:0;font-size:12px; }
.pg2-c-ads .pg2-icon{ width:40px;height:40px;border-radius:10px;flex-shrink:0; }

.pg2-c-site .pg2-name{ font-size:14px; }
.pg2-c-site .pg2-desc{ font-size:12px; }

.pg2-c-seo{ flex-direction:row;align-items:center;gap:22px;padding:18px 28px; }
.pg2-c-seo .pg2-info{ display:flex;flex-direction:column;gap:6px;flex:1; }
.pg2-c-seo .pg2-name{ font-size:13px; }
.pg2-c-seo .pg2-desc{ font-size:12px;flex:0; }
.pg2-c-seo .pg2-price{ margin-top:0;font-size:12px; }

.pg2-diamond{
  width:40px;height:40px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:rgba(212,168,67,.08);
  border:1px solid rgba(212,168,67,.25);
  transform:rotate(45deg);
  border-radius:6px;
  color:#d4a843;
  position:relative;z-index:1;
}
.pg2-diamond svg{ transform:rotate(-45deg); }

.pg2-c-bots .pg2-desc,.pg2-c-site .pg2-desc{
  font-size:12px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}

@media (max-width: 768px) {
  .pg2-grid{
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .pg2-c-landing,.pg2-c-widget,.pg2-c-site,.pg2-c-bots,.pg2-c-ads,.pg2-c-seo{
    grid-column: 1 !important;
    grid-row: auto !important;
    height: auto !important;
    min-height: 160px;
  }
  .pg2-c-widget,.pg2-c-ads,.pg2-c-seo{ flex-direction:column; }
  .pg2-c-widget .pg2-price{ white-space:normal; }
  .pg2-c-landing{ justify-content:flex-start; }
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 48px);
  max-width: 600px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  flex: 1;
}
.cookie-banner p a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-btn {
  flex-shrink: 0;
  background: #ffffff;
  color: #0f0f0f;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 16px; }
}
}
