/* Контакт в шапке: отдельная согласованная правка V5 от 15.09.2026 */
.v4-home > .header .brand {
  width: 250px;
}

.v4-home > .header .header-phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: auto;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .015em;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(3,14,24,.72);
  transition: color .34s ease;
}

.v4-home > .header .header-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: #67aafc;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .38s cubic-bezier(.22,.72,.2,1);
}

.v4-home > .header .header-phone:hover {
  color: #83b9fb;
}

.v4-home > .header .header-phone:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.v4-home > .header .header-phone-mobile {
  display: none;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .v4-home > .header {
    gap: 18px;
  }

  .v4-home > .header .brand {
    width: 215px;
  }

  .v4-home > .header .desktop-nav {
    gap: 18px;
    font-size: 12px;
  }

  .v4-home > .header .header-phone {
    font-size: 13px;
  }

  .v4-home > .header .header-cta {
    padding-inline: 15px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .v4-home > .header {
    gap: 12px;
  }

  .v4-home > .header .header-phone,
  .v4-home > .header .header-cta {
    display: none;
  }

  .v4-home > .header .header-phone-mobile {
    position: relative;
    z-index: 998;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    margin-left: auto;
    border: 1px solid #67aafc;
    border-radius: 50%;
    background: #67aafc;
    color: #102438;
    text-shadow: none;
    transition: background-color .34s ease, border-color .34s ease, transform .34s ease;
  }

  .v4-home > .header .header-phone-mobile svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
  }

  .v4-home > .header .header-phone-mobile:hover {
    border-color: #fff;
    background: #fff;
    color: #102438;
  }

  .v4-home > .header .header-phone-mobile:active {
    transform: scale(.96);
  }

  .v4-home > .header .mobile-nav {
    margin-left: 0;
  }

  .v4-home > .header .mobile-menu-phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 48px;
    margin-top: 13px;
    padding: 10px 0 11px;
    border-top: 1px solid rgba(255,255,255,.2);
    border-bottom: 1px solid rgba(255,255,255,.2);
    color: #83b9fb;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .01em;
  }

  .v4-home > .header .mobile-menu-phone svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
  }

  .v4-home > .header .mobile-menu-meta .button {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .v4-home > .header {
    gap: 10px;
  }

  .v4-home > .header .brand {
    width: min(190px, calc(100% - 104px));
    max-width: none;
  }

  .v4-home > .header .header-phone-mobile {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    background: #67aafc;
  }

  .v4-home > .header .mobile-menu-phone {
    min-height: 44px;
    margin-top: 10px;
    padding-block: 8px 9px;
    font-size: 18px;
  }

  .v4-home > .header .mobile-menu-meta .button {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v4-home > .header .header-phone,
  .v4-home > .header .header-phone::after,
  .v4-home > .header .header-phone-mobile {
    transition: none;
  }
}

/* Единая форма обращения V5 и клиентского превью */
.v4-home > .header .desktop-nav .nav-request {
  padding: 12px 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.v4-home > .header .desktop-nav .nav-request:hover {
  color: #83b9fb;
}

.request-modal {
  z-index: 2000;
  padding: 24px;
}

.request-modal .modal-backdrop {
  background: rgba(7, 25, 42, .72);
  backdrop-filter: blur(9px);
}

.request-modal .modal-panel {
  display: block;
  width: min(100%, 760px);
  max-width: 760px;
  max-height: calc(100dvh - 48px);
  padding: 42px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(73, 153, 253, .22);
  border-radius: 30px;
  background: #f7fbff;
  box-shadow: 0 34px 110px rgba(4, 20, 34, .34);
}

.request-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  margin: 0;
  border-color: rgba(33, 54, 76, .2);
  border-radius: 50%;
  background: #f7fbff;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.request-modal .modal-close:hover {
  background: var(--navy);
  color: #fff;
}

.request-modal .modal-close:active {
  transform: scale(.96);
}

.request-modal .modal-heading {
  padding-right: 54px;
  margin-bottom: 28px;
}

.request-modal .modal-heading h2 {
  max-width: 610px;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.request-modal .modal-heading p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  white-space: nowrap;
}

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

.request-modal .form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}

.request-modal .field-label {
  color: #405a72;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.request-modal .contact-field,
.request-modal .trip-details,
.request-modal .consent,
.request-modal .form-submit,
.request-modal .form-result {
  grid-column: 1 / -1;
}

.request-modal .custom-select-trigger,
.request-modal .form-field > input,
.request-modal .form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(33, 54, 76, .2);
  border-radius: 17px;
  outline: none;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.3;
  box-shadow: 0 7px 22px rgba(30, 70, 104, .035);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.request-modal .custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.request-modal .custom-select-trigger svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
  transition: transform .2s ease;
}

.request-modal .custom-select.is-open .custom-select-trigger svg {
  transform: rotate(-90deg);
}

.request-modal .custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-modal .custom-select-value.is-placeholder,
.request-modal input::placeholder,
.request-modal textarea::placeholder {
  color: #7d8d9d;
  opacity: 1;
}

.request-modal .custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 244px;
  padding: 7px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(33, 54, 76, .15);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(12, 40, 64, .18);
}

.request-modal .custom-option {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 11px;
  outline: none;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
}

.request-modal .custom-option:hover,
.request-modal .custom-option[aria-selected="true"] {
  background: #e9f3ff;
  color: #1e67b5;
}

.request-modal .form-field > input {
  padding-block: 13px;
  border-bottom: 1px solid rgba(33, 54, 76, .2);
  border-radius: 17px;
}

.request-modal .form-field textarea {
  min-height: 108px;
  resize: vertical;
  font: inherit;
}

.request-modal .trip-details {
  margin: 0;
  border-top: 1px solid rgba(33, 54, 76, .15);
  border-bottom: 1px solid rgba(33, 54, 76, .15);
}

.request-modal .trip-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 2px;
  font-size: 14px;
}

.request-modal .trip-details > summary svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.request-modal .trip-details[open] > summary svg {
  transform: rotate(45deg);
}

.request-modal .trip-details .form-field {
  padding: 4px 0 17px;
}

.request-modal .consent {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: start;
  color: #405a72;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.request-modal .consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.request-modal .consent-box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(33, 54, 76, .35);
  border-radius: 7px;
  background: #fff;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.request-modal .consent-box svg {
  width: 17px;
  height: 17px;
  opacity: 0;
  color: #fff;
  stroke-width: 2.2;
}

.request-modal .consent input:checked + .consent-box {
  border-color: var(--blue);
  background: var(--blue);
}

.request-modal .consent input:checked + .consent-box svg {
  opacity: 1;
}

.request-modal .form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 17px 21px;
  border-radius: 999px;
  line-height: 1;
}

.request-modal .form-result {
  padding: 13px 15px;
  border: 1px solid rgba(73, 153, 253, .3);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  background: #eaf4ff;
  font-size: 14px;
}

.request-modal .custom-select-trigger:focus-visible,
.request-modal .custom-option:focus-visible,
.request-modal .form-field > input:focus-visible,
.request-modal .form-field textarea:focus-visible,
.request-modal .consent input:focus-visible + .consent-box {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(73, 153, 253, .25);
}

@media (max-width: 900px) {
  .v4-home > .header .mobile-menu-links button {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    width: 100%;
    min-height: 57px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font: 500 clamp(20px,4vw,28px)/1.15 var(--display);
    letter-spacing: -.035em;
    text-align: left;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .46s cubic-bezier(.2,.7,.2,1), transform .56s cubic-bezier(.2,.7,.2,1);
  }

  .v4-home > .header .mobile-menu-links button span {
    color: #67aafc;
    font: 400 10px/1 Golos, sans-serif;
    letter-spacing: .08em;
  }

  .v4-home > .header .mobile-nav.is-content-visible .mobile-menu-links button {
    opacity: 1;
    transform: translateY(0);
  }

  .v4-home > .header .mobile-nav.is-content-visible .mobile-menu-links button:nth-child(2) { transition-delay: .11s; }
  .v4-home > .header .mobile-nav.is-content-visible .mobile-menu-links button:nth-child(3) { transition-delay: .16s; }
}

@media (max-width: 600px) {
  .request-modal {
    align-items: stretch;
    padding: 8px;
  }

  .request-modal .modal-panel {
    max-height: calc(100dvh - 16px);
    padding: 27px 18px 22px;
    border-radius: 24px;
  }

  .request-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .request-modal .modal-heading {
    padding-right: 43px;
    margin-bottom: 22px;
  }

  .request-modal .modal-heading h2 {
    font-size: clamp(29px, 9.4vw, 39px);
  }

  .request-modal .modal-heading p {
    max-width: 285px;
    font-size: 14px;
    white-space: normal;
    text-wrap: balance;
  }

  .request-modal #request-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .request-modal .contact-field,
  .request-modal .trip-details,
  .request-modal .consent,
  .request-modal .form-submit,
  .request-modal .form-result {
    grid-column: auto;
  }

  .request-modal .custom-select-trigger,
  .request-modal .form-field > input {
    min-height: 54px;
    font-size: 16px;
  }

  .request-modal .custom-options {
    max-height: min(230px, 38dvh);
  }

  .request-modal .form-submit {
    min-height: 58px;
    font-size: 15px;
  }

  .v4-home > .header .mobile-menu-links button {
    min-height: 52px;
    font-size: clamp(19px,5.2vw,23px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .request-modal .modal-close,
  .request-modal .custom-select-trigger,
  .request-modal .custom-select-trigger svg,
  .request-modal .consent-box,
  .v4-home > .header .mobile-menu-links button {
    transition: none;
  }
}

/* Contact-page preview: the inputs and submit action remain disabled until launch. */
.page-contact .contact-v3-grid { align-items: start; }
.page-contact .contact-v3-intro { min-width: 0; }
.page-contact .contact-v3-portrait {
  position: relative;
  width: min(100%, 410px);
  height: auto;
  margin: 32px auto -100px 0;
  overflow: visible;
  border-radius: 0;
  background: none;
}
.page-contact .contact-v3-portrait::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 19% 1% 12% 1%;
  border-radius: 50%;
  background: radial-gradient(circle, #cde6f8 0, #e9f5fc 58%, transparent 72%);
}
.page-contact .contact-v3-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.page-contact .contact-v3-form { min-width: 0; background: #fff; }
.page-contact .contact-v3-form-head p { margin: 10px 0 0; color: #536b80; font-size: 16px; line-height: 1.5; }
.page-contact .contact-preview-fields { display: grid; gap: 21px; margin-top: 25px; }
.page-contact .contact-preview-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.page-contact .contact-preview-field { display: grid; min-width: 0; gap: 8px; color: #405a72; font-size: 13px; font-weight: 600; }
.page-contact .contact-preview-field[hidden] { display: none; }
.page-contact .contact-preview-field input,
.page-contact .contact-preview-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 53px;
  padding: 15px 17px;
  border: 1px solid #d2dfe9;
  border-radius: 15px;
  background: #f6f9fc;
  color: #50677d;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  opacity: 1;
  -webkit-text-fill-color: #50677d;
}
.page-contact .contact-preview-field textarea { min-height: 101px; resize: none; }
.page-contact .contact-preview-field :is(input,textarea)::placeholder { color: #8496a5; opacity: 1; -webkit-text-fill-color: #8496a5; }
.page-contact .contact-preview-channel { min-width: 0; margin: 0; padding: 0; border: 0; }
.page-contact .contact-preview-channel legend { margin-bottom: 12px; color: #405a72; font-size: 13px; font-weight: 600; }
.page-contact .contact-preview-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.page-contact .contact-preview-options label { position: relative; min-width: 0; cursor: pointer; }
.page-contact .contact-preview-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.page-contact .contact-preview-options span { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 47px; padding: 7px 4px; border: 1px solid #cbdae6; border-radius: 999px; background: #fff; color: #425a70; font-size: clamp(11px,1vw,13px); font-weight: 650; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.page-contact .contact-preview-options img { display: block; flex: none; width: 19px; height: 19px; object-fit: contain; }
.page-contact .contact-preview-options b { font: inherit; }
.page-contact .contact-preview-options input:checked + span { border-color: #5a9ee0; background: #e8f4ff; color: #193c5e; }
.page-contact .contact-preview-options input:focus-visible + span { outline: 2px solid #2179c4; outline-offset: 3px; }
.page-contact .contact-preview-warning { margin: -3px 0 0; color: #62778a; font-size: 13px; line-height: 1.5; }
.page-contact .contact-preview-call { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 55px; }
@media(max-width:900px){
  .page-contact .contact-v3-portrait { width: min(88%,360px); margin: 24px auto -10px; }
}
@media(max-width:760px){
  .page-contact .contact-v3-form { margin-top: 25px; padding: 30px 22px; }
  .page-contact .contact-preview-row { grid-template-columns: 1fr; }
  .page-contact .contact-preview-options { gap: 4px; }
  .page-contact .contact-preview-options span { flex-direction: column; min-height: 65px; gap: 0; padding-block: 4px; font-size: 10px; }
  .page-contact .contact-preview-options img { width: 32px; height: 32px; }
  .page-contact .contact-preview-options input[value="vk"] + span img { width: 29px; height: 32px; }
  .page-contact .contact-preview-options input[value="max"] + span img { width: 27px; height: 32px; }
}

/* Contact video feedback: lift the existing portrait into the space beside the copy. */
@media (min-width: 901px) {
  .page-contact .contact-v3-intro {
    position: relative;
    z-index: 1;
    align-self: stretch;
  }
  .page-contact .contact-v3-form { position: relative; z-index: 2; }
  .page-contact .contact-v3-portrait {
    position: absolute;
    top: auto;
    bottom: -100px;
    left: clamp(125px, calc(100% - 300px), 370px);
    width: clamp(420px, calc(18.5vw + 253px), 520px);
    margin: 0;
  }
  .page-contact .contact-v3-lead,
  .page-contact .contact-v3-side-note { max-width: clamp(300px, 26vw, 380px); }
}

@media (min-width: 901px) and (max-width: 1149px) {
  .page-contact .contact-v3-lead,
  .page-contact .contact-v3-side-note { max-width: calc(100% - 225px); }
}

@media (max-width: 760px) {
  .page-contact .contact-v3-portrait { margin-bottom: -25px; }
  .page-contact .contact-v3-form {
    position: relative;
    z-index: 2;
    margin-top: 0;
  }
}

/* These are reading copy, not tertiary metadata. */
.page-contact .contact-v3-side-note,
.page-contact .contact-preview-warning { font-size: 16px; line-height: 1.5; }
