/*
Theme Name: Faberlic Valeriya
Theme URI: https://example.com
Author: Codex
Description: Partner WordPress theme for a Faberlic multisite with country subdomains.
Version: 1.1.0
Text Domain: faberlic-valeriya
*/

:root {
  --pink: #e6007e;
  --pink-dark: #b90067;
  --ink: #20232a;
  --muted: #657083;
  --line: #e7e9ee;
  --soft: #f7f8fb;
  --blue: #2364aa;
  --green: #168a6a;
  --gold: #d79626;
  --shadow: 0 18px 45px rgba(20, 28, 44, .12);
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: #fff;
}

a {
  color: var(--pink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - 32px, var(--wrap));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  filter: drop-shadow(0 8px 14px rgba(230, 0, 126, .18));
  object-fit: contain;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  color: #242935;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.icon-button,
.country-toggle,
.locale-toggle {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.country-toggle,
.locale-toggle {
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.locale-toggle {
  min-height: 42px;
  max-width: 230px;
  gap: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 30, 43, .06);
}

.country-toggle .country-label {
  color: var(--muted);
  font-weight: 700;
}

.locale-current {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 8px;
}

.locale-country {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.locale-language {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.locale-chevron {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #667085;
  transform: translateY(1px);
  pointer-events: none;
}

.country-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  flex: 0 0 1.4em;
  font-size: 17px;
  line-height: 1;
}

.country-flag img.emoji {
  width: 1.15em;
  height: 1.15em;
  margin: 0;
}

.flag-icon {
  width: 18px;
  height: 12px;
  flex: 0 0 18px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(20, 23, 31, .12);
}

.flag-az {
  background: linear-gradient(#00a3dd 0 33.333%, #ef3340 33.333% 66.666%, #509e2f 66.666% 100%);
}

.flag-am {
  background: linear-gradient(#d90012 0 33.333%, #0033a0 33.333% 66.666%, #f2a800 66.666% 100%);
}

.flag-by {
  background:
    linear-gradient(90deg, #fff 0 18%, transparent 18% 100%),
    linear-gradient(#c8313e 0 68%, #2f8f3a 68% 100%);
}

.flag-ge {
  background:
    linear-gradient(90deg, transparent 0 43%, #e4002b 43% 57%, transparent 57% 100%),
    linear-gradient(transparent 0 39%, #e4002b 39% 61%, transparent 61% 100%),
    #fff;
}

.flag-kz {
  background: #00abc2;
}

.flag-kg {
  background: #e31b23;
}

.flag-mn {
  background: linear-gradient(90deg, #da2032 0 33.333%, #0066b3 33.333% 66.666%, #da2032 66.666% 100%);
}

.flag-ru {
  background: linear-gradient(#fff 0 33.333%, #1c57a7 33.333% 66.666%, #d52b1e 66.666% 100%);
}

.flag-tj {
  background: linear-gradient(#ce1126 0 33.333%, #fff 33.333% 66.666%, #00945a 66.666% 100%);
}

.flag-tm {
  background: #009639;
}

.flag-tr {
  background: #e30a17;
}

.flag-uz {
  background: linear-gradient(#0099b5 0 31%, #fff 31% 36%, #ce1126 36% 40%, #fff 40% 64%, #ce1126 64% 68%, #1eb53a 68% 100%);
}

.language-code {
  width: auto;
  flex-basis: auto;
  min-width: 1.6em;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--pink);
}

.language-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.locale-panel {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  z-index: 60;
  padding: 14px 16px 22px;
  background: transparent;
  border-top: 0;
  pointer-events: none;
}

.locale-panel.is-open {
  display: block;
}

.locale-card {
  position: relative;
  width: min(424px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: max(16px, calc((100vw - var(--wrap)) / 2));
  padding: 22px 16px 20px;
  border: 1px solid rgba(20, 23, 31, .08);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 23, 31, .18);
  pointer-events: auto;
}

.locale-card::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 58px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-left: 1px solid rgba(20, 23, 31, .08);
  border-top: 1px solid rgba(20, 23, 31, .08);
  transform: rotate(45deg);
}

.locale-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.locale-card-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.locale-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.locale-field + .locale-field {
  margin-top: 14px;
}

.locale-field label,
.locale-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 800;
}

.locale-select {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 12px;
  border: 1px solid #cfd5df;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.locale-select-wrap {
  position: relative;
}

.locale-select-wrap .locale-chevron,
.locale-country-choice .locale-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-35%);
}

select.locale-select {
  appearance: none;
  background-image: none;
}

.locale-country-select {
  position: relative;
}

.locale-country-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding-right: 42px;
  background-image: none;
}

.locale-country-choice-text {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.locale-country-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 4;
  max-height: 260px;
  padding: 4px;
  overflow: auto;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(20, 23, 31, .16);
}

.locale-country-options[hidden] {
  display: none;
}

.locale-option {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.locale-option:hover,
.locale-option[aria-selected="true"] {
  background: #fff0f8;
  color: var(--pink);
}

.header-registration {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--pink);
  box-shadow: 0 8px 18px rgba(230, 0, 126, .14);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--pink-dark);
  color: #fff;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  color: var(--pink);
  border-color: var(--pink);
}

.button.secondary:hover {
  background: #fff5fa;
}

.country-panel,
.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

.country-panel.is-open,
.mobile-panel.is-open {
  display: block;
}

.country-grid,
.mobile-grid {
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.country-grid a,
.mobile-grid a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
}

.country-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-grid a[aria-current="page"],
.country-grid a:hover,
.mobile-grid a:hover {
  background: #fff0f8;
  color: var(--pink);
  text-decoration: none;
}

.hero {
  min-height: 390px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.92) 54%, rgba(255,255,255,.46)),
    linear-gradient(135deg, rgba(230,0,126,.16), rgba(35,100,170,.13));
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.section-inner {
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto;
}

.hero-copy {
  max-width: 610px;
  padding: 42px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--pink);
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px);
}

.hero .lead {
  max-width: 660px;
  font-size: 18px;
}

.hero .hero-actions {
  margin-top: 22px;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 58px 0;
}

.home-benefits {
  padding-bottom: 30px;
}

.home-news {
  padding-top: 30px;
}

.section.alt {
  background: var(--soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.benefit-grid,
.news-grid,
.catalog-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

.benefit-grid {
  grid-template-columns: repeat(4, 1fr);
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-slider-shell {
  position: relative;
}

.news-slider-actions {
  position: absolute;
  top: -58px;
  right: 0;
  display: flex;
  gap: 8px;
}

.news-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 372px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding-bottom: 8px;
}

.news-slider-track .news-card {
  scroll-snap-align: start;
}

.promotions-grid {
  align-items: stretch;
}

.promotion-card {
  display: flex;
  flex-direction: column;
}

.promotion-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.promotion-card .news-card-link {
  margin-top: auto;
}

.promotion-period {
  margin: -2px 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.catalog-grid {
  grid-template-columns: repeat(4, 1fr);
}

.catalog-page {
  padding-top: 44px;
}

.catalog-heading {
  margin-bottom: 28px;
  text-align: center;
}

.catalog-heading h1 {
  margin-bottom: 8px;
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
  align-items: start;
  margin-bottom: 34px;
}

.catalog-item {
  display: flex;
  min-height: 456px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.catalog-item h2 {
  display: flex;
  min-height: 64px;
  align-items: flex-end;
  justify-content: center;
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.catalog-cover-trigger {
  width: 100%;
  max-width: 235px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.catalog-cover-trigger img,
.catalog-cover-trigger .catalog-pdf-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(20, 28, 44, .16);
  transition: transform .18s ease, box-shadow .18s ease;
}

.catalog-cover-trigger:hover img,
.catalog-cover-trigger:hover .catalog-pdf-cover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(20, 28, 44, .2);
}

.catalog-cover-trigger.is-disabled {
  cursor: default;
}

.catalog-cover-trigger.is-disabled:hover img,
.catalog-cover-trigger.is-disabled:hover .catalog-pdf-cover {
  transform: none;
}

.catalog-dflip-thumb-wrap {
  width: 100%;
  max-width: 235px;
  margin: 0 auto;
}

.catalog-dflip-thumb-wrap ._df_thumb,
._df_thumb.catalog-dflip-thumb {
  width: 100%;
  max-width: 235px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 14px 30px rgba(20, 28, 44, .16);
  color: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.catalog-dflip-thumb-wrap ._df_thumb:hover,
._df_thumb.catalog-dflip-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(20, 28, 44, .2);
}

.catalog-actions {
  min-height: 28px;
  margin-top: 12px;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}

.catalog-link {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.catalog-link:hover {
  text-decoration: underline;
}

._df_button.catalog-link,
.catalog-dflip-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}

._df_button.catalog-link:hover,
.catalog-dflip-button:hover {
  background: transparent;
  color: var(--pink);
  text-decoration: underline;
}

.catalog-copy {
  max-width: 960px;
  margin: 0 auto 28px;
  color: var(--muted);
  text-align: center;
}

.catalog-copy p {
  margin: 0 0 12px;
}

.catalog-promo-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 auto 44px;
  text-align: center;
}

.catalog-promo-links strong {
  width: 100%;
  color: var(--ink);
  font-size: 22px;
}

.catalog-promo-links a {
  font-weight: 800;
}

.catalog-empty {
  max-width: 680px;
  margin: 0 auto 34px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  text-align: center;
}

.catalog-map-teaser {
  margin-top: 30px;
}

.catalog-map-teaser > h2,
.catalog-map-teaser > p {
  text-align: center;
}

.catalog-map-teaser > p {
  margin-top: -6px;
  color: var(--muted);
  font-size: 18px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.card-body {
  padding: 20px;
}

.card h3 {
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff0f8;
  color: var(--pink);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.news-card img,
.catalog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f1f2f5;
}

.news-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(230,0,126,.12), rgba(35,100,170,.14)),
    repeating-linear-gradient(45deg, #fff, #fff 18px, #f4f6fa 18px, #f4f6fa 19px);
  color: var(--pink);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.news-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card-link {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 800;
}

.catalog-card img {
  aspect-ratio: 3 / 4;
}

.catalog-pdf-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f4f6fa, #fff);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.catalog-pdf-cover span {
  width: 84px;
  height: 106px;
  border-radius: 6px;
  background: #e11d48;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.catalog-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(18, 22, 32, .94);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
}

.pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: #1c2230;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
}

.pdf-viewer[hidden] {
  display: none;
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.catalog-viewer[hidden] {
  display: none;
}

.catalog-viewer-bar {
  min-height: 60px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.catalog-viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-viewer-actions [data-catalog-counter] {
  min-width: 74px;
  text-align: center;
  font-weight: 800;
}

.catalog-viewer-actions .icon-button {
  width: 40px;
  padding: 0;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.catalog-viewer-stage {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  display: grid;
  place-items: start center;
  background: #080a0f;
}

.catalog-flipbook-shell {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 0 28px;
}

.catalog-flipbook {
  flex: 0 0 auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.catalog-flipbook.stf__parent {
  flex: 0 0 auto;
}

.catalog-flipbook canvas,
.catalog-fallback-page {
  background: #fff;
}

.catalog-flip-page {
  overflow: hidden;
  background: #fff;
}

.catalog-flip-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.catalog-fallback-page {
  width: min(100%, 940px);
  height: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.timer-band {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(230,0,126,.95), rgba(35,100,170,.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.10), rgba(255,255,255,.10) 18px, rgba(255,255,255,.04) 18px, rgba(255,255,255,.04) 19px);
}

.timer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 86px);
  gap: 10px;
}

.timer-box {
  min-height: 88px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
}

.timer-box strong {
  display: block;
  font-size: 28px;
}

.timer-box span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-panel {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(35,100,170,.12), rgba(230,0,126,.12)),
    repeating-linear-gradient(45deg, #fff, #fff 18px, #f4f6fa 18px, #f4f6fa 19px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}

.pickup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.pickup-layout.no-sidebar {
  grid-template-columns: 1fr;
}

.pickup-map-shell {
  min-width: 0;
}

.pickup-map {
  width: 100%;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(35,100,170,.10), rgba(230,0,126,.10)),
    #f4f6fa;
  position: relative;
}

.pickup-map-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 24px;
}

.pickup-city-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.pickup-city-panel h2 {
  font-size: 24px;
}

.pickup-city-panel p {
  margin: 0 0 12px;
  color: var(--muted);
}

.city-list.compact {
  margin-top: 0;
  max-height: 430px;
  overflow: auto;
}

.city-list.compact a {
  border-radius: 6px;
}

.city-list a[aria-current="page"] {
  border-color: var(--pink);
  background: #fff0f8;
  color: var(--pink);
  font-weight: 800;
}

.home-city-list {
  margin-top: 18px;
}

.home-city-list .city-list {
  align-items: center;
}

.home-city-list .city-list span {
  color: var(--muted);
  font-weight: 700;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.city-list a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #242935;
  color: #d6d9e0;
  padding: 30px 0;
}

.footer-inner {
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.footer-inner a {
  color: #fff;
}

.page-hero {
  padding: 40px 0 34px;
  background:
    linear-gradient(135deg, #ffffff 0%, #fbf6fa 54%, #f5f8fd 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner {
  position: relative;
}

.page-hero .eyebrow {
  margin-bottom: 10px;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: clamp(34px, 5.2vw, 58px);
}

.page-hero .lead {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.page-hero .hero-actions {
  margin-top: 22px;
}

.content-band {
  max-width: 860px;
}

.content-band p,
.content-band li {
  color: var(--muted);
}

.content-band ul {
  padding-left: 20px;
}

.news-article-image {
  width: 100%;
  margin-bottom: 24px;
  border-radius: var(--radius);
  object-fit: cover;
}

.news-article-content {
  color: var(--ink);
}

.wp-block-image img {
  border-radius: var(--radius);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .benefit-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-grid,
  .steps-grid,
  .timer-layout {
    grid-template-columns: 1fr;
  }

  .pickup-layout {
    grid-template-columns: 1fr;
  }

  .timer-grid {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
  }
}

@media (min-width: 981px) {
  .mobile-menu-button {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 20px, var(--wrap));
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .brand span {
    max-width: 112px;
  }

  .header-actions {
    min-width: 0;
    gap: 6px;
  }

  .country-toggle,
  .locale-toggle {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 148px;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-toggle {
    max-width: 108px;
  }

  .country-toggle .country-label {
    display: none;
  }

  .country-toggle .country-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .locale-current {
    grid-template-columns: auto;
    gap: 0;
    line-height: 1.15;
  }

  .locale-country {
    max-width: 84px;
    white-space: nowrap;
  }

  .locale-language {
    font-size: 11px;
  }

  .locale-card {
    margin-right: auto;
  }

  .header-registration {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86)),
      linear-gradient(135deg, rgba(230,0,126,.18), rgba(35,100,170,.16));
  }

  .hero-copy {
    padding: 42px 0;
  }

  .page-hero {
    padding: 32px 0 28px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .section {
    padding: 42px 0;
  }

  .home-benefits {
    padding-bottom: 24px;
  }

  .home-news {
    padding-top: 24px;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .news-slider-actions {
    position: static;
    justify-content: flex-end;
    margin: -8px 0 14px;
  }

  .news-slider-track {
    grid-auto-columns: minmax(260px, 88vw);
  }

  .benefit-grid,
  .news-grid,
  .catalog-grid,
  .catalog-list,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .catalog-heading h1 {
    font-size: 32px;
  }

  .catalog-viewer-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-viewer-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .catalog-viewer-actions [data-catalog-counter] {
    min-width: 62px;
  }

  .catalog-viewer-actions .icon-button {
    min-width: 34px;
    min-height: 34px;
    width: 34px;
    font-size: 17px;
  }

  .catalog-item h2 {
    min-height: 0;
  }

  .catalog-item {
    min-height: 0;
  }

  .timer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pickup-map {
    min-height: 420px;
  }
}

@media (max-width: 440px) {
  .header-inner {
    width: min(100% - 16px, var(--wrap));
  }

  .brand span {
    max-width: 92px;
  }

  .locale-toggle {
    flex: 0 1 74px;
    max-width: 74px;
    gap: 5px;
    padding: 0 7px;
  }

  .locale-toggle .locale-country {
    display: none;
  }

  .locale-toggle .locale-language {
    font-size: 12px;
  }

  .header-registration {
    padding: 0 9px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .brand span {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .locale-toggle {
    max-width: 70px;
  }

  .mobile-menu-button {
    min-width: 38px;
  }
}
