:root {
  --ink: #022a3e;
  --body: #333333;
  --muted: #707070;
  --blue: #32b0e6;
  --paper: #ffffff;
  --soft: #f9f9f9;
  --line: #555555;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--soft);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 90px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  height: 70px;
  box-shadow: 0 8px 25px rgba(2, 42, 62, 0.08);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
}

.brand img {
  width: 118px;
}

.global-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 52px);
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 2.25px;
}

.global-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.global-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  content: "";
}

.global-nav a:hover,
.global-nav a:focus-visible,
.global-nav a[aria-current="page"] {
  color: var(--ink);
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

.contact-hero {
  position: relative;
  min-height: 540px;
  padding-top: 329px;
  overflow: hidden;
  background: var(--soft);
}

.hero-title {
  position: relative;
  z-index: 2;
  width: min(891px, calc(100% - 48px));
  min-height: 211px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 34px;
  padding: 42px 98px;
  border-radius: 0 200px 200px 0;
  background: #fff;
  color: var(--ink);
}

.hero-title h1 {
  margin: 0;
  font-family: "Montserrat Alternates", Montserrat, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-title p {
  margin: 9px 0 0;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-confetti {
  position: absolute;
  right: max(48px, calc((100vw - 1320px) / 2));
  top: 86px;
  width: min(600px, 29vw);
  pointer-events: none;
}

.contact-section {
  padding: 74px 24px 160px;
  background: var(--soft);
}

.contact-form {
  width: min(884px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 46px;
}

.form-field {
  display: grid;
  gap: 12px;
  color: var(--line);
  font-size: 20px;
  line-height: 1.4;
}

.form-field span b {
  color: var(--blue);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--body);
  font-size: 20px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input {
  height: 80px;
  padding: 0 28px;
}

.form-field textarea {
  min-height: 186px;
  padding: 22px 28px;
  resize: vertical;
}

.form-field input::placeholder {
  color: #cfcfcf;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(50, 176, 230, 0.14);
}

.form-actions {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-top: 22px;
}

.form-actions button {
  width: 171px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  text-indent: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-actions button:hover,
.form-actions button:focus-visible {
  background: var(--ink);
  transform: translateY(-2px);
}

.agreement {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--line);
  font-size: 20px;
  line-height: 1.45;
}

.agreement input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.privacy-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
  color: var(--line);
  font-size: 20px;
  line-height: 1.35;
}

.privacy-link::after {
  width: 20px;
  height: 16px;
  display: inline-block;
  border: 2px solid #333;
  box-shadow: 7px -7px 0 -2px #fff, 7px -7px 0 0 #333;
  content: "";
}

.footer {
  position: relative;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 60px 24px;
  color: #fff;
  background: var(--ink);
}

.footer-logo {
  width: 259px;
}

.footer nav,
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 2.25px;
}

.legal {
  gap: 18px;
  font-size: 13px;
}

.footer a {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
}

.page-top {
  position: absolute;
  left: 70px;
  top: 115px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .site-header {
    height: 60px;
  }

  .header-inner {
    width: calc(100% - 50px);
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    position: absolute;
    left: 9.5px;
    width: 31px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.25s ease;
  }

  .menu-button span:first-child {
    top: 19px;
  }

  .menu-button span:last-child {
    top: 30px;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(5.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    inset: 60px 0 auto;
    display: grid;
    gap: 0;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 30px rgba(2, 42, 62, 0.08);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .global-nav.is-open {
    transform: translateY(0);
  }

  .global-nav a {
    padding: 12px 0;
  }

  .contact-hero {
    min-height: 361px;
    padding-top: 150px;
  }

  .hero-title {
    width: 260px;
    min-height: 211px;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 58px 20px 48px;
    border-radius: 0 200px 200px 0;
  }

  .hero-title h1 {
    font-size: 45px;
  }

  .hero-title p {
    margin-top: 0;
    font-size: 15px;
  }

  .hero-confetti {
    width: 160px;
    top: 100px;
    right: -3px;
  }

  .contact-section {
    padding: 64px 25px 120px;
  }

  .contact-form {
    gap: 34px;
  }

  .form-field {
    gap: 9px;
    font-size: 16px;
  }

  .form-field input {
    height: 64px;
    padding: 0 20px;
  }

  .form-field textarea {
    min-height: 170px;
    padding: 18px 20px;
  }

  .form-field input,
  .form-field textarea {
    border-radius: 20px;
    font-size: 16px;
  }

  .agreement,
  .privacy-link {
    font-size: 15px;
  }

  .agreement {
    align-items: flex-start;
  }

  .footer {
    place-items: start;
    padding: 60px 25px;
  }

  .footer nav,
  .legal {
    display: grid;
    justify-content: start;
    gap: 8px;
  }

  .page-top {
    right: 25px;
    left: auto;
    top: 170px;
  }
}

@media (max-width: 460px) {
  .hero-title h1 {
    font-size: 42px;
  }

  .hero-confetti {
    width: 132px;
  }

  .form-actions button {
    width: 160px;
  }
}
