:root {
  --ink: #162033;
  --text: #3f4a5c;
  --muted: #eef7f4;
  --line: #d9e1e5;
  --brand: #11645b;
  --brand-dark: #0a403b;
  --accent: #c79b48;
  --soft: #edf5f2;
  --blue-soft: #eaf4f7;
  --gold-soft: #fbf4e7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f6faf9;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 225, 229, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.site-header .brand {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: 0;
  padding-bottom: 40px;
  transform: translateY(50%);
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: clamp(132px, 18vw, 190px);
  height: auto;
  border-radius: 4px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.language-switcher {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  display: inline-flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(22, 32, 51, 0.04);
}

.language-button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.language-button:hover {
  color: var(--brand);
  background: var(--soft);
}

.language-button.active,
.language-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--brand);
}

.language-button.active:hover,
.language-button[aria-pressed="true"]:hover {
  color: var(--white);
  background: var(--brand);
}

.hero {
  display: grid;
  min-height: calc(100vh - 83px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  padding: clamp(56px, 9vw, 108px) clamp(20px, 5vw, 72px);
  color: var(--ink);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 242, 0.9), rgba(255, 255, 255, 0.62)),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=80") center/cover;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 760px;
  margin: 26px 0 34px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 14px 35px rgba(17, 100, 91, 0.22);
}

.primary:hover {
  background: var(--brand-dark);
}

.secondary {
  margin-top: 18px;
  color: var(--white);
  background: var(--brand);
}

.secondary:hover {
  background: var(--brand-dark);
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-self: end;
  padding-bottom: 8px;
}

.hero-panel div {
  border-left: 3px solid var(--accent);
  padding: 18px 20px 18px 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 45px rgba(22, 32, 51, 0.1);
  backdrop-filter: blur(10px);
}

.hero-panel span,
.service-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-panel strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(64px, 10vw, 112px) clamp(20px, 5vw, 72px);
}

#sobre {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(234, 244, 247, 0.88)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.muted {
  display: block;
  background:
    linear-gradient(135deg, rgba(238, 247, 244, 0.96), rgba(251, 244, 231, 0.72));
}

.section-heading {
  max-width: 560px;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-text {
  margin: 34px 0 0;
  max-width: 740px;
  color: var(--text);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.about-content {
  display: grid;
  gap: 26px;
}

.team-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 780px;
}

.about-copy {
  max-width: 780px;
}

.about-copy .section-text {
  margin-top: 0;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.director-photo {
  margin: 0;
  max-width: 380px;
}

.director-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(22, 32, 51, 0.14);
}

.director-photo figcaption {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.service-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(22, 32, 51, 0.06);
}

.service-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.28;
}

.why {
  align-items: start;
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
}

.why-list {
  display: grid;
  gap: 18px;
}

.why-list div {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.05);
}

.why-list span {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  background: var(--brand);
  border-radius: 50%;
}

.why-list p {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
}

.partners {
  display: grid;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.partners-list span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(22, 32, 51, 0.06);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--brand-dark), #12334a);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.contact-section h2 {
  color: var(--white);
}

.contact-section .eyebrow {
  color: var(--gold-soft);
}

.contact-box {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(22, 32, 51, 0.1);
}

.contact-box p {
  margin: 0 0 12px;
  color: var(--text);
}

.contact-box strong {
  color: var(--ink);
}

.contact-box a:not(.button) {
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header .brand {
    position: static;
    align-self: center;
    padding-bottom: 0;
    transform: none;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .language-switcher {
    position: static;
    width: 100%;
    justify-content: space-between;
  }

  .language-button {
    flex: 1;
  }

  .hero {
    padding-top: 48px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 132px;
  }

  .team-photos {
    grid-template-columns: 1fr;
  }
}
