/* ═══════════════════════════════════════════════════════════
   Видеаль Медиа — Landing Page
   Style: superglazka.ru light / playful / gradient
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --orange: #F05D17;
  --dark: #1B1B1B;
  --light-gray: #F3F3F3;
  --accent-gradient: linear-gradient(135deg, #F05D17, #ff8e53);
  --btn-gradient: linear-gradient(135deg, #F05D17, #ff8e53);
  --hero-gradient: linear-gradient(180deg, #F3F3F3 0%, #ffffff 40%, #F3F3F3 100%);
  --bg-page: #ffffff;
  --bg-soft: #F3F3F3;
  --bg-card: #ffffff;
  --text-primary: #1B1B1B;
  --text-secondary: #555555;
  --text-muted: #888888;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 12px rgba(27, 27, 27, 0.06);
  --shadow-md: 0 8px 30px rgba(27, 27, 27, 0.10);
  --shadow-lg: 0 20px 60px rgba(27, 27, 27, 0.12);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

/* ─── UTILITIES ─── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── DECORATIONS ─── */
.deco {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.deco-1 {
  width: 300px; height: 300px;
  background: #F05D17;
  top: -80px; right: -80px;
  animation: float 8s ease-in-out infinite;
}
.deco-2 {
  width: 240px; height: 240px;
  background: #1B1B1B;
  bottom: 10%; left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}
.deco-3 {
  width: 180px; height: 180px;
  background: #F3F3F3;
  top: 40%; right: 5%;
  animation: float 9s ease-in-out infinite 1s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ─── MORPHING BACKGROUND BLOBS ─── */
.morph {
  position: fixed;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(80px);
  opacity: .06;
  pointer-events: none;
  z-index: 0;
  animation: morphShape 15s ease-in-out infinite;
}
.morph-1 {
  width: 400px; height: 400px;
  background: #F05D17;
  top: 10%; left: -5%;
  animation-duration: 18s;
}
.morph-2 {
  width: 300px; height: 300px;
  background: #1B1B1B;
  bottom: 15%; right: -5%;
  animation-duration: 22s;
  animation-delay: -5s;
}
.morph-3 {
  width: 250px; height: 250px;
  background: #F05D17;
  top: 50%; left: 45%;
  animation-duration: 20s;
  animation-delay: -10s;
}
@keyframes morphShape {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0, 0) rotate(0deg); }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(20px, -30px) rotate(5deg); }
  50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; transform: translate(-10px, 20px) rotate(-3deg); }
  75% { border-radius: 40% 30% 60% 50% / 60% 50% 30% 40%; transform: translate(15px, 10px) rotate(2deg); }
}

/* ─── RISING ORBS ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  background: rgba(240, 93, 23, 0.04);
  pointer-events: none;
  z-index: 0;
  animation: rise 25s linear infinite;
}
.orb-1 { width: 8px; height: 8px; left: 10%; bottom: -10px; animation-duration: 22s; animation-delay: 0s; }
.orb-2 { width: 6px; height: 6px; left: 25%; bottom: -10px; animation-duration: 28s; animation-delay: -8s; }
.orb-3 { width: 10px; height: 10px; left: 50%; bottom: -10px; animation-duration: 20s; animation-delay: -4s; }
.orb-4 { width: 5px; height: 5px; left: 70%; bottom: -10px; animation-duration: 26s; animation-delay: -12s; }
.orb-5 { width: 7px; height: 7px; left: 85%; bottom: -10px; animation-duration: 24s; animation-delay: -6s; }
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: .5; }
  90% { opacity: .3; }
  100% { transform: translateY(-110vh) scale(.6); opacity: 0; }
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all .35s var(--ease-smooth);
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Comfortaa', cursive;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}
.logo-icon-img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.15s;
}
.logo-text-img {
  height: 24px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 24px;
  cursor: pointer;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  background: var(--hero-gradient);
}
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .55;
}
.blob-1 {
  width: 400px; height: 400px;
  background: #F05D17;
  top: -100px; left: -100px;
  animation: blobMove 12s ease-in-out infinite;
}
.blob-2 {
  width: 350px; height: 350px;
  background: #1B1B1B;
  bottom: -80px; right: -80px;
  animation: blobMove 14s ease-in-out infinite reverse;
}
.blob-3 {
  width: 200px; height: 200px;
  background: #F3F3F3;
  top: 30%; left: 40%;
  animation: blobMove 10s ease-in-out infinite 2s;
}
@keyframes blobMove {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.1); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-title {
  margin-bottom: 16px;
  line-height: 1;
}
.hero-logo-icon {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto;
  will-change: transform, opacity;
}
.hero-subtitle {
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 600;
}
.hero-actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-image {
  position: absolute;
  right: 5%;
  bottom: 0;
  z-index: 1;
  max-width: 420px;
  width: 35vw;
  pointer-events: none;
  animation: fadeInUp 1s var(--ease-smooth) .3s both;
}
.hero-image img {
  width: 100%;
  object-fit: contain;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all .25s var(--ease-spring);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,94,138,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(255,94,138,0.45);
}
.btn-secondary {
  background: rgba(255,255,255,0.65);
  color: var(--dark);
  border: 1px solid rgba(27,27,27,0.08);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-3px);
}

/* ─── SECTIONS ─── */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.section-soft {
  background: var(--bg-soft);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(240, 93, 23, 0.12);
  border: 1px solid rgba(240, 93, 23, 0.25);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Comfortaa', cursive;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--dark);
}

/* ─── ABOUT ─── */
.about-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.about-visual {
  display: grid;
  place-items: center;
}
.about-visual img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(27,27,27,0.12));
}
.about-video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--dark);
}
.about-text p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 14px;
}
.about-text strong { color: var(--dark); }
.about-meta {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-num {
  font-family: 'Comfortaa', cursive;
  font-size: 28px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.meta-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}
.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ─── TECH ─── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tech-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.tech-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--orange);
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-tag {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(27,27,27,0.12);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  transition: all .2s;
}
.tech-tag:hover {
  background: rgba(240,93,23,0.15);
  border-color: rgba(240,93,23,0.3);
}

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(27,27,27,0.6);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.project-media-img,
.project-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-info {
  padding: 24px;
}
.project-info h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}
.project-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ─── CONTACTS ─── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--orange);
}
.requisites div, .address-list div { margin-bottom: 14px; }
.requisites dt, .address-list dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.requisites dd, .address-list dd {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.45;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-list a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: color .2s;
}
.contact-list a:hover { color: var(--orange); }

/* ─── FOOTER ─── */
.footer {
  padding: 32px 0;
  text-align: center;
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.footer-content p {
  margin: 6px 0;
}
.footer-content a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-content a:hover {
  color: #fff;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
  .about-box { grid-template-columns: 1fr; text-align: center; }
  .about-meta { justify-content: center; }
  .contacts-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px; left: 12px; right: 12px;
    flex-direction: column;
    gap: 6px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(27,27,27,0.06);
    border-radius: 20px;
    padding: 12px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; width: 100%; border-radius: 12px; color: var(--dark); }
  .nav-links a:hover { background: var(--bg-soft); }
  .nav-toggle { display: block; }
  .hero { padding: 120px 20px 60px; min-height: auto; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .about-box { padding: 28px; border-radius: var(--radius-md); }
}
