* {
  box-sizing: border-box;
}

:root {
  --bg: #f3f6fa;
  --bg-soft: #edf2f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #14233a;
  --text-soft: #425166;
  --muted: #617086;
  --primary: #153a5b;
  --primary-2: #214f79;
  --primary-3: #2a608f;
  --white: #ffffff;
  --border: rgba(20, 35, 58, 0.08);
  --border-strong: rgba(20, 35, 58, 0.14);
  --shadow-soft: 0 10px 30px rgba(20, 35, 58, 0.05);
  --shadow-md: 0 18px 40px rgba(20, 35, 58, 0.08);
  --shadow-lg: 0 28px 70px rgba(20, 35, 58, 0.12);
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 30px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(33, 79, 121, 0.04), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20, 35, 58, 0.07);
}

/* BASE LOGO */
.logo {
  font-size: 1.16rem;
  font-weight: 500;
  color: inherit;
  letter-spacing: 0.015em;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.92;
}

.logo:hover {
  opacity: 0.88;
  transform: translateY(-0.5px);
}

.logo span {
  color: var(--primary-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 1;
}

/* NAV CONTAINER */
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* NAV LINKS WRAPPER */
.nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

/* BASE LINK */
.nav nav a {
  position: relative;

  color: var(--text);
  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;

  opacity: 0.72;

  transition: 
    color 0.22s ease,
    opacity 0.22s ease,
    transform 0.18s ease;
}

/* HOVER */
.nav nav a:hover {
  color: var(--text);
  opacity: 1;
  transform: translateY(-1px);
}

/* PREMIUM SUBTLE LINE (Linear-style) */
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 100%;
  height: 1px;

  background: var(--primary-2);

  opacity: 0;
  transform: scaleX(0.6);

  transition: 
    opacity 0.25s ease,
    transform 0.25s ease;
}

.nav nav a:hover::after {
  opacity: 0.5;
  transform: scaleX(1);
}

/* ACTIVE LINK (очень мягко!) */
.nav nav a.active {
  opacity: 1;
  color: var(--text);
}

/* LANGUAGE SWITCH */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;

  background: rgba(0, 0, 0, 0.03);
  padding: 4px;
  border-radius: 999px;
}

.lang-switch a {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;

  color: var(--text);
  opacity: 0.6;

  padding: 6px 10px;
  border-radius: 999px;

  transition: all 0.2s ease;
}

.lang-switch a.active {
  background: white;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.lang-switch a:hover {
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 35, 58, 0.08);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 16px rgba(20, 35, 58, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

/* hover — почти незаметный */
.lang-switch a:hover {
  color: var(--primary);
  background: rgba(20, 35, 58, 0.04);
}

/* активный — светлый “плавающий” круг */
.lang-switch a.active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  box-shadow:
    0 1px 2px rgba(20, 35, 58, 0.08),
    0 4px 10px rgba(20, 35, 58, 0.08);
}

/* Typography */

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 0 0 42px;
  max-width: none;
}

h2 {
  font-size: clamp(1.95rem, 3vw, 2.85rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 16ch;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary-3);
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(33, 79, 121, 0.4);
}

.lead {
  margin: 0 0 24px;
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--text-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  font-size: 0.96rem;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #1e4b73 0%, #153a5b 100%);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(21, 58, 91, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(21, 58, 91, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  border: 1px solid rgba(21, 58, 91, 0.18);
  box-shadow: 0 8px 20px rgba(20, 35, 58, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(21, 58, 91, 0.04);
  border-color: rgba(21, 58, 91, 0.28);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 78px;
  background:
    radial-gradient(circle at 20% 16%, rgba(33, 79, 121, 0.05), transparent 30%),
    radial-gradient(circle at 84% 28%, rgba(21, 58, 91, 0.04), transparent 24%),
    linear-gradient(135deg, rgba(21, 58, 91, 0.03), rgba(33, 79, 121, 0.012)),
    var(--bg);
}

.hero-content {
  max-width: 1200px;
}

.hero-head {
  max-width: 100vw;
  margin-bottom: 42px;
}

.hero-head .eyebrow {
  margin-bottom: 18px;
}

.hero-head h1 {
  margin: 0;
  max-width: none;
  width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-copy {
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-list {
  margin: 0 0 30px;
  padding-left: 22px;
  color: var(--text);
}

.hero-list li {
  padding-left: 2px;
}

.hero-list li+li {
  margin-top: 11px;
}

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

.hero-media {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(20, 35, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 70px rgba(20, 35, 58, 0.12),
    0 12px 28px rgba(20, 35, 58, 0.07);
  transform: translateY(-4px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(33,79,121,0.12), transparent 40%);
  pointer-events: none;
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(20, 35, 58, 0.04));
  pointer-events: none;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

/* Shared card styles */

.hero-image-frame,
.card,
.step,
.benefit,
.cta-box {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(20, 35, 58, 0.08);
  box-shadow: var(--shadow-md);
}

.section {
  padding: 92px 0;
}

.cards,
.steps,
.benefits {
  display: grid;
  gap: 24px;
}

.use-intro {
  max-width: 860px;
  margin: 0 0 2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.benefit,
.step {
  border-radius: var(--radius);
}

.card,
.benefit {
  padding: 28px;
}

.card,
.use-card,
.step,
.benefit {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.use-card:hover,
.step:hover,
.benefit:hover {
  transform: translateY(-4px);
}

.step {
  padding: 28px;
}

.card p,
.step p,
.benefit p,
.site-footer p,
.cta p {
  margin: 0;
  color: var(--muted);
}

.step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(33, 79, 121, 0.12), rgba(21, 58, 91, 0.06));
  color: var(--primary);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* CTA */

.cta {
  background:
    radial-gradient(circle at top right, rgba(33, 79, 121, 0.06), transparent 28%),
    linear-gradient(180deg, #f8fafc, #eef3f8);
}

.cta-box {
  border-radius: 30px;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  align-items: center;
  gap: 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(20, 35, 58, 0.10);
}

.cta-box>div {
  max-width: 720px;
}

.cta-box h2 {
  margin: 0 0 16px;
  max-width: none;
}

.cta-box .section-label {
  margin-bottom: 16px;
}

.cta-box p:last-child {
  margin: 0;
}

.cta-box .btn {
  justify-self: end;
  margin-right: 40px;
  align-self: center;
  transform: scale(1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: auto;
}

.cta-box .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(21, 58, 91, 0.25);
}

/* Footer */

.site-footer {
  background:
    linear-gradient(180deg, rgba(10, 24, 39, 0.98), rgba(15, 34, 52, 1));
  color: var(--white);
  padding: 36px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.site-footer p,
.site-footer li,
.site-footer a {
  font-size: 0.82rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 6px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 1px;
  transition: border-color 0.22s ease, color 0.22s ease;
}

.site-footer a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

.site-footer strong {
  color: #ffffff;
}

.footer-grid>div {
  min-width: 0;
}

#impressum p+p,
#imprint p+p {
  margin-top: 8px;
}

/* Responsive */

@media (max-width: 1180px) {

  .cards,
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
  }

  .hero-head {
    max-width: 900px;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 980px) {

  .hero-layout,
  .cards,
  .steps,
  .benefits,
  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0 64px;
  }

  .hero-head {
    margin-bottom: 32px;
  }

  .hero-copy,
  .hero-media {
    max-width: 100%;
  }

  .hero-media {
    height: auto;
  }

  .hero-image-frame {
    min-height: 400px;
    height: 400px;
    transform: none;
  }

  h1 {
    font-size: clamp(2.8rem, 8vw, 4.7rem);
    max-width: none;
  }

  .cta-box {
    align-items: flex-start;
  }

  .cta-box .btn {
    justify-self: start;
  }

  .footer-grid {
    gap: 28px;
  }

  .use-card {
    grid-template-columns: 1fr;
  }

  .use-card-media {
    height: 220px;
  }

  .profile-content {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .nav,
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav {
    padding: 14px 0;
  }

  .nav nav {
    width: 100%;
    gap: 16px;
  }

  .hero {
    padding: 58px 0 54px;
  }

  .hero-head {
    margin-bottom: 26px;
  }

  .eyebrow,
  .section-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    gap: 10px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
    line-height: 0.97;
    letter-spacing: -0.055em;
    max-width: none;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-image-frame {
    min-height: 320px;
    height: 320px;
    border-radius: 24px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .cta-box .btn {
    width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .btn {
    min-height: 48px;
    padding: 12px 18px;
    white-space: normal;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
    max-width: none;
  }

  .hero-image-frame {
    min-height: 260px;
    height: 260px;
  }

  .card,
  .benefit,
  .step,
  .cta-box {
    padding: 22px;
  }

  .section {
    padding: 72px 0;
  }

  .lang-switch a {
    min-width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .site-footer {
    padding: 34px 0 30px;
  }

  .site-footer h3,
  .site-footer h4 {
    font-size: 0.94rem;
  }

  .site-footer p,
  .site-footer li,
  .site-footer a {
    font-size: 0.86rem;
  }
}

/* ========== USE CASES ========== */

/* скрываем radio */
#use-cases input {
  display: none;
}

/* tabs */

.tabs {
  display: flex;
  gap: 12px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}

.tabs label {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* hover — очень мягкий */
.tabs label:hover {
  background: rgba(21, 58, 91, 0.04);
  border-color: rgba(21, 58, 91, 0.2);
}

/* active */

#tab1:checked~.tabs label[for="tab1"],
#tab2:checked~.tabs label[for="tab2"],
#tab3:checked~.tabs label[for="tab3"],
#tab4:checked~.tabs label[for="tab4"],
#tab5:checked~.tabs label[for="tab5"] {
  background: linear-gradient(180deg, #1e4b73 0%, #153a5b 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(21, 58, 91, 0.25);
}

/* content */

.tab-content {
  display: none;
}

#tab1:checked~.tabs-content .tab1,
#tab2:checked~.tabs-content .tab2,
#tab3:checked~.tabs-content .tab3,
#tab4:checked~.tabs-content .tab4,
#tab5:checked~.tabs-content .tab5 {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* grid */

.use-grid {
  display: grid;
  gap: 24px;
}

/* карточка */

.use-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* hover — subtle premium эффект */
.use-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 58, 91, 0.18);
}

/* текст */

.use-card-text h3 {
  margin-bottom: 10px;
}

.use-card-text p {
  margin: 0;
  color: var(--muted);
}

/* изображение */

.use-card-media {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(20, 35, 58, 0.08);
}

.use-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

/* лёгкий zoom */
.use-card:hover .use-card-media img {
  transform: scale(1.04);
}

/* Profile */

.profile-card {
  align-items: stretch;
}

.profile-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.profile-text p+p {
  margin-top: 12px;
}

.profile-text ul {
  margin: 16px 0;
  padding-left: 22px;
}

.profile-text li + li {
  margin-top: 8px;
}

.profile-quote {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow-soft);
}

.profile-quote p {
  margin: 0 0 10px;
  color: var(--text);
  font-style: italic;
}

.profile-quote span {
  display: inline-block;
  font-weight: 700;
  color: var(--primary);
}

.profile-media {
  height: 100%;
}

.profile-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}