@font-face {
  font-family: "Kendamil Serif";
  src: url("../fonts/Kendamil_Serif-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Elza";
  src: url("../fonts/Elza-Condensed.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Elza";
  src: url("../fonts/Elza-CondensedBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #071f60;
  --ink: #102b63;
  --cream: #f8f3ec;
  --paper: #fffdf9;
  --mist: #e5f0f2;
  --sage: #dce8d5;
  --blush: #f5d7d2;
  --gold: #c27d29;
  --line: rgba(7, 31, 96, 0.16);
  --footer-cream: #f6f5ed;
  --page-max: 1320px;
}

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

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--blue);
  font-family: "Elza", Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.35;
}

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

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

button {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: "Kendamil Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.top-banner {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
}

.site-header {
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f2eb;
  border-bottom: 1px solid #ddd;
}

.nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 25px;
}

.mobile-menu {
  display: none;
}

.nav-left {
  display: flex;
  gap: clamp(24px, 2.4vw, 42px);
  justify-self: start;
  align-items: center;
  margin-left: 20px;
  font-size: 21px;
}

.nav-left a {
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.nav-left a:hover,
.nav-left a:focus-visible {
  border-bottom-color: var(--blue);
}

.formula-text-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-family: "Elza", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.formula-text-logo--header {
  min-width: 181px;
}

.formula-text-logo--footer {
  color: inherit;
  font-size: 28px;
  margin-bottom: 20px;
}

.logo-img {
  display: block;
  width: auto;
  height: 58px;
  max-width: 181px;
  object-fit: contain;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-icon {
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #071f60;
}

.cart-icon {
  width: 35px;
  height: 27px;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
}

.cart-count {
  position: relative;
  top: 1px;
  color: #071f60;
  font-size: 18px;
  line-height: 1;
}

.breadcrumbs {
  width: min(var(--page-max), calc(100% - 80px));
  margin: 0 auto;
  padding: 20px 0;
}

.breadcrumbs ol {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  color: var(--blue);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.breadcrumbs li:first-child {
  opacity: 0.35;
}

.breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
}

.policy-intro {
  width: min(var(--page-max), calc(100% - 80px));
  margin: 0 auto;
  padding: 56px 0 62px;
}

.policy-intro__copy {
  max-width: 860px;
}

.policy-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.policy-intro h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.94;
}

.policy-intro p {
  margin: 22px 0 0;
  max-width: 610px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.28;
}

.policy-intro .policy-updated {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 28px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 15px;
  line-height: 1;
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--page-max), calc(100% - 80px));
  margin: 0 auto 58px;
}

.policy-summary article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.policy-summary article:nth-child(2) {
  background: var(--sage);
}

.policy-summary article:nth-child(3) {
  background: var(--blush);
}

.policy-summary span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.policy-summary h2 {
  margin: 28px 0 14px;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
}

.policy-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.38;
}

.policy-content {
  width: min(var(--page-max), calc(100% - 80px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 56px;
  align-items: start;
  margin: 0 auto 72px;
}

.policy-content__main {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.policy-block {
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--line);
}

.policy-block h2,
.policy-aside h2 {
  margin: 0;
  color: var(--blue);
  font-size: 38px;
  line-height: 1;
}

.policy-block p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.42;
}

.policy-block a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-list,
.policy-steps,
.policy-aside ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.policy-list li,
.policy-steps li,
.policy-aside li {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.38;
}

.policy-list {
  display: grid;
  gap: 14px;
}

.policy-list--check li {
  position: relative;
  padding-left: 30px;
}

.policy-list--check li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 9px;
  height: 15px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(42deg);
}

.policy-list--plain li {
  padding: 15px 0;
  border-top: 1px solid rgba(7, 31, 96, 0.12);
}

.policy-steps {
  counter-reset: policy-step;
  display: grid;
  gap: 16px;
}

.policy-steps li {
  counter-increment: policy-step;
  position: relative;
  padding: 20px 20px 20px 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.policy-steps li::before {
  content: counter(policy-step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.policy-steps strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
}

.policy-aside {
  position: sticky;
  top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue);
  color: var(--footer-cream);
}

.policy-aside .policy-kicker,
.policy-aside h2,
.policy-aside li {
  color: inherit;
}

.policy-aside h2 {
  font-size: 34px;
}

.policy-aside ul {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 245, 237, 0.24);
}

.policy-aside li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
}

.policy-aside li::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.policy-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 13px 18px;
  border: 1px solid var(--footer-cream);
  border-radius: 999px;
  color: var(--blue);
  background: var(--footer-cream);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.policy-footer {
  background: var(--blue);
  color: var(--footer-cream);
  padding: 71px 50px 44px;
}

.footer-grid {
  max-width: 1500px;
  display: grid;
  grid-template-columns: minmax(260px, 331px) 1fr;
  gap: 30px;
  margin: 0 auto;
}

.footer-menus {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.footer-menus > div {
  min-width: 158px;
}

.footer-brand img {
  display: block;
  width: 195px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p,
.policy-footer a {
  margin: 0;
  color: var(--footer-cream);
  font-size: 20px;
  line-height: 1.22;
}

.policy-footer h3 {
  margin: 0 0 15px;
  color: var(--footer-cream);
  font-size: 25px;
  line-height: 1;
}

.policy-footer a {
  display: block;
  margin-bottom: 15px;
}

.footer-legal {
  max-width: 1500px;
  margin: 30px auto 0;
  color: var(--footer-cream);
  font-size: 12px;
}

.footer-legal a {
  display: inline;
  margin: 0;
  font-size: inherit;
}

@media (max-width: 1180px) {
  .top-banner {
    min-height: 38px;
    height: auto;
    padding: 7px 16px;
    font-size: 15px;
    line-height: 20px;
  }

  .site-header {
    height: 74px;
  }

  .nav {
    max-width: min(100vw, 834px);
    min-height: 74px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
  }

  .mobile-menu {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .mobile-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blue);
  }

  .nav-left,
  .flag-icon {
    display: none;
  }

  .logo {
    justify-self: center;
  }

  .nav-right {
    min-width: 44px;
    height: 44px;
    justify-content: flex-end;
    gap: 4px;
    margin-left: 0;
  }

  .cart-count {
    font-size: 16px;
  }

  .policy-content {
    grid-template-columns: 1fr;
  }

  .policy-intro__copy {
    max-width: 760px;
  }

  .policy-summary {
    grid-template-columns: 1fr;
  }

  .policy-aside {
    position: static;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 18px;
  }

  .top-banner {
    min-height: 32px;
    padding: 7px 16px;
    font-size: 12px;
    line-height: 18px;
  }

  .site-header {
    height: 62px;
  }

  .nav {
    min-height: 62px;
    padding: 0 14px;
  }

  .logo-img {
    width: auto;
    height: 52px;
  }

  .breadcrumbs {
    display: none;
  }

  .policy-intro,
  .policy-summary,
  .policy-content {
    width: calc(100% - 30px);
  }

  .policy-intro {
    padding: 34px 0 42px;
  }

  .policy-intro h1 {
    font-size: 54px;
  }

  .policy-intro p {
    font-size: 20px;
    line-height: 1.34;
  }

  .policy-summary {
    margin-bottom: 34px;
  }

  .policy-summary article {
    min-height: 0;
    padding: 21px;
  }

  .policy-summary h2,
  .policy-block h2,
  .policy-aside h2 {
    font-size: 31px;
  }

  .policy-block {
    padding: 29px 0 31px;
  }

  .policy-block p,
  .policy-list li,
  .policy-steps li {
    font-size: 18px;
  }

  .policy-steps li {
    padding: 18px 18px 18px 58px;
  }

  .policy-steps li::before {
    left: 18px;
  }

  .policy-content {
    gap: 30px;
    margin-bottom: 46px;
  }

  .policy-footer {
    padding: 41px 15px 44px;
  }

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

  .footer-menus {
    flex-direction: column;
    gap: 0;
  }
}
