:root {
  --bg: #ffffff;
  --surface: #fff8e0;
  --text: #243447;
  --muted: #4c5d72;
  --accent: #ffd84d;
  --accent-strong: #d41e01;
  --line: #f3e0a3;
  --card-shadow: 0 10px 26px rgba(30, 50, 56, 0.12);
  --soft-shadow: 0 6px 14px rgba(30, 50, 56, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--accent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0d989;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #000000);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.4rem;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.22rem;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2.5vw, 2.2rem);
  font-weight: 500;
  color: #2f3f50;
}

.menu a {
  position: relative;
  padding: 0.3rem 0;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  transform: scaleX(1);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--accent-strong);
}

.menu a[aria-current="page"] {
  color: var(--accent-strong);
}

.menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.contact-btn {
  width: auto;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  border: 1px solid var(--accent-strong);
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.2s ease, border-color 0.22s ease;
}

.contact-btn svg {
  width: 18px;
  height: 18px;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  background: var(--accent);
  color: #6f0f00;
  border-color: #d4ad16;
  transform: translateY(-1px);
}

.hero-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 216, 77, 0.42) 0%, rgba(255, 216, 77, 0) 45%),
    radial-gradient(circle at 90% 85%, rgba(212, 30, 1, 0.2) 0%, rgba(212, 30, 1, 0) 44%),
    linear-gradient(160deg, #fff8df 0%, #fff2c2 100%);
  padding: clamp(2.6rem, 6vw, 4rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.1rem);
  align-items: center;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 3.25rem);
  line-height: 1.08;
  max-width: 14ch;
  color: #261e14;
}

.hero-content p {
  margin: 1rem 0 0;
  max-width: 48ch;
  font-size: 1.11rem;
  line-height: 1.6;
  color: #4f3a27;
}

.hero-image,
.about-image {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin-inline: auto;
}

.hero-image {
  min-height: 0;
  max-height: none;
}

.section {
  padding: clamp(3rem, 6vw, 5.2rem) 0;
  scroll-margin-top: 110px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.section-tight {
  padding-top: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
}

.about-image {
  min-height: 0;
}

.about-copy p {
  margin: 1rem 0 0;
  font-size: 1.14rem;
  line-height: 1.58;
  color: #3d5167;
  max-width: 42ch;
}

.center-content {
  text-align: center;
}

.exam-grid {
  margin: 1.9rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.95rem;
  max-width: 900px;
}

.exam-grid span {
  border: 1px solid #ebefef;
  border-radius: 9px;
  padding: 0.8rem 0.6rem;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  font-weight: 600;
  color: #28374a;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.exam-grid span:hover,
.exam-grid span:focus-visible {
  background: #ffd84d;
  border-color: #ffd84d;
  color: #1e2026;
  transform: scale(1.04);
  box-shadow: 0 10px 18px rgba(30, 50, 56, 0.2);
}

.partners-card {
  background: #fff1bd;
  border-radius: 38px;
  padding: clamp(1.7rem, 4vw, 2.6rem);
  text-align: center;
}

.partners-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 1rem;
}

.partner-logo {
  min-height: 120px;
  border-radius: 18px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: var(--soft-shadow);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.partner-logo.cassems {
  color: #2b2f3a;
}

.partner-logo.unimed {
  color: var(--accent-strong);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1rem, 4vw, 4.2rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  color: #35495f;
  font-size: 1.09rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #9f1700;
  background: #fff0b8;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
}

.contact-item-text {
  padding-top: 0.25rem;
}

.social-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-row a {
  color: var(--accent-strong);
  font-weight: 600;
}

.social-icon-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e0de;
  border-radius: 10px;
  background: #ffffff;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.social-icon-link svg {
  width: 22px;
  height: 22px;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
  transform: translateY(-2px);
  background: #fff0b3;
  border-color: var(--accent);
}

.map-wrapper {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
}

.map-frame {
  width: 100%;
  min-height: 260px;
  border: 0;
  display: block;
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
}

.map-link {
  margin-top: 0.75rem;
  display: inline-block;
  color: var(--accent-strong);
  font-weight: 600;
}

.map-link:hover,
.map-link:focus-visible {
  text-decoration: underline;
}

.site-footer {
  margin-top: 1rem;
  background: var(--accent);
  color: #5b2a00;
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 0.75rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
  grid-column: 2;
  text-align: center;
}

.footer-credit {
  grid-column: 3;
  justify-self: end;
  font-size: 0.72rem;
  opacity: 0.9;
}

@media (max-width: 980px) {
  .header-wrap {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand whatsapp"
      "menu menu";
    justify-items: stretch;
    align-items: center;
    padding: 0.95rem 0;
    gap: 0.8rem;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .menu {
    grid-area: menu;
    width: 100%;
    overflow-x: visible;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 0.3rem;
  }

  .contact-btn {
    grid-area: whatsapp;
    justify-self: end;
    width: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
  }

  .contact-btn-label {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 300px;
    max-height: 360px;
  }

  .about-copy p {
    max-width: 100%;
  }

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

  .map-wrapper {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .exam-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .hero-content p,
  .contact-list {
    font-size: 1rem;
  }

  .site-footer p {
    font-size: 0.88rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.2rem;
  }

  .site-footer p,
  .footer-credit {
    grid-column: 1;
    justify-self: center;
  }

}
