:root {
  --paper: #f4f0e7;
  --card: rgba(255, 253, 248, 0.92);
  --ink: #26312c;
  --muted: #6f776f;
  --line: rgba(51, 67, 59, 0.16);
  --green: #325b4a;
  --green-dark: #244436;
  --sage: #a7b3a2;
  --terracotta: #a8674f;
  --error: #9c3e36;
  --shadow: 0 26px 80px rgba(48, 55, 49, 0.14), 0 4px 18px rgba(48, 55, 49, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 9%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(145deg, #f2eee4 0%, #e9ede4 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 240, 231, 0.36), rgba(244, 240, 231, 0.88) 78%),
    linear-gradient(0deg, rgba(244, 240, 231, 0.24), rgba(244, 240, 231, 0.56)),
    url("/static/aviatsionnaya-68-watercolor.png") left bottom / auto 86% no-repeat;
  opacity: 0.31;
}

.site-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  width: min(1240px, calc(100% - 48px));
  margin: 22px auto -38px;
}

.site-tabs-inner {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(50, 91, 74, 0.14);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 8px 25px rgba(48, 55, 49, 0.07);
  backdrop-filter: blur(14px);
}

.site-tabs a {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #5d685f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.site-tabs a:hover {
  color: var(--green);
  background: rgba(50, 91, 74, 0.06);
}

.site-tabs a[aria-current="page"] {
  color: white;
  background: var(--green);
  box-shadow: 0 6px 15px rgba(50, 91, 74, 0.18);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: center;
}

.intro {
  max-width: 480px;
  align-self: start;
  margin-top: 62px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.address-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #53635b;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.address-number {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(50, 91, 74, 0.45);
  border-radius: 50% 50% 47% 52%;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.intro h1 {
  margin: 30px 0 22px;
  max-width: 520px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.6vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro > p {
  margin: 0;
  max-width: 455px;
  color: #566159;
  font-size: 17px;
  line-height: 1.7;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  color: #4e5b54;
  font-size: 14px;
  font-weight: 600;
}

.steps div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(50, 91, 74, 0.28);
  border-radius: 50%;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 12px;
}

.form-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(26px, 4.2vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--green), var(--sage), transparent 92%);
  opacity: 0.75;
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-heading h2,
.success-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.required-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-top: 7px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.required-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.form-section {
  padding: 0 0 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.form-section h3 {
  margin: 0 0 19px;
  color: #34423b;
  font-size: 14px;
  font-weight: 730;
  letter-spacing: 0.01em;
}

.form-section h3 span {
  margin-right: 7px;
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 400;
}

.optional-label {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.section-hint {
  margin: -9px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fields {
  display: grid;
  gap: 16px;
}

.two-columns {
  grid-template-columns: 1.2fr 0.8fr;
}

.address-grid {
  grid-template-columns: 0.9fr 1.2fr 0.42fr 0.62fr;
}

.field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.field > span {
  color: #59655e;
  font-size: 12px;
  font-weight: 650;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(58, 75, 66, 0.18);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  font: inherit;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder {
  color: #a2a8a2;
}

.field input:hover {
  border-color: rgba(50, 91, 74, 0.34);
}

.field input:focus {
  border-color: var(--green);
  background: #fffefa;
  box-shadow: 0 0 0 3px rgba(50, 91, 74, 0.1);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.document-section {
  margin-bottom: 20px;
  padding-bottom: 24px;
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 84px;
  padding: 15px 17px;
  border: 1px dashed rgba(50, 91, 74, 0.38);
  border-radius: 17px;
  background: rgba(237, 241, 234, 0.55);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: var(--green);
  background: rgba(228, 235, 226, 0.84);
}

.upload-zone.is-dragging {
  transform: translateY(-1px);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: rgba(50, 91, 74, 0.48);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 255, 255, 0.82);
}

.upload-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.upload-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
  flex: 1;
}

.upload-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy small {
  color: var(--muted);
  font-size: 12px;
}

.upload-button {
  padding: 9px 14px;
  border: 1px solid rgba(50, 91, 74, 0.25);
  border-radius: 11px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.consent-row {
  position: relative;
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 11px;
  align-items: start;
  margin: 0 0 20px;
  color: #68716b;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
}

.consent-row input {
  position: absolute;
  opacity: 0;
}

.checkmark {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid rgba(50, 91, 74, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.consent-row input:focus-visible + .checkmark {
  outline: 3px solid rgba(50, 91, 74, 0.18);
  outline-offset: 2px;
}

.consent-row input:checked + .checkmark {
  border-color: var(--green);
  background: var(--green);
}

.consent-row input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 15px;
  padding: 11px 13px;
  border: 1px solid rgba(156, 62, 54, 0.2);
  border-radius: 10px;
  color: var(--error);
  background: rgba(156, 62, 54, 0.06);
  font-size: 13px;
}

.submit-button,
.secondary-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.access-page {
  min-height: calc(100vh - 64px);
}

.access-intro {
  align-self: center;
  margin-top: 0;
}

.access-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 30px;
  max-width: 440px;
  padding: 15px 17px;
  border: 1px solid rgba(50, 91, 74, 0.14);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.62);
}

.access-note > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: white;
  background: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 13px;
}

.access-note p {
  margin: 1px 0 0;
  color: #59655e;
  font-size: 13px;
  line-height: 1.5;
}

.access-card {
  padding: clamp(26px, 3.7vw, 44px);
}

.access-heading {
  margin-bottom: 12px;
}

.access-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.barrier-phone {
  display: grid;
  grid-template-columns: 38px 1fr 22px;
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid rgba(50, 91, 74, 0.15);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.59);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.barrier-phone:hover {
  border-color: rgba(50, 91, 74, 0.42);
  background: #fffefa;
  box-shadow: 0 9px 20px rgba(50, 91, 74, 0.09);
  transform: translateY(-1px);
}

.barrier-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--green);
  background: rgba(50, 91, 74, 0.09);
  font-family: Georgia, serif;
  font-size: 12px;
}

.barrier-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.barrier-copy strong {
  font-size: 13px;
}

.barrier-copy small {
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.barrier-phone > svg {
  width: 21px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contacts-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(50, 91, 74, 0.14);
  border-radius: 19px;
  background: rgba(237, 241, 234, 0.58);
}

.contacts-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.contacts-copy > p:last-of-type {
  max-width: 330px;
  margin: 9px 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.contacts-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.contacts-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.contacts-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contacts-qr {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.contacts-qr img {
  display: block;
  width: 132px;
  height: 132px;
  padding: 7px;
  border: 1px solid rgba(50, 91, 74, 0.12);
  border-radius: 13px;
  background: white;
}

.contacts-qr span {
  color: var(--muted);
  font-size: 10px;
}

.app-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.app-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.app-section > div:first-child > p:last-child {
  max-width: 340px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.store-buttons {
  display: grid;
  gap: 9px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 182px;
  min-height: 55px;
  padding: 8px 14px;
  border-radius: 13px;
  color: white;
  background: #202522;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.store-button:hover {
  background: #111411;
  transform: translateY(-1px);
}

.store-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: currentColor;
}

.android-store svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.android-store circle {
  fill: currentColor;
  stroke: none;
}

.store-button span {
  display: grid;
  gap: 1px;
}

.store-button small {
  font-size: 9px;
  letter-spacing: 0.03em;
}

.store-button strong {
  font-size: 15px;
}

.object-id {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(168, 103, 79, 0.2);
  border-radius: 13px;
  background: rgba(168, 103, 79, 0.07);
}

.object-id span {
  color: #6e5c54;
  font-size: 12px;
  font-weight: 700;
}

.object-id strong {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 20px;
}

.object-id small {
  color: var(--muted);
  font-size: 11px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 15px;
  color: white;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(50, 91, 74, 0.22);
  font-size: 15px;
  font-weight: 720;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--green-dark);
  box-shadow: 0 13px 28px rgba(50, 91, 74, 0.26);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.82;
}

.submit-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
}

.submit-button.is-loading .button-loader {
  display: block;
}

.submit-button.is-loading svg {
  display: none;
}

.privacy-note {
  margin: 13px 0 0;
  color: #8a908b;
  text-align: center;
  font-size: 11px;
}

.success-panel {
  min-height: 590px;
  padding: 65px 10px 25px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  box-shadow: 0 16px 32px rgba(50, 91, 74, 0.2);
}

.success-icon svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.success-panel > p:not(.eyebrow) {
  max-width: 390px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.application-number {
  display: grid;
  gap: 7px;
  max-width: 300px;
  margin: 34px auto 30px;
  padding: 18px;
  border: 1px dashed rgba(50, 91, 74, 0.34);
  border-radius: 15px;
  background: rgba(237, 241, 234, 0.58);
}

.application-number span {
  color: var(--muted);
  font-size: 12px;
}

.application-number strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.12em;
}

.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(50, 91, 74, 0.28);
  border-radius: 13px;
  color: var(--green);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.home-page,
.services-page {
  align-items: start;
  padding-top: 96px;
}

.home-intro,
.services-intro {
  margin-top: 32px;
}

.district-channel {
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  gap: 12px;
  align-items: center;
  max-width: 390px;
  min-height: 68px;
  margin-top: 32px;
  padding: 12px 15px;
  border: 1px solid rgba(50, 91, 74, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.district-channel:hover {
  border-color: rgba(50, 91, 74, 0.36);
  background: rgba(255, 253, 248, 0.94);
  transform: translateY(-1px);
}

.resident-chat {
  margin-top: 12px;
}

.resident-chat .channel-mark {
  background: #267452;
}

.channel-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: var(--green);
}

.channel-mark svg,
.channel-arrow {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.district-channel > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.district-channel small {
  color: var(--muted);
  font-size: 10px;
}

.district-channel strong {
  font-size: 14px;
}

.channel-arrow {
  color: var(--green);
}

.home-card {
  padding: clamp(25px, 3.3vw, 40px);
}

.home-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.home-card-heading h2,
.section-title-row h2,
.services-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.source-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.urgent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 15px 17px;
  border: 1px solid rgba(168, 103, 79, 0.22);
  border-radius: 17px;
  background: rgba(168, 103, 79, 0.075);
}

.urgent-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.urgent-copy > div {
  display: grid;
  gap: 4px;
}

.urgent-copy small {
  color: #796a63;
  font-size: 10px;
}

.urgent-copy strong {
  font-size: 13px;
}

.urgent-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 3px solid rgba(168, 103, 79, 0.18);
  border-radius: 50%;
  background: var(--terracotta);
  box-sizing: content-box;
}

.urgent-card > a,
.management-strip > a,
.primary-service > a,
.service-row > a {
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.urgent-card > a {
  font-size: 15px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 20px;
}

.quick-action {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(50, 91, 74, 0.14);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.quick-action:hover {
  border-color: rgba(50, 91, 74, 0.38);
  background: #fffefa;
  transform: translateY(-1px);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--green);
  background: rgba(50, 91, 74, 0.09);
}

.quick-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.quick-action > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.quick-action strong {
  font-size: 12px;
}

.quick-action small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.updates-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title-row h2 {
  font-size: 26px;
}

.section-title-row > span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.update-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 20px;
}

.update-links > a {
  display: grid;
  grid-template-columns: 27px 1fr 16px;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.update-links > a:hover strong {
  color: var(--green);
}

.update-number {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 11px;
}

.update-links > a > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.update-links strong {
  font-size: 11px;
  transition: color 160ms ease;
}

.update-links small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-links svg {
  width: 16px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.management-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 15px 17px;
  border-radius: 15px;
  background: rgba(237, 241, 234, 0.64);
}

.management-strip > div {
  display: grid;
  gap: 3px;
}

.management-strip small,
.management-strip span {
  color: var(--muted);
  font-size: 9px;
}

.management-strip strong {
  font-size: 12px;
}

.management-strip > a {
  font-size: 13px;
}

.services-card {
  padding: clamp(25px, 3.3vw, 40px);
}

.services-heading {
  margin-bottom: 22px;
}

.emergency-note {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 13px;
  align-items: center;
  max-width: 430px;
  margin-top: 30px;
  padding: 13px 15px;
  border: 1px solid rgba(168, 103, 79, 0.2);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.emergency-note > span {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 26px;
}

.emergency-note p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.emergency-note strong {
  font-size: 12px;
}

.emergency-note small {
  color: var(--muted);
  font-size: 9px;
}

.emergency-note a {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: white;
  background: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.primary-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(50, 91, 74, 0.19);
  border-radius: 17px;
  background: rgba(237, 241, 234, 0.68);
}

.primary-service h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.primary-service p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.primary-service > a {
  font-size: 16px;
}

.service-groups {
  display: grid;
  gap: 25px;
  margin-top: 27px;
}

.service-group-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}

.service-group-title > span {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 11px;
}

.service-group-title h3 {
  margin: 0;
  font-size: 13px;
}

.service-group-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.service-row > div {
  display: grid;
  gap: 4px;
}

.service-row strong {
  font-size: 11px;
}

.service-row small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.service-row > a {
  font-size: 12px;
}

.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.emergency-grid a {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(168, 103, 79, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(168, 103, 79, 0.055);
  text-decoration: none;
}

.emergency-grid span {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 20px;
}

.emergency-grid strong {
  font-size: 10px;
}

.official-links {
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.official-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(50, 91, 74, 0.18);
  border-radius: 10px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 720px;
    padding-top: 36px;
  }

  .intro {
    max-width: 650px;
    margin-top: 0;
  }

  .intro h1 {
    margin-top: 24px;
    font-size: clamp(48px, 8.5vw, 70px);
  }

  .steps {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .scene {
    background-position: center bottom;
    background-size: auto 54%;
    opacity: 0.22;
  }

  .home-page,
  .services-page {
    padding-top: 38px;
  }

  .home-intro,
  .services-intro {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .site-tabs {
    justify-content: stretch;
    width: min(100% - 24px, 620px);
    margin: 13px auto -6px;
  }

  .site-tabs-inner {
    width: 100%;
  }

  .site-tabs a {
    flex: 1;
    min-width: 0;
    padding: 0 9px;
    text-align: center;
    font-size: 11px;
  }

  .page-shell {
    width: min(100% - 24px, 620px);
    padding: 22px 0 34px;
    gap: 28px;
  }

  .intro h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 13vw, 58px);
  }

  .intro > p {
    font-size: 15px;
    line-height: 1.6;
  }

  .steps {
    display: none;
  }

  .form-card {
    padding: 28px 20px;
    border-radius: 23px;
  }

  .form-heading {
    margin-bottom: 30px;
  }

  .required-note {
    display: none;
  }

  .two-columns,
  .address-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-columns .wide,
  .city-field,
  .street-field {
    grid-column: 1 / -1;
  }

  .upload-zone {
    align-items: flex-start;
  }

  .upload-button {
    display: none;
  }

  .success-panel {
    min-height: 500px;
    padding-top: 48px;
  }

  .access-page {
    padding-top: 28px;
  }

  .access-note {
    margin-top: 22px;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .app-section {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .contacts-section {
    grid-template-columns: 1fr auto;
    padding: 18px;
  }

  .store-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .store-button {
    min-width: 0;
  }

  .home-card,
  .services-card {
    padding: 27px 20px;
  }

  .home-card-heading {
    margin-bottom: 18px;
  }

  .quick-actions,
  .update-links {
    grid-template-columns: 1fr;
  }

  .update-links {
    gap: 0;
  }

  .quick-action {
    min-height: 68px;
  }

  .management-strip,
  .primary-service {
    align-items: flex-start;
    flex-direction: column;
  }

  .management-strip,
  .primary-service {
    gap: 12px;
  }

  .primary-service > a {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .store-buttons {
    grid-template-columns: 1fr;
  }

  .object-id {
    grid-template-columns: auto 1fr;
  }

  .object-id small {
    grid-column: 1 / -1;
  }

  .contacts-section {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .contacts-qr {
    margin-top: 2px;
  }

  .site-tabs a {
    padding: 0 5px;
    font-size: 10px;
  }

  .home-card-heading,
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .source-note,
  .section-title-row > span {
    margin: 0;
  }

  .urgent-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .district-channel {
    grid-template-columns: 40px 1fr 16px;
  }

  .emergency-note {
    grid-template-columns: 48px 1fr;
  }

  .emergency-note a {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .service-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .emergency-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
