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

:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #0b1220;
  --line: #1e293b;
  --text: #f1f5f9;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-2: #22c55e;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
}

/* HEADER */
.site-header {
  background: #020617;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.lang-link,
.text-link:hover {
  color: var(--accent);
}

/* HERO */
.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-description {
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-image img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #03121d;
}

.btn-primary:hover {
  background: #67cdf5;
}

.btn-secondary {
  background: var(--accent-2);
  color: white;
}

.btn-secondary:hover {
  background: #16a34a;
}

/* SERVICES ON HOME */
.services-preview,
.seo-text {
  padding: 28px 0 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.card {
  background: #020617;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 14px;
  background: var(--bg-soft);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.card a:hover {
  text-decoration: underline;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.seo-image img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

/* CONTENT BLOCKS */
.section-intro {
  max-width: 860px;
  margin-bottom: 24px;
}

.section-intro p {
  color: var(--muted);
}

.content-wrap {
  display: grid;
  gap: 24px;
}

.content-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.content-block-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

.content-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.content-body h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.content-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--muted);
}

.content-body p {
  margin-bottom: 14px;
  color: #e2e8f0;
}

.content-body p:last-child {
  margin-bottom: 0;
}

.content-body ul {
  margin: 0;
  padding: 0 18px 0 0;
}

html[lang="ru"] .content-body ul {
  padding: 0 0 0 18px;
}

.content-body li {
  margin-bottom: 10px;
  color: #e2e8f0;
}

.note-box {
  background: var(--bg-soft);
  border-right: 4px solid var(--accent);
  padding: 16px 18px;
  border-radius: 10px;
  margin-top: 16px;
  color: var(--text);
}

html[lang="ru"] .note-box {
  border-right: none;
  border-left: 4px solid var(--accent);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

/* CONTACT DETAILS */
.contact-list p {
  margin-bottom: 12px;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  background: #020617;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 22px 0;
  margin-top: 36px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid,
  .seo-grid,
  .content-block-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 30px;
  }

  .content-image img,
  .card img,
  .hero-image img,
  .seo-image img {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }

  .content-block {
    padding: 18px;
  }

  .content-body h2 {
    font-size: 24px;
  }

  .link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .link-row .btn,
  .link-row .text-link {
    width: 100%;
    text-align: center;
  }
}
/* Accessibility base */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 9999;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
