* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #06b6d4;
  --text: #0f172a;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("logo.jpg") center/45% no-repeat;
  opacity: 0.04;
  z-index: -1;
  pointer-events: none;
  filter: blur(1px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-visual {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 24px rgba(30, 64, 175, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.logo-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-visual::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-visual:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 
    0 12px 32px rgba(30, 64, 175, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.logo-visual:hover::before {
  opacity: 1;
}

.logo-visual .logo-icon {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Кнопка включения - круг */
.logo-visual .logo-icon::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Кнопка включения - вертикальная линия */
.logo-visual .logo-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 16px;
  background: white;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-8px);
  z-index: 2;
}

/* Пульсирующий желтый контур (скрыт по умолчанию) */
.logo-visual .abstract-line {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 3px solid #ffc107;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: pulse-ring 2s ease-in-out infinite;
  display: none;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.4;
  }
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.logo-text p {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

nav .btn {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-weight: 600;
}

nav .btn:hover {
  background: var(--primary-light);
  color: white;
}

.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switcher button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switcher button:hover {
  background: var(--bg-light);
}

.lang-switcher button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

[data-lang] {
  display: none !important;
}

[data-lang].active {
  display: block !important;
}

nav [data-lang].active,
.btn[data-lang].active,
a[data-lang].active,
nav span[data-lang].active,
a span[data-lang].active {
  display: inline-block !important;
}

.section-title [data-lang].active,
.process-content [data-lang].active,
.service-card [data-lang].active,
.info-card [data-lang].active,
h2 [data-lang].active,
h3 [data-lang].active,
h4 [data-lang].active,
p [data-lang].active,
strong [data-lang].active {
  display: inline !important;
}

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .header-content,
html[dir="rtl"] nav {
  direction: rtl;
}

.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h3 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Стиль для services-grid с дополнительным отступом */
.services-grid.margin-bottom-large {
  margin-bottom: 64px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.service-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.process-list {
  max-width: 800px;
  margin: 0 auto;
}

.process-item {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-left: 3px solid var(--border);
  margin-bottom: 24px;
  transition: all 0.3s;
}

.process-item:hover {
  border-left-color: var(--primary);
  background: var(--bg-light);
  padding-left: 36px;
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.process-content h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.process-content p {
  color: var(--text-light);
}

/* Секция процесса с фоном */
#process {
  background: var(--bg-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.info-card {
  padding: 24px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.info-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-card p {
  font-size: 16px;
  color: var(--text);
}

.contact-section {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 48px;
  margin-top: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.contact-item h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-item p {
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text);
}

footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
}

/* Стили для контактной секции */
.contact-section-content {
  text-align: center;
}

.contact-section-content h4 {
  margin-bottom: 16px;
  font-size: 24px;
}

.contact-section-content > p {
  color: var(--text-light);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  section {
    padding: 48px 0;
  }

  .section-title h3 {
    font-size: 32px;
  }
}
