:root {
  --pink: #e2175b;
  --pink-dark: #b90d44;
  --green: #159900;
  --ink: #202027;
  --muted: #73737d;
  --soft: #f6f6f8;
  --line: #ececf0;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(25, 25, 30, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(26, 26, 30, 0.06);
  backdrop-filter: blur(14px);
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  width: min(1320px, calc(100% - 40px));
  min-height: 96px;
  margin: 0 auto;
}

.brand img,
.footer-brand img {
  width: 231px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--pink);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible,
.chat-button:hover,
.chat-button:focus-visible,
.intro-cta:hover,
.intro-cta:focus-visible {
  transform: translateY(-1px);
}

.btn-primary,
.btn-secondary,
.chat-button {
  color: var(--white);
  background: var(--pink);
  box-shadow: 0 8px 18px rgba(226, 23, 91, 0.24);
}

.btn-primary:hover,
.btn-secondary:hover,
.chat-button:hover {
  background: var(--pink-dark);
}

.btn-light {
  color: var(--pink);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(86, 6, 34, 0.16);
}

.btn-outline {
  color: var(--pink);
  border: 2px solid var(--pink);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(226, 23, 91, 0.12);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--white);
  background: var(--pink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.signin-panel {
  position: absolute;
  top: calc(100% - 12px);
  right: 0;
  display: none;
  width: min(360px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.signin-panel.is-open {
  display: grid;
  gap: 12px;
}

.signin-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.signin-panel input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}

.signin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signin-row a {
  color: var(--pink);
  font-size: 14px;
  font-weight: 700;
}

.intro {
  background:
    linear-gradient(115deg, rgba(226, 23, 91, 0.12), rgba(21, 153, 0, 0.07)),
    var(--soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  min-height: 270px;
  padding: 58px 0 52px;
}

.intro h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.primary-anchor {
  color: inherit;
  text-decoration: none;
}

.primary-anchor:hover,
.primary-anchor:focus-visible {
  color: var(--pink-dark);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
}

.intro p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 4px;
  color: var(--white);
  background: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(226, 23, 91, 0.26);
}

.profiles-section {
  padding: 62px 0 74px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--pink);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.profiles-actions {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.profile-card {
  text-align: center;
}

.profile-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.35;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 12px 32px rgba(25, 25, 30, 0.13);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.profile-card:hover .profile-photo img {
  transform: scale(1.035);
}

.status {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.chat-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 14px 18px 12px;
  border-radius: 5px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-card h3 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.profile-card h3 a:hover,
.profile-card h3 a:focus-visible {
  color: var(--pink);
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cta-band {
  padding: 44px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(111, 8, 44, 0.34), rgba(226, 23, 91, 0)),
    var(--pink);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

.cta-band p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.about-section {
  padding: 62px 0;
  background: var(--soft);
}

.about-grid {
  max-width: 920px;
}

.about-section h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.about-section p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 36px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 700;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--pink);
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

@media (max-width: 1180px) {
  .header-shell {
    grid-template-columns: auto auto 1fr;
    gap: 18px;
    min-height: 82px;
  }

  .nav-toggle {
    display: inline-block;
    order: 2;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 3;
    justify-content: flex-end;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 6px;
  }

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

@media (max-width: 820px) {
  .page-shell,
  .header-shell {
    width: min(100% - 28px, 1180px);
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 190px;
  }

  .nav-toggle {
    order: 2;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    order: 3;
    padding-bottom: 14px;
  }

  .header-actions .btn {
    flex: 1;
  }

  .intro-grid,
  .cta-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    min-height: 0;
    padding: 42px 0;
  }

  .intro-cta,
  .cta-grid .btn {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
    text-align: left;
    white-space: normal;
  }

  .profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .signin-row {
    align-items: stretch;
    flex-direction: column;
  }

  .signin-row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
