﻿@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --fg: #1a1a1a;
  --fg-secondary: #56565c;
  --fg-muted: #8a8a8e;
  --border: #e8e8ec;
  --ink: #111111;
  --ink-2: #0b0b1a;
  --red: #e53935;
  --red-bright: #ff3b30;
  --red-dark: #b71c1c;
  --red-glow: rgba(229, 57, 53, 0.35);
  --red-soft: rgba(229, 57, 53, 0.12);
  --font-body: 'OpenAI Sans', 'Sora', 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'OpenAI Sans', 'Sora', 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --shadow-card: 0 10px 34px rgba(17, 17, 17, 0.08);
  --shadow-card-hover: 0 18px 44px rgba(17, 17, 17, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 1.05rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section:not(.hero) {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.4), transparent) 1;
}

.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.8rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), rgba(229, 57, 53, 0.15));
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageIn 0.5s ease forwards;
}

.hidden {
  display: none !important;
}

/* ===== Custom cursor (disabled in clean theme) ===== */
.cursor-dot,
.cursor-ring {
  display: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(229, 57, 53, 0.25);
  text-decoration: none;
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--red-glow);
  filter: brightness(1.05);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px var(--red-glow);
  filter: none;
}

.btn-danger {
  background: transparent;
  color: var(--red-dark);
  border: 1.5px solid var(--red-dark);
  box-shadow: none;
}

.btn-danger:hover {
  background: var(--red-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(183, 28, 28, 0.35);
  filter: none;
}

/* ===== Form elements ===== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d9d9de;
  background: #fff;
  color: var(--fg);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 10px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

input::placeholder, textarea::placeholder {
  color: #a5a5ab;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.01em;
}

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

/* ===== Cards ===== */
.card {
  position: relative;
  border: 1px solid var(--border);
  padding: 1.6rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: var(--shadow-card-hover), 0 0 26px rgba(229, 57, 53, 0.08);
}

/* ===== Terminal cursor ===== */
.terminal-cursor::after {
  content: '_';
  animation: blink 1s step-end infinite;
  color: var(--red);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== Scroll reveal ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageIn {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.page.fade-out {
  animation: pageOut 0.3s ease forwards;
}

@keyframes pageOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ===== App loader ===== */
.app-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loader-spinner {
  width: 46px;
  height: 46px;
  border: 3px solid #eee;
  border-top-color: var(--red);
  border-right-color: rgba(229, 57, 53, 0.4);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.loading-text::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #eee;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text, .error-text, .empty-text {
  text-align: center;
  color: var(--fg-secondary);
  font-size: 1.15rem;
  padding: 3rem 0;
}

.error-text {
  color: var(--red);
}

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

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

::-webkit-scrollbar-thumb {
  background: #d9d9de;
  border-radius: 4px;
}

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

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.5), transparent);
  opacity: 0.6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(90deg, #ffffff 35%, #ff3b30 70%, #ffb400 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.8s ease;
}

.logo:hover .logo-text {
  background-position: 100% 0;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  position: relative;
  color: #fff;
  background: linear-gradient(90deg, #ffffff 50%, #ff3b30 55%, #ffb400 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.6s ease, color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), #ffb400);
  transition: width 0.25s ease;
}

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

.nav-link:hover,
.nav-link.active {
  background-position: 100% 0;
  color: var(--red);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* ===== Header contact icons ===== */
.header-contacts {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.1rem;
}

.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-icon-btn svg {
  width: 16px;
  height: 16px;
}

.nav-icon-btn:hover {
  background: linear-gradient(135deg, var(--red-bright), #ffb400);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}

.nav-icon-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: -4px;
  z-index: 120;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.22), 0 0 0 1px rgba(229, 57, 53, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.nav-icon-tip::after {
  content: '';
  position: absolute;
  top: -4px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.nav-icon-btn:hover .nav-icon-tip,
.nav-icon-btn:focus-visible .nav-icon-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .header-contacts { margin-left: 0.8rem; gap: 0.4rem; }
  .nav-icon-btn { width: 34px; height: 34px; }
}

@media (max-width: 768px) {
  .header-contacts { order: 1; }
  .menu-toggle { order: 2; margin-left: 1rem; }
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 50;
  padding-top: 0.6rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-wide {
  width: 500px;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.16);
  padding: 0.6rem;
  border: 1px solid var(--border);
}

.dropdown-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.dropdown-card:hover {
  background: var(--red-soft);
  border-color: rgba(229, 57, 53, 0.25);
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  border-radius: 10px;
  border: 1px solid rgba(229, 57, 53, 0.2);
}

.dropdown-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--red);
}

.dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dropdown-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}

.dropdown-subtitle {
  font-size: 0.8rem;
  color: var(--fg-secondary);
  line-height: 1.3;
  margin: 0;
}

.dropdown-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  align-self: flex-start;
  text-decoration: none;
  line-height: 1.4;
  margin-top: 0.2rem;
}

.dropdown-btn:hover {
  color: #fff;
  box-shadow: 0 6px 18px var(--red-glow);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s ease;
}

/* ===== Home / Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 820px at 82% -12%, rgba(229, 57, 53, 0.22), transparent 60%),
    radial-gradient(1000px 700px at 8% 24%, rgba(26, 26, 90, 0.6), transparent 55%),
    linear-gradient(160deg, #0b0b1a 0%, #1a1a3a 55%, #0b0b1a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(circle at 30% 40%, rgba(229, 57, 53, 0.16), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(255, 59, 48, 0.1), transparent 42%),
    radial-gradient(circle at 55% 14%, rgba(110, 70, 220, 0.1), transparent 40%);
  animation: heroGlow 14s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 57, 53, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 57, 53, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px, 260px 260px, 260px 260px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.95), transparent 74%);
  mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.95), transparent 74%);
  animation: heroGrid 36s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -3%) scale(1.12); }
}

@keyframes heroGrid {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 52px 52px, 52px 52px, 260px 260px, 260px 260px; }
}

.hero-corner {
  position: absolute;
  width: 46px;
  height: 46px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-corner.tl {
  top: 2.4rem;
  left: 2.4rem;
  border-top: 2px solid var(--red-bright);
  border-left: 2px solid var(--red-bright);
}

.hero-corner.tr {
  top: 2.4rem;
  right: 2.4rem;
  border-top: 2px solid var(--red-bright);
  border-right: 2px solid var(--red-bright);
}

.hero-corner.bl {
  bottom: 2.4rem;
  left: 2.4rem;
  border-bottom: 2px solid var(--red-bright);
  border-left: 2px solid var(--red-bright);
}

.hero-corner.br {
  bottom: 2.4rem;
  right: 2.4rem;
  border-bottom: 2px solid var(--red-bright);
  border-right: 2px solid var(--red-bright);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hp {
  position: absolute;
  bottom: -12px;
  width: 4px;
  height: 4px;
  background: var(--red-bright);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 14s linear infinite;
  box-shadow: 0 0 8px var(--red-glow);
}

.hp.cyan {
  background: #ff8a80;
  box-shadow: 0 0 8px rgba(255, 138, 128, 0.5);
}

.hp.purple {
  background: #c47cff;
  box-shadow: 0 0 8px rgba(196, 124, 255, 0.45);
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateY(-120vh); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.25rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 40px rgba(229, 57, 53, 0.35);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #d6d6de;
  margin-bottom: 2.4rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ===== Home services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.6rem;
  right: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.service-media {
  margin-bottom: 1.1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff, #f4f5f7);
}

.service-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.04);
}

.service-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.project-client {
  color: var(--red);
}

.service-desc {
  font-size: 0.98rem;
  color: var(--fg-secondary);
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.service-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
}

.service-details-list li {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  position: relative;
  padding-left: 0.85rem;
  letter-spacing: 0.01em;
}

.service-details-list li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.services-footer {
  text-align: center;
  margin-top: 2.2rem;
}

/* ===== Case carousel ===== */
.case-carousel {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.case-viewport {
  flex: 1;
  min-width: 0;
}

.case-card-big {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  min-height: 420px;
}

.case-viewport .case-card-big {
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-viewport .case-card-big.switching {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cases-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 2.6rem;
}

.case-detail {
  max-width: 780px;
}

.case-back {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg-muted);
  margin-bottom: 1.1rem;
  transition: color 0.2s ease;
}

.case-back:hover {
  color: var(--red);
}

.cases-stack .case-card-big {
  min-height: 0;
}

.case-client {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 1rem;
}

.case-title-lg {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.case-desc-lg {
  font-size: 0.98rem;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.case-details-lg li {
  font-size: 0.85rem;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: auto 0 1.4rem;
  padding-top: 1.2rem;
}

.case-stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.case-stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--red);
}

.case-stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.case-actions {
  text-align: center;
}

.case-arrow {
  align-self: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--fg);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.case-arrow:hover {
  border-color: rgba(229, 57, 53, 0.45);
  color: var(--red);
  box-shadow: 0 0 18px rgba(229, 57, 53, 0.15);
  transform: scale(1.05);
}

.case-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.case-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #dcdce2;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.case-dot.active {
  width: 26px;
  background: var(--red);
}

@media (max-width: 640px) {
  .case-carousel {
    gap: 0.6rem;
  }

  .case-card-big {
    padding: 1.4rem;
    min-height: 0;
  }

  .case-title-lg {
    font-size: 1.2rem;
  }

  .case-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

.cta-card {
  text-align: center;
  padding: 3.2rem 2rem;
  border: 1px solid rgba(229, 57, 53, 0.3);
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(229, 57, 53, 0.2), transparent 70%),
    linear-gradient(160deg, #111111, #1a1a3a);
  color: #fff;
}

.cta-card:hover {
  border-color: rgba(229, 57, 53, 0.55);
}

.cta-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #fff;
}

.cta-text {
  font-size: 1.1rem;
  color: #d6d6de;
  margin-bottom: 1.6rem;
}

/* ===== Trust marquee ===== */
.trust-section {
  padding-top: 0;
}

.trust {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 0.5rem 0;
}

.trust-track {
  display: flex;
  width: max-content;
  animation: trustScroll 40s linear infinite;
}

.trust:hover .trust-track {
  animation-play-state: paused;
}

.trust-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

@keyframes trustScroll {
  to { transform: translateX(-50%); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-secondary);
  white-space: nowrap;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: var(--shadow-card-hover), 0 0 20px rgba(229, 57, 53, 0.08);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  flex-shrink: 0;
}

.trust-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ===== Services page ===== */
.services-page {
  padding-top: 3rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.service-card-lg {
  padding: 1.9rem;
  cursor: default;
}

.card-number {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.card-desc {
  font-size: 1rem;
  color: var(--fg-secondary);
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.card-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
}

.card-details li {
  font-size: 0.84rem;
  color: var(--fg-muted);
  position: relative;
  padding-left: 0.85rem;
}

.card-details li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ===== Blog / Cases ===== */
.blog-page,
.cases-page {
  padding-top: 3rem;
}

.blog-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.blog-tab-btn {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg-secondary);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}

.blog-tab-btn:hover {
  border-color: rgba(229, 57, 53, 0.4);
  color: var(--red);
}

.blog-tab-btn.active {
  background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, var(--red-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px var(--red-glow);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: default;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fg);
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--red);
  margin: 0;
  letter-spacing: 0.02em;
}

.blog-content {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.blog-content p {
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
}

.blog-content i { font-style: italic; }
.blog-content u { text-decoration: underline; }

/* ===== Card mini-covers ===== */
.card-cover {
  flex-shrink: 0;
}

.card-cover img {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-head {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.blog-head-text {
  min-width: 0;
}

.blog-head-text .blog-title {
  overflow-wrap: anywhere;
}

.case-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.case-head .case-title-lg {
  margin-bottom: 0;
}

.blog-card:hover .card-cover img,
.card.case-card-big:hover .card-cover img {
  transform: scale(1.05);
  box-shadow: 0 12px 26px rgba(229, 57, 53, 0.22);
}

@media (max-width: 480px) {
  .card-cover img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
  }
}

/* ===== Cover picker (admin) ===== */
.cover-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cover-preview {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.12);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin: 0.45rem 0 0;
}

.cases-subtitle {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--fg);
}

.cases-desc {
  font-size: 1rem;
  color: var(--fg-secondary);
}

.cases-placeholder {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* ===== Contact ===== */
.contact-page {
  padding-top: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.contact-text a {
  color: var(--red);
}

.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.contact-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), #ffb400);
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-phone-icon svg {
  width: 17px;
  height: 17px;
}

.contact-phone-link:hover .contact-phone-icon {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fg-secondary);
  cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--red);
  cursor: pointer;
}

.consent-checkbox a {
  color: var(--red);
  text-decoration: underline;
}

.success-msg {
  margin-top: 1rem;
  color: #1a7f3d;
  font-size: 1rem;
}

.error-msg {
  margin-top: 1rem;
  color: var(--red);
  font-size: 1rem;
}

/* ===== Privacy ===== */
.privacy-page {
  padding-top: 3rem;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-block {
  padding: 2rem;
}

.legal-block h2 {
  position: relative;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--fg);
  padding-left: 1rem;
}

.legal-block h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--red), var(--red-bright));
}

.legal-block h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--fg);
}

.legal-block p,
.legal-block li,
.legal-block a {
  font-size: 1rem;
  color: var(--fg-secondary);
}

.legal-block p {
  margin-bottom: 0.5rem;
}

.legal-block a {
  color: var(--red);
  text-decoration: underline;
}

.legal-block a:hover {
  color: var(--red-dark);
}

.legal-block ul {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
}

.legal-block li {
  margin-bottom: 0.25rem;
}

.legal-note {
  font-size: 1rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.legal-toc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  background: #fff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.toc-link {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s, border-color 0.2s;
  padding: 0.3rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.8rem;
}

.toc-link:hover {
  color: var(--red);
  border-left-color: var(--red);
  padding-left: 1.05rem;
}

/* ===== WunderDocs ===== */
.wdoc-hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 700px at 85% 10%, rgba(229, 57, 53, 0.2), transparent 60%),
    radial-gradient(800px 600px at 5% 30%, rgba(26, 26, 90, 0.6), transparent 55%),
    linear-gradient(160deg, #0b0b1a 0%, #1a1a3a 60%, #0b0b1a 100%);
  color: #fff;
}

.wdoc-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.wdoc-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wdoc-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  background: var(--red-soft);
  color: var(--red-bright);
  align-self: flex-start;
  border-radius: 20px;
  border: 1px solid rgba(255, 59, 48, 0.4);
}

.wdoc-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 36px rgba(229, 57, 53, 0.3);
}

.wdoc-hero-sub {
  font-size: 1rem;
  color: #d6d6de;
  margin: 0;
  line-height: 1.6;
  max-width: 500px;
}

.wdoc-hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.wdoc-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--red-bright);
  color: var(--red-bright);
  box-shadow: none;
}

.wdoc-btn-ghost:hover {
  border-color: var(--red-bright);
  color: #fff;
  background: rgba(229, 57, 53, 0.18);
  filter: none;
}

.wdoc-hero-stats {
  display: flex;
  gap: 2.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 0.9rem;
}

.wdoc-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wdoc-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.wdoc-stat-num::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.wdoc-stat-lbl {
  font-size: 0.78rem;
  color: #a8a8b2;
}

.wdoc-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wdoc-hero-svg svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.5));
}

.wdoc-section {
  padding: 4rem 0;
}

.wdoc-section--alt {
  background:
    radial-gradient(900px 500px at 50% -20%, rgba(229, 57, 53, 0.16), transparent 70%),
    linear-gradient(160deg, #111111, #1a1a3a);
  border-top: 1px solid rgba(229, 57, 53, 0.2);
  border-bottom: 1px solid rgba(229, 57, 53, 0.2);
}

.wdoc-section--alt .wdoc-section-title {
  color: #fff;
}

.wdoc-section-title {
  text-align: center;
  margin-bottom: 2.2rem;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--fg);
}

.wdoc-section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.7rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.wdoc-cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.wdoc-card {
  padding: 1.4rem;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.wdoc-card:hover {
  border-color: rgba(255, 59, 48, 0.55);
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 24px rgba(229, 57, 53, 0.12);
}

.wdoc-card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  color: var(--red-bright);
}

.wdoc-card-icon svg {
  color: var(--red-bright);
}

.wdoc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.wdoc-card p {
  font-size: 0.86rem;
  color: #b8b8c0;
  line-height: 1.55;
  margin: 0;
}

.wdoc-steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.wdoc-step-card {
  text-align: center;
  padding: 1.6rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.wdoc-step-card:hover {
  border-color: rgba(229, 57, 53, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover), 0 0 24px rgba(229, 57, 53, 0.08);
}

.wdoc-step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 auto 0.8rem;
  box-shadow: 0 0 18px var(--red-glow);
}

.wdoc-step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--fg);
}

.wdoc-step-card p {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  line-height: 1.55;
  margin: 0;
}

.wdoc-specs {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
}

.wdoc-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.wdoc-spec-item:last-child {
  border-bottom: none;
}

.wdoc-spec-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--fg);
}

.wdoc-spec-value {
  font-size: 0.92rem;
  color: var(--red);
  text-align: right;
}

.wdoc-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 840px;
  margin: 0 auto;
}

.wdoc-form-info h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #fff;
}

.wdoc-form-info p {
  font-size: 0.92rem;
  color: #b8b8c0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.wdoc-form-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wdoc-form-benefits span {
  font-size: 0.88rem;
  color: #d6d6de;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wdoc-form-benefits span::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red-bright);
  border-radius: 50%;
  flex-shrink: 0;
}

.wdoc-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.6rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--border);
}

.wdoc-form-field input {
  font-size: 0.95rem;
}

.wdoc-form-btn {
  border-radius: 10px;
}

.wdoc-form-btn:hover {
  color: #fff;
}

.wdoc-form-note {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

.wdoc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 680px;
  margin: 0 auto;
}

.wdoc-faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.wdoc-faq-item:hover,
.wdoc-faq-item.open {
  border-color: rgba(229, 57, 53, 0.45);
}

.wdoc-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 1rem;
  color: var(--fg);
}

.wdoc-faq-q svg {
  flex-shrink: 0;
  color: var(--red);
  transition: transform 0.3s ease;
}

.wdoc-faq-item.open .wdoc-faq-q svg {
  transform: rotate(180deg);
}

.wdoc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.3rem;
}

.wdoc-faq-item.open .wdoc-faq-a {
  max-height: 240px;
  padding: 0 1.3rem 1.05rem;
}

.wdoc-faq-a p {
  font-size: 0.88rem;
  color: var(--fg-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(229, 57, 53, 0.2);
  background: #000000;
  padding: 3.5rem 0 1.6rem;
  margin-top: 3rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.7;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.8fr 1fr;
  gap: 1.3rem;
}

.footer-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-text {
  font-size: 0.86rem;
  color: #b8b8c0;
  margin-bottom: 0;
  line-height: 1.5;
}

.footer-link {
  font-size: 0.86rem;
  color: #b8b8c0;
  background: linear-gradient(90deg, #b8b8c0 50%, #ff3b30 55%, #ffb400 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.6s ease, color 0.2s;
  word-spacing: -0.08em;
}

.footer-link:hover {
  background-position: 100% 0;
  color: var(--red-bright);
}

.footer-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-weight: 600;
}

.footer-phone-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--red-bright);
}

.footer-phone-link:hover {
  color: #ffb400;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copy-light {
  font-size: 0.9rem;
  font-weight: 400;
  color: #7a7a82;
  margin: 0;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #7a7a82;
  margin-top: 0.5rem;
}

/* ===== Cookie bar ===== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fg);
  padding: 0.85rem 0;
  z-index: 200;
  border-top: 2px solid;
  border-image: linear-gradient(90deg, transparent, var(--red), transparent) 1;
  box-shadow: 0 -8px 24px rgba(17, 17, 17, 0.08);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  font-size: 0.9rem;
  margin: 0;
  color: var(--fg-secondary);
  max-width: 640px;
}

.cookie-text strong {
  color: var(--fg);
}

.cookie-link {
  color: var(--red);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-link:hover {
  color: var(--red-dark);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}

/* ===== Admin ===== */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2.2rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.6rem;
  color: var(--fg);
}

.admin-dashboard {
  padding-top: 3rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header .section-title {
  margin-bottom: 0;
}

.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--fg);
}

.tab-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.admin-panel {
  max-width: 800px;
}

.editor {
  margin-bottom: 2rem;
  padding: 1.6rem;
}

.editor-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--fg);
}

.editor-actions {
  display: flex;
  gap: 0.8rem;
}

.editor-toolbar {
  display: flex;
  gap: 0.3rem;
  padding: 0.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--fg);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.toolbar-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

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

.editor-content {
  min-height: 250px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  background: #fff;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  outline: none;
  cursor: text;
}

.editor-content:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.editor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.editor-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
}

.article-list,
.contact-list,
.case-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.article-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.3rem;
  gap: 1rem;
}

.article-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--fg);
}

.article-meta {
  font-size: 0.82rem;
  color: var(--red);
  margin: 0;
}

.article-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.contact-row {
  padding: 1.1rem 1.3rem;
}

.contact-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.contact-email {
  color: var(--fg-secondary);
}

.contact-date {
  color: var(--fg-muted);
  margin-left: auto;
}

.contact-phone,
.contact-company {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  margin: 0.2rem 0;
}

.contact-message {
  font-size: 1rem;
  color: var(--fg-secondary);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.case-thumb {
  max-width: 140px;
  max-height: 70px;
  object-fit: cover;
  margin-top: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  body { font-size: 1rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.6rem; }

  .trust-item {
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
  }

  .trust-icon {
    width: 26px;
    height: 26px;
  }

.header {
    background: rgba(0, 0, 0, 0.95);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-line {
    background: #fff;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid rgba(229, 57, 53, 0.3);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    padding: 0.5rem 0 0;
    transition: none;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .dropdown-menu-wide {
    width: 100%;
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
    border-radius: 12px;
    padding: 0.5rem;
  }

  .dropdown-card {
    padding: 0.75rem;
  }

  .dropdown-icon {
    width: 36px;
    height: 36px;
  }

  .dropdown-icon svg {
    width: 20px;
    height: 20px;
  }

  .dropdown-title {
    font-size: 0.85rem;
  }

  .dropdown-subtitle {
    font-size: 0.75rem;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .hero::after,
  .hero::before,
  .hero-corner,
  .hero-particles {
    animation: none;
  }

  .hero-corner,
  .hero-particles {
    display: none;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card-lg {
    padding: 1.4rem;
  }

  .legal-block {
    padding: 1.4rem;
  }

  .wdoc-hero {
    padding: 3rem 0 2.5rem;
  }

  .wdoc-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wdoc-hero-visual {
    order: -1;
  }

  .wdoc-hero-visual svg {
    max-width: 300px;
  }

  .wdoc-hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .wdoc-cards-2,
  .wdoc-steps-3,
  .wdoc-form-wrap {
    grid-template-columns: 1fr;
  }

  .wdoc-section {
    padding: 3rem 0;
  }

  .wdoc-section-title {
    font-size: 1.35rem;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .wdoc-hero-actions {
    flex-direction: column;
  }

  .wdoc-hero-stats {
    flex-direction: column;
    gap: 0.6rem;
  }

  .wdoc-spec-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .wdoc-spec-value {
    text-align: left;
  }

  .article-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-header {
    flex-wrap: wrap;
  }

  .contact-date {
    margin-left: 0;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* ===== WunderCall landing ===== */
.wc-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 480px at 85% -5%, rgba(229, 57, 53, 0.08), transparent 60%),
    radial-gradient(800px 420px at -10% 30%, rgba(255, 59, 48, 0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fffaf9 45%, #ffffff 100%);
  color: #26262b;
  font-family: 'Inter', 'Graphik', system-ui, -apple-system, sans-serif;
  padding-bottom: 3rem;
}

.wc-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wc-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(229, 57, 53, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 57, 53, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 55%);
}

.wc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: wcFloat 14s ease-in-out infinite alternate;
}

.wc-orb-1 {
  width: 420px; height: 420px;
  left: -120px; top: 60px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.3), transparent 65%);
}

.wc-orb-2 {
  width: 360px; height: 360px;
  right: -80px; top: 340px;
  background: radial-gradient(circle, rgba(255, 112, 67, 0.24), transparent 65%);
  animation-delay: -5s;
}

.wc-orb-3 {
  width: 300px; height: 300px;
  left: 42%; bottom: -60px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.16), transparent 65%);
  animation-delay: -9s;
}

@keyframes wcFloat {
  from { transform: translateY(-24px) translateX(0); }
  to { transform: translateY(24px) translateX(30px); }
}

/* Hero */
.wc-hero {
  position: relative;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 5.5rem;
}

.wc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d32f2f;
  border: 1px solid rgba(229, 57, 53, 0.3);
  background: rgba(229, 57, 53, 0.06);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.6rem;
}

.wc-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #17171b;
  max-width: 820px;
  margin: 0 auto 1.2rem;
}

.wc-grad {
  background: linear-gradient(92deg, #ff3b30 10%, #ffb400 65%, #ffd54d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wc-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #5a5a61;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.wc-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.wc-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff3b30 0%, #e53935 55%, #b71c1c 100%);
  border-radius: 12px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(229, 57, 53, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

button.wc-btn {
  border: 0;
  cursor: pointer;
}

.wc-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
  box-shadow: 0 14px 36px rgba(229, 57, 53, 0.5);
}

.wc-btn-outline {
  background: transparent;
  border: 1px solid rgba(229, 57, 53, 0.35);
  color: #d32f2f;
  box-shadow: none;
}

.wc-btn-outline:hover {
  background: rgba(229, 57, 53, 0.07);
  box-shadow: 0 10px 26px rgba(229, 57, 53, 0.15);
}

.wc-btn-lg {
  font-size: 1.02rem;
  padding: 1rem 2.6rem;
}

/* Hero stats */
.wc-hero-stats {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.wc-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #ffffff;
  border: 1px solid rgba(229, 57, 53, 0.16);
  border-radius: 14px;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.05);
}

.wc-stat-value {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #d32f2f;
}

.wc-stat-label {
  font-size: 0.78rem;
  color: #77777d;
}

/* Equalizer */
.wc-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 46px;
  max-width: 520px;
  margin: 0 auto;
}

.wc-eq-bar {
  flex: 1;
  max-width: 8px;
  height: var(--h, 40%);
  min-height: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffb400, #e53935);
  opacity: 0.75;
  animation: wcEq 1.15s ease-in-out var(--d, 0s) infinite alternate;
}

@keyframes wcEq {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.wc-hero-wave {
  position: relative;
  margin-top: 3.2rem;
  height: 120px;
}

.wc-hero-wave svg {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 100%;
  animation: wcWave 9s linear infinite;
}

@keyframes wcWave {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.wc-section {
  position: relative;
  padding-top: 4.2rem;
  padding-bottom: 2.2rem;
}

.wc-section-last {
  padding-bottom: 4rem;
}

.wc-section--tint {
  background: linear-gradient(180deg, transparent, rgba(229, 57, 53, 0.045) 18%, rgba(229, 57, 53, 0.045) 82%, transparent);
}

.wc-kicker {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d32f2f;
  margin-bottom: 0.7rem;
}

.wc-h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  color: #17171b;
  margin-bottom: 0.7rem;
}

.wc-lead {
  text-align: center;
  color: #63636a;
  max-width: 560px;
  margin: 0 auto 2.4rem;
}

.wc-grid {
  display: grid;
  gap: 1.2rem;
}

.wc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.wc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wc-industries { grid-template-columns: repeat(5, 1fr); }

.wc-card {
  background: #ffffff;
  border: 1px solid rgba(229, 57, 53, 0.14);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.04);
  padding: 1.6rem 1.4rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.wc-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 59, 48, 0.4);
  box-shadow: 0 18px 40px rgba(229, 57, 53, 0.14);
}

.wc-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #d32f2f;
  background: rgba(229, 57, 53, 0.07);
  border: 1px solid rgba(229, 57, 53, 0.18);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wc-icon svg {
  width: 24px;
  height: 24px;
}

.wc-card:hover .wc-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.2);
}

.wc-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c21;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.wc-card-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #5f5f66;
}

.wc-card-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.wc-num {
  font-family: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  color: #d32f2f;
  border: 1px solid rgba(229, 57, 53, 0.28);
  background: rgba(229, 57, 53, 0.07);
  border-radius: 9px;
  padding: 0.3rem 0.55rem;
  line-height: 1;
}

/* CTA */
.wc-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(229, 57, 53, 0.22);
  padding: 3.6rem 2rem;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(229, 57, 53, 0.09), transparent 70%),
    linear-gradient(160deg, #ffffff, #fff6f4);
}

.wc-cta-glow {
  position: absolute;
  top: -60%;
  left: -30%;
  width: 60%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(229, 57, 53, 0.08), transparent);
  transform: rotate(12deg);
  animation: wcSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wcSheen {
  0% { left: -35%; }
  55% { left: 115%; }
  100% { left: 115%; }
}

.wc-cta-title {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 800;
  color: #17171b;
  margin-bottom: 0.7rem;
}

.wc-cta-text {
  color: #5a5a61;
  max-width: 520px;
  margin: 0 auto 1.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .wc-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wc-industries { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .wc-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .wc-industries { grid-template-columns: repeat(2, 1fr); }
  .wc-hero { padding-top: 4.2rem; }
}

@media (max-width: 560px) {
  .wc-grid-4,
  .wc-grid-3,
  .wc-industries { grid-template-columns: 1fr; }
}

/* ===== WunderCall: форма заявки ===== */
.wc-lead-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.wc-lead-form input {
  width: 200px;
  background: #ffffff;
  border: 1px solid rgba(229, 57, 53, 0.24);
  border-radius: 10px;
  padding: 0.78rem 1rem;
  color: #26262b;
  font-family: var(--font-body);
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wc-lead-form input::placeholder {
  color: #9a9aa1;
}

.wc-lead-form input:focus {
  outline: none;
  border-color: rgba(255, 59, 48, 0.65);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.wc-form-note {
  font-size: 0.72rem;
  color: #97979e;
  margin-top: 0.8rem;
}

.wc-form-success { color: #1e9e5a; font-size: 0.9rem; }
.wc-form-error { color: #d32f2f; font-size: 0.9rem; }

/* ===== Блог и проекты: сетка 3 в ряд + крупные обложки ===== */
.blog-list,
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: none;
  margin-bottom: 2.6rem;
}

.blog-list .blog-card,
.cases-grid .case-card {
  gap: 0.85rem;
  overflow: hidden;
}

.cases-grid a.case-card {
  text-decoration: none;
  color: inherit;
}

.blog-list .card-cover img,
.cases-grid .card-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.blog-card .read-more {
  margin-top: auto;
  align-self: flex-start;
}

.blog-card.expanded {
  grid-column: 1 / -1;
}

.blog-card.expanded .card-cover img {
  aspect-ratio: auto;
  max-height: 420px;
  object-fit: cover;
}

.cases-grid .case-client {
  margin-bottom: 0;
}

.cases-grid .case-title-lg {
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}

.cases-grid .case-desc-lg {
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.case-more {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
}

.card:hover .case-more {
  text-decoration: underline;
}

/* ===== Блог: режим чтения статьи ===== */
.blog-list.reading .blog-card {
  display: none;
}

.blog-list.reading .blog-card.expanded {
  display: flex;
}

@media (max-width: 992px) {
  .blog-list,
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .blog-list,
  .cases-grid { grid-template-columns: 1fr; }

  .wc-lead-form input {
    width: 100%;
  }
}