:root {
  --bg: #f3f6fb;
  --bg-soft: #eef3f9;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(45, 114, 255, 0.12);
  --line-strong: rgba(45, 114, 255, 0.2);
  --text: #112038;
  --muted: #667892;
  --brand: #2d72ff;
  --brand-strong: #1957d7;
  --accent: #79e0d3;
  --glow: rgba(45, 114, 255, 0.12);
  --shadow: 0 24px 60px rgba(18, 32, 56, 0.08);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(121, 224, 211, 0.22), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(45, 114, 255, 0.14), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
  font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 114, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 114, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 82%);
  opacity: 0.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(17, 32, 56, 0.06);
  box-shadow: 0 8px 26px rgba(18, 32, 56, 0.05);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(18, 32, 56, 0.08);
}

.brand-name {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.nav {
  justify-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.language-flags {
  display: flex;
  gap: 8px;
}

.language-flags button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.language-flags button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(45, 114, 255, 0.1);
}

.hero,
.services,
.about,
.contact {
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.contact-panel,
.about-simple {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.card,
.contact-panel,
.about-simple {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.66) 100%),
    var(--panel);
  backdrop-filter: blur(18px);
}

.hero-copy::before,
.hero-panel::before,
.card::before,
.contact-panel::before,
.about-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(45, 114, 255, 0.09), transparent 30%, transparent 70%, rgba(121, 224, 211, 0.08));
}

.hero-copy {
  padding: 42px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.services h2,
.about h2,
.contact h2 {
  letter-spacing: 0;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-subtitle,
.section-lead {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  margin-top: 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 16px 30px rgba(45, 114, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(45, 114, 255, 0.26);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.hero-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(45, 114, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 114, 255, 0.18);
  box-shadow: 0 16px 28px rgba(18, 32, 56, 0.08);
}

.hero-card-label {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-card strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.services h2,
.about h2,
.contact h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.64) 100%),
    rgba(255, 255, 255, 0.72);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 114, 255, 0.18);
  box-shadow: 0 26px 46px rgba(18, 32, 56, 0.1);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(45, 114, 255, 0.14);
  border-radius: 8px;
  color: var(--brand);
  background: rgba(45, 114, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(45, 114, 255, 0.05);
}

.card h3 {
  font-size: 1.18rem;
  line-height: 1.2;
}

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

.about-simple {
  padding: 32px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.contact-actions {
  display: flex;
  align-items: center;
}

.contact-panel .btn {
  margin-top: 0;
}

.footer {
  border-top: 1px solid rgba(17, 32, 56, 0.06);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(10px);
}

.footer-inner {
  padding: 24px 0 34px;
}

.footer p {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 961px) {
  .hero-copy,
  .hero-panel,
  .contact-panel,
  .about-simple {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
  }

  .hero-copy::before,
  .hero-panel::before,
  .contact-panel::before,
  .about-simple::before {
    display: none;
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 78px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
  }

  .hero-copy,
  .hero-panel,
  .about-simple,
  .contact-panel {
    padding: 0;
  }

  .hero-copy {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-panel {
    gap: 18px;
    display: none;
  }

  .hero-card {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
  }

  .services,
  .about,
  .contact {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .services {
    position: relative;
    border-top: 1px solid rgba(17, 32, 56, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.16) 100%);
  }

  .services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1120px, calc(100% - 32px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent 0%, rgba(45, 114, 255, 0.18) 25%, rgba(121, 224, 211, 0.22) 50%, rgba(45, 114, 255, 0.18) 75%, transparent 100%);
  }

  .service-cards {
    gap: 28px;
  }

  .card {
    padding: 24px;
  }

  .card-icon {
    margin-bottom: 16px;
  }

  .about-simple {
    max-width: 860px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 960px) {
  .header-inner,
  .hero-grid,
  .service-cards,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-self: start;
  }

  .header-inner {
    padding: 18px 0;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav,
  .language-flags {
    justify-self: start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero,
  .services,
  .about,
  .contact {
    padding: 40px 0;
  }

  .hero-copy,
  .about-simple,
  .contact-panel {
    padding: 24px;
  }


  .contact-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero h1,
  .services h2,
  .about h2,
  .contact h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }
}
