:root {
  color: #141414;
  background: #f5f5f3;
  font: 16px/1.55 Inter,system-ui,sans-serif;
}

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

body {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

a:focus-visible,.table-scroll:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.wrap {
  width: min(1040px,100% - 80px);
  margin-inline: auto;
}

.site-header,.site-footer {
  background: #fff;
  border-block: 1px solid #e6e6e3;
}

.site-header .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand,.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.brand {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.button {
  background: #141414;
  color: white;
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
  font-size: 14px;
}

main {
  padding-block: 36px 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,320px);
  align-items: center;
  gap: 32px;
  padding: 24px 0 40px;
}

h1,h2,h3,p {
  margin-block: 0 12px;
}

h1 {
  font-size: clamp(32px,5vw,50px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

h2 {
  font-size: 25px;
  letter-spacing: -.02em;
}

h3 {
  font-size: 17px;
}

.lead {
  max-width: 53ch;
  color: #33332f;
  font-size: 18px;
}

.card,.paper {
  background: white;
  border: 1px solid #e6e6e3;
  border-radius: 12px;
  padding: 24px;
  overflow-wrap: anywhere;
}

.price-label,.edition {
  color: #55554f;
  font-size: 14px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

.site-footer {
  padding-block: 16px;
  color: #55554f;
}

.paper {
  max-width: 760px;
  margin-inline: auto;
  padding: 32px;
  overflow-wrap: anywhere;
}

.paper h1 {
  font-size: clamp(28px,4vw,38px);
}

.paper h2 {
  margin-top: 24px;
}

.paper li+li {
  margin-top: 8px;
}

.table-scroll {
  max-width: 100%;
  overflow: auto;
  margin-block: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

td,th {
  padding: 10px 8px;
  border-bottom: 1px solid #e6e6e3;
  vertical-align: top;
}

.preview {
  padding: 8px 16px;
  background: #141414;
  color: #fff;
  text-align: center;
}

@media(max-width:620px) {

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

  .site-header .wrap {
    min-height: 64px;
  }

  main {
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .card,.paper {
    padding: 20px;
  }

  .button {
    padding: 0 12px;
  }

  table,tbody,tr,td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tr {
    padding-block: 10px;
    border-bottom: 1px solid #e6e6e3;
  }

  td {
    padding: 4px 0;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
  }
}

.tariff p:nth-of-type(2) strong {
  display: block;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
