/* Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --rc-bg: #f6f8fc;
  --rc-bg-alt: #e8effa;
  --rc-primary: #1f3e7a;
  --rc-primary-soft: #d3e0ff;
  --rc-accent: #3d6fd1;
  --rc-text-main: #1f2a3c;
  --rc-text-muted: #64708a;
  --rc-border: #d2ddf0;
  --rc-white: #ffffff;
  --rc-radius-lg: 18px;
  --rc-shadow-card: 0 8px 24px rgba(115, 142, 193, 0.18);
  --rc-transition-fast: 160ms ease-out;
  --rc-transition-med: 220ms ease-out;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--rc-bg);
  color: var(--rc-text-main);
}

body {
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 252, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(210, 221, 240, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  gap: 1.5rem;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--rc-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--rc-text-muted);
  padding: 0.35rem 0.25rem;
  transition: color var(--rc-transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rc-primary), var(--rc-accent));
  transition: width var(--rc-transition-med);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--rc-primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* Language toggle */
.language-switcher {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 999px;
  background: var(--rc-bg-alt);
  border: 1px solid var(--rc-border);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--rc-text-muted);
  transition: background var(--rc-transition-fast), color var(--rc-transition-fast), box-shadow var(--rc-transition-fast), transform var(--rc-transition-fast);
}

.lang-btn.active {
  background: var(--rc-white);
  color: var(--rc-primary);
  box-shadow: 0 3px 10px rgba(68, 110, 190, 0.25);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.9rem;
  background: radial-gradient(circle at top, #ffffff 0, #f0f4ff 45%, #e4edff 100%);
}

.hero-centered-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.3rem, 3vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: var(--rc-primary);
}

.hero-subtitle {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--rc-text-main);
}

.hero-logo-wrapper {
  margin-top: 1.1rem;
}

.hero-logo-centered {
  display: flex;
  justify-content: center;
}

.hero-logo {
  max-width: 210px;
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  max-width: 34rem;
  margin: 1.5rem auto 1.7rem;
  color: var(--rc-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.hero-small {
  font-size: 0.85rem;
  color: var(--rc-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--rc-transition-fast), box-shadow var(--rc-transition-fast), background var(--rc-transition-fast), color var(--rc-transition-fast), border-color var(--rc-transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, var(--rc-primary), var(--rc-accent));
  color: var(--rc-white);
  box-shadow: 0 10px 22px rgba(64, 96, 163, 0.38);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(55, 86, 146, 0.55);
}

.btn.secondary {
  background: var(--rc-white);
  color: var(--rc-primary);
  border-color: var(--rc-primary-soft);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  background: #f2f5ff;
  border-color: var(--rc-accent);
  color: var(--rc-accent);
  box-shadow: 0 6px 20px rgba(114, 139, 194, 0.3);
}

.btn.footer-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}

.btn.full-width {
  width: 100%;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8f9fd 0%, #edf2ff 100%);
}

.section-narrow {
  max-width: 760px;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--rc-primary);
}

.section-subtitle,
.section-intro {
  margin: 0;
  color: var(--rc-text-muted);
  font-size: 0.98rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--rc-white);
  border-radius: var(--rc-radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(210, 221, 240, 0.9);
  box-shadow: var(--rc-shadow-card);
  transition: transform var(--rc-transition-fast), box-shadow var(--rc-transition-fast), border-color var(--rc-transition-fast), background var(--rc-transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(115, 142, 193, 0.35);
  border-color: rgba(158, 184, 230, 0.96);
  background: #fbfdff;
}

.card-title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--rc-primary);
}

.card-list {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--rc-text-muted);
}

.card-list li + li {
  margin-top: 0.35rem;
}

.card-text {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--rc-text-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.team-card {
  min-height: 100%;
}

.team-photo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  box-shadow: 0 10px 24px rgba(57, 86, 143, 0.35);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rc-accent);
}

/* Offices */
.offices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.office-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}

.office-card .office-address {
  margin: 0 0 0.5rem;
  font-size: 0.93rem;
}

.office-phone {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rc-text-muted);
}

/* Contact */
.contact-section {
  background: radial-gradient(circle at top left, #f9fbff 0, #edf3ff 45%, #e3edff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: stretch;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rc-text-muted);
}

.contact-value {
  font-size: 0.95rem;
  color: var(--rc-text-main);
  text-decoration: none;
}

.contact-value:hover,
.contact-value:focus-visible {
  text-decoration: underline;
}

.contact-card {
  height: 100%;
}

.contact-card .card-text {
  margin-bottom: 1.2rem;
}

/* Footer */
.site-footer {
  background: #e9effb;
  border-top: 1px solid rgba(205, 216, 236, 0.96);
  padding: 1.2rem 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--rc-text-muted);
}

.footer-text {
  margin: 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .offices-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    flex-wrap: wrap;
  }

  .language-switcher {
    order: 2;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding-inline: 1rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .section {
    padding: 2.4rem 0;
  }

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

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
