:root {
  --bg: #f3f4f6;
  --bg-alt: #ffffff;
  --bg-soft: #f9fafb;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 25px 50px rgba(37, 99, 235, 0.15);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e5e7eb 0, #f3f4f6 45%, #f9fafb 100%);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.9));
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  animation: logoRotate 20s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
}

@keyframes logoRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-text {
  font-size: 16px;
  color: #111827;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #2563eb, #6366f1);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  font-size: 13px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.3);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
}

.btn:active {
  transform: translateY(0);
}

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.5), 0 0 0 10px rgba(37, 99, 235, 0.1);
  }
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #111827;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(249, 250, 251, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: #111827;
  box-shadow: none;
}

.btn-ghost:hover {
  background: #f3f4f6;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.1); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title-animate {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero h1 {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
}

.fade-in {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.fade-in-delay-3 {
  animation: fadeIn 0.8s ease-out 0.8s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: var(--accent-strong);
  transition: all 0.3s ease;
}

.badge-animate {
  animation: badgePop 0.6s ease-out both;
}

.badge-animate:nth-child(1) { animation-delay: 0.4s; }
.badge-animate:nth-child(2) { animation-delay: 0.5s; }
.badge-animate:nth-child(3) { animation-delay: 0.6s; }

@keyframes badgePop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  position: relative;
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.08), #ffffff);
  border-radius: 22px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  max-width: 320px;
  z-index: 2;
  transition: all 0.3s ease;
}

.card-float {
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.hero-card-header {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-card-body p {
  margin: 0 0 8px;
  font-size: 14px;
}

.hero-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-card-body li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 14px;
  transition: color 0.2s ease;
}

.hero-card-body li:hover {
  color: var(--accent-strong);
}

.hero-card-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #38bdf8, #6366f1);
  transition: transform 0.2s ease;
}

.hero-card-body li:hover::before {
  transform: scale(1.3);
}

.hero-glow {
  position: absolute;
  inset: 8px -40px -30px;
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.16), transparent 60%);
  filter: blur(12px);
  z-index: 1;
}

.glow-animate {
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.section {
  padding: 40px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.section-title {
  font-size: 24px;
  margin: 0 0 6px;
}

.slide-in {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.8s ease-out forwards;
}

.slide-in-delay {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.8s ease-out 0.2s forwards;
}

.slide-in-delay-2 {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.8s ease-out 0.4s forwards;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-subtitle {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 580px;
}

.section-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.3);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: inline-block;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.card-price {
  text-align: left;
}

.card-price .price {
  font-size: 22px;
  margin: 4px 0;
  color: var(--accent-strong);
  font-weight: 700;
  display: inline-block;
}

.price-animate {
  transition: all 0.3s ease;
}

.card-price .muted {
  font-size: 13px;
  color: var(--text-muted);
}

.card-price-featured {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.22);
  position: relative;
  transform: scale(1.05);
}

.card-price-featured::before {
  content: "Популярно";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.list li {
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
  transition: color 0.2s ease;
}

.list li:hover {
  color: var(--accent-strong);
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-size: 12px;
  top: 0;
  transition: transform 0.2s ease;
}

.list li:hover::before {
  transform: scale(1.5);
}

/* Portfolio - временно скрыт */
#portfolio {
  display: none;
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.portfolio-item {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.3);
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(37, 99, 235, 0.9);
  padding: 4px 10px;
  border-radius: 999px;
}

.portfolio-content {
  padding: 16px;
}

.portfolio-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}

.portfolio-content p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 500;
}

.process {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 10px;
}

.process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(209, 213, 219, 0.9);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.process-step:hover {
  padding-left: 8px;
}

.process-step:last-child {
  border-bottom: none;
}

.process-number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: radial-gradient(circle at 0 0, #38bdf8, #4f46e5);
  color: #f9fafb;
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.8);
  transition: all 0.3s ease;
}

.process-step:hover .process-number {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 0 6px rgba(191, 219, 254, 0.5);
}

.faq details {
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq details:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.faq summary {
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--accent-strong);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "›";
  float: right;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

details[open] summary::after {
  transform: rotate(-90deg);
}

details[open] {
  background: rgba(37, 99, 235, 0.03);
}

.faq p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  animation: fadeIn 0.3s ease;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.messenger-buttons {
  display: grid;
  gap: 12px;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc, #229ED9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #0077b5, #1e8bc3);
  box-shadow: 0 22px 40px rgba(0, 136, 204, 0.4);
}


.messenger-buttons .form-note {
  text-align: center;
  margin-top: 8px;
}

.form {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 10px;
  transition: all 0.3s ease;
}

.form-animate {
  animation: formSlideIn 0.8s ease-out 0.3s both;
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form:hover {
  box-shadow: var(--shadow-hover);
}

.form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.form input,
.form textarea {
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  transition: all 0.3s ease;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.5);
  background: #ffffff;
  transform: translateY(-2px);
}

.form-btn {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.section-contacts {
  border-top: 1px solid var(--border);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.contacts-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.contact-item {
  transition: all 0.3s ease;
  padding: 4px 0;
}

.contact-item:hover {
  transform: translateX(5px);
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.value {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.value:hover {
  color: var(--accent-strong);
  transform: translateX(3px);
}


.footer {
  border-top: 1px solid var(--border);
  background: #f9fafb;
  padding: 12px 0 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon-small {
  width: 24px;
  height: 24px;
  animation: logoRotate 20s linear infinite;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-strong);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    justify-content: flex-start;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .card-price-featured {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 40px;
  }
  .header-cta {
    display: none;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  .logo-text {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card,
  .process-step,
  .faq-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

