/* ========================= DESIGN SYSTEM ========================= */
:root {
  --bg: #090d12;
  --surface: #101722;
  --surface-2: #161f2c;
  --text: #ffffff;
  --text-secondary: #9ba8b8;
  --accent: #ff9f43;
  --accent-hover: #ffb86c;
  --border: rgba(255, 255, 255, 0.08);
  --container: 1280px;
  --radius: 24px;
  --radius-lg: 36px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}
.container {
  width: min(100% - 40px, var(--container));
  margin: auto;
} /* ========================= TYPOGRAPHY ========================= */
.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-head span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
} /* ========================= BUTTONS ========================= */

.btn-primary,
.btn-primary-last,
.portfolio-link {
  height: 58px;
  padding: 0 32px;
  background: linear-gradient(135deg, var(--accent), #ff7f11);
  color: white;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary-last:hover,
.portfolio-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255, 159, 67, 0.35);
}
.btn-secondary {
  height: 58px;
  padding: 0 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: white;
  font-weight: 600;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: white;
  color: black;
}
.portfolio-link {
  display: block;
  margin-top: 28px;
  text-align: center;
  align-content: center;
  margin-inline: auto;
  max-width: 280px;
}
section {
  padding: 110px 0;
}
@media (max-width: 768px) {
  section {
    padding: 30px 0;
  }
} /* ========================= HEADER ========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: 0.3s;
}
.header.scrolled {
  background: rgba(10, 14, 19, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 140px;
}
.logo span {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 38px;
}
.nav a {
  color: var(--text-secondary);
  transition: 0.3s;
  font-weight: 500;
}
.nav a:hover {
  color: white;
}
.header-btn {
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: white;
  font-weight: 700;
} /* ========================= MOBILE ========================= */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 10px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: #111923;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: 0.4s;
  z-index: 999;
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu button {
  height: 55px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  margin-top: 20px;
} /* ========================= HERO ========================= */ /* HERO BANNER */
.hero {
  height: 100vh;
  position: relative;
}
.hero-swiper,
.hero-slide {
  height: 100%;
}
.hero-slide {
  position: relative;
  overflow: hidden;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
}
.hero-banner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}
.hero-banner h1 {
  font-size: clamp(1rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 900;
}
@media (max-width: 600px) {
  .hero {
    .container {
      margin: 30px auto 0px;
    }
  }
  .hero-banner h1 {
    font-weight: 700;
  }
}
.hero-banner h1 span {
  color: var(--accent);
  display: block;
}
.hero-banner p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}
.hero-swiper .swiper-pagination {
  bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
} /* ========================= SERVICES ========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 159, 67, 0.08), transparent);
  opacity: 0;
  transition: 0.4s;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 159, 67, 0.3);
}
.service-card:hover::before {
  opacity: 1;
}
.icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 159, 67, 0.12);
  margin-bottom: 24px;
}
.icon i {
  font-size: 28px;
  color: var(--accent);
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-secondary);
} /* ========================= PORTFOLIO ========================= */ /* ========================= PORTFOLIO (FIXED VERSION) ========================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 159, 67, 0.3);
} /* IMAGE WRAPPER (главное исправление) */
.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-item:hover img {
  transform: scale(1.05);
} /* CONTENT */
.portfolio-info {
  padding: 22px 22px 26px;
}
.portfolio-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.portfolio-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
} /* ========================= TABS FIX ========================= */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.25s;
  font-weight: 600;
}
.tab-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.tab-btn:hover {
  border-color: rgba(255, 159, 67, 0.5);
  color: #fff;
} /* ========================= FILTER ANIMATION (SAFE) ========================= */
.portfolio-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.portfolio-item.hide {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute; /* ключ к устранению "скачков" */
} /* ========================= RESPONSIVE FIX ========================= */
@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
} /* ========================= PRICING ========================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 45px;
  border-radius: 36px;
  position: relative;
  transition: 0.4s;
}
.price-card:hover {
  transform: translateY(-10px);
}
.price-card.featured {
  border-color: rgba(255, 159, 67, 0.35);
  background: linear-gradient(180deg, rgba(255, 159, 67, 0.08), var(--surface));
}
.popular {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.price-label {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
}
.price-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.price {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 30px;
}
.price span {
  font-size: 1rem;
  color: var(--text-secondary);
}
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.price-card li {
  color: var(--text-secondary);
}
.price-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--accent);
} /* ========================= PROCESS ========================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 35px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.7s ease;
}
.step.show-step {
  opacity: 1;
  transform: translateY(0);
}
.step:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 159, 67, 0.4);
}
.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: rgba(255, 159, 67, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon i {
  font-size: 30px;
  color: var(--accent);
}
.step h3 {
  margin-bottom: 12px;
}
.step p {
  color: var(--text-secondary);
} /* ========================= REVIEWS ========================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review {
  background: var(--surface);
  padding: 32px;
  border-radius: 30px;
  border: 1px solid var(--border);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.review-top img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.review-top h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.review-top span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.review p {
  color: var(--text-secondary);
} /* ========================= REVIEWS SLIDER ========================= */ /* ========================= PREMIUM REVIEWS SLIDER ========================= */
.reviews-slider {
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  cursor: grab;
}
.reviews-slider:active {
  cursor: grabbing;
}
.reviews-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  padding: 20px 0;
} /* CARD */
.review-card {
  min-width: 360px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 30px;
  backdrop-filter: blur(18px);
  transition: 0.5s ease;
  opacity: 0.5;
  transform: scale(0.92);
}
.review-card.active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(255, 159, 67, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
} /* TOP */
.review-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.review-top img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.review-top h4 {
  font-size: 1rem;
}
.review-top span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.review-card p {
  color: var(--text-secondary);
  line-height: 1.6;
} /* depth effect */
.review-card:not(.active) {
  filter: blur(0.3px);
} /* RESPONSIVE */
@media (max-width: 900px) {
  .review-card {
    min-width: 300px;
  }
}
@media (max-width: 600px) {
  .review-card {
    min-width: 100%;
  }
} /* ========================= REVIEWS SWIPER ========================= */
.reviews-swiper {
  margin-top: 60px;
  padding-bottom: 60px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  height: 100%;
  transition: 0.3s ease;
}
.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 159, 67, 0.4);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-top img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.review-top h4 {
  font-size: 1rem;
}
.review-top span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.review-card p {
  color: var(--text-secondary);
  line-height: 1.6;
} /* SWIPER CONTROLS */
.swiper-button-prev,
.swiper-button-next {
  color: var(--accent);
}
.swiper-pagination-bullet {
  background: var(--text-secondary);
  opacity: 0.4;
}
.swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
}
.swiper-slide {
  height: auto;
  display: flex;
}
.review-card {
  width: 100%;
  height: 100%;
} /* ========================= CTA ========================= */
.cta-box {
  background: linear-gradient(135deg, #111923, #18212e);
  border: 1px solid var(--border);
  padding: 70px;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}
.cta-box h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 650px;
}
.cta-box p {
  color: var(--text-secondary);
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 420px;
}
.cta-form input {
  height: 58px;
  padding: 0 20px;
  border-radius: 16px;
  background: #0e141d;
  border: 1px solid var(--border);
  color: white;
  font-size: 1rem;
}
.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
} /* ========================= FOOTER ========================= */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer p {
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 350px;
}
.footer h4 {
  margin-bottom: 20px;
}
.footer a {
  display: block;
  margin-bottom: 12px;
  color: var(--text-secondary);
  transition: 0.3s;
}
.footer a:hover {
  color: white;
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  text-align: center;
} /* ========================= RESPONSIVE ========================= */
@media (max-width: 1200px) {
  .hero-grid,
  .cta-box {
    grid-template-columns: 1fr;
    display: grid;
  }
  .services-grid,
  .pricing-grid,
  .portfolio-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .nav,
  .header-btn {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero {
    padding-top: 160px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual img {
    height: 500px;
  }
  .hero-stats {
    gap: 25px;
    flex-wrap: wrap;
  }
  .services-grid,
  .pricing-grid,
  .portfolio-grid,
  .reviews-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 40px;
  }
  .cta-box h2 {
    font-size: 2rem;
  }
  .cta-form {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .container {
    width: min(100% - 24px, var(--container));
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-actions {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    button,
    a {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  .hero-visual img {
    height: 420px;
  }
  .floating-card {
    display: none;
  }
  .section-head {
    margin-bottom: 50px;
  }
  .section-head h2 {
    font-size: 2rem;
  }
  .price {
    font-size: 2.3rem;
  }
  .step-number {
    font-size: 3rem;
  }
} /* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
}
.modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  width: min(520px, 90%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  z-index: 2;
  transform: translateY(20px);
  transition: 0.3s ease;
}
.modal.active .modal-content {
  transform: translateY(0);
}
.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0e141d;
  color: white;
  font-size: 1rem;
}
.modal-form textarea {
  min-height: 110px;
  resize: none;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  font-size: 28px;
  color: white;
  cursor: pointer;
}
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main {
  flex: 1 0 auto;
}
