/*
Theme Name: Dog Cats Home Vet
Theme URI: https://dog-cats.ru/
Author: Codex
Description: Custom landing theme for a veterinary home visit service.
Version: 1.10.9
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: dogcats-homevet
*/

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+2116;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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: #07192f;
  --muted: #5d6b7a;
  --line: #dfe8f4;
  --paper: #f8fbff;
  --white: #ffffff;
  --blue: #0667ff;
  --blue-dark: #004cc9;
  --blue-soft: #eaf3ff;
  --teal: #18c432;
  --teal-dark: #0f9e27;
  --mint: #dffbe6;
  --sage: #8ab7d9;
  --clay: #ff8a00;
  --clay-dark: #e36d00;
  --gold: #f4dc4f;
  --danger: #ff5c5c;
  --shadow: 0 22px 64px rgba(6, 103, 255, 0.16);
  --radius: 6px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(248, 251, 255, 0.64), rgba(248, 251, 255, 0.64)),
    url("assets/site-pattern.png");
  background-image:
    linear-gradient(rgba(248, 251, 255, 0.64), rgba(248, 251, 255, 0.64)),
    image-set(
      url("assets/site-pattern.webp") type("image/webp"),
      url("assets/site-pattern.png") type("image/png")
    );
  background-position: 0 0, center top;
  background-repeat: repeat;
  background-size: auto, 640px 640px;
  color: var(--ink);
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: var(--white);
  border-bottom: 0;
  box-shadow: 0 10px 35px rgba(7, 25, 47, 0.08);
  backdrop-filter: blur(18px);
}

.site-topline {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.top-line-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.header-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0;
}

.header-proof span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.header-proof span:last-child {
  border-right: 1px solid var(--line);
}

.header-proof svg {
  flex: 0 0 auto;
  color: var(--blue);
}

.nav-strip {
  position: relative;
  background: var(--blue);
}

.nav-bar {
  display: flex;
  align-items: center;
  min-height: 56px;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(6, 103, 255, 0.28);
}

.brand-title {
  display: block;
  font-size: 19px;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav-links {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: inherit;
}

.nav-link:hover,
.nav-link:focus-visible,
.has-mega:hover > .nav-link,
.has-mega.is-open > .nav-link,
.has-mega:focus-within > .nav-link {
  background: transparent;
  color: var(--white);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--white);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.has-mega:hover > .nav-link::after,
.has-mega.is-open > .nav-link::after,
.has-mega:focus-within > .nav-link::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-item {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 70;
  width: min(1280px, calc(100vw - 42px));
  padding: 44px 54px 52px;
  border: 1px solid rgba(6, 103, 255, 0.36);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 26px 60px rgba(7, 25, 47, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.is-open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 34px;
  align-items: start;
  margin-bottom: 42px;
}

.mega-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.mega-tab {
  position: relative;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3e4c5b;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.mega-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
}

.mega-tab:hover,
.mega-tab:focus-visible,
.mega-tab.is-active {
  color: var(--blue);
}

.mega-tab.is-active::after {
  opacity: 1;
}

.mega-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #8895a4;
}

.mega-search input {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.mega-search input:focus {
  outline: 0;
}

.mega-search svg {
  color: var(--blue);
}

.mega-panel {
  display: none;
}

.mega-panel.is-active,
.mega-menu.is-searching .mega-panel {
  display: block;
}

.mega-panel.is-empty {
  display: none;
}

.mega-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 30px;
}

.mega-service {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 34px;
  color: #465565;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.18;
}

.mega-service:hover,
.mega-service:focus-visible {
  color: var(--blue);
}

.mega-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--teal);
}

.mega-icon svg {
  width: 24px;
  height: 24px;
}

.mega-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.mega-empty[hidden],
.mega-service[hidden] {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone-link {
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 900;
}

.mobile-menu-toggle svg {
  flex: 0 0 auto;
}

.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.mobile-nav {
  display: none;
}

.mobile-nav[hidden] {
  display: none;
}

.site-breadcrumbs {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(7, 25, 47, 0.04);
}

.site-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 9px 0;
  list-style: none;
}

.site-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.28;
}

.site-breadcrumbs li + li::before {
  content: "/";
  flex: 0 0 auto;
  margin-right: 10px;
  color: #a8b6c7;
  font-weight: 900;
}

.site-breadcrumbs a {
  color: var(--blue-dark);
  text-decoration: none;
}

.site-breadcrumbs a:hover,
.site-breadcrumbs a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-breadcrumbs span[aria-current="page"] {
  overflow-wrap: anywhere;
}

.site-breadcrumbs + .doctor-profile-page .doctor-breadcrumbs {
  display: none;
}

.mobile-nav-inner {
  display: grid;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 18px;
}

.mobile-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-primary a,
.mobile-service-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.mobile-primary a {
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
}

.mobile-services {
  display: grid;
  gap: 10px;
}

.mobile-service-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.mobile-service-group summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--blue-dark);
  font-weight: 900;
  list-style: none;
}

.mobile-service-group summary::-webkit-details-marker {
  display: none;
}

.mobile-service-group summary::after {
  content: "+";
  float: right;
  color: var(--blue);
}

.mobile-service-group[open] summary::after {
  content: "-";
}

.mobile-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.mobile-service-list a {
  gap: 10px;
  min-height: 52px;
  padding: 10px;
  color: #465565;
  font-size: 14px;
  line-height: 1.18;
}

.mobile-service-list .mega-icon {
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(255, 138, 0, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--clay-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 10px 25px rgba(6, 103, 255, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-dark);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 68svh;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(0, 92, 255, 0.97) 0%, rgba(0, 92, 255, 0.88) 42%, rgba(0, 92, 255, 0.36) 72%, rgba(0, 92, 255, 0.1) 100%),
    var(--hero-image);
  background-position: center right;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0), var(--paper));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 690px) minmax(330px, 420px);
  gap: 42px;
  align-items: center;
  min-height: 68svh;
  padding: 52px 0 58px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

.hero h1 span {
  display: inline-block;
  padding: 0 14px 5px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
}

.hero-lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 700;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 650px;
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-quick-panel {
  justify-self: end;
  width: min(100%, 420px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 24, 55, 0.66);
  box-shadow: 0 26px 64px rgba(4, 24, 55, 0.22);
  backdrop-filter: blur(10px);
}

.hero-quick-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-quick-panel h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 26px;
  line-height: 1.08;
}

.hero-quick-list {
  display: grid;
  gap: 10px;
}

.hero-quick-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-quick-row span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.hero-quick-row.is-urgent span {
  background: var(--danger);
}

.hero-quick-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.42;
}

.hero-quick-row strong {
  display: block;
  color: var(--white);
  font-size: 14px;
}

.hero-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.hero-quick-link:hover,
.hero-quick-link:focus-visible {
  background: var(--white);
  color: var(--blue);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  position: relative;
  z-index: 2;
  gap: 12px;
  width: min(var(--max), calc(100% - 40px));
  margin: -42px auto 0;
  background: transparent;
  border-bottom: 0;
}

.fact {
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(7, 25, 47, 0.08);
}

.fact strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.fact span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
}

.section-intro {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7, 25, 47, 0.04);
}

.card:hover {
  border-color: rgba(6, 103, 255, 0.36);
  box-shadow: 0 16px 38px rgba(6, 103, 255, 0.12);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.card h3 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 900;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.directory {
  background-color: #f1f7ff;
  background-image:
    linear-gradient(rgba(241, 247, 255, 0.68), rgba(241, 247, 255, 0.68)),
    url("assets/site-pattern.png");
  background-image:
    linear-gradient(rgba(241, 247, 255, 0.68), rgba(241, 247, 255, 0.68)),
    image-set(
      url("assets/site-pattern.webp") type("image/webp"),
      url("assets/site-pattern.png") type("image/png")
    );
  background-position: 0 0, center top;
  background-repeat: repeat;
  background-size: auto, 680px 680px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.directory-card {
  display: grid;
  min-height: 210px;
  align-content: start;
  gap: 13px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.directory-card:nth-child(1) {
  background: #e9f4ff;
}

.directory-card:nth-child(2) {
  background: #effde9;
}

.directory-card:nth-child(3) {
  background: #fff4db;
}

.directory-card:nth-child(4) {
  background: #f0efff;
}

.directory-card:nth-child(5) {
  background: #e8f8ff;
}

.directory-card:nth-child(6) {
  background: #fff0e6;
}

.directory-card:hover,
.directory-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(6, 103, 255, 0.38);
  box-shadow: 0 16px 38px rgba(6, 103, 255, 0.12);
}

.directory-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.directory-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.directory-card small {
  color: var(--muted);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: 34px;
  align-items: start;
}

.visual-split {
  align-items: center;
}

.text-stack {
  display: grid;
  gap: 18px;
}

.text-stack p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.text-stack .section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
}

.text-stack h2 {
  margin: 0;
}

.photo-panel {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-panel figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 15px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mini-metrics div {
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.mini-metrics strong {
  display: block;
  color: var(--danger);
  font-size: 22px;
  line-height: 1.1;
}

.mini-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 0 42%, var(--white) 42% 58%, transparent 58%),
    var(--blue);
}

.notice {
  padding: 24px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #fff7e9;
}

.notice strong {
  display: block;
  margin-bottom: 8px;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  padding-left: 78px;
}

.step::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--clay);
  font-weight: 900;
}

.band {
  background: var(--blue);
  color: var(--white);
}

.band .section-kicker,
.band .section-intro,
.band .card p {
  color: rgba(255, 255, 255, 0.76);
}

.band .card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.info-grid .card {
  display: grid;
  align-content: start;
}

.info-card .icon {
  background: rgba(217, 244, 236, 0.18);
  color: var(--white);
}

.signal-board {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 18px;
}

.signal-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.signal-card h3 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.16;
}

.signal-card.urgent {
  border-color: rgba(255, 92, 92, 0.38);
  background: #fff6f6;
}

.signal-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.signal-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(6, 103, 255, 0.12);
}

.signal-card.urgent .signal-list li::before {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.14);
}

.signal-card.urgent p {
  margin: 18px 0 0;
  color: #9e2631;
  font-weight: 750;
}

.services-grid .service-card {
  border-top: 4px solid rgba(6, 103, 255, 0.3);
}

.services-grid .service-card:nth-child(2n) {
  border-top-color: rgba(24, 196, 50, 0.5);
}

.services-grid .service-card:nth-child(3n) {
  border-top-color: rgba(255, 138, 0, 0.55);
}

.prepare-layout {
  align-items: center;
}

.prep-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.prep-list li {
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.prep-list strong {
  color: var(--white);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-step {
  position: relative;
  min-height: 104px;
  padding: 20px 20px 20px 76px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.timeline-step span {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
}

.timeline-step strong {
  display: block;
  color: var(--white);
  font-size: 19px;
}

.timeline-step p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.price-row:first-child {
  padding-top: 0;
}

.price-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.price-row strong {
  display: block;
}

.price-row span {
  color: var(--muted);
}

.price {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.reviews {
  background: #eef7f2;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote p {
  color: var(--ink);
  font-size: 18px;
}

.quote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(360px, 0.72fr);
  gap: 44px;
  align-items: start;
}

.request-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(6, 103, 255, 0.18);
}

.phone-only-panel {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.96), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.phone-only-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(24, 196, 50, 0.12);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-only-panel h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.phone-only-panel h3 a {
  color: var(--ink);
}

.phone-only-panel p {
  margin: 0;
  color: var(--muted);
}

.phone-only-panel .btn {
  width: fit-content;
}

.phone-only-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cbdcd7;
  border-radius: var(--radius);
  background: #fbfefd;
  color: var(--ink);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(6, 103, 255, 0.16);
  border-color: var(--blue);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.success,
.error {
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.success {
  background: var(--mint);
  color: var(--teal-dark);
}

.error {
  background: #ffe7df;
  color: #8e2b18;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq summary {
  position: relative;
  cursor: pointer;
  padding: 18px 20px 18px 56px;
  font-weight: 900;
}

.faq summary::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  transform: translateY(-50%);
  font-weight: 900;
}

.faq details[open] summary::before {
  content: "-";
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-wide details {
  min-height: 100%;
}

.faq-wide summary {
  line-height: 1.25;
}

.site-footer {
  padding: 54px 0 34px;
  border-top: 1px solid rgba(6, 103, 255, 0.16);
  background: #07192f;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(180px, 0.72fr));
  gap: 32px;
  align-items: start;
}

.footer-brand,
.footer-column,
.footer-contact {
  min-width: 0;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--white);
}

.footer-brand-row .brand-mark {
  flex: 0 0 auto;
  box-shadow: none;
}

.footer-title,
.footer-subtitle {
  display: block;
}

.footer-title {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.footer-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 800;
}

.footer-text,
.footer-note,
.footer-contact p {
  margin: 0;
}

.footer-note {
  padding-left: 14px;
  border-left: 3px solid var(--teal);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-list a:hover,
.footer-list a:focus-visible,
.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.footer-mini {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-contact strong {
  color: var(--white);
  font-size: 20px;
  line-height: 1.2;
}

.footer-phone {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.footer-contact-link {
  margin-top: 4px;
  color: #dffbe6;
  font-weight: 900;
}

#request,
#site-contact {
  scroll-margin-top: 112px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.page-hero {
  padding: 76px 0 42px;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(135deg, rgba(234, 243, 255, 0.74), rgba(255, 255, 255, 0.76)),
    url("assets/site-pattern.png");
  background-image:
    linear-gradient(135deg, rgba(234, 243, 255, 0.74), rgba(255, 255, 255, 0.76)),
    image-set(
      url("assets/site-pattern.webp") type("image/webp"),
      url("assets/site-pattern.png") type("image/png")
    );
  background-position: 0 0, center top;
  background-repeat: repeat;
  background-size: auto, 640px 640px;
}

.page-hero .eyebrow {
  color: var(--blue-dark);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.page-content {
  padding: 62px 0 90px;
}

.page-content .container > * {
  max-width: 920px;
  margin-right: 0;
  margin-left: 0;
}

.page-content .container > .wp-block-table,
.page-content .container > .wp-block-columns,
.page-content .container > .page-grid,
.page-content .container > .page-band,
.page-content .container > .link-list,
.page-content .container > .expertise-panel,
.page-content .container > .specialist-grid,
.page-content .container > .specialist-guide,
.page-content .container > .ymyl-note {
  max-width: none;
}

.page-content :is(h2, h3) {
  margin-top: 0;
  line-height: 1.12;
}

.page-content h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.page-content h3 {
  font-size: 24px;
}

.page-content p,
.page-content li {
  color: var(--muted);
  font-size: 18px;
}

.wp-block-table {
  overflow-x: auto;
  max-width: 100%;
  margin: 28px 0 42px;
  padding-bottom: 2px;
}

.wp-block-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 25, 47, 0.05);
}

.wp-block-table thead th {
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.wp-block-table :is(th, td) {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.wp-block-table :is(th, td):last-child {
  border-right: 0;
}

.wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.wp-block-table td {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.wp-block-table td strong {
  color: var(--ink);
  font-weight: 900;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: #f2f8ff;
}

.wp-block-table figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--clay);
  color: var(--white);
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 14px 30px rgba(255, 138, 0, 0.24);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--clay-dark);
}

.expertise-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 22px;
  margin: 30px 0 44px;
  padding: 26px;
  border: 1px solid rgba(6, 103, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(6, 103, 255, 0.09);
}

.expertise-panel h2,
.expertise-panel h3 {
  margin: 0 0 12px;
}

.expertise-panel p {
  margin: 0;
}

.expertise-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expertise-panel li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
}

.expertise-panel li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(24, 196, 50, 0.12);
}

.specialist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0 52px;
}

.specialist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(223, 232, 244, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(7, 25, 47, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.specialist-card:first-child {
  grid-column: auto;
  border-left: 1px solid rgba(223, 232, 244, 0.9);
  background: var(--white);
}

.specialist-card:hover,
.specialist-card:focus-within {
  border-color: rgba(6, 103, 255, 0.36);
  box-shadow: 0 22px 54px rgba(6, 103, 255, 0.14);
  transform: translateY(-3px);
}

.specialist-card::before {
  content: "Профиль " attr(data-card);
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 8px 20px rgba(7, 25, 47, 0.12);
}

.specialist-card::after {
  content: none;
}

.specialist-card:first-child::after {
  content: none;
}

.specialist-card:first-child::before {
  font-size: 12px;
}

.specialist-card-kicker {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.specialist-photo {
  overflow: hidden;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 6 / 5;
  border: 0;
  border-radius: 0;
  background: var(--blue-soft);
}

.specialist-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.specialist-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 20px;
}

.specialist-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.16;
}

.specialist-role {
  display: block;
  min-height: 0;
  margin-bottom: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.specialist-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.specialist-facts {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
}

.specialist-facts div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f4f8fc;
}

.specialist-facts div:nth-child(3) {
  border: 1px solid rgba(6, 103, 255, 0.7);
  background: var(--white);
}

.specialist-facts dt {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.specialist-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

a.specialist-card {
  color: inherit;
  text-decoration: none;
}

a.specialist-card:focus-visible {
  outline: 3px solid rgba(6, 103, 255, 0.34);
  outline-offset: 4px;
}

.doctor-profile-page {
  padding: 34px 0 92px;
  background:
    linear-gradient(rgba(248, 251, 255, 0.64), rgba(248, 251, 255, 0.64)),
    image-set(
      url("assets/site-pattern.webp") type("image/webp"),
      url("assets/site-pattern.png") type("image/png")
    );
  background-position: center top;
  background-repeat: repeat;
  background-size: 640px 640px;
}

.doctor-profile {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.doctor-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.doctor-breadcrumbs a {
  color: var(--blue-dark);
}

.doctor-breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: #aab7c6;
}

.doctor-hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(223, 232, 244, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(7, 25, 47, 0.08);
}

.doctor-portrait {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--blue-soft);
}

.doctor-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 4px 2px;
}

.doctor-eyebrow {
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.doctor-hero-copy h1 {
  max-width: 760px;
  margin: 16px 0 6px;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.doctor-specialty {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.doctor-lead {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.doctor-profile-note {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doctor-profile-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.doctor-profile-note strong {
  color: var(--ink);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.doctor-profile-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.doctor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.doctor-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.doctor-actions a:nth-child(2) {
  background: var(--white);
  color: var(--ink);
}

.doctor-actions a:hover,
.doctor-actions a:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.doctor-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.doctor-meta-card,
.doctor-section,
.doctor-review-note,
.doctor-certificate-slot {
  border: 1px solid rgba(223, 232, 244, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(7, 25, 47, 0.06);
}

.doctor-meta-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  min-width: 0;
  padding: 18px;
}

.doctor-meta-card span,
.doctor-certificate-slot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.doctor-meta-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.doctor-meta-card p,
.doctor-section p,
.doctor-section li,
.doctor-review-note p,
.doctor-certificate-slot p {
  color: var(--muted);
  font-size: 16px;
}

.doctor-section {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 28px;
}

.doctor-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.doctor-section h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.doctor-section p {
  max-width: 920px;
  margin: 0;
}

.doctor-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}

.doctor-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-list li {
  position: relative;
  padding-left: 24px;
}

.doctor-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(24, 196, 50, 0.12);
}

.doctor-red-flags {
  padding: 18px;
  border: 1px solid rgba(255, 92, 92, 0.32);
  border-radius: 8px;
  background: rgba(255, 92, 92, 0.06);
}

.doctor-red-flags .doctor-list li::before {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.12);
}

.doctor-muted-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8fc;
}

.doctor-review-note {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: #f4f8fc;
}

.doctor-review-note strong {
  color: var(--ink);
  font-size: 18px;
}

.doctor-certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.doctor-certificate-slot {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border-style: dashed;
  background: #f8fbff;
}

.doctor-certificate-slot strong {
  color: var(--ink);
}

.doctor-back-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 900;
}

.ymyl-note {
  margin: 34px 0 0;
  padding: 22px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(234, 243, 255, 0.9);
}

.ymyl-note p {
  margin: 0;
}

.specialist-guide {
  display: grid;
  gap: 28px;
  margin: 44px 0;
}

.wp-block-group.specialist-guide > .wp-block-group__inner-container {
  display: grid;
  gap: 28px;
}

.specialist-guide-header,
.specialist-guide-section,
.specialist-guide-card,
.specialist-symptom-table,
.specialist-faq {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
}

.specialist-guide-header {
  display: grid;
  gap: 12px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(234, 243, 255, 0.96), rgba(255, 255, 255, 0.94)),
    var(--white);
}

.wp-block-group.specialist-guide-header > .wp-block-group__inner-container {
  display: grid;
  gap: 12px;
}

.specialist-guide-header h2,
.specialist-guide-section h2,
.specialist-guide-section h3,
.specialist-guide-card h3 {
  margin: 0;
}

.specialist-guide-header p,
.specialist-guide-section p,
.specialist-guide-card p {
  margin: 0;
}

.specialist-guide-section {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.wp-block-group.specialist-guide-section > .wp-block-group__inner-container {
  display: grid;
  gap: 16px;
}

.specialist-guide-list,
.specialist-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specialist-guide-list li,
.specialist-checklist li {
  position: relative;
  padding-left: 24px;
}

.specialist-guide-list li::before,
.specialist-checklist li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(24, 196, 50, 0.12);
}

.specialist-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 16px;
}

.wp-block-group.specialist-guide-grid {
  display: block;
}

.wp-block-group.specialist-guide-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 16px;
}

.specialist-guide-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.specialist-guide-card:first-child {
  grid-row: span 2;
  padding: 26px;
  border-left: 5px solid var(--blue);
  background: rgba(234, 243, 255, 0.76);
}

.specialist-guide-card:nth-child(5),
.specialist-guide-card:nth-child(9) {
  background: rgba(255, 255, 255, 0.72);
}

.specialist-guide-card h3 {
  font-size: 20px;
}

.specialist-guide-card p {
  color: var(--muted);
}

.specialist-symptom-table {
  overflow-x: auto;
}

.specialist-table-title {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.specialist-symptom-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white);
}

.specialist-symptom-table caption {
  padding: 18px 20px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  text-align: left;
}

.specialist-symptom-table th,
.specialist-symptom-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.specialist-symptom-table th {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.specialist-symptom-table td:first-child {
  color: var(--ink);
  font-weight: 850;
}

.specialist-faq {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.specialist-faq h2 {
  margin: 0;
  padding: 22px 24px;
}

.specialist-faq details {
  border-top: 1px solid var(--line);
  background: transparent;
}

.specialist-faq summary {
  padding: 18px 24px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.specialist-faq details p {
  margin: 0;
  padding: 0 24px 18px;
  color: var(--muted);
}

.cardiology-summary-card {
  position: relative;
  overflow: hidden;
}

.cardiology-summary-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.cardiology-guide-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: center;
}

.wp-block-group.cardiology-guide-hero {
  display: block;
}

.wp-block-group.cardiology-guide-hero > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 12px;
  align-items: center;
}

.cardiology-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.cardiology-pulse-visual {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(6, 103, 255, 0.18);
  border-radius: 8px;
  background: #f8fbff;
}

.cardiology-pulse-visual svg {
  width: 100%;
  height: auto;
}

.cardiology-pulse-visual path {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.cardiology-pulse-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cardiology-pulse-facts span {
  min-width: 0;
  padding: 9px 8px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.cardiology-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cardiology-flow article,
.cardiology-method-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.cardiology-flow article {
  display: grid;
  gap: 8px;
}

.cardiology-flow span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.cardiology-flow strong {
  color: var(--ink);
  font-size: 18px;
}

.cardiology-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.cardiology-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wp-block-group.cardiology-method-grid {
  display: block;
}

.wp-block-group.cardiology-method-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cardiology-method-grid h3 {
  margin: 0 0 14px;
}

.cardiology-alert {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 92, 92, 0.3);
  border-left: 5px solid var(--danger);
  border-radius: 8px;
  background: rgba(255, 92, 92, 0.07);
}

.cardiology-alert strong {
  color: var(--ink);
  font-size: 18px;
}

.cardiology-alert p {
  margin: 0;
}

.cardiology-prevention-grid {
  margin-bottom: 0;
}

.cardiology-faq summary {
  list-style: none;
}

.cardiology-faq summary::-webkit-details-marker {
  display: none;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 44px;
}

.wp-block-group.page-grid {
  display: block;
}

.wp-block-group.page-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-tile {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.page-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.page-tile p {
  margin: 0;
  color: var(--muted);
}

.page-band {
  margin: 42px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
}

.page-band p {
  color: rgba(255, 255, 255, 0.78);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 850;
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--blue);
}

.mobile-bar {
  position: fixed;
  z-index: 60;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: none;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(217, 231, 226, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(18, 32, 31, 0.18);
  backdrop-filter: blur(14px);
}

.mobile-bar .btn {
  flex: 1;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .nav-strip,
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-nav:not([hidden]) {
    display: block;
    max-height: calc(100svh - 76px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 22px 50px rgba(7, 25, 47, 0.12);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .top-line-inner {
    min-height: 76px;
  }

  .header-proof {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-quick-panel {
    justify-self: start;
    width: min(100%, 620px);
  }

  .hero-facts,
  .directory-grid,
  .page-grid,
  .wp-block-group.page-grid > .wp-block-group__inner-container,
  .specialist-grid,
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .request-layout,
  .signal-board,
  .faq-wide,
  .expertise-panel,
  .doctor-hero-card {
    grid-template-columns: 1fr;
  }

  .doctor-portrait {
    max-height: 520px;
  }

  .doctor-meta-grid,
  .doctor-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specialist-card,
  .specialist-card:first-child {
    grid-column: auto;
  }

  .specialist-guide-grid {
    grid-template-columns: 1fr;
  }

  .wp-block-group.specialist-guide-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .specialist-guide-card:first-child {
    grid-row: auto;
  }

  .cardiology-guide-hero,
  .cardiology-method-grid {
    grid-template-columns: 1fr;
  }

  .wp-block-group.cardiology-guide-hero > .wp-block-group__inner-container,
  .wp-block-group.cardiology-method-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .cardiology-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body {
    background-size: auto, 520px 520px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .top-line-inner {
    min-height: 64px;
    justify-content: flex-start;
  }

  .brand-subtitle,
  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    min-height: 42px;
    padding: 0 12px;
  }

  .mobile-primary,
  .mobile-service-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background-position: 66% center;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 42, 38, 0.18);
  }

  .hero-inner {
    position: relative;
    min-height: auto;
    padding: 56px 0 42px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

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

  .btn {
    width: 100%;
  }

  .hero-quick-panel {
    padding: 16px;
    background: rgba(4, 24, 55, 0.72);
  }

  .hero-quick-panel h2 {
    font-size: 23px;
  }

  .hero-quick-row {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 10px;
  }

  .hero-quick-row span {
    width: 28px;
    height: 28px;
  }

  .hero-quick-link {
    width: 100%;
  }

  .hero-facts,
  .directory-grid,
  .page-grid,
  .wp-block-group.page-grid > .wp-block-group__inner-container,
  .specialist-grid,
  .link-list,
  .mini-metrics,
  .grid-2,
  .grid-4,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .request-panel {
    padding: 20px;
  }

  .expertise-panel,
  .ymyl-note {
    padding: 18px;
  }

  .doctor-profile-page {
    padding: 24px 0 72px;
    background-size: 520px 520px;
  }

  .doctor-hero-card,
  .doctor-section {
    padding: 16px;
  }

  .doctor-hero-copy h1 {
    font-size: 34px;
  }

  .doctor-lead,
  .doctor-specialty {
    font-size: 16px;
  }

  .doctor-meta-grid,
  .doctor-columns,
  .doctor-certificate-grid {
    grid-template-columns: 1fr;
  }

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

  .doctor-actions a {
    width: 100%;
  }

  .specialist-grid {
    gap: 18px;
  }

  .specialist-photo {
    aspect-ratio: 4 / 3;
  }

  .specialist-card::before {
    top: 12px;
    left: 12px;
  }

  .specialist-copy {
    padding: 16px;
  }

  .specialist-copy h3 {
    font-size: 21px;
  }

  .specialist-role {
    font-size: 14px;
  }

  .specialist-guide-header,
  .specialist-guide-section {
    padding: 18px;
  }

  .specialist-guide-card {
    padding: 18px;
  }

  .specialist-symptom-table caption {
    padding: 16px;
    font-size: 20px;
  }

  .specialist-table-title {
    padding: 16px;
    font-size: 20px;
  }

  .specialist-symptom-table th,
  .specialist-symptom-table td {
    padding: 12px 14px;
  }

  .specialist-symptom-table {
    overflow-x: visible;
  }

  .specialist-symptom-table table,
  .specialist-symptom-table tbody,
  .specialist-symptom-table tr,
  .specialist-symptom-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .specialist-symptom-table thead {
    display: none;
  }

  .specialist-symptom-table tr {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .specialist-symptom-table td {
    padding: 7px 16px;
    border-top: 0;
  }

  .specialist-symptom-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .specialist-symptom-table td:nth-child(1)::before {
    content: "Что заметил владелец";
  }

  .specialist-symptom-table td:nth-child(2)::before {
    content: "С какого врача начать";
  }

  .specialist-symptom-table td:nth-child(3)::before {
    content: "Когда срочно";
  }

  .cardiology-symptom-table td:nth-child(1)::before {
    content: "Признак";
  }

  .cardiology-symptom-table td:nth-child(2)::before {
    content: "Как выглядит";
  }

  .cardiology-symptom-table td:nth-child(3)::before {
    content: "Что делать";
  }

  .specialist-faq h2,
  .specialist-faq summary {
    padding-right: 18px;
    padding-left: 18px;
  }

  .specialist-faq details p {
    padding-right: 18px;
    padding-left: 18px;
  }

  .specialist-copy p,
  .specialist-facts dd {
    font-size: 14px;
  }

  .cardiology-flow {
    grid-template-columns: 1fr;
  }

  .cardiology-pulse-visual {
    padding: 16px;
  }

  .cardiology-pulse-facts {
    grid-template-columns: 1fr;
  }

  .signal-card,
  .photo-panel figcaption {
    padding: 18px;
  }

  .timeline-step {
    min-height: auto;
    padding: 18px 18px 18px 70px;
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 42px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .footer-contact {
    padding: 16px;
  }

  .directory,
  .page-hero {
    background-size: auto, 520px 520px;
  }

  .mobile-bar {
    display: none;
  }
}
