:root {
  --pink: #ff0a59;
  --text: #111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Ubuntu", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
button, select, a { font-family: inherit; }

.hero {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: #f6aac3;
}
.hero picture,
.hero source,
.hero img {
  display: block;
  width: 100%;
}
.hero img {
  height: auto;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.ranking-section {
  position: relative;
  overflow: hidden;
  padding: 68px 0 56px;
  background: #fff;
}
.ranking-section .container {
  position: relative;
  z-index: 2;
}
.ranking-section h1 {
  margin: 0;
  text-align: center;
  color: var(--pink);
  font-size: clamp(28px, 2.4vw, 45px);
  line-height: 1.15;
  font-weight: 400;
}
.lead {
  margin: 24px 0 72px;
  text-align: center;
  font-size: clamp(17px, 1.45vw, 28px);
  line-height: 1.3;
}

/* Intro side artwork */
.decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}
.decor-left {
  left: 0;
  top: 115px;
  width: min(42vw, 560px);
  aspect-ratio: 856 / 1494;
  background-image: url("../images/bg-left.png");
  background-position: left center;
}
.decor-right {
  right: 0;
  top: 150px;
  width: min(43vw, 580px);
  aspect-ratio: 889 / 1093;
  background-image: url("../images/bg-right.png");
  background-position: right center;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 1210px;
  margin: 0 auto 40px;
}
.tab {
  min-height: 112px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--pink);
  overflow: hidden;
  background: #fff;
  color: #111;
  font-size: clamp(18px, 1.45vw, 28px);
  font-weight: 400;
  cursor: pointer;
}
.tab.active {
  border-color: transparent;
  border-radius: 999px;
  background-image: url("../images/bg-btn.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  font-weight: 700;
}

.county-picker {
  max-width: 1210px;
  margin: 0 auto 58px;
}
.county-select-wrap {
  position: relative;
  min-height: 116px;
  border: 2px solid var(--pink);
  border-radius: 14px;
  background: #fff;
  padding: 0 42px;
}
.county-select-wrap::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 28px;
  height: 1px;
  background: #111;
  pointer-events: none;
}
.county-select-wrap::before {
  content: "";
  position: absolute;
  z-index: 2;
  right: 48px;
  top: 43px;
  width: 18px;
  height: 18px;
  border-right: 5px solid #111;
  border-bottom: 5px solid #111;
  transform: rotate(45deg);
  pointer-events: none;
}
.county-picker select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 114px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 68px 22px 0;
  color: #111;
  font-size: clamp(19px, 1.5vw, 29px);
  cursor: pointer;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
  max-width: 1210px;
  margin: 0 auto;
}
.rank-card {
  min-height: 100px;
  display: grid;
  grid-template-columns: 82px 1fr 62px;
  align-items: center;
  border: 2px solid var(--pink);
  border-radius: 56px;
  background: rgba(255,255,255,.96);
  padding: 8px 30px 8px 24px;
}
.rank-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: url("../images/bg-numbers-top.png") center / contain no-repeat;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
}
.restaurant-name {
  text-align: center;
  font-size: clamp(20px, 1.6vw, 31px);
}
.cutlery {
  width: 37px;
  height: 49px;
  justify-self: end;
  background: url("../images/icon-top.png") center / contain no-repeat;
}
.note {
  margin: 52px 0 0;
  text-align: center;
  font-size: 12px;
}

/* Bottom voting CTA */
.vote-strip {
  position: relative;
  width: min(1720px, calc(100% - 120px));
  min-height: 350px;
  margin: 22px auto 76px;
  overflow: visible;
  border-radius: 30px;
  color: #fff;
  text-align: center;
  background: url("../images/bg-box.png") center / 100% 100% no-repeat;
}
.vote-strip-content {
  position: relative;
  z-index: 2;
  padding: 48px 180px 30px;
}
.vote-strip h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 2.4vw, 50px);
  font-weight: 400;
}
.vote-strip p {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: clamp(17px, 1.25vw, 25px);
  line-height: 1.35;
}
.vote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 400px;
  height: 96px;
  padding: 0 40px;
  border: 2px solid #fff;
  border-radius: 60px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
}
.vote-strip-icon {
  position: absolute;
  z-index: 3;
  right: calc((100vw - min(1720px, calc(100vw - 120px))) / -2);
  bottom: -76px;
  width: 250px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.site-footer {
  min-height: 300px;
  background: var(--pink);
  color: #fff;
  padding: 58px max(50px, calc((100% - 1750px) / 2));
  display: grid;
  grid-template-columns: 210px minmax(420px, 1fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 38px;
}
.footer-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}
.site-footer h3 {
  margin: 0;
  font-size: 31px;
  line-height: 1.15;
}
.site-footer h3 span { font-weight: 400; }
.address {
  text-align: right;
  font-size: 17px;
  line-height: 1.55;
}
.socials {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.socials a { display: block; line-height: 0; }
.socials img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.privacy-link { margin-top: 30px; }
.privacy-link a { color: #fff; text-decoration: none; }

@media (max-width: 1024px) {
  .container { width: min(92%, 880px); }
  .ranking-section { padding-top: 48px; }
  .lead { margin-bottom: 42px; }
  .tabs { gap: 18px; }
  .tab { min-height: 76px; }
  .county-select-wrap { min-height: 90px; padding: 0 28px; }
  .county-select-wrap::after { left: 28px; right: 28px; bottom: 20px; }
  .county-select-wrap::before { right: 32px; top: 31px; width: 15px; height: 15px; }
  .county-picker select { height: 88px; padding-bottom: 18px; }
  .ranking-grid { gap: 14px 18px; }
  .rank-card { min-height: 78px; grid-template-columns: 64px 1fr 44px; padding: 7px 22px; }
  .rank-number { width: 46px; height: 46px; font-size: 19px; }
  .cutlery { width: 29px; height: 39px; }
  .decor-left { width: 48vw; top: 160px; }
  .decor-right { width: 48vw; top: 200px; }
  .vote-strip { width: calc(100% - 56px); min-height: 300px; }
  .vote-strip-content { padding: 38px 120px 30px; }
  .vote-button { min-width: 280px; height: 68px; }
  .vote-strip-icon {
    right: 0;
    bottom: -58px;
    width: 250px;
  }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 30px); }
  .ranking-section { padding: 34px 0 40px; }
  .ranking-section h1 { font-size: 27px; }
  .lead { margin: 15px 0 30px; font-size: 16px; }
  .tabs { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .tab { min-height: 58px; font-size: 16px; }
  .county-picker { margin-bottom: 28px; }
  .county-select-wrap { min-height: 72px; border-radius: 8px; padding: 0 20px; }
  .county-select-wrap::after { left: 20px; right: 20px; bottom: 16px; }
  .county-select-wrap::before { right: 22px; top: 25px; width: 12px; height: 12px; border-width: 0 4px 4px 0; }
  .county-picker select { height: 70px; font-size: 17px; padding-right: 46px; padding-bottom: 14px; }
  .ranking-grid { grid-template-columns: 1fr; gap: 11px; }
  .rank-card { min-height: 62px; grid-template-columns: 50px 1fr 36px; padding: 5px 16px; }
  .rank-number { width: 39px; height: 39px; font-size: 16px; }
  .restaurant-name { font-size: 18px; }
  .cutlery { width: 24px; height: 31px; }
  .note { margin-top: 30px; line-height: 1.35; }
  .decor-left { left: -18vw; width: 75vw; top: 180px; }
  .decor-right { right: -18vw; width: 72vw; top: 250px; }
  .vote-strip { width: calc(100% - 30px); min-height: 285px; margin-bottom: 55px; border-radius: 20px; }
  .vote-strip-content { padding: 30px 22px 52px; }
  .vote-strip h2 { font-size: 27px; }
  .vote-strip p { font-size: 15px; margin-bottom: 26px; }
  .vote-button { min-width: 210px; height: 54px; font-size: 16px; }
  .vote-strip-icon { display: none; }
}


@media (max-width: 1000px) {
  .site-footer {
    grid-template-columns: 150px 1fr;
    min-height: 0;
    padding: 45px 36px;
  }
  .footer-logo { width: 140px; }
  .site-footer h3 { font-size: 25px; }
  .address { grid-column: 1 / -1; text-align: left; }
  .socials { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 38px 20px;
    gap: 22px;
  }
  .footer-logo { width: 135px; margin: auto; }
  .site-footer h3 { font-size: 22px; }
  .address { text-align: center; font-size: 14px; }
  .socials { justify-content: center; margin-top: 18px; }
  .socials img { width: 35px; height: 35px; }
}
