:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #152033;
  --muted: #5b6472;
  --line: #dbe3ee;
  --primary: #0f3d91;
  --primary-strong: #0a2c69;
  --accent: #15a3b8;
  --success: #0d8a52;
  --shadow: 0 20px 60px rgba(15, 61, 145, 0.12);
  --shadow-hover: 0 24px 60px rgba(15, 61, 145, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 300px 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  max-width: 760px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 36px;
}

.section-description,
.section-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21, 163, 184, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.topbar {
  background: var(--primary-strong);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 10px 0;
}

.topbar-links,
.topbar-social,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav,
.nav-list,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.nav {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.header-actions {
  flex: 0 0 auto;
}

.topbar-links,
.topbar-social {
  gap: 16px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.topbar a:hover,
.nav-link:hover,
.footer-link:hover,
.contact-link:hover {
  opacity: 0.78;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(21, 32, 51, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.nav-list {
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--text);
  transition: 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1856ca 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 61, 145, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: rgba(15, 61, 145, 0.18);
}

.hero {
  padding: 48px 0 72px;
}

.hero-grid,
.contact-grid,
.policy-grid,
.footer-grid,
.two-col {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.info-card,
.team-card,
.job-card,
.contact-card,
.review-card,
.policy-card,
.vacancy-card,
.stat-card,
.testimonial-card {
  background: var(--surface);
  border: 1px solid rgba(21, 32, 51, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background: radial-gradient(circle at top right, rgba(21, 163, 184, 0.16), transparent 28%), radial-gradient(circle at left bottom, rgba(15, 61, 145, 0.12), transparent 30%), #fff;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(21, 163, 184, 0.08);
}

.hero-copy,
.hero-copy p {
  position: relative;
  z-index: 1;
}

.hero-copy p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.82);
}

.stat-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.info-card,
.job-card,
.vacancy-card,
.review-card,
.contact-card,
.policy-card,
.testimonial-card {
  padding: 28px;
}

.info-card h3,
.job-card h3,
.vacancy-card h3,
.contact-card h3,
.policy-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.3;
}

.contact-card h3,
.policy-card h3,
.job-card h3,
.vacancy-card h3 {
  font-size: 22px;
}

.info-card p,
.info-card li,
.review-card p,
.policy-card p,
.policy-card li,
.contact-card p,
.contact-list li span,
.contact-list li a,
.review-author span,
.policy-meta,
.testimonial-card__text,
.team-role,
.team-card__role {
  color: var(--muted);
}

.check-list,
.contact-list,
.footer-contact-list,
.policy-list,
.footer-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.contact-list li,
.footer-contact-list li,
.policy-list li {
  display: flex;
  align-items: start;
  gap: 12px;
}

.check-list li::before,
.policy-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(13, 138, 82, 0.12);
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.team-grid,
.jobs-grid,
.vacancies-grid,
.reviews-grid,
.contact-grid,
.policy-grid,
.testimonials-grid,
.jobs-directions {
  display: grid;
  gap: 24px;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jobs-grid,
.vacancies-grid,
.reviews-grid,
.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.policy-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  align-items: start;
}

.jobs-directions {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 40px;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover,
.job-card:hover,
.vacancy-card:hover,
.review-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.team-card__photo,
.team-photo {
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

.team-card__photo {
  aspect-ratio: 4 / 4.4;
  background: #eef2f7;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  display: grid;
  place-items: center;
}

.team-photo span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(15, 61, 145, 0.18);
}

.team-content,
.team-card__body {
  padding: 22px 20px 24px;
}

.team-name,
.team-card__name {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.team-card__name {
  color: var(--primary-strong);
}

.team-name {
  font-size: 18px;
  font-weight: 800;
}

.team-card__role--accent {
  color: var(--accent);
  font-weight: 700;
}

.team-card__description {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.job-dir {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f5f7fb;
  font-size: 15px;
  line-height: 1.6;
}

.job-icon,
.vacancy-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(15, 61, 145, 0.08);
  font-size: 24px;
}

.job-card,
.vacancy-card {
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vacancy-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}

.review-quote {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

.review-author,
.testimonial-card__footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.review-author strong,
.testimonial-card__author {
  display: block;
  font-size: 16px;
}

.contact-card--primary {
  background: linear-gradient(135deg, rgba(15, 61, 145, 0.04), rgba(21, 163, 184, 0.06)), #fff;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--surface-2);
  transition: 0.18s ease;
}

.contact-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 61, 145, 0.15);
}

.contact-link-title {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-link-value {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
}

.contact-list li strong,
.footer-address strong {
  min-width: 150px;
  color: var(--text);
  font-size: 15px;
}

.policy-card {
  max-height: 700px;
  overflow: auto;
}

.policy-card h4 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.policy-card h4:first-of-type {
  margin-top: 16px;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 26px;
  background: #0d1728;
  color: rgba(255, 255, 255, 0.9);
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand p,
.footer-address,
.footer-contact-list a,
.footer-link {
  color: rgba(255, 255, 255, 0.76);
}

.footer-title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(18, 38, 63, 0.07);
}

.testimonial-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.testimonial-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 58, 99, 0.08);
  color: #173a63;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.testimonial-card__quote {
  color: #173a63;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.22;
}

.testimonial-card__text {
  flex: 1;
  margin: 0 0 20px;
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}

.testimonial-card__author {
  margin: 0 0 6px;
  color: #0f2742;
  font-size: 18px;
  line-height: 1.35;
}

.testimonial-card__role {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.hide-desktop {
  display: none;
}

@media (max-width: 1100px) {
  .hero-grid,
  .contact-grid,
  .policy-grid,
  .footer-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jobs-grid,
  .vacancies-grid,
  .reviews-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 861px) {
  .nav {
    position: static;
    display: flex !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none !important;
    padding: 14px;
    border: 1px solid rgba(21, 32, 51, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: block !important;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    width: 100%;
    border-radius: 14px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .hero-card,
  .job-card,
  .vacancy-card,
  .contact-card,
  .review-card,
  .policy-card,
  .info-card,
  .testimonial-card {
    padding: 22px;
  }

  .hero-points,
  .team-grid,
  .jobs-grid,
  .vacancies-grid,
  .reviews-grid,
  .testimonials-grid,
  .jobs-directions {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .hide-desktop {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .header-inner,
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .contact-list li {
    flex-direction: column;
    gap: 4px;
  }

  .contact-list li strong {
    min-width: auto;
  }

  .team-card__body {
    padding: 20px 18px 22px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 24px));
  margin: 6vh auto 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.25);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal__header {
  margin-bottom: 20px;
}

.modal__header h3 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--primary-strong);
}

.modal__text {
  margin-top: 12px;
  color: var(--muted);
}

.application-form {
  display: grid;
  gap: 16px;
}

.application-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  font-size: 15px;
  background: #fff;
}

.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 61, 145, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.form-message {
  min-height: 24px;
  font-size: 14px;
  color: var(--muted);
}

.form-message.is-success {
  color: #0d8a52;
}

.form-message.is-error {
  color: #c62828;
}

@media (max-width: 640px) {
  .modal__dialog {
    margin-top: 4vh;
    padding: 22px;
  }

  .application-form__grid {
    grid-template-columns: 1fr;
  }
}