/* Variables */
:root {
  --color-bg: #0A0A0A;
  --color-bg-light: #FFFFFF;
  --color-accent: #E85A24;
  --color-text: #FFFFFF;
  --color-text-dark: #000000;
  --color-text-muted: #888888;
  --color-text-dim: #666666;
  --color-border: #222222;
  --font-primary: 'Sora', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-text {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--color-text);
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.btn-primary:hover {
  background-color: #ff6b35;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.btn-full {
  width: 100%;
  height: 56px;
  font-size: 13px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  height: 80px;
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-text);
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

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

/* Language Switch */
.lang-switch {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.mobile-lang {
  margin-bottom: 20px;
  padding: 12px 24px;
  font-size: 14px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--color-accent);
}

.mobile-nav-btn {
  margin-top: 20px;
  padding: 18px 40px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 80px;
  min-height: 700px;
  background-color: rgba(0, 0, 0, 0.7);
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.hero-title {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 0.95;
  color: var(--color-text);
}

.hero-desc {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-cta .btn {
  padding: 18px 36px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-text-dim);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

.hero-video-container {
  position: relative;
  width: 600px;
  height: 520px;
  flex-shrink: 0;
  margin-left: -100px;
}

.hero-video-diagonal {
  position: absolute;
  width: 400px;
  height: 580px;
  overflow: hidden;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  top: -30px;
  left: -80px;
}

.hero-video-diagonal.second {
  left: 200px;
  top: -60px;
  height: 620px;
  z-index: 1;
}

.hero-video-diagonal video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-diagonal::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-accent);
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  pointer-events: none;
}

.hero-logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 364px;
  height: 364px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(232, 90, 36, 0.6);
  border: 3px solid var(--color-accent);
  z-index: 10;
}

.hero-logo-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Marquee */
.marquee {
  background-color: var(--color-accent);
  height: 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

.marquee-content span {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--color-text-dark);
}

.marquee-content .dot {
  font-size: 24px;
  opacity: 0.4;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stats */
.stats {
  display: flex;
  padding: 0 80px;
  height: 180px;
  border: 1px solid var(--color-border);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 40px 48px;
  border-right: 1px solid var(--color-border);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-size: 72px;
  font-weight: 800;
  color: var(--color-text);
}

.stat-value.accent {
  color: var(--color-accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text-dim);
}

/* Section Styles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section-header.centered .section-title-block {
  align-items: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-text-dim);
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
}

.section-title.dark {
  color: var(--color-text);
}

.accent-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

.section-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.section-link:hover {
  color: var(--color-accent);
}

/* Portfolio */
.portfolio {
  background: linear-gradient(180deg, #0A0A0A 0%, #0f0f0f 40%, #0A0A0A 100%);
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-grid {
  display: flex;
  gap: 20px;
  height: 600px;
}

.portfolio-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-col.col-1 { width: 400px; }
.portfolio-col.col-2 { flex: 1; }
.portfolio-col.col-3 { width: 350px; }
.portfolio-col.col-4 { width: 300px; }

.portfolio-item {
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(232, 90, 36, 0.3);
}

/* Services */
.services {
  background: linear-gradient(180deg, #0A0A0A 0%, #0f0f0f 40%, #0A0A0A 100%);
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.services-grid {
  display: flex;
  gap: 24px;
}

.service-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid #333;
  background-color: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.service-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #444;
  transform: translateY(-4px);
}

.service-card.filled {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.service-card.filled:hover {
  background-color: #ff6b35;
}

.service-icon {
  width: 32px;
  height: 32px;
  color: var(--color-text);
}

.service-card.filled .service-icon {
  color: var(--color-text-dark);
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}

.service-card.filled .service-title {
  color: var(--color-text-dark);
}

.service-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.service-card.filled .service-desc {
  color: rgba(0, 0, 0, 0.7);
}

/* About */
.about {
  background: linear-gradient(180deg, #0A0A0A 0%, #0f0f0f 40%, #0A0A0A 100%);
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-content {
  display: flex;
  gap: 48px;
}

.about-image {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-name h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.about-name span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-accent);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.about-desc {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #AAAAAA;
}

.about-highlight {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

/* Reviews */
.reviews {
  background: linear-gradient(180deg, #0A0A0A 0%, #0f0f0f 40%, #0A0A0A 100%);
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.reviews-grid {
  display: flex;
  gap: 20px;
}

.review-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid #333;
  background-color: rgba(255, 255, 255, 0.03);
}

.review-card.filled {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.review-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.review-card.filled .review-text {
  color: var(--color-text-dark);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.review-avatar.light {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.review-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.review-card.filled .review-name {
  color: var(--color-text-dark);
}

.review-date {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.review-card.filled .review-date {
  color: rgba(0, 0, 0, 0.6);
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 80px;
  background: linear-gradient(180deg, #0A0A0A 0%, #0f0f0f 40%, #0A0A0A 100%);
}

.cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.cta-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}

.cta-desc {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.cta-form {
  width: 400px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.form-group input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid #444;
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
  color: var(--color-text-dim);
}

/* Footer */
.footer {
  background-color: var(--color-bg);
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  border-top: 1px solid var(--color-border);
}

.footer-main {
  display: flex;
  justify-content: space-between;
}

.footer-brand {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-text);
}

.footer-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-dim);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  transition: all 0.3s ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer-col a,
.footer-col span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-dim);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom span,
.footer-bottom a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-dim);
}

.footer-bottom a:hover {
  color: var(--color-text);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: #0A0A0A;
  border: 1px solid #333;
  padding: 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #ff6b35;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #444;
  color: var(--color-text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.modal-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 32px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.modal-item {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(232, 90, 36, 0.3);
  z-index: 1;
}

.privacy-text {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

.privacy-text h3 {
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.privacy-text p {
  margin-bottom: 12px;
}

.privacy-text a {
  color: var(--color-accent);
  transition: opacity 0.3s ease;
}

.privacy-text a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-content {
    padding: 20px;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .hero {
    flex-direction: column-reverse;
    padding: 60px 40px;
    min-height: auto;
  }

  .hero-content {
    z-index: 2;
  }

  .hero-video-container {
    width: 100%;
    height: 350px;
    margin-left: 0;
  }

  .hero-video-diagonal {
    width: 200px;
    height: 300px;
  }

  .hero-video-diagonal.second {
    left: 150px;
    height: 320px;
  }

  .hero-logo-overlay {
    width: 120px;
    height: 120px;
    right: 20px;
    bottom: 0;
  }

  /* Логотип меньше и правее на планшетах */
  .hero-logo-center {
    width: 280px;
    height: 280px;
    right: 5%;
    left: auto;
    transform: translateY(-50%);
  }

  .hero-title {
    font-size: 56px;
  }

  .portfolio-grid {
    flex-wrap: wrap;
    height: auto;
  }

  .portfolio-col {
    width: calc(50% - 10px) !important;
    flex: none !important;
  }

  .stats {
    flex-wrap: wrap;
    height: auto;
  }

  .stat {
    width: 50%;
    border-bottom: 1px solid var(--color-border);
  }

  .stat:nth-child(2n) {
    border-right: none;
  }

  .cta {
    flex-direction: column;
  }

  .cta-form {
    width: 100%;
  }
}

/* Tablet - скрываем центральный логотип */
@media (max-width: 1000px) {
  .hero-logo-center {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
    height: 70px;
  }

  .nav {
    display: none;
  }

  /* Mobile menu button */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
  }

  .mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
  }

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

  .hero-content {
    gap: 24px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 16px 24px;
  }

  .hero-video-container {
    width: 100%;
    height: 280px;
    margin: 0 auto;
  }

  .hero-video-diagonal {
    width: 180px;
    height: 260px;
    left: 10%;
    top: 0;
  }

  .hero-video-diagonal.second {
    left: 45%;
    height: 280px;
  }

  .hero-logo-center {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    left: auto;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-indicator span {
    font-size: 9px;
  }

  /* Marquee */
  .marquee {
    height: 50px;
  }

  .marquee-content span {
    font-size: 14px;
    letter-spacing: 2px;
  }

  /* Stats */
  .stats {
    flex-direction: column;
    padding: 0 20px;
  }

  .stat {
    width: 100%;
    border-right: none;
    padding: 24px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .stat-value {
    font-size: 48px;
  }

  .stat-label {
    text-align: center;
  }

  /* Sections */
  .portfolio, .services, .about, .reviews, .cta, .footer {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Portfolio */
  .portfolio-grid {
    flex-direction: column;
    height: auto;
  }

  .portfolio-col {
    width: 100% !important;
    flex-direction: row !important;
  }

  .portfolio-item {
    height: 200px !important;
    flex: 1;
  }

  /* Services */
  .services-grid {
    flex-direction: column;
    gap: 16px;
  }

  .service-card {
    padding: 24px;
  }

  .service-title {
    font-size: 18px;
  }

  /* About */
  .about-content {
    flex-direction: column;
    gap: 32px;
  }

  .about-image {
    width: 100%;
  }

  .about-image img {
    height: 400px;
  }

  .about-desc {
    font-size: 14px;
  }

  /* Reviews */
  .reviews-grid {
    flex-direction: column;
    gap: 16px;
  }

  .review-card {
    padding: 24px;
  }

  .review-text {
    font-size: 14px;
  }

  /* CTA */
  .cta {
    gap: 40px;
  }

  .cta-title {
    font-size: 36px;
  }

  .cta-form {
    width: 100%;
    padding: 24px;
  }

  /* Footer */
  .footer {
    padding: 40px 20px 30px;
  }

  .footer-main {
    flex-direction: column;
    gap: 24px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-col {
    min-width: auto;
  }

  .footer-col h4 {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    margin-top: 24px;
  }

  /* Modal */
  .modal-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

/* iPhone SE, small phones */
@media (max-width: 375px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-video-container {
    height: 220px;
  }

  .hero-video-diagonal {
    width: 140px;
    height: 200px;
  }

  .hero-video-diagonal.second {
    height: 220px;
  }

  .hero-logo-center {
    width: 160px;
    height: 160px;
  }

  .stat-value {
    font-size: 36px;
  }

  .section-title {
    font-size: 26px;
  }

  .cta-title {
    font-size: 28px;
  }
}

/* Safe area for iPhone X+ */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(60px, calc(60px + env(safe-area-inset-bottom)));
  }
}
