@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.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 {
  --blue: #0c2340;
  --blue-deep: #08182e;
  --blue-mid: #1d3d66;
  --accent: #163f70;
  --accent-deep: #12345c;
  --ivory: #f4f7fb;
  --paper: #ffffff;
  --ink: #1b2433;
  --silver: #e8eef5;
  --silver-mid: #d5deea;
  --silver-deep: #8ea0b4;
  --muted: #5d6b7c;
  --line: #e4ebf2;
  --shadow: 0 10px 28px rgba(15, 35, 64, 0.06);
  --ui: "Manrope", "Segoe UI", sans-serif;
  --radius: 24px;
  --glass: rgba(255, 255, 255, 0.46);
  --glass-line: rgba(255, 255, 255, 0.62);
  --glass-shadow: 0 12px 40px rgba(8, 18, 34, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(980px 520px at 8% -8%, rgba(206, 220, 234, 0.95), transparent 58%),
    radial-gradient(820px 480px at 100% 12%, rgba(186, 206, 224, 0.72), transparent 52%),
    linear-gradient(180deg, #e5eef6 0%, #f3f7fb 42%, #e3edf5 100%);
  background: #d7e3ee;
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: -48px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.42), rgba(226, 235, 244, 0.5)),
    url("../media/chel-square.jpg?v=2") center / cover no-repeat;
  filter: blur(26px) saturate(1.25);
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: #d5e0ec; color: var(--blue); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  color: var(--blue);
  padding: 0.5rem 0.8rem;
  z-index: 50;
  border-radius: 8px;
}
.skip:focus { top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}
.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.brand-role {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.header-phone {
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav {
  order: 4;
  flex: 1 0 100%;
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.15rem;
}
.nav a {
  text-decoration: none;
  color: #31445c;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); }

.btn, .social, .call-fab { position: relative; z-index: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
}
.btn-silver, .call-fab {
  color: #fff;
  background: linear-gradient(180deg, #2f649e 0%, #163f70 100%);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(22, 63, 112, 0.36);
  transition: filter 0.35s ease;
}
.btn-silver:hover, .call-fab:hover { filter: brightness(1.08); }
.btn-ghost, .btn-line, .social {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.78);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn-ghost:hover, .btn-line:not(.btn-danger):hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.btn-line.btn-danger, .btn-line.btn-danger:hover {
  color: #8d2f2f;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(141, 47, 47, 0.35);
  filter: none;
}
.flow {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg, #2f649e 0%, #163f70 100%);
  box-shadow: 0 8px 18px rgba(22, 63, 112, 0.36);
  opacity: 0;
  transition: left 0.45s cubic-bezier(0.22, 0.8, 0.28, 1), top 0.45s cubic-bezier(0.22, 0.8, 0.28, 1), width 0.45s cubic-bezier(0.22, 0.8, 0.28, 1), height 0.45s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 0.2s ease;
}
.flow.is-on { opacity: 1; }
.hero-actions, .socials { position: relative; }
.hero-actions .btn, .socials .social {
  background: transparent;
  box-shadow: none;
  filter: none;
  color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.75);
  transition: color 0.45s ease, border-color 0.45s ease;
}
.hero-actions .btn:hover, .socials .social:hover {
  background: transparent;
  color: var(--blue);
  filter: none;
}
.hero-actions .btn.is-lit,
.hero-actions .btn.is-lit:hover,
.socials .social.is-lit,
.socials .social.is-lit:hover {
  color: #fff;
  background: transparent;
  border-color: transparent;
}
.socials .social.is-lit .social-mark {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  transition: background 0.45s ease, color 0.45s ease;
}
.btn-small {
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}
.btn-danger { color: #8d2f2f; border-color: rgba(141, 47, 47, 0.35); background: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #102848;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2.4rem max(1rem, calc((100% - 1120px) / 2)) 3.4rem;
  text-align: left;
}
.hero-media,
.hero-shade { position: absolute; inset: 0; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-shade {
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.18) 0%, rgba(8, 18, 34, 0.05) 46%, rgba(8, 18, 34, 0.28) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  margin: 0;
  padding: 1.45rem 1.45rem 1.25rem;
  color: var(--ink);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 12px 40px rgba(8, 18, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
}
.hero-credit {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.7rem;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  text-align: left;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.kicker {
  display: inline-flex;
  margin: 0 0 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: var(--blue);
}
h1 span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.lede {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--muted);
}
.hero-actions, .socials {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-actions { margin-top: 1.15rem; }
.socials { margin-top: 0.95rem; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.15rem 0.8rem 0.15rem 0.15rem;
  border-radius: 999px;
  border-style: solid;
  border-width: 1px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.social-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-facts {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(12, 35, 64, 0.12);
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-facts a { text-decoration: none; color: var(--blue); font-weight: 800; }

.wrap { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; }
.section { padding: 3.4rem 0; }
h2 { margin: 0; text-align: left; font-size: clamp(1.55rem, 3vw, 2rem); color: var(--blue); }
.intro {
  width: min(40rem, 100%);
  margin: 0.55rem 0 0;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}
.ornament { display: none; }

.about-grid, .contact-grid, .admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  align-items: start;
}
.contact-grid { grid-template-columns: 0.85fr 1.15fr; }
.prose p { margin: 0 0 0.85rem; font-size: 1.02rem; color: #2c3b4e; }
.prose p:last-child { margin-bottom: 0; }
.prose, .plaque, .service, .contact-card, .editor, .admin-card, .form, .step, .faq, .guide-card, .guide-table, .guide-note {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
}
.prose, .faq { padding: 1.25rem 1.35rem 1.15rem; }
.plaque, .contact-card, .editor, .admin-card { padding: 1.25rem; }
.plaque {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.plaque p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.plaque span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.services-grid, .steps {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.services-grid { grid-template-columns: 1fr 1fr; }
.service {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.05rem;
}
.service h3 { margin: 0 0 0.35rem; font-size: 1.12rem; color: var(--blue); }
.service p { margin: 0; color: #31445c; }
.service-price { order: -1; margin-top: 0; padding-top: 0; padding-bottom: 0.55rem; }
.price-label { display: block; color: var(--muted); margin-bottom: 0.1rem; font-size: 0.78rem; font-weight: 600; }
.price-value {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1.15;
}

.steps { grid-template-columns: repeat(4, 1fr); }
.step { padding: 1.05rem 1rem 1.15rem; }
.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
}
.step h3 { margin: 0.65rem 0 0.3rem; font-size: 1.02rem; color: var(--blue); }
.step p { margin: 0; color: #31445c; font-size: 0.95rem; }

.guide-title { margin: 2.1rem 0 0.7rem; font-size: 1.35rem; }
.guide-grid, .guide-grid-4 {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.2rem;
}
.guide-grid { grid-template-columns: 1.35fr 0.85fr 0.85fr; }
.guide-grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 0.2rem; }
.guide-card { padding: 1.15rem 1.15rem 1.05rem; }
.guide-card h3 { margin: 0 0 0.35rem; font-size: 1.08rem; color: var(--blue); }
.guide-card p { margin: 0 0 0.7rem; color: #31445c; }
.guide-card p:last-child { margin-bottom: 0; }
.guide-rate {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1.15;
}
.guide-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.guide-card ul { margin: 0 0 0.75rem; padding-left: 1.1rem; color: #31445c; }
.guide-card li { margin: 0.2rem 0; }
.guide-table { margin-top: 0.35rem; overflow-x: auto; padding: 0.4rem 0.6rem 0.7rem; }
.guide-table table { width: 100%; border-collapse: collapse; min-width: 46rem; font-size: 0.92rem; }
.guide-table th, .guide-table td {
  text-align: left;
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid rgba(12, 35, 64, 0.1);
  vertical-align: top;
}
.guide-table th { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.guide-table td:first-child { font-weight: 800; color: var(--blue); }
.guide-note { margin-top: 0.85rem; padding: 1.15rem 1.2rem; }
.guide-note p { margin: 0 0 0.75rem; color: #31445c; }
.guide-note p:last-child { margin-bottom: 0; }
#guide .fine { margin: 0.9rem 0 0; }
.faq { width: min(760px, 100%); margin: 1.15rem 0 0; }
details { border-bottom: 1px solid rgba(12, 35, 64, 0.1); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 0; padding-bottom: 0; }
summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 500; }
details[open] summary::after { content: "–"; }
details p { margin: 0.65rem 0 0.15rem; color: #31445c; }

.contact-card { text-align: left; }
.phone-link {
  display: inline-block;
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  color: var(--blue);
}
.hours { margin: 0; color: var(--muted); }
.contact-card .socials { margin-top: 0.9rem; }
.form {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.25rem;
}
label, .field-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue);
}
input, textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.75rem 0.85rem;
  color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 7rem; resize: vertical; }
.fine { margin: 0; color: var(--muted); font-size: 0.9rem; }
.form-note { min-height: 1.3rem; margin: 0; color: var(--blue-mid); }

.site-footer {
  background: rgba(255, 255, 255, 0.4);
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.45rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer a { color: var(--blue); font-weight: 700; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.call-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(8, 24, 46, 0.28);
}
.call-fab.is-hidden { visibility: hidden; pointer-events: none; }

.page-admin { background: transparent; }
.admin-main { width: min(980px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 6rem; }
.admin-main h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--blue); margin: 0; }
.admin-lead { font-size: 1.05rem; color: var(--muted); }
.admin-grid { grid-template-columns: 1fr 1fr; margin: 1rem 0; }
.editor { margin-top: 1rem; display: grid; gap: 0.7rem; }
.editor-head, .editor-actions, .savebar, .row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.editor-head { justify-content: space-between; }
.editor-head h2 { margin: 0; font-size: 1.2rem; text-align: left; }
.savebar {
  position: sticky;
  bottom: 0;
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 -8px 24px rgba(15, 35, 64, 0.08);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  z-index: 5;
}
.savebar .status { color: var(--muted); margin-right: auto; }
.span-2 { grid-column: 1 / -1; }

@media (min-width: 761px) {
  .call-fab { display: none; }
}
@media (min-width: 980px) {
  .header-inner { flex-wrap: nowrap; }
  .nav { order: 0; flex: 0 1 auto; padding: 0; }
  .header-inner .btn { flex: 0 0 auto; }
}
@media (max-width: 980px) {
  .steps, .guide-grid, .guide-grid-4 { grid-template-columns: 1fr 1fr; }
  .guide-grid .guide-card:first-child { grid-column: 1 / -1; }
}
button:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 760px) {
  .services-grid, .about-grid, .contact-grid, .admin-grid, .steps, .guide-grid, .guide-grid-4 { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .nav { flex-wrap: wrap; overflow: visible; row-gap: 0.45rem; }
  .site-footer { padding-bottom: 4.5rem; }
  .hero { min-height: 0; padding-top: 1.2rem; padding-bottom: 3.2rem; }
  .hero-inner { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .flow, .hero-actions .btn, .socials .social, .btn-silver, .call-fab { transition: none !important; }
}

@media print {
  .site-header, .call-fab, .hero-actions, .form, .footer-links { display: none !important; }
  body { background: white; }
  .hero { background: white; color: black; padding: 1rem 0; min-height: 0; }
  .hero-inner { background: #fff; box-shadow: none; backdrop-filter: none; }
  h1, h1 span, .lede { color: black; }
}
