:root {
  --paper: #fef7f2;
  --paper-deep: #dfd9d2;
  --ink: #2d1d1a;
  --blue: #062877;
  --red: #9b2544;
  --red-soft: #bb2a35;
  --green: #559b92;
  --green-deep: #286863;
  --green-pale: #edffdd;
  --gold: #f5a623;
  --clay: #e75021;
  --shadow: rgba(67, 52, 48, 0.15);
  --max: 1160px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  background:
    radial-gradient(circle at 15% 8%, rgba(245, 166, 35, 0.09), transparent 26rem),
    radial-gradient(circle at 85% 25%, rgba(85, 155, 146, 0.08), transparent 25rem),
    linear-gradient(135deg, rgba(223, 217, 210, 0.22) 0 1px, transparent 1px 9px),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.43;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(67, 52, 48, 0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 45%, rgba(67, 52, 48, 0.035) 0 1px, transparent 1px);
  background-size: 22px 22px, 31px 31px;
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(155, 37, 68, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--red);
}

main,
footer {
  position: relative;
  z-index: 1;
}

section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  min-height: 88vh;
  padding: 70px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.logo {
  width: min(390px, 82vw);
  margin: 0 0 38px;
}

.intro {
  margin: 0;
  max-width: 620px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.12rem, 1.9vw, 1.78rem);
  line-height: 1.48;
  color: var(--red);
  letter-spacing: -0.025em;
}

.frame {
  position: relative;
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(254, 247, 242, 0.72);
  box-shadow: 0 22px 55px var(--shadow);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: calc(var(--radius) + 12px);
  transform: rotate(-1.4deg);
  opacity: 0.7;
}

.frame--warm::before {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.7), rgba(231, 80, 33, 0.22));
}

.frame--green::before {
  background: linear-gradient(135deg, rgba(189, 232, 206, 0.9), rgba(85, 155, 146, 0.28));
}

.frame img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 8px);
  object-fit: cover;
}

.hero__image {
  height: min(650px, 72vh);
  min-height: 450px;
}

.offer {
  padding: 54px 0 84px;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
}

.offer > h1,
.about h1 {
  color: var(--blue);
  font-size: clamp(1.95rem, 3.8vw, 3.6rem);
  letter-spacing: 0.015em;
}

.offer > h1 {
  text-align: center;
  margin-bottom: 34px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(85, 155, 146, 0.38);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(237, 255, 221, 0.24)),
    rgba(254, 247, 242, 0.68);
  box-shadow: 0 15px 38px rgba(67, 52, 48, 0.08);
}

.card h2 {
  color: var(--red);
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  margin-bottom: 10px;
}

.card__subtitle {
  color: var(--green-deep);
  font-size: 1.16rem;
  font-weight: 700;
  margin: 0 0 14px;
}

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

.about {
  padding: 48px 0 96px;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.about__image {
  position: sticky;
  top: 28px;
}

.about__image img {
  aspect-ratio: 4 / 5;
}

.about h1 {
  margin-bottom: 28px;
}

.about__text p {
  margin: 0 0 1.05em;
}

.about__text p:first-of-type,
.about__text p:nth-of-type(2) {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--red);
  font-size: clamp(1.26rem, 2vw, 1.62rem);
  line-height: 1.45;
}

footer {
  border-top: 1px solid rgba(155, 37, 68, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(223, 217, 210, 0.4)),
    rgba(254, 247, 242, 0.75);
}

.footer__inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 44px 0 50px;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr auto auto;
  gap: 18px 28px;
  align-items: end;
}

.footer__inner h2 {
  color: var(--blue);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.footer__inner p {
  margin: 0;
}

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

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero__image {
    height: auto;
    min-height: 0;
  }

  .hero__image img {
    aspect-ratio: 16 / 11;
  }

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

  .about__image {
    position: relative;
    top: auto;
    max-width: 520px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  section {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding-top: 30px;
  }

  .logo {
    margin-bottom: 26px;
  }

  .intro {
    font-size: clamp(1.06rem, 5.2vw, 1.38rem);
    line-height: 1.55;
  }

  .offer,
  .about {
    padding-top: 34px;
    padding-bottom: 58px;
  }

  .card {
    border-radius: 22px;
  }

  .footer__inner {
    width: min(calc(100% - 28px), var(--max));
    grid-template-columns: 1fr;
    padding: 34px 0 38px;
  }
}
