:root {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --accent-primary: #00ff88;
  --accent-secondary: #00ccff;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --border-color: #2a2a2a;
  --gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --matrix-color: #00ff00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none !important;
}

*:active {
  outline: none !important;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  position: relative;
}

/* Text selection styles */
::selection {
  background-color: var(--text-secondary);
  color: var(--bg-primary);
}

::-moz-selection {
  background-color: var(--text-secondary);
  color: var(--bg-primary);
}

/* Matrix Background */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.matrix-column {
  position: absolute;
  top: -100%;
  font-family: "Courier New", monospace;
  font-size: 18px;
  color: var(--matrix-color);
  text-shadow: 0 0 5px var(--matrix-color), 0 0 10px var(--matrix-color), 0 0 15px var(--matrix-color);
  line-height: 1;
  animation: matrix-fall linear infinite;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.matrix-character {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.matrix-character.fade {
  opacity: 0.2;
}

.matrix-character.bright {
  opacity: 1;
  text-shadow: 0 0 10px var(--matrix-color), 0 0 20px var(--matrix-color), 0 0 30px var(--matrix-color);
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100vh);
  }
}

.matrix-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.7) 80%, rgba(0, 0, 0, 0.9) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.header * {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

.header a:focus,
.header a:active,
.header a:focus-visible,
.header button:focus,
.header button:active,
.header button:focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent !important;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-container a,
.header-container button {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  -webkit-focus-ring-color: transparent !important;
  box-shadow: none !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.header-container a:focus,
.header-container a:active,
.header-container a:focus-visible,
.header-container button:focus,
.header-container button:active,
.header-container button:focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent !important;
  border: none !important;
}

.header-container * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.logo:focus,
.logo:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.logo::before {
  content: "//";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  border: 2px solid var(--accent-primary);
  border-radius: 2px;
  background: rgba(0, 255, 136, 0.1);
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-bottom: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-links li {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.nav-links li a {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

.nav-links li a:focus,
.nav-links li a:active,
.nav-links li a:focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.nav-link,
a.nav-link,
.header .nav-link,
.header-container .nav-link {
  color: var(--text-secondary);
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-focus-ring-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  background-color: transparent !important;
}

.nav-link:link,
.nav-link:visited,
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:active,
a.nav-link:link,
a.nav-link:visited,
a.nav-link:focus,
a.nav-link:focus-visible,
a.nav-link:active,
.header .nav-link:link,
.header .nav-link:visited,
.header .nav-link:focus,
.header .nav-link:focus-visible,
.header .nav-link:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent !important;
  border: none !important;
  background-color: transparent !important;
  text-decoration: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.nav-link:hover {
  color: var(--text-primary);
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #fff;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
}

.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.header-btn:focus,
.header-btn:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.header-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
  width: 40px;
  height: 40px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:focus,
.mobile-menu-btn:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
  color: var(--accent-primary);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.mobile-menu-btn .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
}

.mobile-menu-btn[aria-expanded="true"] .menu-icon {
  transform: rotate(90deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-primary);
  background: rgba(0, 123, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.2);
  transform: translateX(5px);
}

.mobile-menu-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Floating Buttons */
.feedback-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  color: var(--bg-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
  z-index: 1000;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  color: var(--bg-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.feedback-btn:hover,
.scroll-to-top:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 255, 136, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding-top: 70px;
}

.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
  margin-left: calc(32px + 0.75rem + 15ch);
  margin-right: calc(32px + 0.75rem + 15ch);
  padding-left: 0;
  padding-right: 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  flex: 1;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
}

.btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  box-sizing: border-box;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.05);
}

/* Sections */
section {
  padding: 80px 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Directions Grid */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.direction-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.direction-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.direction-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.direction-card:hover::before {
  opacity: 1;
}

.direction-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.direction-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.direction-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-category {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.service-category:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.service-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.service-category h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient);
}

.service-list {
  list-style: none;
}

.service-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  position: relative;
  padding-left: 0;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.service-list li:hover {
  color: var(--text-primary);
}

.service-list li:last-child {
  border-bottom: none;
}

/* Why Us Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.why-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.why-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Process */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 150px;
  margin-bottom: 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  border-color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.05);
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.process-step p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.case-image {
  height: 200px;
  background: var(--gradient);
  opacity: 0.1;
  position: relative;
}

.case-image.has-image {
  opacity: 1 !important;
  background-color: var(--bg-secondary);
}

.case-content {
  padding: 1.5rem;
}

.case-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.case-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

.case-view-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.case-view-pdf i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.case-view-pdf:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.case-card.clickable {
  cursor: pointer;
}

.case-card.clickable:hover .case-view-pdf {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* CTA */
.cta-section {
  text-align: center;
  background: var(--bg-card);
  padding: 3rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-section > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.cta-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  appearance: none;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
  max-width: 1000px;
  margin-left: auto;
}

.footer-section {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-contacts {
  margin-left: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  height: 44px;
  display: flex;
  align-items: center;
  line-height: 1;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  color: var(--text-primary);
}

.footer-logo::before {
  content: "//";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  border: 2px solid #ffffff;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* NEW: Стили для системы заказов */
.cases-section {
  background: var(--bg-secondary);
}

.cases-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.case-card-new {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.case-card-new:hover::before {
  transform: scaleX(1);
}

.case-card-new:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.case-card-new h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 1rem 0;
}

.case-features {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.case-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.case-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Конструктор */
.calculator-section {
  background: var(--bg-primary);
}

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
}

.calculator-steps {
  display: flex;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.calculator-step {
  flex: 1;
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  position: relative;
  font-weight: 500;
}

.calculator-step.active {
  color: var(--accent-primary);
}

.calculator-step.active::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--accent-primary);
}

.calculator-content {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  min-height: 400px;
}

.services-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-category-checklist {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.service-category-checklist h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.service-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-option:last-child {
  border-bottom: none;
}

.service-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-price {
  color: var(--accent-primary);
  font-weight: 600;
}

.calculator-total {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--accent-primary);
  text-align: center;
  margin-top: 2rem;
}

.total-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 1rem 0;
}

/* Форма брифа */
.brief-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Договор */
.contract-container {
  background: white;
  color: #000;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.contract-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contract-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contract-btn.primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.contract-btn.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.contract-btn:hover {
  transform: translateY(-2px);
}

/* Старый alert для конструктора (с кнопками) - справа вверху */
.thank-you-section-old {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 420px;
  min-width: 320px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 255, 136, 0.1);
  border: 2px solid var(--accent-primary);
  padding: 0;
  transform: translateX(500px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
}

.thank-you-section-old.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.thank-you-content-old {
  padding: 1.5rem;
  position: relative;
}

.thank-you-close-old {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.thank-you-close-old:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.success-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  text-align: center;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.thank-you-content-old h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-align: center;
}

.thank-you-content-old p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.thank-you-buttons {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.thank-you-buttons .btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Зеленый Alert для формы CTA - справа сверху */
.cta-alert-section {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: translateY(-100px);
  z-index: 10000;
  max-width: 400px;
  width: auto;
  min-width: 300px;
  background: #00ff88;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.2);
  padding: 1.5rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-alert-section.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cta-alert-content {
  position: relative;
  text-align: center;
}

.cta-alert-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  font-size: 1.25rem;
  color: #000;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-weight: bold;
}

.cta-alert-close:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.cta-alert-content p {
  font-size: 1.1rem;
  color: #000;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
  text-align: center;
}

/* Затемнение фона при показе alert */
.thank-you-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.thank-you-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cta-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.cta-alert-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .thank-you-section-old {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
  }

  .cta-alert-section {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
    width: calc(100% - 20px);
    padding: 1.25rem 1.5rem;
  }

  .cta-alert-content p {
    font-size: 1rem;
  }
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  transition: width 0.3s ease;
  width: 0%;
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 60px;
    padding: 0 15px;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .header-btn {
    display: none;
  }

  .hero {
    padding-top: 60px;
    min-height: 80vh;
  }

  .hero-content {
    margin-left: 0;
    padding-left: 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    min-width: auto;
    width: 100%;
  }

  section {
    padding: 60px 0;
  }

  .process-steps {
    flex-direction: column;
    gap: 2rem;
  }

  .process-steps::before {
    display: none;
  }

  .matrix-column {
    font-size: 14px;
  }

  .feedback-btn,
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 15px;
    font-size: 1.1rem;
  }

  .feedback-btn {
    left: 15px;
  }

  .scroll-to-top {
    right: 15px;
    left: auto;
  }

  /* NEW: Responsive для системы заказов */
  .cases-grid-new {
    grid-template-columns: 1fr;
  }

  .calculator-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .calculator-step.active::after {
    display: none;
  }

  .services-checklist {
    grid-template-columns: 1fr;
  }

  .contract-actions {
    flex-direction: column;
  }

  .contract-btn {
    width: 100%;
    justify-content: center;
  }

  .scroll-to-top.duplicate {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 55px;
    padding: 0 10px;
  }

  .logo {
    font-size: 1.3rem;
    gap: 0.5rem;
  }

  .logo::before {
    width: 28px;
    height: 38px;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 55px;
  }

  .container {
    padding: 0 10px;
  }

  .direction-card,
  .service-category,
  .why-card {
    padding: 1.5rem 1rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-subtitle {
    margin-bottom: 2rem;
  }

  .cta-section {
    padding: 2rem 1rem;
  }

  footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-logo {
    gap: 0.5rem;
  }

  .footer-logo::before {
    width: 28px;
    height: 38px;
    font-size: 0.95rem;
  }

  .matrix-column {
    font-size: 12px;
  }

  /* NEW: Responsive Modal */
  .modal-content {
    padding: 1.5rem;
  }

  /* NEW: Responsive для системы заказов */
  .case-card-new,
  .service-category-checklist {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .directions-grid,
  .services-grid,
  .why-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  /* NEW: Responsive для системы заказов */
  .cases-grid-new {
    grid-template-columns: 1fr;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .direction-card:hover,
  .service-category:hover,
  .why-card:hover,
  .case-card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .header-btn:hover {
    transform: none;
  }

  /* NEW: Touch optimizations для системы заказов */
  .case-card-new:hover,
  .contract-btn:hover {
    transform: none;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Modal Styles */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-xl {
  max-width: 90%;
  margin: 1.75rem auto;
}

.modal-content {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color) !important;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-close {
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
  transition: all 0.3s ease;
}

.btn-close:hover {
  transform: rotate(90deg);
  opacity: 1 !important;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: scale(0.9);
}

.modal.show .modal-dialog {
  transform: scale(1);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
  .modal-xl {
    max-width: 100%;
    margin: 0;
    height: 100vh;
  }

  .modal-content {
    height: 100vh;
    border-radius: 0;
  }

  .modal-header {
    padding: 1rem;
  }
}
