/* Self-hosted Cyrillic fonts (PT Serif / PT Sans, subsets cyrillic+latin) */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pt-sans-400-normal-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pt-sans-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/pt-sans-700-normal-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/pt-sans-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pt-serif-400-italic-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pt-serif-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pt-serif-400-normal-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pt-serif-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/pt-serif-700-normal-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/pt-serif-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1e2534;
  --ink-soft: #3c4356;
  --muted: #616a7d;
  --navy: #23406e;
  --navy-dark: #172c4e;
  --navy-ink: #10203c;
  --navy-soft: #edf1f7;
  --paper: #f7f4ec;
  --paper-deep: #f1ecdf;
  --card: #fffdf8;
  --line: #e2dbc8;
  --line-soft: #ece6d6;
  --brass: #a07c30;
  --brass-deep: #83641f;
  --brass-soft: #d9c48c;
  --danger: #a83232;
  --danger-soft: #fbeeed;
  --success: #21653d;
  --success-soft: #eef6ef;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1080px;
  --shadow: 0 14px 34px rgba(23, 44, 78, .09);
  --shadow-soft: 0 6px 18px rgba(23, 44, 78, .07);
  --font: 'PT Sans', 'Segoe UI', Arial, sans-serif;
  --font-display: 'PT Serif', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at 82% -120px, rgba(160, 124, 48, .07), transparent 68%),
    repeating-linear-gradient(0deg, rgba(35, 64, 110, .018) 0 1px, transparent 1px 30px),
    var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--brass);
}

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

a {
  color: var(--navy);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--navy-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-180%);
  border-radius: 8px;
  color: #fff;
  background: var(--navy-dark);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Header --- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 10px max(20px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, .93);
  box-shadow: 0 6px 24px rgba(23, 44, 78, .06);
  backdrop-filter: blur(12px);
}

.site-header::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-soft) 45%, var(--brass) 100%);
  content: "";
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .01em;
}

.brand-title small {
  display: block;
  margin-top: 3px;
  color: var(--brass-deep);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  justify-content: center;
  align-items: center;
}

.site-nav a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  background: var(--brass);
  transition: transform .22s ease;
  content: "";
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-phone {
  justify-self: start;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  color: var(--navy-dark);
  background: var(--card);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.header-phone:hover {
  border-color: var(--brass-soft);
  box-shadow: var(--shadow-soft);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-dark);
  background: var(--card);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle-lines {
  position: relative;
  margin: 0 auto;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }

main {
  overflow: clip;
}

/* --- Shared section shell --- */

.hero,
.section,
.state-note,
.site-footer {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 64px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  max-width: 700px;
  margin-bottom: 16px;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -.01em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 2.8vw, 34px);
}

.section > h2::after {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brass), rgba(160, 124, 48, 0));
  content: "";
}

h2 + p {
  margin-top: 0;
  max-width: 62ch;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--brass-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: var(--brass);
  content: "";
}

/* --- Hero --- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: 64px 72px;
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(100%, 760px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--brass-soft) 22%, var(--brass-soft) 78%, transparent);
  content: "";
}

.hero-address {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin: 0 0 4px;
  color: var(--navy-dark);
  font-size: 17.5px;
  font-weight: 700;
}

.hero-address::before {
  align-self: center;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  transform: rotate(45deg);
  background: var(--brass);
  content: "";
}

.hero-schedule {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .82);
  box-shadow: var(--shadow-soft);
}

.credentials div {
  position: relative;
  min-width: 0;
  padding: 14px 18px 15px;
}

.credentials div + div {
  border-left: 1px solid var(--line-soft);
}

.credentials div::before {
  position: absolute;
  top: 0;
  left: 18px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brass-soft);
  content: "";
}

.credentials dt {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.credentials dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15.5px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.hero-actions .button {
  min-height: 50px;
  padding-inline: 26px;
}

.hero-seal {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 300px;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 253, 248, .9), rgba(255, 253, 248, .35)),
    radial-gradient(closest-side, transparent 62%, rgba(160, 124, 48, .12));
}

.hero-seal::before {
  position: absolute;
  inset: 13px;
  border: 1px dashed var(--brass-soft);
  border-radius: 50%;
  content: "";
}

.hero-seal::after {
  position: absolute;
  inset: -9px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  content: "";
}

.hero-mark {
  width: 208px;
}

/* --- State note --- */

.state-note {
  position: relative;
  margin-block: 8px 6px;
  padding: 24px 28px 22px 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f4f2ea, #efece1);
  box-shadow: var(--shadow-soft);
  font-size: 15.5px;
}

.state-note h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

.state-note p {
  margin: 7px 0;
  color: var(--ink-soft);
}

/* --- Services --- */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: service;
}

.service-list article {
  position: relative;
  min-height: 148px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  counter-increment: service;
}

.service-list article::before {
  position: absolute;
  top: 14px;
  right: 18px;
  color: rgba(160, 124, 48, .38);
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  content: counter(service, decimal-leading-zero);
}

.service-list article h3 {
  padding-right: 34px;
}

.service-list article p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* --- Preparation --- */

.preparation-list,
.visit ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.preparation-list li,
.visit li {
  position: relative;
  padding: 6px 6px 6px 60px;
  font-size: 15px;
}

.preparation-list li::before,
.visit li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--brass-soft);
  border-radius: 50%;
  color: var(--brass-deep);
  background: var(--card);
  font-family: var(--font-display);
  font-size: 15px;
  counter-increment: step;
  content: counter(step, upper-roman);
}

/* --- Visit band --- */

.visit {
  width: 100%;
  margin-top: 12px;
  padding-block: 56px;
  padding-inline: max(20px, calc((100vw - var(--container)) / 2));
  color: #fff;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 22px),
    radial-gradient(900px 340px at 12% 0%, rgba(160, 124, 48, .16), transparent 62%),
    var(--navy-dark);
  box-shadow: inset 0 1px 0 rgba(217, 196, 140, .35), inset 0 -1px 0 rgba(217, 196, 140, .35);
}

.visit h2 {
  margin-bottom: 26px;
  color: #fdfbf5;
}

.visit h2::after {
  background: linear-gradient(90deg, var(--brass-soft), rgba(217, 196, 140, 0));
}

.visit ol {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.visit li {
  color: rgba(255, 255, 255, .88);
  font-size: 15.5px;
}

.visit li::before {
  border-color: rgba(217, 196, 140, .55);
  color: var(--brass-soft);
  background: rgba(255, 255, 255, .04);
}

/* --- Tariffs --- */

.tariff-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tariff-list li {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
}

.tariff-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}

.tariff-list a {
  display: block;
  margin-top: 5px;
  font-weight: 700;
  font-size: 14.5px;
}

.tariffs > p {
  color: var(--muted);
}

/* --- Appointment --- */

.appointment {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(440px, 1.2fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
  margin-top: 12px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(640px 300px at 100% 0%, rgba(35, 64, 110, .07), transparent 65%),
    linear-gradient(180deg, #f3f0e6, #eeeadd);
  box-shadow: var(--shadow-soft);
}

.appointment-copy {
  position: sticky;
  top: 110px;
}

.appointment-copy p {
  color: var(--muted);
  font-size: 15.5px;
}

.form-fallback {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--brass-soft);
  border-radius: var(--radius);
  color: var(--ink-soft) !important;
  background: rgba(255, 253, 248, .75);
  font-size: 14.5px !important;
}

#appointment-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 18px;
  max-width: 600px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

#appointment-form::before,
#appointment-form::after {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0 solid var(--brass);
  content: "";
  pointer-events: none;
}

#appointment-form::before {
  top: -1px;
  left: -1px;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: var(--radius-lg);
}

#appointment-form::after {
  right: -1px;
  bottom: -1px;
  border-right-width: 3px;
  border-bottom-width: 3px;
  border-bottom-right-radius: var(--radius-lg);
}

.form-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.form-field--wide,
.form-consent,
.form-status,
#appointment-form button {
  grid-column: 1 / -1;
}

.form-field--half {
  grid-column: span 1;
}

label {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.label-note {
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #cdc5ae;
  border-radius: 8px;
  color: var(--ink);
  background: #fffefb;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #a9a290;
  opacity: 1;
}

input:hover:not([aria-invalid="true"]):not(:focus),
textarea:hover:not([aria-invalid="true"]):not(:focus) {
  border-color: #b3a887;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(160, 124, 48, .16);
  outline: none;
}

input[type="date"],
input[type="time"] {
  min-height: 50px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

/* Gentle live feedback: valid filled fields */
.form-field input:is([type="text"], [type="tel"], [type="email"]):valid:not(:placeholder-shown):not([aria-invalid="true"]),
.form-field textarea:valid:not(:placeholder-shown):not([aria-invalid="true"]) {
  border-color: #9dc3a7;
  background: #fcfffb;
}

/* Invalid states (client :user-invalid + server aria-invalid) */
.form-field input:user-invalid,
.form-field textarea:user-invalid,
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: 0 0 0 1px rgba(168, 50, 50, .35);
}

[data-field-error] {
  min-height: 1.15em;
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.35;
}

[data-field-error]:empty {
  margin: 0;
}

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbf9f2;
  font-size: 13.5px;
  line-height: 1.5;
}

.form-consent input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brass);
  cursor: pointer;
}

.form-consent label {
  font-weight: 400;
  cursor: pointer;
}

.form-consent [data-field-error] {
  grid-column: 2;
}

.form-fallback,
.form-status {
  grid-column: 1 / -1;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin: 0;
  padding: 15px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.form-status[data-state="success"] {
  border: 1px solid #c4dcc9;
  border-left: 4px solid var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.form-status[data-state="error"] {
  border: 1px solid #e8c9c9;
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

/* Success: collapse the form fields, keep the banner */
#appointment-form.is-success .form-field,
#appointment-form.is-success .form-consent,
#appointment-form.is-success button {
  display: none;
}

#appointment-form.is-submitting button {
  color: transparent;
  cursor: wait;
}

#appointment-form.is-submitting button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin .7s linear infinite;
  content: "";
}

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

.button,
button[type="submit"] {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, var(--navy), var(--navy-dark));
  box-shadow: 0 10px 22px rgba(23, 44, 78, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* --- Contacts --- */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  margin-top: 12px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 240px at 0% 100%, rgba(160, 124, 48, .08), transparent 60%),
    var(--navy-soft);
  box-shadow: var(--shadow-soft);
}

.contacts h2 {
  grid-column: 1;
  margin: 0;
  font-size: 24px;
}

.contacts address {
  grid-column: 1;
}

address {
  font-style: normal;
}

.contacts address p {
  margin: 3px 0;
  font-size: 15.5px;
}

.contacts address a {
  font-weight: 700;
}

.contacts > p {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.contacts .button {
  border-color: var(--brass-deep);
  background: linear-gradient(180deg, #b18b3c, var(--brass-deep));
  box-shadow: 0 10px 22px rgba(131, 100, 31, .28), inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* --- Official resources --- */

.official-resources ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.official-resources li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.official-resources a {
  display: inline-block;
  padding-block: 2px;
  font-weight: 700;
}

/* --- Footer --- */

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 36px;
  align-items: center;
  margin-top: 48px;
  padding-block: 40px;
  border-top: 3px double var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer img {
  grid-row: 1 / span 3;
  width: 100px;
  opacity: .92;
}

.site-footer p {
  margin: 0;
}

/* --- 404 --- */

.error-page {
  min-height: calc(100vh - 120px);
  padding-block: 72px;
  text-align: center;
}

.error-page h1 {
  margin-inline: auto;
}

.error-page h1::after {
  display: block;
  width: 58px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(160, 124, 48, 0), var(--brass), rgba(160, 124, 48, 0));
  content: "";
}

/* --- Hover motion (fine pointers only) --- */

@media (hover: hover) and (pointer: fine) {
  .button,
  button[type="submit"],
  .service-list article,
  .tariff-list li {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  }

  .button:hover,
  button[type="submit"]:hover {
    transform: translateY(-1px);
    color: #fff;
    background: linear-gradient(180deg, var(--navy-dark), var(--navy-ink));
    box-shadow: 0 14px 28px rgba(16, 32, 60, .28);
  }

  .button:active,
  button[type="submit"]:active {
    transform: translateY(0);
  }

  .contacts .button:hover {
    background: linear-gradient(180deg, var(--brass-deep), #6d5319);
  }

  .service-list article:hover,
  .tariff-list li:hover {
    transform: translateY(-3px);
    border-color: var(--brass-soft);
    box-shadow: 0 18px 36px rgba(23, 44, 78, .13);
  }

  .service-list article:hover {
    border-top-color: var(--brass);
  }
}

/* --- Entrance (hero) --- */

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: hero-rise .55s ease backwards;
  }

  .hero-content > *:nth-child(2) { animation-delay: .06s; }
  .hero-content > *:nth-child(3) { animation-delay: .12s; }
  .hero-content > *:nth-child(4) { animation-delay: .18s; }
  .hero-content > *:nth-child(5) { animation-delay: .24s; }
  .hero-content > *:nth-child(6) { animation-delay: .3s; }

  .hero-seal {
    animation: hero-rise .7s ease .15s backwards;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Tablet --- */

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 14px;
  }

  .menu-toggle {
    display: inline-grid;
    grid-column: 3;
    grid-row: 1;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    display: none;
    width: min(320px, calc(100vw - 32px));
    padding: 12px;
    align-items: stretch;
    justify-content: normal;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15.5px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover {
    color: var(--navy-dark);
    background: var(--navy-soft);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .header-phone {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    padding-block: 48px 56px;
  }

  .hero-seal {
    width: 220px;
    height: 220px;
  }

  .hero-seal::before {
    inset: 10px;
  }

  .hero-mark {
    width: 152px;
  }

  .preparation-list,
  .visit ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

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

  .appointment-copy {
    position: static;
  }

  #appointment-form {
    max-width: none;
  }
}

/* --- Mobile --- */

@media (max-width: 680px) {
  body {
    min-width: 320px;
    font-size: 16px;
  }

  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 62px;
    padding: 6px 14px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
  }

  .menu-toggle {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }

  .header-phone {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: start;
    padding: 6px 12px;
    font-size: 14px;
  }

  .hero,
  .section,
  .state-note,
  .site-footer {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding-block: 46px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 34px 44px;
  }

  .hero-seal {
    grid-row: 1;
    justify-self: end;
    width: 98px;
    height: 98px;
    border: 0;
    background: none;
  }

  .hero-seal::before,
  .hero-seal::after {
    display: none;
  }

  .hero-mark {
    width: 90px;
    opacity: .9;
  }

  h1 {
    font-size: clamp(27px, 7.6vw, 33px);
  }

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

  .credentials div + div {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-list,
  .tariff-list,
  .contacts,
  .official-resources ul,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-list article,
  .form-field--half,
  .form-field--wide,
  .form-consent,
  .form-status,
  #appointment-form button,
  .contacts h2,
  .contacts address,
  .contacts > p {
    grid-column: 1 / -1;
  }

  .service-list article {
    min-height: 0;
  }

  .state-note {
    padding: 20px 20px 18px;
  }

  .visit {
    margin-top: 4px;
    padding-block: 42px;
    padding-inline: 14px;
  }

  .appointment {
    padding: 18px 14px;
  }

  #appointment-form {
    gap: 14px;
    padding: 20px 16px;
  }

  input,
  textarea,
  input[type="date"],
  input[type="time"] {
    min-height: 48px;
    font-size: 16px;
  }

  .contacts > p {
    grid-row: auto;
  }

  .button,
  button[type="submit"] {
    width: 100%;
  }

  .site-footer {
    gap: 8px 22px;
  }

  .site-footer img {
    grid-row: auto;
    width: 78px;
  }
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
