:root {
  --paper: #f5f0ea;
  --beige: #d8d0c6;
  --sand: #c9c0b5;
  --smoke: #6f6f6b;
  --ink: #1f1d1a;
  --white: #ffffff;
  --glass: rgba(245, 240, 234, 0.5);
  --glass-strong: rgba(245, 240, 234, 0.76);
  --shadow: 0 28px 60px rgba(62, 48, 30, 0.15);
  --screen-gutter: clamp(18px, 3vw, 40px);
  --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --alice: "Alice", serif;
  --source-sans-pro: "Source Sans 3", sans-serif;
  --raleway: "Raleway", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: linear-gradient(180deg, #f4efe9 0%, #e8e1d9 100%);
  font-family: var(--sans);
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(32, 24, 15, 0.08));
  pointer-events: none;
}

.screen > * {
  position: relative;
  z-index: 1;
}

.screen--contact {
  background: linear-gradient(180deg, #ddd4ca 0%, #d4cbc1 100%);
}

.screen--contact::before {
  content: none;
}

.screen--checklist::before {
  background-image: url("./assets/6.webp");
}

.screen--hero::before {
  background-image: url("./assets/3.webp");
}

.contact-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vh, 48px) max(var(--screen-gutter), 24px) clamp(28px, 5vh, 44px);
}

.contact-card {
  width: min(100%, 440px);
  display: grid;
  gap: 0;
  justify-items: center;
}

.contact-card__visual {
  width: min(320px, 74vw);
  aspect-ratio: 0.9;
  margin: 0 auto -34px;
  border: 4px solid rgba(128, 126, 123, 0.88);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 40px rgba(105, 95, 81, 0.18);
  background: #eee6dc;
}

.contact-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.contact-card__body {
  width: 100%;
  padding: 50px 18px 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(247, 242, 236, 0.8), rgba(246, 240, 233, 0.95));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(109, 100, 87, 0.18);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row--link {
  color: inherit;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.contact-row--link:hover,
.contact-row--link:focus-visible {
  background-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.contact-row__icon {
  display: grid;
  place-items: center;
  color: #111;
}

.contact-row__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row__text {
  font-family: var(--source-sans-pro);
  font-weight: 300;
  min-width: 0;
  padding-right: 10px;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.call-btn2 {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 110px;
  height: 110px;
  margin: 0;
  padding: 0;
  z-index: 10;
  font-size: 0;
  background-color: transparent;
  cursor: pointer;
}

.call-btn2 .tada2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border-radius: 100px;
  background: #02ff78;
  box-shadow: 0 8px 18px rgba(4, 128, 54, 0.2);
  animation-name: tada;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.call-btn2 .tada2 a {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  text-decoration: none;
}

.call-btn2 .tada2 svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

@keyframes tada {
  from {
    transform: rotate(-20deg);
  }

  to {
    transform: rotate(20deg);
  }
}

.call-btn2 .pulse2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  border-radius: 100px;
  background: rgb(28 155 58 / 39%);
  animation-name: pulse;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}

@keyframes pulse {
  from {
    width: 55px;
    height: 55px;
    margin-top: -27.5px;
    margin-left: -27.5px;
  }

  to {
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
  }
}

.call-btn2 .zoomIn2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: -40px;
  border: 2px solid #02ff2d;
  border-radius: 100px;
  animation-name: zoomIn;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-out;
}

@keyframes zoomIn {
  from {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    opacity: 0.95;
  }

  to {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    margin-left: -40px;
    opacity: 0;
  }
}

.checklist-panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vh, 72px) var(--screen-gutter);
}

.checklist-panel__frame {
  position: relative;
  width: min(100%, 640px);
  padding: clamp(32px, 4vw, 46px) clamp(24px, 4vw, 38px);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(233, 226, 217, 0.48);
  box-shadow: 0 25px 45px rgba(81, 71, 60, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.checklist-panel__frame::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 2.3vw, 26px);
  border: clamp(4px, 0.45vw, 6px) solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  pointer-events: none;
}

.checklist-panel__frame h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(24px, 4vh, 36px);
  color: rgba(108, 108, 108, 0.92);
  font-family: var(--raleway);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
}

.checklist-list {
  list-style: none;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 clamp(12px, 2vw, 24px) 6px clamp(18px, 3vw, 34px);
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

.checklist-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: rgba(112, 112, 112, 0.94);
  font-family: var(--source-sans-pro);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
}

.checklist-list__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vh, 78px) clamp(24px, 7vw, 108px);
}

.hero-panel__lead {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
}

.hero-panel__mark {
  width: clamp(54px, 8vw, 74px);
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
}

.hero-panel__mark svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
}

.hero-panel__content {
  max-width: 820px;
}

.hero-panel h1 {
  font-weight: 400;
  font-style: normal;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--alice);
  font-size: clamp(3.5rem, 9vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 24px rgba(49, 38, 27, 0.26);
}

.hero-panel p {
  margin: clamp(16px, 2vw, 22px) 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--source-sans-pro);
  font-size: clamp(1.08rem, 1.9vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.contact-card,
.checklist-panel__frame,
.hero-panel__lead,
.call-btn2 {
  animation: float-in 820ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.checklist-panel__frame,
.hero-panel__lead {
  animation-delay: 120ms;
}

.call-btn2 {
  animation-delay: 220ms;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .checklist-panel__frame::before {
    inset: 16px;
  }
}

@media (max-width: 760px) {
  .hero-panel__lead {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-panel {
    padding: 58px 22px 112px;
  }

  .hero-panel__content {
    max-width: 560px;
  }

  .hero-panel p {
    max-width: 18rem;
  }

  .contact-card {
    width: min(100%, 390px);
  }

  .contact-card__visual {
    width: min(280px, 80vw);
    margin-bottom: -28px;
  }

  .contact-row {
    grid-template-columns: 50px 1fr;
  }

  .contact-row__icon svg {
    width: 30px;
    height: 30px;
  }

  .contact-row__text {
    font-size: 1rem;
  }

  .call-btn2 {
    width: 80px;
    height: 80px;
  }

  .checklist-panel__frame {
    padding: 24px 18px 20px;
  }

  .checklist-list {
    padding: 0 18px 2px 22px;
    gap: 16px;
  }

}

@media (max-width: 520px) {
  .hero-panel h1 {
    font-size: min(4rem, 21vw);
  }

  .contact-layout {
    padding-bottom: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .contact-card,
  .checklist-panel__frame,
  .hero-panel__lead,
  .call-btn2 {
    animation: none;
    transition: none;
  }
}
