.office-page {
  --office-ink: #eff5fb;
  --office-muted: #b8ccdb;
  --office-panel: #182b3c;
  --office-rule: #395063;
  --office-paper: #e9f2f7;
  color: var(--office-ink);
  padding-bottom: clamp(44px, 7vw, 94px);
}
.office-page h1, .office-page h2, .office-page h3 { color: inherit; }
.office-page p { color: var(--office-muted); }
.office-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(340px, 1fr);
  grid-template-areas: "heading check";
  gap: 10px clamp(30px, 5.4vw, 88px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 80px) clamp(34px, 5vw, 68px);
}
.office-heading { grid-area: heading; }
.office-heading h1 {
  font-size: clamp(39px, 5.1vw, 79px);
  line-height: 1.02;
  letter-spacing: -.043em;
  font-weight: 640;
  text-wrap: balance;
}
.office-hero-summary {
  display: grid;
  justify-items: start;
  gap: 12px clamp(18px, 2vw, 28px);
  margin-top: 20px;
}
.office-hero-summary p {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 22px);
  text-wrap: pretty;
}
.office-hero-budget {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--office-ink);
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 550;
  white-space: nowrap;
}
.office-hero-budget strong {
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: proportional-nums;
}
.office-budget-caption { display: block; margin-top: 4px; color: var(--office-muted); }
@media (min-width: 1080px) {
  .office-hero-summary { grid-template-columns: minmax(0, 1fr) max-content; align-items: center; }
  .office-hero-summary > div { padding-inline-start: 16px; border-inline-start: 1px solid var(--office-rule); }
}
html:has(.office-search-screen[open]) { overflow: hidden; }
.office-search-screen {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  padding: 62px 20px;
  background: #e9f2f7;
  color: #15283b;
  overflow: auto;
  overscroll-behavior: contain;
}
.office-search-screen[open] { display: grid; place-items: safe center; }
.office-search-screen::backdrop { background: #e9f2f7; }
.office-search-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d5e4ef;
  color: #193852;
  font-size: 28px;
  line-height: 1;
}
.office-search-content { width: min(100%, 440px); text-align: center; }
.office-search-content h2 { font-size: clamp(25px, 4vw, 38px); letter-spacing: -.025em; text-wrap: balance; }
.office-search-content h2:focus { outline: none; }
.office-search-content p { color: #486074; margin-top: 12px; }
.office-loading-rail { height: 5px; margin-top: 29px; background: #c4daea; border-radius: 999px; overflow: hidden; }
.office-loading-rail span {
  display: block;
  width: 41%;
  height: 100%;
  border-radius: inherit;
  background: #3e7199;
  animation: office-progress 1.4s ease-in-out infinite;
}
@keyframes office-progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(246%); }
}
#office-lead-consent {
  color-scheme: light;
  accent-color: #274f70;
}
.office-check {
  grid-area: check;
  position: relative;
  color: #13283b;
  background: var(--office-paper);
  padding: clamp(20px, 3vw, 42px);
  border-radius: 16px;
  box-shadow: 0 18px 48px #070e1550;
}
.office-check h2 { font-size: clamp(25px, 3vw, 42px); letter-spacing: -.032em; margin-bottom: 19px; }
.office-check p { color: #42596b; }
.office-check label {
  display: block;
  margin: 13px 0 5px;
  font-size: 14px;
  font-weight: 630;
}
.office-check input, .office-check select {
  color: #14293b;
  background: #fff;
  border: 1px solid #9aafbf;
  border-radius: 7px;
  min-height: 47px;
  padding: 10px 11px;
  width: 100%;
  font-size: 16px;
}
.office-check :is(input, select):disabled { opacity: .7; }
.office-check :is(a, button, input, select):focus-visible, .office-page summary:focus-visible {
  outline: 2px solid #577e9e;
  outline-offset: 2px;
}
.office-check .office-address-hint { margin-top: 5px; font-size: 12px; }
.office-place-input { position: relative; }
.office-suggestions {
  position: absolute;
  top: 100%;
  z-index: 3;
  width: 100%;
  background: #fff;
  box-shadow: 0 10px 24px #152e4940;
  border: 1px solid #a8b9c6;
  border-radius: 7px;
  margin: 3px 0 0;
  padding: 4px;
  list-style: none;
  max-height: 260px;
  overflow: auto;
}
.office-suggestions button {
  width: 100%;
  text-align: left;
  color: #13283b;
  background: transparent;
  padding: 8px;
  font-size: 14px;
  border-radius: 4px;
}
.office-suggestions button:hover, .office-suggestions button:focus { background: #e2eef6; }
.office-house-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.office-house-row .button {
  background: #173951;
  color: #fff;
  border-radius: 7px;
  padding-inline: 16px;
  min-height: 47px;
  min-width: 126px;
  padding-block: 8px;
}
.office-house-row .button:disabled { background: #b7c9d6; color: #304b5f; transform: none; }
.office-check .office-status { display: flex; gap: 8px; align-items: center; min-height: 24px; margin-top: 8px; font-size: 14px; }
.office-fallback { font-size: 14px; color: #244f6b; text-decoration: underline; text-underline-offset: 3px; }
.office-section { border-top: 1px solid var(--office-rule); padding-block: clamp(25px, 4vw, 52px); }
.office-section h2 { font-size: clamp(28px, 3vw, 47px); letter-spacing: -.035em; }
.office-section h3 { font-size: clamp(19px, 1.9vw, 26px); letter-spacing: -.02em; }
.office-section p { margin-top: 8px; }
.office-reasons, .office-feedback {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: clamp(15px, 3.5vw, 48px);
  row-gap: 13px;
  margin-top: 23px;
}
.office-feedback article {
  padding: clamp(18px, 2.4vw, 29px);
  border: 1px solid #c1d4e0;
  border-radius: 9px;
  background: var(--office-paper);
  color: #152b3e;
}
.office-feedback { gap: 12px; }
.office-feedback article p { max-width: 35ch; color: #36556c; }
.office-review-stars { display: block; margin-top: 6px; color: #875713; font-size: 19px; line-height: 1.3; letter-spacing: .14em; }
.office-page .office-tariff-context { color: inherit; margin: 0 0 16px; }
.office-section .office-result-address { color: #e7f5ff; font-weight: 650; }
/* Office connection guide */
.office-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 56px);
}
.office-section:has(> .office-duo) { padding-block: clamp(22px, 3vw, 36px); }
.office-duo {
  --office-guide-rule: #c1d4e0;
  --office-guide-marker: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--office-guide-rule);
  border-radius: 13px;
  background: var(--office-paper);
  color: #152b3e;
  overflow: hidden;
}
.office-duo-panel { min-width: 0; padding: clamp(16px, 2.2vw, 27px); }
.office-duo-options { border-inline-start: 1px solid var(--office-guide-rule); background: #f5f9fc; }
.office-duo h2 { font-size: clamp(22px, 2.1vw, 28px); font-weight: 640; letter-spacing: -.025em; }
.office-duo-list { margin: 12px 0 0; padding: 0; list-style: none; }
.office-duo-list li {
  display: grid;
  grid-template-columns: var(--office-guide-marker) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-block: 7px;
  border-bottom: 1px solid var(--office-guide-rule);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.35;
}
.office-duo-marker {
  display: grid;
  place-items: center;
  width: var(--office-guide-marker);
  height: var(--office-guide-marker);
  border-radius: 7px;
  background: #d7e7f1;
  color: #224e6a;
  font-size: 15px;
  font-weight: 650;
}
.office-duo-marker .icon { width: 18px; height: 18px; }
.office-steps {
  --office-step-gap: 12px;
  display: grid;
  gap: var(--office-step-gap);
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.office-steps li {
  display: grid;
  grid-template-columns: var(--office-guide-marker) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  position: relative;
}
.office-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: calc(var(--office-guide-marker) + 2px) auto calc(2px - var(--office-step-gap)) calc(var(--office-guide-marker) / 2 - 1px);
  width: 2px;
  background: var(--office-guide-rule);
}
.office-steps .office-duo-marker { border-radius: 50%; }
.office-steps li:last-child .office-duo-marker { background: #19364c; color: #f5f9fc; }
.office-steps li > div { padding-top: 4px; }
.office-steps h3 { font-size: clamp(16px, 1.4vw, 19px); font-weight: 640; letter-spacing: normal; }
.office-steps li p { margin-top: 3px; color: #36556c; font-size: clamp(15px, 1.15vw, 16px); line-height: 1.4; }
.office-duo .office-compare-link {
  gap: 10px;
  margin-top: 14px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 7px;
  background: #19364c;
  color: #f5f9fc;
  font-size: 15px;
  line-height: 1.3;
}
.office-duo .office-compare-link:hover { background: #294d67; transform: none; }
.office-duo .office-compare-link:focus-visible { outline-color: #224e6a; }
.office-duo .office-compare-link .icon { width: 17px; height: 17px; }
@media (min-width: 821px) and (max-width: 1024px) {
  .office-duo-list li { min-height: 56px; }
}
@media (max-width: 820px) {
  .office-duo { grid-template-columns: minmax(0, 1fr); }
  .office-duo-options { border-inline-start: 0; border-top: 1px solid var(--office-guide-rule); }
}
@media (max-width: 480px) {
  .office-duo .office-compare-link { justify-content: space-between; width: 100%; }
}
.office-faq h2 { margin-bottom: 16px; }
.office-faq details { border-bottom: 1px solid var(--office-rule); padding: 14px 0; }
.office-faq summary { cursor: pointer; font-size: 17px; font-weight: 590; }
.office-faq p { max-width: 72ch; }
.office-request .request-form { min-width: 0; }
.office-page .office-geo-source { font-size: 12px; }
.office-geo-source a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .office-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "heading" "check"; gap: 22px; }
  .office-reasons, .office-feedback, .office-request { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .office-loading-rail span { animation: none; }
}

/* Office provider cards */
.office-provider-list {
  display: grid;
  max-width: 866px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 23px;
}
.office-provider {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  align-items: start;
  padding: clamp(16px, 2vw, 25px);
  border: 1px solid #b7cbd9;
  border-radius: 10px;
  background: var(--office-paper);
  color: #152b3e;
}
.office-provider-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: #36556c;
  font-size: 14px;
}
.office-provider-logo {
  display: block;
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.office-provider[data-office-name="МегаФон"] .office-provider-logo { width: 96px; }
.office-provider h3 {
  margin-top: 12px;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 650;
  letter-spacing: -.015em;
}
.office-provider-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px clamp(10px, 1.6vw, 24px);
  margin-block: 13px 15px;
}
.office-provider-specs dt { color: #36556c; font-size: 12px; }
.office-provider-specs dd {
  margin: 3px 0 0;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 640;
}
.office-provider-cost {
  padding-top: 12px;
  border-top: 1px solid #b7cbd9;
}
.office-provider-cost strong {
  font-size: clamp(26px, 2.7vw, 34px);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.office-provider-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.office-provider-request, .office-provider-compare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 620;
}
.office-provider-request { background: #19364c; color: #f5f9fc; }
.office-provider-request:hover { background: #294d67; }
.office-provider-compare { border-color: #9ab5c7; background: transparent; color: #152b3e; }
.office-provider-compare:hover { background: #cddfea; border-color: #6a8da4; }
.office-provider-compare .icon { width: 16px; height: 16px; }
.office-provider :is(a,button):focus-visible { outline-color: #365f7d; }
.office-tariff-site {
  display: inline-block;
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.office-comparison { width: 100%; max-width: min(700px, calc(100% - 24px)); }
.office-comparison-scroll { overflow-x: auto; margin-block: 12px 4px; }
.office-comparison-scroll table { width: 100%; border-collapse: collapse; }
.office-comparison-scroll :is(th,td) {
  min-width: 110px;
  padding: 9px 10px;
  border-bottom: 1px solid #496375;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.office-comparison-scroll .office-provider-request { text-align: center; }
#office-result > .office-fallback { display: inline-block; margin-top: 12px; }
@media (max-width: 650px) {
  .office-provider-list { grid-template-columns: minmax(0, 1fr); }
}
