:root {
  --ink: #122830;
  --muted: #4d6570;
  --navy: #0c3d4c;
  --navy-deep: #082f3b;
  --teal: #0e6e7d;
  --teal-bright: #18899a;
  --teal-soft: #e7f3f5;
  --line: #d5e3e7;
  --paper: #f4f7f8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 61, 76, 0.08);
  --header: 76px;
  --serif: "Literata", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

h1, h2, .footer__name, .thanks h3 {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 { font-size: clamp(40px, 5vw, 64px); }

h2 { font-size: clamp(32px, 4vw, 46px); }

h3 { font-size: 22px; letter-spacing: -0.02em; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow--light { color: #9fd5de; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(12, 61, 76, 0.06);
  backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-family: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding-bottom: 2px;
}

.logo__text { display: flex; flex-direction: column; line-height: 1.15; }

.logo__name { font-weight: 700; font-size: 16.5px; }

.logo__role { color: var(--muted); font-size: 12px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.nav a:not(.btn):hover { color: var(--teal); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--navy);
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--navy); }

.btn:focus-visible,
.nav a:focus-visible,
.to-top:focus-visible,
.card__link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid #9fd5de;
  outline-offset: 2px;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn--ghost:hover { background: var(--teal-soft); color: var(--navy); }

.btn--small { min-height: 40px; padding: 0 16px; }

.nav .btn,
.nav .btn:hover,
.nav .btn:focus-visible {
  color: #fff;
}

.btn--full { width: 100%; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(8, 47, 59, 0.28);
}

.to-top[hidden] { display: none; }

.to-top:hover { background: var(--teal); }

.to-top svg { width: 20px; height: 20px; }

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(126, 200, 210, 0.16), transparent 60%),
    var(--navy);
  color: #f4fbfc;
}

.hero h1 {
  color: #f4fbfc;
  font-size: clamp(32px, 4vw, 51px);
}

.hero .lead { color: #c5dbe1; }

.lead__name {
  display: block;
  margin-bottom: 8px;
  color: #f4fbfc;
  font-family: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 21.6px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.hero .btn--ghost {
  color: white;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.hero .frame {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero .frame--contain {
  background: #f3fbfd;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.lead, .section__lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__visual {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: stretch;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.shot--tall { grid-row: 1 / span 2; }

.shot figcaption {
  margin: 0;
  color: #f4fbfc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.shot .frame { flex: 1; min-height: 148px; }

.shot--tall .frame { min-height: 360px; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), transparent 42%),
    #e5eef0;
  box-shadow: inset 0 0 0 1px rgba(12, 61, 76, 0.06);
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--contain img {
  object-fit: contain;
  object-position: center;
}

.stats {
  padding: 12px 0 28px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.stats article {
  padding: 28px 22px;
}

.stats article + article { box-shadow: inset 1px 0 0 var(--line); }

.stats__value {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--navy);
}

.stats__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.partners__title,
.partners__note {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}

.partners__title {
  margin-top: 8px;
  margin-bottom: 14px;
}

.partners__note {
  margin-top: 16px;
}

.marquee {
  background: var(--navy);
  padding: 10px 0;
  overflow: hidden;
}

.marquee__viewport { overflow: hidden; }

.marquee__track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}

.marquee__viewport:hover .marquee__track,
.marquee__viewport:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__track ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee__track li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  color: #f3fbfc;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.marquee__track li::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ec8d2;
  flex: none;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

#products,
#about,
#contact,
#contacts {
  scroll-margin-top: calc(var(--header) + 12px);
}

.section { padding: 96px 0; }

#products { padding-top: 48px; }

.section--paper { background: var(--paper); }

.section__head { max-width: 680px; margin-bottom: 36px; }

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

.card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px 24px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.section:not(.section--paper) .card { background: var(--paper); border-color: transparent; }

.card__index {
  color: var(--teal-bright);
  font-weight: 700;
  font-size: 14px;
}

.card h3 { margin: 18px 0 10px; }

.card p { color: var(--muted); font-size: 15.5px; }

.card__link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.card__link:hover { color: var(--navy); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}

.aside-note {
  max-width: 720px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.story {
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(126, 200, 210, 0.16), transparent 60%),
    var(--navy);
  color: #f4fbfc;
  padding: 96px 0;
}

.story__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.frame--story {
  min-height: 420px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.story h2 { color: white; }

.story__copy blockquote {
  margin: 22px 0;
  padding: 0;
  border: 0;
}

.story__copy blockquote p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  color: #d7eef2;
}

.story__copy p { color: #c5dbe1; }

.story__copy p + p { margin-top: 14px; }

.reviews { margin-top: 64px; }

.reviews__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.reviews__list li { grid-column: span 2; }

.reviews__list li:nth-child(4) { grid-column: 2 / span 2; }

.reviews__list li:nth-child(5) { grid-column: 4 / span 2; }

.review {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.review p {
  margin: 0;
  color: #e7f4f7;
  font-size: 15.5px;
  line-height: 1.55;
}

.review footer {
  margin-top: auto;
  padding-top: 18px;
  color: #9fd5de;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact__points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact__points li {
  position: relative;
  padding-left: 18px;
  margin-top: 10px;
  color: var(--ink);
}

.contact__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
}

.contacts {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contacts li { display: grid; gap: 2px; }

.contacts span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contacts a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.contacts a:hover { color: var(--teal); }

.contacts--footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 28px;
  margin: 32px auto 0;
  padding-right: calc(min(1120px, 100% - 40px) - (11 / 15) * (min(1120px, 100% - 40px) - 64px) - 159.375px);
}

.contacts--footer span { color: #9eb4bb; }

.footer .contacts a {
  display: inline;
  margin-top: 0;
  color: white;
  font-size: 16px;
}

.footer .contacts li { gap: 4px; }

.form, .thanks {
  padding: 28px;
  background: var(--paper);
  border-radius: 28px;
}

.field { margin-bottom: 14px; }

.field label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

textarea { resize: vertical; min-height: 110px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 14px;
  font-size: 14px;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--teal);
}

.consent a {
  color: var(--teal);
}

.form__error {
  margin-bottom: 12px;
  color: #8d2f32;
  font-size: 14px;
}

.form__fine, .thanks p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.thanks__status {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--navy);
}

.btn:disabled { opacity: 0.7; cursor: wait; }

.footer {
  background: var(--navy-deep);
  color: #d5e6eb;
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
}

.footer__name {
  color: white;
  font-size: 28px;
}

.footer__role { margin-top: 10px; max-width: 360px; }

.footer__heading {
  margin-bottom: 10px;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.footer a {
  display: block;
  margin-top: 8px;
  color: #d5e6eb;
  text-decoration: none;
  font-size: 15px;
}

.footer a:hover { color: white; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 36px;
}

.footer__legal a {
  display: inline;
  margin-top: 0;
  color: #9eb4bb;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal a:hover { color: white; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9eb4bb;
  font-size: 13px;
}

.legal { padding: 56px 0 80px; }

.legal__wrap { max-width: 760px; }

.legal h1 { margin-bottom: 12px; }

.legal__date {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 26px;
}

.legal p + p,
.legal ul + p { margin-top: 12px; }

.legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal li + li { margin-top: 6px; }

.legal a { color: var(--teal); }

.footer__bottom p:first-child { max-width: 680px; }

::selection {
  background: #c5e4e9;
  color: var(--navy-deep);
}

@media (max-width: 980px) {
  .hero__grid,
  .story__grid,
  .contact__grid,
  .cards,
  .stats__grid,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__grid,
  .story__grid,
  .contact__grid,
  .footer__grid { grid-template-columns: 1fr; }

  .contacts--footer {
    justify-content: flex-start;
    gap: 18px 36px;
    padding-right: 0;
  }

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

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

  .reviews__list li,
  .reviews__list li:nth-child(4),
  .reviews__list li:nth-child(5) { grid-column: auto; }

  .hero__visual { grid-template-columns: 1.2fr 0.8fr; }
  .shot--tall .frame { min-height: 280px; }
  .frame--story { min-height: 280px; }
  .section, .story { padding: 72px 0; }
  #products { padding-top: 36px; }
}

@media (max-width: 760px) {
  .header { padding: 0 16px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header) - 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .nav a { padding: 10px 8px; }

  .nav .btn { margin-top: 6px; }

  .wrap { width: min(1120px, calc(100% - 32px)); }

  .hero { padding-top: 36px; }

  .hero__visual {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 10px;
  }

  .shot figcaption { font-size: 12px; }
  .shot .frame { min-height: 120px; }
  .shot--tall .frame { min-height: 250px; }

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

  .stats article + article { box-shadow: inset 0 1px 0 var(--line); }

  .footer__bottom { flex-direction: column; }
}

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

  .marquee__track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .marquee__track ul[aria-hidden="true"] { display: none; }

  .marquee__track ul {
    flex-wrap: wrap;
    justify-content: center;
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
    padding-bottom: 8px;
  }
}
