.locations-page {
  max-width: 1800px;
  padding-right: clamp(68px, 4.2vw, 80px);
  padding-left: clamp(18px, 2.5vw, 48px);
}

.locations-hero::before {
  content: none;
}

.locations-hero__principle {
  max-width: 980px;
  margin: clamp(24px, 3vw, 38px) 0 0;
  padding: clamp(16px, 2vw, 22px) 0;
  border-top: 1px solid rgba(255, 248, 236, 0.2);
  border-bottom: 1px solid rgba(255, 248, 236, 0.2);
  color: #fff8ec;
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 720;
  line-height: 1.45;
}

.locations-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.locations-hero__actions .location-button {
  min-height: 48px;
  padding-inline: 20px;
  border-color: rgba(255, 248, 236, 0.36);
  color: #fff8ec;
}

.locations-hero__actions .location-button--primary,
.network-join__submit,
.network-disclaimer__understand {
  border-color: #e9744a;
  background: #e9744a;
  color: #ffffff;
}

.locations-hero__actions .location-button--secondary:hover,
.locations-hero__actions .location-button--secondary:focus-visible {
  border-color: #fff8ec;
  background: #fff8ec;
  color: #211913 !important;
}

.locations-introduction {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px clamp(38px, 6vw, 96px);
  margin: clamp(28px, 5vw, 72px) 0;
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid rgba(42, 34, 26, 0.12);
  border-radius: 26px;
  background: rgba(255, 250, 242, 0.62);
}

.locations-introduction__index {
  grid-column: 1 / -1;
  margin: 0;
  color: #d95f37;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.locations-introduction h2 {
  margin: 0;
  color: #2a221a;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
}

.locations-introduction > p:not(.locations-introduction__index) {
  margin: 0;
  color: #65594e;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}

.locations-introduction__why {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  gap: 12px clamp(34px, 5vw, 72px);
  margin-top: 12px;
  padding-top: clamp(24px, 3vw, 38px);
  border-top: 1px solid rgba(42, 34, 26, 0.13);
}

.locations-introduction__why h3 {
  grid-row: 1 / span 3;
  margin: 0;
  color: #30271f;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.15;
}

.locations-introduction__why p {
  max-width: 78ch;
  margin: 0;
  color: #65594e;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.68;
}

.locations-introduction__why a {
  width: fit-content;
  color: #a64b2c;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.location-jump {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.location-jump a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(42, 34, 26, 0.12);
  border-radius: 13px;
  color: #3c3128;
  font-weight: 750;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
}

.location-jump span {
  color: #d95f37;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.location-jump a:hover,
.location-jump a:focus-visible {
  border-color: rgba(233, 116, 74, 0.48);
  background: #fffaf3;
}

.locations-grid {
  display: grid;
  gap: clamp(28px, 4vw, 54px);
}

.location-card {
  scroll-margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(42, 34, 26, 0.14);
  border-radius: clamp(24px, 3vw, 38px);
  background: #fffaf3;
  box-shadow: 0 30px 80px -58px rgba(42, 24, 15, 0.75);
}

.location-card__header {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 5vw, 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(233, 116, 74, 0.22), transparent 32%),
    linear-gradient(120deg, #211913, #34271e);
  color: #fff8ec;
}

.location-card:nth-child(2) .location-card__header {
  background:
    radial-gradient(circle at 86% 10%, rgba(106, 191, 159, 0.18), transparent 34%),
    linear-gradient(120deg, #211913, #2a302a);
}

.location-card:nth-child(3) .location-card__header {
  background:
    radial-gradient(circle at 86% 10%, rgba(217, 176, 109, 0.2), transparent 34%),
    linear-gradient(120deg, #211913, #342b1f);
}

.location-card__number {
  position: absolute;
  top: clamp(24px, 3vw, 42px);
  right: clamp(26px, 4vw, 58px);
  margin: 0;
  color: rgba(255, 248, 236, 0.08);
  font-size: clamp(88px, 12vw, 190px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.location-card__badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 11px;
  border: 1px solid rgba(233, 116, 74, 0.42);
  border-radius: 999px;
  color: #ffc2aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-card__header h2 {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0;
  color: #fff8ec;
  font-size: clamp(31px, 4.5vw, 67px);
  line-height: 1.01;
  letter-spacing: -0.035em;
}

.location-card__person {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  color: rgba(255, 248, 236, 0.82);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
}

.location-card__distinction {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 18px 0 0;
  color: rgba(255, 248, 236, 0.64);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
}

.location-card__content {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  min-height: 500px;
}

.location-card__details,
.location-card__map {
  min-width: 0;
  padding: clamp(28px, 4vw, 56px);
}

.location-card__details {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(42, 34, 26, 0.11);
}

.location-card__details h3,
.location-card__map h3 {
  margin: 0 0 24px;
  color: #a64b2c;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-card address {
  margin: 0 0 28px;
  color: #342a22;
  font-size: clamp(17px, 1.5vw, 21px);
  font-style: normal;
  line-height: 1.65;
}

.location-contact {
  color: #5c5046;
  line-height: 1.65;
}

.location-contact p { margin: 0 0 12px; }
.location-contact ul { margin: -2px 0 20px; padding-left: 19px; }
.location-contact a { color: #924126; font-weight: 750; }

.location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 30px;
}

.location-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(42, 34, 26, 0.17);
  border-radius: 999px;
  background: transparent;
  color: #3a2f27;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.location-card__actions .location-button--primary,
.location-card__actions .location-button--primary:visited {
  border-color: #2a211a;
  background: #2a211a;
  color: #fff8ec !important;
}

.location-button--map {
  border-color: rgba(233, 116, 74, 0.44);
  color: #b24d2c;
}

.location-button:hover,
.location-button:focus-visible {
  transform: translateY(-2px);
  border-color: #e9744a;
  background: #e9744a;
  color: #fff !important;
}

.location-card__map {
  display: flex;
  flex-direction: column;
  background: #f3ead9;
}

.location-card__map iframe {
  width: 100%;
  min-height: 390px;
  flex: 1;
  border: 0;
  border-radius: 18px;
  filter: saturate(0.7) contrast(0.96);
}

.location-map-fallback {
  margin: 18px 0 0;
  color: #65594e;
  font-size: 13px;
  line-height: 1.55;
}

.location-map-fallback a {
  color: #a64b2c;
  font-weight: 750;
}

.locations-information {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px clamp(36px, 6vw, 92px);
  margin: clamp(36px, 6vw, 90px) 0 28px;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid rgba(233, 116, 74, 0.22);
  border-radius: 24px;
  background: linear-gradient(140deg, #f6dfca, #fff8ed);
}

.locations-information h2 {
  grid-row: 1 / span 2;
  margin: 0;
  color: #2a221a;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.07;
}

.locations-information p {
  margin: 0;
  color: #605349;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
}

.network-join {
  scroll-margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 76px);
  margin: clamp(36px, 6vw, 88px) 0 28px;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 26px;
  color: #fff8ec;
  background:
    radial-gradient(circle at 94% 4%, rgba(111, 192, 157, 0.2), transparent 27rem),
    linear-gradient(135deg, #052f29 0%, #0a463a 58%, #0e5847 100%);
  box-shadow: 0 32px 74px -50px rgba(2, 42, 34, 0.9);
}

.network-join__intro {
  align-self: start;
}

.network-join__index,
.network-disclaimer__label {
  margin: 0 0 14px;
  color: #f28c68;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.network-join__intro h2 {
  max-width: 12ch;
  margin: 0 0 24px;
  color: #fff8ec;
  font-size: clamp(34px, 4.4vw, 68px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.network-join__intro p:not(.network-join__index) {
  max-width: 66ch;
  margin: 0 0 20px;
  color: rgba(255, 248, 236, 0.76);
  font-size: 16px;
  line-height: 1.68;
}

.network-join__intro .network-join__lead {
  color: #fff8ec;
  font-size: clamp(17px, 1.35vw, 20px);
}

.network-join__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 16px;
  background: rgba(2, 34, 29, 0.34);
  box-shadow: 0 18px 42px -32px rgba(0, 0, 0, 0.72);
}

.network-join__form label:not(.network-join__privacy) {
  display: grid;
  gap: 8px;
  color: #fff8ec;
  font-size: 14px;
  font-weight: 750;
}

.network-join__form label > span[aria-hidden="true"],
.network-join__required > span {
  color: #f28c68;
}

.network-join__optional {
  color: rgba(255, 248, 236, 0.6);
  font-weight: 500;
}

.network-join__form input,
.network-join__form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 248, 236, 0.23);
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.085);
  color: #fff8ec;
  font: inherit;
}

.network-join__form input::placeholder {
  color: rgba(255, 248, 236, 0.58);
}

.network-join__form textarea {
  min-height: 144px;
  resize: vertical;
}

.network-join__form :is(input, textarea):focus-visible {
  border-color: #f28c68;
  outline: 3px solid rgba(242, 140, 104, 0.25);
  outline-offset: 2px;
}

.network-join__wide,
.network-join__required,
.network-join__submit,
.network-join__form .form-submit-status {
  grid-column: 1 / -1;
}

.network-join__required {
  margin: 0;
  color: rgba(255, 248, 236, 0.66);
  font-size: 12px;
}

.network-join__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 248, 236, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.network-join__privacy input {
  width: 19px;
  height: 19px;
  min-height: 0;
  flex: 0 0 19px;
  margin-top: 2px;
  accent-color: #e9744a;
}

.network-join__privacy a {
  color: #ffc1a8;
  text-underline-offset: 3px;
}

.network-join__submit {
  justify-self: start;
  min-height: 48px;
  padding-inline: 22px;
  border-color: #f0784d !important;
  background: linear-gradient(135deg, #f0784d, #d85834) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.network-join__submit:hover,
.network-join__submit:focus-visible {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #063c32 !important;
}

.network-join__submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.network-join__form .form-submit-status {
  min-height: 1.5em;
  margin: 0;
  color: rgba(255, 248, 236, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.network-join__form .form-submit-status[data-status="success"] {
  color: #a9e5c8;
}

.network-join__form .form-submit-status[data-status="error"] {
  color: #ffc1a8;
}

body.network-disclaimer-open {
  overflow: hidden;
}

.network-disclaimer[hidden] {
  display: none;
}

.network-disclaimer {
  position: fixed;
  z-index: 10040;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
}

.network-disclaimer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 15, 0.72);
  backdrop-filter: blur(7px);
}

.network-disclaimer__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(222, 232, 235, 0.2);
  border-radius: 16px;
  color: #f5f3ed;
  background:
    radial-gradient(circle at 100% 0%, rgba(154, 179, 181, 0.14), transparent 21rem),
    linear-gradient(145deg, #263137, #182126);
  box-shadow: 0 30px 90px -28px rgba(0, 0, 0, 0.86);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.network-disclaimer.is-visible .network-disclaimer__dialog {
  opacity: 1;
  transform: none;
}

.network-disclaimer__dialog h2 {
  max-width: 17ch;
  margin: 0 44px 20px 0;
  color: #ffffff;
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.network-disclaimer__dialog > p:not(.network-disclaimer__label, .network-disclaimer__status) {
  max-width: 70ch;
  margin: 0;
  color: #dce5e5;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.68;
}

.network-disclaimer__status {
  margin: 24px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(222, 232, 235, 0.17);
  border-bottom: 1px solid rgba(222, 232, 235, 0.17);
  color: #ffffff;
  font-weight: 750;
  line-height: 1.5;
}

.network-disclaimer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(222, 232, 235, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  cursor: pointer;
}

.network-disclaimer__close span::before,
.network-disclaimer__close span::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 13px;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.network-disclaimer__close span::before { transform: rotate(45deg); }
.network-disclaimer__close span::after { transform: rotate(-45deg); }

.network-disclaimer__close:hover,
.network-disclaimer__close:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.network-disclaimer__understand {
  min-height: 48px;
  padding-inline: 22px;
  border-color: #f0784d !important;
  background: linear-gradient(135deg, #f0784d, #d85834) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.76);
  cursor: pointer;
}

.network-disclaimer__understand:hover,
.network-disclaimer__understand:focus-visible {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #1c2a2f !important;
}

html.kz-theme-light .network-join {
  color: #fff8ec;
}

html.kz-theme-light .network-join :is(h2, label, strong) {
  color: #fff8ec !important;
}

html.kz-theme-light .network-join__intro p:not(.network-join__index),
html.kz-theme-light .network-join__privacy,
html.kz-theme-light .network-join__required,
html.kz-theme-light .network-join__form .form-submit-status {
  color: rgba(255, 248, 236, 0.78) !important;
}

html.kz-theme-light .network-join__index,
html.kz-theme-light .network-join__form label > span[aria-hidden="true"],
html.kz-theme-light .network-join__required > span {
  color: #f28c68 !important;
}

html.kz-theme-light .network-join__optional {
  color: rgba(255, 248, 236, 0.6) !important;
}

html.kz-theme-light .network-join__form :is(input, textarea) {
  border-color: rgba(255, 248, 236, 0.23) !important;
  background: rgba(255, 248, 236, 0.085) !important;
  color: #fff8ec !important;
}

html.kz-theme-light .network-disclaimer__dialog h2,
html.kz-theme-light .network-disclaimer__status {
  color: #ffffff !important;
}

html.kz-theme-light .network-disclaimer__dialog > p:not(.network-disclaimer__label, .network-disclaimer__status) {
  color: #dce5e5 !important;
}

html.kz-theme-light .network-disclaimer__label {
  color: #f28c68 !important;
}

.locations-page .article-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.locations-page .article-links a {
  padding: 17px 18px;
  border: 1px solid rgba(42, 34, 26, 0.12);
  border-radius: 13px;
  background: rgba(255, 250, 242, 0.68);
  color: #3d3229;
  font-weight: 750;
  text-decoration: none;
}

.locations-page .article-links a:hover,
.locations-page .article-links a:focus-visible {
  border-color: rgba(233, 116, 74, 0.5);
  color: #b54f2c;
}

.locations-page + .evidence-back-to-top,
.locations-site .evidence-back-to-top {
  right: clamp(16px, 2.5vw, 34px);
}

@media (max-width: 900px) {
  .locations-introduction,
  .locations-information,
  .network-join,
  .location-card__content {
    grid-template-columns: 1fr;
  }

  .locations-information h2 { grid-row: auto; }
  .locations-introduction__why { grid-template-columns: 1fr; }
  .locations-introduction__why h3 { grid-row: auto; }
  .location-card__details { border-right: 0; border-bottom: 1px solid rgba(42, 34, 26, 0.11); }
  .location-jump,
  .locations-page .article-links { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .locations-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .location-card__header { min-height: 290px; }
  .location-card__map iframe { min-height: 320px; }
  .location-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .network-join__form { grid-template-columns: 1fr; }
  .network-join__wide,
  .network-join__required,
  .network-join__submit,
  .network-join__form .form-submit-status { grid-column: auto; }
}

@media (max-width: 460px) {
  .location-card__actions { grid-template-columns: 1fr; }
  .location-card__number { font-size: 86px; }
  .locations-hero__actions { display: grid; }
  .locations-hero__actions .location-button { width: 100%; }
  .locations-introduction,
  .locations-information,
  .network-join { padding: 24px 20px; }
  .network-join__form { padding: 20px 16px; }
  .network-disclaimer { padding: 10px; }
  .network-disclaimer__dialog {
    max-height: calc(100vh - 20px);
    padding: 30px 22px 24px;
  }
  .network-disclaimer__dialog h2 { margin-right: 32px; }
  .network-disclaimer__close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .location-button,
  .network-disclaimer__dialog { transition: none; }
}
