html[data-ivekma-design="4"] body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

html[data-ivekma-design="4"] body > main {
  flex: 1 0 auto;
}

html[data-ivekma-design="4"] .iv-header,
html[data-ivekma-design="4"] .iv-footer {
  inset: auto;
  display: block;
  flex-shrink: 0;
  max-width: none;
  padding: 0;
  color: var(--iv-ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-ivekma-design="4"] .iv-header {
  --iv-head-inset: 12px;
  position: sticky;
  inset-block-start: var(--iv-head-inset);
  z-index: 26;
  width: min(1280px, calc(100% - 32px));
  margin: var(--iv-head-inset) auto 0;
  background: #fdfefd;
  border: 1px solid #dce4e9;
  border-radius: 12px;
  box-shadow: 0 9px 28px #22334a10;
}

html[data-ivekma-design="4"] .iv-header[data-iv-header-hidden]:not(:has(:focus-visible, details[open])) {
  transform: translateY(calc(-100% - var(--iv-head-inset) - 18px));
}

.iv-head-row,
.iv-head-nav,
.iv-head-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.iv-head-row {
  position: relative;
  min-height: 70px;
  gap: clamp(9px, 1.15vw, 18px);
  padding-inline: clamp(12px, 1.7vw, 23px);
}

.iv-brand {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 5px;
}

.iv-brand img { display: block; width: 165px; height: auto; }
.iv-brand-lockup { display: block; width: clamp(186px, 17vw, 240px); height: auto; }

.iv-head-nav { gap: clamp(10px, 1.35vw, 25px); margin-inline: auto; flex: 0 0 auto; }
.iv-head-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding-inline: 2px;
  color: #394858;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.iv-head-nav a::after {
  position: absolute;
  inset: auto 2px 6px;
  height: 1px;
  background: #527b9f;
  content: "";
  opacity: 0;
  transform: scaleX(.86);
  transform-origin: left;
}

.iv-head-nav a:is([aria-current], :hover, :focus-visible) { color: var(--iv-accent-hover); }
.iv-head-nav a:is([aria-current], :hover, :focus-visible)::after { opacity: 1; transform: scaleX(1); }
.iv-head-nav .iv-head-catalog { color: #243d58; font-weight: 720; }
.iv-head-actions { flex: 0 0 auto; margin-inline-start: auto; gap: 3px; }

html[data-ivekma-design="4"] .iv-head-email {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-inline-start: 9px;
  padding-inline: 11px;
  border: 1px solid #e3aeb8;
  border-radius: 8px;
  background-color: #fff0f2;
  color: #951d34;
  font-size: 17px;
  font-weight: 740;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: background-color var(--iv-link-fade) ease-in-out,
    border-color var(--iv-link-fade) ease-in-out, text-decoration-color var(--iv-link-fade) ease-in-out;
}

html[data-ivekma-design="4"] .iv-head-email:is(:hover, :focus-visible) {
  background-color: #fce2e7;
  border-color: #ce8292;
  text-decoration-color: currentColor;
}

.iv-email-hint {
  position: absolute;
  inset-block-start: 59%;
  inset-inline-start: 64%;
  z-index: 2;
  display: none;
  pointer-events: none;
}

.iv-email-hint > * { position: absolute; opacity: 0; }

.iv-email-ring {
  inset: -11px auto auto -11px;
  width: 22px;
  height: 22px;
  border: 2px solid #b83950;
  border-radius: 50%;
}

.iv-head-actions .iv-head-email .iv-email-cursor {
  top: -4px;
  left: -12px;
  width: 28px;
  height: 31.5px;
  filter: drop-shadow(0 2px 4px #28334440);
  transform-origin: 45% 15%;
}

.iv-head-actions .iv-head-email .iv-email-flight {
  top: -13px;
  left: -11px;
  width: 23px;
  height: 23px;
  filter: drop-shadow(0 2px 4px #951d3430);
}

@media (max-width: 1240px) {
  .iv-head-row { padding-block-start: 44px; }

  html[data-ivekma-design="4"] .iv-head-email {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: clamp(8px, 1.7vw, 23px);
    min-height: 35px;
    margin-inline-start: 0;
    font-size: 16px;
  }
}

.iv-head-actions button,
.iv-head-mobile summary,
.iv-head-menu button,
.iv-foot-file {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.iv-head-actions > button,
.iv-head-mobile summary {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #243d58;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.iv-head-actions > :is(button:hover, button:focus-visible),
.iv-head-mobile :is(summary:hover, summary:focus-visible),
.iv-head-mobile[open] summary { background: #eaf0f5; }

.iv-head-row :is(.iv-head-nav, .iv-head-actions, .iv-head-mobile) svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.iv-head-actions > .iv-head-quote {
  gap: 7px;
  padding-inline: 11px;
  border-radius: 8px;
  background: #243c57;
  color: #fff;
}

.iv-head-actions > .iv-head-quote:is(:hover, :focus-visible) { background: #315778; }

.iv-head-quote [data-quote-count] {
  display: grid;
  min-width: 18px;
  min-height: 19px;
  place-items: center;
  padding-inline: 3px;
  border-radius: 4px;
  background: #ffffff23;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.iv-head-mobile { flex: 0 0 auto; padding-inline-start: 7px; border-inline-start: 1px solid #e2e8ed; }
.iv-head-mobile summary { list-style: none; }
.iv-head-mobile summary::-webkit-details-marker { display: none; }
.iv-head-mobile summary path { transform-box: fill-box; transform-origin: center; }
.iv-head-mobile[open] summary path:first-child { transform: translateY(3.5px) rotate(45deg); }
.iv-head-mobile[open] summary path:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.iv-head-menu {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 9px;
  border: 1px solid #dce4eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 32px #22334a16;
}

.iv-head-menu :is(a, button) {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #354657;
  font-size: 15px;
  text-align: left;
  overflow-wrap: anywhere;
}

.iv-head-menu :is(a, button):hover,
.iv-head-menu a[aria-current] { background: #edf3f7; color: var(--iv-accent); }

html[data-ivekma-design="4"] .iv-footer {
  position: relative;
  width: 100%;
  margin: auto 0 0;
  background: #edf0f2;
  border-block-start: 1px solid #e2e7eb;
}

.iv-foot-intro, .iv-foot-row, .iv-foot-note {
  width: var(--iv-width);
  margin-inline: auto;
}

.iv-foot-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  padding-block: clamp(25px, 3.6vw, 50px) 26px;
}

.iv-foot-intro h2 {
  margin: 0;
  color: var(--iv-ink);
  font-size: clamp(21px, 2.35vw, 33px);
  font-weight: 730;
  line-height: 1.17;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.iv-foot-intro p { margin: 7px 0 0; color: var(--iv-muted); font-size: 14px; }
.iv-foot-file {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #cbd7e4;
  border-radius: 8px;
  background: #fdfdfd;
  color: var(--iv-accent-hover);
  font-size: 13px;
  font-weight: 680;
  transition: background-color 170ms var(--iv-ease), border-color 170ms var(--iv-ease);
}

.iv-foot-file:hover { background: #e5edf7; border-color: #b5c5d8; }
.iv-foot-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 17px 30px;
  padding-block: 23px 29px;
  border-block-start: 1px solid #dce3e9;
}

.iv-foot-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 13px; }
.iv-foot-nav p { margin: 0 0 3px; color: var(--iv-muted); font-weight: 650; }
.iv-foot-nav a {
  color: var(--iv-ink);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.iv-foot-nav a:is(:hover, :focus-visible) { color: var(--iv-accent); text-decoration-color: currentColor; }
.iv-foot-strip {
  border-radius: 20px 20px 0 0;
  background: #214568;
  color: #f1f6fc;
}

.iv-foot-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 20px;
  padding-block: 20px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .iv-head-file > span { display: none; }
}

@media (max-width: 910px) {
  html[data-ivekma-design="4"] .iv-header {
    --iv-head-inset: 8px;
    width: calc(100% - 16px);
    border-radius: 11px;
  }

  .iv-head-row { min-height: 62px; gap: 5px; padding-inline: 10px; }
  .iv-brand-lockup { width: clamp(134px, 30vw, 188px); }
  .iv-head-nav a:not([data-catalog-link]), .iv-head-actions > .iv-head-file { display: none; }
  .iv-head-nav a { min-width: 44px; justify-content: center; padding-inline: 3px; font-size: 15px; }
  .iv-head-actions { gap: 1px; }
  .iv-head-actions > .iv-head-quote { gap: 3px; padding-inline: 5px; }
  .iv-head-mobile { padding-inline-start: 0; border: 0; }
  .iv-head-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #header-quote-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (max-width: 430px) {
  .iv-head-row { gap: 3px; padding-inline: 8px; }
  .iv-brand-lockup { width: clamp(126px, 31vw, 140px); }
  .iv-head-catalog > svg { display: none; }
}

@media (max-width: 380px) {
  .iv-head-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    column-gap: 4px;
    row-gap: 0;
    padding-inline: 7px;
  }
  .iv-head-row > .iv-brand { grid-area: 1 / 1; min-height: 53px; }
  .iv-brand-lockup { width: clamp(130px, 37.6vw, 143px); }
  .iv-head-actions { grid-area: 1 / 2; }
  .iv-head-mobile { grid-area: 1 / 3; }
  .iv-head-nav {
    grid-area: 2 / 1 / auto / -1;
    justify-content: space-between;
    gap: 5px;
    margin: 0;
    padding-inline: 4px;
    border-block-start: 1px solid #e3e9ee;
  }
  .iv-head-nav a:not([data-catalog-link]) { display: inline-flex; }
}

@media (max-width: 680px) {
  .iv-foot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv-foot-identity { grid-column: 1 / -1; }
  .iv-foot-note { padding-block: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .iv-head-email[data-email-intro] .iv-email-hint { display: block; }
  .iv-head-email[data-email-intro] .iv-email-hint > * {
    animation-duration: 2.2s;
    animation-delay: 450ms;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(.35, .1, .25, 1);
  }
  .iv-email-cursor { animation-name: iv-email-approach; }
  .iv-email-ring { animation-name: iv-email-tap; }
  .iv-email-flight { animation-name: iv-email-send; }

  html[data-ivekma-design="4"] .iv-header { transition: transform 290ms var(--iv-ease); }
  html[data-ivekma-design="4"] .iv-header:has(:focus-visible) { transition-duration: 0ms; }

  .iv-brand-lockup {
    animation: iv-lockup-reveal 1000ms cubic-bezier(.42, 0, .24, 1) 140ms backwards;
    transition: filter 280ms ease;
  }
  .iv-brand:is(:hover, :focus-visible) .iv-brand-lockup { filter: brightness(1.14); }
  .iv-head-mobile summary path { transition: transform 220ms var(--iv-ease); }
  .iv-head-nav a::after { transition: opacity 300ms ease, transform 300ms ease; }
  .iv-head-nav a, .iv-foot-nav a { transition: color 260ms ease, text-decoration-color 300ms ease; }
  .iv-head-actions > button, .iv-head-mobile summary, .iv-head-menu :is(a, button) {
    transition: background-color 200ms var(--iv-ease), color 180ms var(--iv-ease);
  }

  @supports selector(::details-content) {
    .iv-head-mobile::details-content {
      position: absolute;
      inset: calc(100% + 8px) 0 auto;
      opacity: 0;
      transform: translateY(-6px);
      transition: opacity 200ms var(--iv-ease), transform 200ms var(--iv-ease),
        content-visibility 200ms allow-discrete;
    }

    .iv-head-mobile[open]::details-content { opacity: 1; transform: translateY(0); }
    .iv-head-menu { position: static; }
  }

  @supports (animation-timeline: view()) {
    .iv-foot-strip {
      animation: iv-footer-rise 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 96%;
    }
  }
}

@keyframes iv-footer-rise {
  from { clip-path: inset(100% 2% 0 round 35px 35px 0 0); }
  to { clip-path: inset(0 round 20px 20px 0 0); }
}

@keyframes iv-lockup-reveal {
  from { opacity: .32; clip-path: inset(0 84% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes iv-email-approach {
  0%, 8% { opacity: 0; transform: translate(-50px, 28px); }
  17% { opacity: 1; }
  44% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: 1; transform: translateY(1px) scale(.89); }
  56%, 67% { opacity: 1; transform: translateY(0) scale(1); }
  82%, 100% { opacity: 0; transform: translate(-4px, 10px); }
}

@keyframes iv-email-tap {
  0%, 46% { opacity: 0; transform: scale(.55); }
  51% { opacity: .85; transform: scale(.82); }
  70%, 100% { opacity: 0; transform: scale(1.75); }
}

@keyframes iv-email-send {
  0%, 52% { opacity: 0; transform: translate(0, 0) rotate(-12deg) scale(.6); }
  61% { opacity: 1; transform: translate(5px, -3px) rotate(-7deg) scale(.92); }
  78% { opacity: 1; transform: translate(23px, -13px) rotate(4deg) scale(1.02); }
  94%, 100% { opacity: 0; transform: translate(37px, -21px) rotate(10deg) scale(.83); }
}
