/* Fastov34 EditorialHeader adapted to static Fastov30 routes and phone. */
.site-header{--white:#fcfaf5;--ink:#10262d;--ink-soft:#3d5258;--navy-deep:#0b252c;--copper-dark:#8d452c;--line:rgba(16,38,45,.17);--ease-out:cubic-bezier(.22,1,.36,1)}
.site-header {
  position: sticky;
  z-index: 500;
  top: 0;
  min-height: 78px;
  color: var(--ink);
  border-bottom: 1px solid rgba(16, 38, 45, .18);
  background: rgba(243, 239, 231, .94);
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: rgba(243, 239, 231, .84);
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
    backdrop-filter: blur(12px) saturate(1.05);
  }
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(420px, 1.45fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  width: min(100% - 40px, 1360px);
  min-height: 78px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  min-height: 48px;
}

.brand-name { display: block; max-width: 178px; color: var(--navy-deep); font-size: 14px; line-height: 1.15; letter-spacing: -.015em; }
.brand span {
  max-width: 132px;
  padding-left: 13px;
  color: var(--ink-soft);
  border-left: 1px solid rgba(16, 38, 45, .28);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.header-nav { display: flex; justify-content: center; gap: clamp(15px, 2vw, 29px); }
.header-nav a, .mobile-menu nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
}

.header-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease-out);
}

.header-nav a:hover, .header-nav a[aria-current='page'], .mobile-menu nav a:hover, .mobile-menu nav a[aria-current='page'] { color: var(--copper-dark); }
.header-nav a:hover::after, .header-nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.header-phone {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  column-gap: 16px;
  min-width: 190px;
  min-height: 50px;
  padding: 7px 14px;
  color: var(--white);
  background: var(--copper-dark);
  border: 1px solid #713723;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}

.header-phone small, .header-phone strong { grid-column: 1; }
.header-phone small { color: rgba(255,255,255,.76); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.header-phone strong { margin-top: 1px; font-size: 13px; }
.header-phone span { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 18px; transition: transform 160ms var(--ease-out); }
.header-phone:hover { color: var(--white); background: #6f3422; }
.header-phone:hover span { transform: translate(2px, -2px); }
.header-phone:active { transform: scale(.975); }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-width: 86px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary i, .mobile-menu summary i::before, .mobile-menu summary i::after {
  display: block;
  width: 19px;
  height: 1px;
  background: currentColor;
  content: '';
  transition: transform 180ms var(--ease-out);
}
.mobile-menu summary i { position: relative; }
.mobile-menu summary i::before { position: absolute; transform: translateY(-6px); }
.mobile-menu summary i::after { position: absolute; transform: translateY(6px); }
.mobile-menu[open] summary i { background: transparent; }
.mobile-menu[open] summary i::before { transform: rotate(45deg); }
.mobile-menu[open] summary i::after { transform: rotate(-45deg); }
.mobile-menu > div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  padding: 8px 18px 14px;
  border: 1px solid rgba(16,38,45,.2);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(16,38,45,.12);
  transform-origin: top right;
}
.mobile-menu:not([open]) > div { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { justify-content: space-between; border-bottom: 1px solid var(--line); }
.mobile-menu nav a::after { content: '↗'; font-size: 15px; }

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .header-nav { display: none; }
  .mobile-menu { display: block; grid-column: 2; grid-row: 1; }
  .header-phone { grid-column: 3; }
}

@media (max-width: 650px) {
  .site-header, .header-inner { min-height: 68px; }
  .header-inner { grid-template-columns: minmax(90px, 1fr) auto; gap: 14px; width: calc(100% - 28px); }
  .brand-name { max-width: 154px; font-size: 12px; }
  .brand span, .header-phone { display: none; }
  .mobile-menu { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
  .skipLink, .header-nav a::after, .header-phone, .header-phone span, .mobile-menu summary i, .mobile-menu summary i::before, .mobile-menu summary i::after { transition: none; }
}

/* Direct calling remains available on narrow screens. */
@media (max-width: 650px) {
 .header-inner { grid-template-columns: minmax(68px, 1fr) auto auto; gap: 8px; }
 .brand-name { max-width: 132px; font-size: 11px; }
 .header-phone { display: flex; grid-column: 2; grid-row: 1; min-width: 0; min-height: 44px; padding: 8px 10px; }
 .header-phone small, .header-phone span { display: none; }
 .header-phone strong { margin: 0; font-size: 13px; white-space: nowrap; }
 .mobile-menu { grid-column: 3; }
 .mobile-menu summary { min-width: 44px; justify-content: center; }
 .mobile-menu summary > span { display: none; }
}

.site-header .header-inner{display:grid;max-width:none;padding:0}.site-header .brand{display:inline-flex;text-decoration:none}.site-header .brand-name{font-weight:700}.site-header .brand-context{max-width:132px}.site-header .header-nav{display:flex}.site-header .header-phone{text-decoration:none}.site-header .mobile-menu{display:none}@media(max-width:1120px){.site-header .header-nav{display:none}.site-header .mobile-menu{display:block}}@media(max-width:650px){.site-header .header-inner{grid-template-columns:minmax(68px,1fr) auto auto;min-height:68px;gap:8px}.site-header .brand{min-width:0}.site-header .brand-name{max-width:132px;font-size:11px}.site-header .brand-context{display:none}.site-header .header-phone{display:flex;grid-column:2;min-width:0;min-height:44px;padding:8px 10px}.site-header .header-phone small,.site-header .header-phone span{display:none}.site-header .header-phone strong{font-size:13px;white-space:nowrap}.site-header .mobile-menu{grid-column:3}.site-header .mobile-menu summary{min-width:44px;justify-content:center}.site-header .mobile-menu summary>span{display:none}}

.site-header .brand-name{font-size:14px;line-height:1.15;letter-spacing:-.015em}.site-header .brand-context{font-size:9px;line-height:1.25}@media(max-width:650px){.site-header .brand-name{font-size:11px;line-height:1.15}}

/* Editorial catalog uses straight card edges. */
.blog-index-page.catalogPage .article-card{border-radius:0}

/* Keep the full practice name readable on 320 px screens. The fixed call action remains available below. */
@media (max-width: 360px) {
  .site.fastov-home .site-header .header-inner { grid-template-columns: minmax(0, 1fr) 44px; }
  .site.fastov-home .site-header .header-phone { display: none; }
  .site.fastov-home .site-header .mobile-menu { grid-column: 2; }
  .site.fastov-home .site-header .brand-name,
  .site.fastov-home .site-header .brand strong { max-width: none; font-size: 14px; line-height: 1.15; }
}
