/* Implem — SOFT theme (третий вариант)
   Тёплая приглушённая палитра, много воздуха, скруглённые формы,
   оранжевый только в акцентной точке логотипа и редких деталях.
*/

:root {
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --bg-warm: #f2ede5;
  --bg-tint: #f6f1ea;
  --text: #26242a;
  --text-muted: #5f5a63;
  --text-dim: #8a8590;
  --accent: #d97757;
  --accent-soft: #f2e0d6;
  --accent-hover: #c66849;
  --border: #ece6dc;
  --border-strong: #ddd5c8;
  --max-width: 1120px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(38, 36, 42, 0.04);
  --shadow: 0 4px 20px rgba(38, 36, 42, 0.06);
  --shadow-hover: 0 8px 32px rgba(38, 36, 42, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.logo .dot-i {
  position: relative;
  display: inline-block;
}
.logo .dot-i::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Nav */
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(217, 119, 87, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(217, 119, 87, 0.05), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-text { min-width: 0; }

/* Hero network infographic */
.hero-network {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
}
.hero-network svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.hero-network .net-lines line {
  stroke: rgba(217, 119, 87, 0.28);
  stroke-width: 1;
  stroke-linecap: round;
  fill: none;
  animation: net-pulse 4s ease-in-out infinite;
}
.hero-network .net-lines line:nth-of-type(2n) { animation-delay: 0.6s; }
.hero-network .net-lines line:nth-of-type(3n) { animation-delay: 1.2s; }
.hero-network .net-lines line:nth-of-type(5n) { animation-delay: 1.8s; }
.hero-network .node-ring {
  fill: var(--bg-elevated);
  stroke: var(--border);
  stroke-width: 1;
}
.hero-network .hub-ring {
  fill: var(--bg-elevated);
  stroke: var(--accent);
  stroke-width: 2;
}
.hero-network .net-node,
.hero-network .net-hub {
  will-change: transform;
  transition: transform 0.08s ease-out;
}

@keyframes net-pulse {
  0%, 100% { stroke-opacity: 0.5; }
  50%      { stroke-opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-network .net-lines line { animation: none; }
  .hero-network .net-node,
  .hero-network .net-hub { transition: none; }
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(30px, 5.6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 28px;
  max-width: 920px;
  color: var(--text);
  overflow-wrap: break-word;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
}

/* Section */
.section {
  padding: 96px 0;
}
.section h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.section h2::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 32px);
  height: calc(100% + 12px);
  transform: translate(-50%, -50%);
  background: var(--bg-tint);
  border-radius: 12px;
  z-index: -1;
  pointer-events: none;
}
.section .section-lead {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 56px;
  font-size: 17px;
  line-height: 1.55;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card::after {
  content: "→";
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--text-dim);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.service-card:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}
.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.15s ease;
}
.service-card:hover h3 {
  color: var(--accent);
}
.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Specialties */
#specialties { padding: 72px 0; }
#specialties .section-lead { margin-bottom: 32px; }
.specialty-group {
  margin-bottom: 24px;
}
.specialty-group:last-child { margin-bottom: 0; }
.specialty-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding-left: 2px;
}
.specialty-group h3::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.specialty-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.specialty-row > .specialty-group { margin-bottom: 0; }
.specialty-row > .specialty-group.tinted {
  background: var(--bg-tint);
  border-radius: 14px;
  padding: 14px 16px 16px;
  margin: -6px -8px 0 -8px;
}
.specialty-row > .specialty-group.tinted > h3 { margin-bottom: 8px; }
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.specialty-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}
.specialty-group.tinted-right {
  position: relative;
  isolation: isolate;
}
.specialty-group.tinted-right::before {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -10px;
  right: -8px;
  width: calc(50% + 8px - 4px);
  background: var(--bg-tint);
  border-radius: 14px;
  z-index: -1;
}
.specialty-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: block;
  position: relative;
}
.specialty-card::after {
  content: "→";
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--text-dim);
  font-size: 13px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.specialty-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.specialty-card:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}
.specialty-card .name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.specialty-card .hint {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* About */
.about {
  background: var(--bg-tint);
}
.about p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.about p:last-child { margin-bottom: 0; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-block .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-weight: 600;
}
.contact-block .value {
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
}
.contact-block a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.15s ease;
}
.contact-block a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  background: var(--bg);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover { color: var(--text); }

.specialty-page .breadcrumbs {
  padding-top: 36px;
  font-size: 14px;
  color: var(--text-dim);
}
.specialty-page .breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.specialty-page .breadcrumbs a:hover { color: var(--accent); }

.specialty-page .page-header {
  padding: 36px 0 48px;
}
.specialty-page .page-header h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}
.specialty-page .page-header .summary {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

.content-section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.content-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.content-section p {
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 780px;
  line-height: 1.6;
}
.content-section ul {
  list-style: none;
  padding: 0;
  max-width: 780px;
}
.content-section ul li {
  color: var(--text-muted);
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.content-section ul li:last-child { border-bottom: none; }
.content-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.content-section ul li strong {
  color: var(--text);
  font-weight: 600;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
}
.tech-grid .tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 13px;
  font-size: 13.5px;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  box-shadow: 0 1px 2px rgba(38, 36, 42, 0.03);
}

.grades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 780px;
}
.grade-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(38, 36, 42, 0.04);
}
.grade-card .grade-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}
.grade-card .grade-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.cta-block {
  margin-top: 56px;
  padding: 44px 36px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.cta-block h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.cta-block p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}
.cta-block .btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 13px 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(217, 119, 87, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-block .btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.35);
}

.legal {
  padding: 56px 0 80px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  color: var(--text);
}
.legal .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 21px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 780px;
  line-height: 1.65;
  font-size: 15.5px;
}
.legal ul, .legal ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.legal ul li, .legal ol li {
  margin-bottom: 8px;
}
.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.legal a:hover {
  color: var(--accent-hover);
}

/* Responsive */
@media (max-width: 900px) {
  .specialty-row { grid-template-columns: 1fr; gap: 24px; }
  .specialty-row > .specialty-group.tinted {
    background: transparent;
    padding: 0;
    margin: 0;
  }
  .specialty-group.tinted-right::before { display: none; }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .grades { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .hero { padding: 72px 0 56px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-network {
    max-width: 340px;
    margin: 0 auto;
  }
  .section { padding: 72px 0; }
  .service-card { padding: 28px; }
}
@media (max-width: 520px) {
  .specialty-grid { grid-template-columns: 1fr; }
  .grades { grid-template-columns: 1fr; }
  .site-header .container { height: 60px; }
  .logo { font-size: 20px; }
  .container { padding: 0 20px; }
  .section .section-lead { margin-bottom: 40px; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
  .nav a[href="#services"] { display: none; }
}
