@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --wine: #930526;
  --wine-dark: #76031e;
  --blue: #123879;
  --text: #232326;
  --muted: #5d5d66;
  --light: #f7f7f8;
  --border: #e5e0e2;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(40, 35, 38, 0.08);
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

/* =========================
   HEADER
========================= */

.site-header {
  width: 100%;
  min-height: 92px;
  padding: 18px 60px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo-main span {
  color: var(--wine);
}

.logo-sub {
  margin-top: 5px;
  font-size: 13px;
  color: #333;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--wine);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 38px;
}

.header-btn {
  padding: 17px 32px;
  border: 1px solid var(--wine);
  color: var(--wine);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s ease;
}

.header-btn:hover {
  background: var(--wine);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 6px auto;
  transition: 0.25s ease;
}

/* =========================
   HOME - HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: minmax(520px, 46%) 54%;
  align-items: center;
  min-height: 500px;
  padding: 38px 0 28px 64px;
  overflow: hidden;
  background: #ffffff;
}

.hero-content {
  width: 100%;
  max-width: 570px;
  position: relative;
  z-index: 3;
  padding-right: 28px;
}

.eyebrow {
  font-size: 14px;
  color: var(--wine);
  font-weight: 600;
  margin-bottom: 18px;
  display: none;
}

.hero h1 {
  max-width: 570px;
  font-family: "Playfair Display", serif;
  font-size: clamp(54px, 4.6vw, 78px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -2.3px;
  margin-bottom: 28px;
}

.hero h1 span {
  color: var(--wine);
}

.hero-text {
  max-width: 525px;
  font-size: 17px;
  line-height: 1.65;
  color: #34343a;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.btn {
  min-width: 220px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--wine);
  border: 1px solid var(--wine);
  box-shadow: 0 18px 30px rgba(147, 5, 38, 0.18);
}

.btn-primary:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--wine);
  border: 1px solid var(--wine);
  background: var(--white);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--wine);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  height: 430px;
  width: calc(100% + 70px);
  margin-left: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.72) 28%,
    rgba(255, 255, 255, 0.32) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 13%;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.68) 0%,
    rgba(255, 255, 255, 0.26) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* =========================
   HOME - INTRO
========================= */

.intro-grid {
  max-width: 1640px;
  margin: 20px auto 0;
  padding: 0 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}

.intro-item {
  position: relative;
  padding: 0 54px 0 0;
  min-height: 150px;
}

.intro-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  width: 1px;
  height: 125px;
  background: #d9d9df;
}

.line {
  width: 28px;
  height: 2px;
  background: var(--wine);
  display: block;
  margin-bottom: 18px;
}

.intro-item h2 {
  font-family: "Playfair Display", serif;
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 12px;
}

.intro-item p {
  font-size: 15px;
  color: #45454d;
  line-height: 1.55;
}

/* =========================
   HOME - CARDS
========================= */

.cards-section {
  max-width: 1580px;
  margin: 28px auto 24px;
  padding: 0 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.service-card {
  min-height: 170px;
  padding: 24px 30px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(147, 5, 38, 0.22);
}

.card-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(147, 5, 38, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  font-size: 27px;
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14.5px;
  color: #44444b;
  line-height: 1.55;
  max-width: 380px;
}

.card-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--wine);
  font-size: 15px;
  font-weight: 700;
}

.card-link span {
  font-size: 23px;
  transition: transform 0.25s ease;
}

.card-link:hover span {
  transform: translateX(6px);
}

/* =========================
   HOME - DECIDELAB STRIP
========================= */

.lab-strip {
  width: calc(100% - 150px);
  max-width: 1480px;
  min-height: 96px;
  margin: 22px auto 26px;
  padding: 16px 48px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f7f7f8 0%, #ffffff 48%, #f8f8fa 100%);
  display: grid;
  grid-template-columns: 660px 190px 330px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.lab-content {
  max-width: 660px;
}

.lab-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px;
  white-space: nowrap;
}

.lab-content h2 span {
  color: var(--blue);
}

.lab-content p {
  max-width: 620px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #4b4b53;
}

.lab-btn {
  width: 170px;
  height: 44px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 5px;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.25s ease;
}

.lab-btn:hover {
  background: var(--blue);
  color: var(--white);
}

.lab-brand {
  min-height: 66px;
  border-left: 1px solid #d7d7dd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.lab-symbol {
  width: 66px;
  height: 50px;
  position: relative;
}

.lab-symbol span {
  width: 38px;
  height: 38px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  position: absolute;
  top: 6px;
}

.lab-symbol span:nth-child(1) {
  left: 0;
}

.lab-symbol span:nth-child(2) {
  left: 18px;
}

.lab-symbol span:nth-child(3) {
  left: 36px;
}

.lab-brand strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
}

.lab-brand small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 24px 30px;
  text-align: center;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #eee;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {
  .hero {
    grid-template-columns: minmax(470px, 46%) 54%;
    padding-left: 58px;
  }

  .hero-image {
    width: calc(100% + 55px);
    margin-left: 0;
  }

  .hero-image::before {
    width: 20%;
    background: linear-gradient(
      90deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.68) 30%,
      rgba(255, 255, 255, 0.26) 64%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .lab-strip {
    width: calc(100% - 100px);
    grid-template-columns: 600px 180px 310px;
    gap: 28px;
  }

  .lab-content {
    max-width: 600px;
  }

  .lab-content h2 {
    font-size: 27px;
  }

  .lab-content p {
    max-width: 560px;
  }
}

@media (max-width: 1200px) {
  .site-header {
    padding: 18px 28px;
    grid-template-columns: 190px 1fr auto;
  }

  .main-nav {
    gap: 24px;
  }

  .hero {
    grid-template-columns: minmax(430px, 48%) 52%;
    min-height: 470px;
    padding-left: 42px;
  }

  .hero h1 {
    font-size: clamp(50px, 5vw, 70px);
  }

  .hero-image {
    width: calc(100% + 35px);
    margin-left: 0;
    height: 400px;
  }

  .hero-image::before {
    width: 18%;
    background: linear-gradient(
      90deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.64) 30%,
      rgba(255, 255, 255, 0.22) 66%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .intro-grid,
  .cards-section {
    padding: 0 50px;
    gap: 32px;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .lab-strip {
    width: calc(100% - 56px);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px;
    gap: 24px;
  }

  .lab-content {
    max-width: 100%;
  }

  .lab-content h2 {
    white-space: normal;
  }

  .lab-content p {
    max-width: 560px;
    margin: 0 auto;
  }

  .lab-brand {
    border-left: 0;
    border-top: 1px solid #d7d7dd;
    padding-top: 22px;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 78px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .header-btn {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    padding: 22px;
    background: var(--white);
    border-bottom: 1px solid #eee;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding: 48px 28px 20px;
    display: block;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .hero h1 {
    font-size: 54px;
    letter-spacing: -1.5px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: 330px;
    margin-left: 0;
    margin-top: 36px;
    border-radius: 14px;
  }

  .hero-image::before,
  .hero-image::after {
    display: none;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    padding: 0 28px;
    gap: 34px;
  }

  .intro-item {
    padding: 0;
  }

  .intro-item:not(:last-child)::after {
    display: none;
  }

  .cards-section {
    grid-template-columns: 1fr;
    padding: 0 28px;
    gap: 22px;
  }

  .service-card {
    min-height: auto;
  }

  .lab-strip {
    width: calc(100% - 56px);
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .logo-main {
    font-size: 27px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-image {
    height: 260px;
  }

  .lab-content h2,
  .lab-brand strong {
    font-size: 27px;
  }

  .lab-strip {
    width: calc(100% - 32px);
    padding: 24px 18px;
  }

  .lab-brand {
    gap: 16px;
  }
}