/* NEWO.MY — shared shell (header, footer, modals, forms, buttons) */

/* NEWO.MY — BEM + CSS variables */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #fff;
  --color-bg-2: #f6f6f6;
  --color-card: #f0f0f0;
  --color-border: #e0e0e0;
  --color-text: #111;
  --color-muted: #666;
  --color-subtle: #555;
  --color-input: #fff;
  --color-input-border: #d0d0d0;
  --color-btn-bg: #111;
  --color-btn-text: #fff;
  --color-header-bg: rgba(255, 255, 255, 0.95);
  --color-modal-bg: #fff;
  --color-process-card: #f0f0f0;
  --color-channel-chip: #fff;
  --color-footer-main: #fff;
  --color-footer-bar: #f0f0f0;
  --color-trusted-bar: #111;
  --color-cap-icon-bg: #f0f0f0;
  --color-cap-highlight-bg: #111;
  --color-cap-highlight-border: #2a2a2a;
  --color-cap-ticker-bg: #111;
  --color-cap-ticker-text: rgba(255, 255, 255, 0.55);
  --color-accent: #22c55e;
  --color-accent-soft: rgba(34, 197, 94, 0.13);
  --color-plan-featured-bg: #111;
  --color-plan-featured-text: #fff;
  --color-plan-featured-muted: #aaa;
  --color-plan-featured-feature: #ddd;
  --color-plan-featured-btn-bg: #fff;
  --color-plan-featured-btn-text: #111;
  --color-plan-featured-btn-hover: #eee;
  --color-plan-featured-border: #999;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-theme: background 0.3s, color 0.3s, border-color 0.3s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

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

button,
input,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
}

/* Page */
.page {
  min-height: 100vh;
}

/* Utilities */
.u-desktop-only {
  display: flex;
}

.u-mobile-only {
  display: none;
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Icon */
.icon {
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon svg {
  display: block;
}

.advantage-card .card__icon,
.feature-card .card__icon {
  color: var(--color-muted);
}

.modal__success-icon {
  color: #22c55e;
}

.modal__success-icon .icon svg {
  stroke: #22c55e;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  font-family: inherit;
  color: var(--color-btn-text);
  background: var(--color-btn-bg);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.btn:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--plan {
  width: 100%;
  padding: 10px;
  font-size: 12px;
}

.btn--plan.btn--outline {
  background: transparent;
}

.header__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: #09090b;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.header__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.header__cta-label {
  position: relative;
  z-index: 1;
}

.header__cta-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.header__cta:hover {
  background: #27272a;
  box-shadow:
    0 8px 22px rgba(9, 9, 11, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  opacity: 1;
}

.header__cta:hover::before {
  transform: translateX(120%);
}

.header__cta:hover .header__cta-icon {
  transform: translate(2px, -2px);
}

.header__cta:active {
  background: #09090b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transform: translateY(0);
}

.header__cta:focus-visible {
  outline: 2px solid #09090b;
  outline-offset: 3px;
}

.btn--lang {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--play {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: transform 0.2s, background 0.2s;
}

.btn--play:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

/* Header */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0a0a0b;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.2s ease;
}

.banner:hover {
  background: #171717;
  color: #fff;
}

.banner__accent {
  color: #60a5fa;
  font-weight: 600;
}

.banner__arrow {
  color: #60a5fa;
  font-weight: 700;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}

.header__logo {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: 36px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.header__logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-letter {
  font-size: 13px;
  color: var(--color-bg);
  font-weight: 900;
}

.header__nav {
  display: flex;
  gap: 28px;
  flex: 1;
}

.header__nav-link {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color 0.18s;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.25s;
}

.header__nav-link:hover {
  color: var(--color-text);
}

.header__nav-link:hover::after {
  width: 100%;
}

a.header__nav-link {
  text-decoration: none;
  color: var(--color-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

a.header__nav-link:hover {
  color: var(--color-text);
}

.header__nav-dropdown {
  position: relative;
}

.header__nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link--dropdown::after {
  width: 0;
}

.header__nav-dropdown:hover .header__nav-link--dropdown,
.header__nav-dropdown:focus-within .header__nav-link--dropdown {
  color: var(--color-text);
}

.header__nav-dropdown:hover .header__nav-link--dropdown::after,
.header__nav-dropdown:focus-within .header__nav-link--dropdown::after {
  width: 100%;
}

.header__nav-chevron {
  transition: transform 0.2s ease;
}

.header__nav-dropdown:hover .header__nav-chevron,
.header__nav-dropdown:focus-within .header__nav-chevron {
  transform: rotate(180deg);
}

.header__subnav {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 120;
  min-width: 196px;
  padding: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.header__nav-dropdown:hover .header__subnav,
.header__nav-dropdown:focus-within .header__subnav {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__subnav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header__subnav-link:hover,
.header__subnav-link:focus-visible {
  background: var(--color-bg-2);
  color: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.header__burger {
  margin-left: auto;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--color-text);
  display: none;
  align-items: center;
}

.modal--video {
  background: rgba(9, 9, 11, 0.42);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.modal--video .modal__dialog--video {
  max-width: 900px;
  width: 100%;
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow:
    0 28px 80px rgba(9, 9, 11, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
  animation: video-modal-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal--video .video-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
  margin-bottom: 18px;
}

.modal--video .video-modal__meta {
  min-width: 0;
}

.modal--video .video-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.modal--video .modal__title {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.modal--video .video-modal__close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.modal--video .video-modal__close:hover,
.modal--video .video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(9, 9, 11, 0.12);
}

.video-modal__embed {
  position: relative;
  width: auto;
  margin: 0 22px 22px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(9, 9, 11, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(9, 9, 11, 0.2);
}

.video-modal__embed iframe,
.video-modal__embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

@keyframes video-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal--video .modal__dialog--video {
    animation: none;
  }
}

.footer__trusted {
  background: var(--color-trusted-bar);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 40px;
}

.footer__trusted-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__trusted-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
}

.footer__trusted-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
}

.footer__main {
  background: var(--color-footer-main);
  padding: 52px 40px 36px;
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 56px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}

.footer__logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}

.footer__name {
  font-weight: 700;
  font-size: 17px;
}

.footer__about {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 240px;
}

.footer__contacts-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer__link-btn:hover {
  opacity: 0.85;
}

.footer__col-title {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-subtle);
  font-weight: 600;
  margin-bottom: 18px;
}

.footer__nav-item {
  margin-bottom: 12px;
}

.footer__nav-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.18s;
}

a.footer__nav-link {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
}

.footer__nav-link:hover {
  color: var(--color-text);
}

.footer__field-label {
  font-size: 12px;
  color: var(--color-subtle);
  margin-bottom: 5px;
}

.footer__field {
  margin-bottom: 14px;
}

.footer__field:last-child {
  margin-bottom: 0;
}

.footer__phone {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.footer__email {
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.footer__note {
  font-size: 13px;
  font-weight: 500;
}

.footer__bar {
  background: var(--color-footer-bar);
  border-top: 1px solid var(--color-border);
  padding: 18px 40px;
}

.footer__bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-subtle);
}

.footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__legal-link {
  font-size: 13px;
  color: var(--color-subtle);
  cursor: pointer;
  transition: color 0.18s;
}

.footer__legal-link:hover {
  color: var(--color-muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal--video.is-open {
  z-index: 1001;
}

.modal__dialog {
  background: var(--color-modal-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  animation: fade-up 0.5s ease both;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal__title {
  font-weight: 700;
  font-size: 20px;
}

.modal__close {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal__success {
  text-align: center;
  padding: 20px 0;
}

.modal__success-icon {
  margin: 0 auto 16px;
  color: #22c55e;
}

.modal__success-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__success-text {
  color: var(--color-muted);
  margin-bottom: 24px;
}

.form__group {
  margin-bottom: 14px;
}

.form__label {
  display: block;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.form__input,
.form__textarea {
  width: 100%;
  background: var(--color-input);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--color-text);
  font-size: 14px;
}

.form__textarea {
  resize: vertical;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: #aaa;
}

.form__hint {
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  margin: 12px 0 0;
}

/* ── Стани кнопки ── */

/* За замовчуванням — ваші існуючі стилі .btn */

#form-submit {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#form-submit[data-state="loading"] {
  opacity: .7;
  cursor: wait;
}

#form-submit[data-state="success"] {
  background-color: #27ae60;
  border-color: #27ae60;
  color: #fff;
  cursor: default;
}

#form-submit[data-state="error"] {
  background-color: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

/* ── Помилки полів ── */
.form__field-error {
  color: #c0392b;
  font-size: 13px;
  margin: 4px 0 0;
}

.form__input--error {
  border-color: #c0392b;
  outline: none;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 80px 32px 40px;
  background: rgba(255, 255, 255, 0.97);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

.mobile-menu__link {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 28px;
  font-weight: 700;
  text-align: left;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.mobile-menu__link--toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu__submenu {
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__chevron {
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 0.25s ease;
}

.mobile-menu__submenu.is-open .mobile-menu__chevron {
  transform: rotate(180deg);
}

.mobile-menu__subpanel {
  display: none;
  padding: 4px 0 12px 12px;
}

.mobile-menu__submenu.is-open .mobile-menu__subpanel {
  display: block;
}

.mobile-menu__submenu .mobile-menu__link--toggle {
  border-bottom: none;
}

a.mobile-menu__link {
  display: block;
  text-decoration: none;
  font-family: inherit;
}

.mobile-menu__group {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__group-title {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu__sublink {
  display: block;
  padding: 8px 0 4px;
  color: var(--color-muted);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu__sublink:hover,
.mobile-menu__sublink:focus-visible {
  color: var(--color-muted);
}

.mobile-menu__cta {
  margin-top: 40px;
}

.mobile-menu__cta .header__cta {
  width: 100%;
}

/* Responsive — shell */
@media (max-width: 1024px) {
  .footer__trusted {
    padding-left: 32px;
    padding-right: 32px;
  }

  .footer__main,
  .footer__bar {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .u-desktop-only {
    display: none !important;
  }

  .u-mobile-only {
    display: flex !important;
  }

  .page {
    overflow-x: hidden;
  }

  .header {
    padding: 0 20px;
  }

  .banner {
    font-size: 12px;
    padding: 9px 12px;
  }

  .header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .mobile-menu__link {
    font-size: 24px;
    padding: 12px 0;
  }

  .mobile-menu__sublink {
    font-size: 17px;
    padding: 8px 0;
  }

  .footer__trusted,
  .footer__main,
  .footer__bar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__trusted-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__bar {
    padding: 16px 20px;
  }

  .footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__legal {
    gap: 10px 18px;
  }

  .modal__dialog {
    max-width: calc(100vw - 32px);
    padding: 20px 16px;
  }

  .modal--video {
    padding: 20px 16px;
    align-items: center;
  }

  .modal--video .modal__dialog--video {
    width: 100%;
    max-width: min(380px, calc(100vw - 32px));
    min-height: 0;
    max-height: calc(100dvh - 40px);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }

  .modal--video .video-modal__head {
    padding: 16px 16px 0;
    margin-bottom: 12px;
    flex-shrink: 0;
  }

  .modal--video .video-modal__eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .modal--video .modal__title {
    font-size: 16px;
  }

  .modal--video .video-modal__close {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .modal--video .video-modal__embed {
    max-width: 100%;
    margin: 0 12px 12px;
    flex: 0 0 auto;
    aspect-ratio: 9 / 16;
    max-height: min(calc(100dvh - 148px), 620px);
    border-radius: 14px;
  }

  .modal--video .video-modal__embed:has(iframe) {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .modal {
    padding: 16px;
  }
}

