:root {
  --yellow: #fdca15;
  --ink: #312a1e;
  --dark: #1a1a1a;
  --accent: #e25023;
  --line: #4e4215;
  --radius: 30px;
  --shadow: 0 10px 30px rgba(78, 66, 21, .15);
  --container: 1140px;
  --font: "Lato", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--yellow) url("../img/dots.jpg") repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header__inner { position: relative; display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { position: relative; z-index: 60; }
.brand img { width: auto; height: 76px; background: #fff; border-radius: 14px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-weight: 700; text-decoration: none; }
.primary-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; }

/* hero */
.hero { padding: 16px 0 56px; }
.hero__grid { align-items: center; }
.hero__text { text-align: center; }
.hero__art { margin: 0 0 18px; }
.hero__art img { margin: 0 auto; }
.hero__lead { font-size: clamp(1.1rem, 2.4vw, 1.55rem); font-weight: 700; margin-bottom: 1.4em; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 0; }
.badge { display: inline-block; }
.badge img { height: 59px; width: auto; }
.phone { position: relative; width: 100%; max-width: 493px; margin: 0 auto; }
.phone__screen { position: absolute; inset: 0; width: 100%; }

/* sections */
.section { padding: 28px 0; }
.section:last-of-type { padding-bottom: 56px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 38px;
}
.card > :last-child { margin-bottom: 0; }
.points { margin-bottom: 24px; }
.point { padding: 26px 28px; }
.shot { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.shot img { margin: 0 auto; }
.shot figcaption { font-weight: 700; padding-top: 8px; }
.langs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.langs li { background: var(--yellow); border-radius: 999px; padding: 6px 18px; font-weight: 700; }
.rules li { margin-bottom: .4em; }

/* footer */
.site-footer { border-top: 2px dashed var(--line); margin-top: 24px; padding: 28px 0 36px; font-weight: 700; color: var(--dark); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; }
.site-footer p { margin: 0; font-size: .95rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

@media (min-width: 861px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero__text { text-align: left; }
  .hero__art img { margin-left: 0; }
  .badges { justify-content: flex-start; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .brand img { height: 60px; }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 60;
    margin-left: auto;
    width: 46px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block;
    height: 3px;
    width: 28px;
    margin: 0 auto;
    background: var(--dark);
    border-radius: 2px;
    content: "";
  }
  .nav-toggle__bar::before { transform: translateY(-9px); }
  .nav-toggle__bar::after { transform: translateY(6px); }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    z-index: 55;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px 20px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 14px; }
  .card { padding: 26px 22px; }
}
