:root {
  --ink: #151515;
  --muted: #5d6460;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --red: #b32329;
  --red-dark: #7f171c;
  --green: #315f4f;
  --line: #ded9ce;
  --shadow: 0 24px 70px rgba(21, 21, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(179, 35, 41, 0.08), transparent 36rem),
    linear-gradient(315deg, rgba(49, 95, 79, 0.12), transparent 34rem),
    var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(222, 217, 206, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
}

nav {
  display: flex;
  gap: 0.35rem;
}

nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  background: rgba(179, 35, 41, 0.1);
  outline: none;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(3rem, 8vw, 6rem) 0 4rem;
}

.hero__copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 10vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.lead {
  max-width: 58ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  color: white;
  background: var(--red);
  box-shadow: 0 14px 30px rgba(179, 35, 41, 0.24);
}

.button--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(179, 35, 41, 0.18);
}

.hero__mark {
  display: grid;
  place-items: center;
}

.hero__mark img {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.intro p:last-child,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.flip-card {
  min-width: 0;
  min-height: 260px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.flip-card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: transform 0.65s ease;
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card__inner,
.flip-card:focus-visible .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card:focus-visible {
  outline: 3px solid rgba(179, 35, 41, 0.28);
  outline-offset: 4px;
}

.flip-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  backface-visibility: hidden;
}

.flip-card__front {
  color: white;
  background:
    linear-gradient(160deg, rgba(21, 21, 21, 0.72), rgba(21, 21, 21, 0.92)),
    var(--green);
}

.flip-card__back {
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotateY(180deg);
}

.flip-card strong {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.flip-card span {
  color: white;
  font: inherit;
}

.flip-card__front > span:last-child,
.flip-card__back > span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.flip-card__back > span:last-child {
  color: var(--muted);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-weight: 800;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  font-style: normal;
}

.contact-list a,
.contact-list span {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: rgba(179, 35, 41, 0.45);
  outline: none;
}

.notice {
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.notice p {
  max-width: 82ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

footer a {
  font-weight: 800;
  text-decoration: none;
}

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

  .hero {
    min-height: auto;
  }

  .hero__mark {
    order: -1;
  }

  .hero__mark img {
    width: min(76vw, 360px);
  }

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

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

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  h1 {
    max-width: 9ch;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

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