/* ─── Design tokens ─── */
:root {
  --background: oklch(0.15 0.02 270);
  --foreground: oklch(0.95 0.01 270);
  --card-bg: oklch(0.2 0.03 270);
  --card-foreground: oklch(0.95 0.01 270);
  --primary: oklch(0.6 0.18 264);
  --primary-foreground: oklch(0.15 0.02 270);
  --primary-10: oklch(0.6 0.18 264 / 10%);
  --primary-20: oklch(0.6 0.18 264 / 20%);
  --primary-40: oklch(0.6 0.18 264 / 40%);
  --primary-50: oklch(0.6 0.18 264 / 50%);
  --primary-70: oklch(0.6 0.18 264 / 70%);
  --muted: oklch(0.25 0.05 270);
  --muted-foreground: oklch(0.65 0.05 270);
  --muted-fg-40: oklch(0.65 0.05 270 / 40%);
  --muted-fg-50: oklch(0.65 0.05 270 / 50%);
  --muted-fg-60: oklch(0.65 0.05 270 / 60%);
  --accent: oklch(0.25 0.05 270);
  --accent-foreground: oklch(0.9 0.02 270);
  --border: oklch(1 0 0 / 10%);
  --input-bg: oklch(0.15 0.02 270);
  --input-border: oklch(1 0 0 / 15%);
  --ring: oklch(0.6 0.18 264);
  --red: oklch(0.6 0.22 25);
  --radius: 0.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Gilroy";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("fonts/Gilroy-Bold.woff") format("woff");
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── App Container ─── */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: visible;
  background: var(--background);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ─── Background ── */
.bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    135deg,
    oklch(0.15 0.02 270) 0%,
    oklch(0.18 0.06 260) 50%,
    oklch(0.12 0.04 280) 100%
  );
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 3%) 1px, transparent 1px),
    linear-gradient(oklch(0.55 0.3 264 / 12%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.55 0.3 264 / 12%) 1px, transparent 1px),
    radial-gradient(circle, oklch(0.6 0.25 264 / 40%) 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, oklch(0.6 0.25 264 / 6%) 0%, transparent 50%);
  background-size:
    10px 10px,
    10px 10px,
    40px 40px,
    40px 40px,
    40px 40px,
    100% 100%;
  background-position: 0 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in oklch, var(--background) 50%, transparent),
    var(--background)
  );
}

/* ─── Header ── */
header {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--primary-20);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 0 14px -4px var(--primary-20);
}

.logo-domain-main {
  display: inline-flex;
  align-items: center;
  font-family: "Gilroy", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.logo-domain-sec {
  display: inline-flex;
  align-items: center;
  font-family: "Gilroy", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  font-size: 0.75rem;
  line-height: 1rem;
}

.logo-num {
  color: var(--primary);
  font-size: 0.5em;
  line-height: 1;
  vertical-align: super;
  margin-top: -0.75rem;
}

.logo-sep {
  color: var(--muted-fg-50);
  font-size: 0.875rem;
  font-weight: 300;
  margin: 0 0.125rem;
}

.slogan {
  font-size: 0.625rem;
  color: var(--muted-fg-60);
  margin-top: 0.125rem;
  letter-spacing: 0.05em;
  font-weight: 300;
}

.contacts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-weight: 400;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.contacts a:hover {
  color: var(--foreground);
}

.contacts .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ─── Tabs ─── */
/* Радиокнопки скрыты визуально, но доступны клавиатуре и screen readers */
.tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
}

.tab-bar {
  position: relative;
  z-index: 15;
  display: flex;
  width: 100%;
  max-width: 64rem;
  margin: auto auto 0;
  padding: 0 1rem;
  flex-shrink: 0;
}

.tab-bar-inner {
  display: flex;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--primary-20);
  background: oklch(0 0 0 / 30%);
  padding: 0.25rem;
}

.tab-label {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--muted-foreground);
  user-select: none;
}

.tab-label:hover {
  color: var(--foreground);
}

#t1:checked ~ .tab-bar .tab-label[for="t1"],
#t2:checked ~ .tab-bar .tab-label[for="t2"],
#t3:checked ~ .tab-bar .tab-label[for="t3"] {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px oklch(0 0 0 / 20%);
}

/* Подсветка таба при фокусе с клавиатуры */
#t1:focus-visible ~ .tab-bar .tab-label[for="t1"],
#t2:focus-visible ~ .tab-bar .tab-label[for="t2"],
#t3:focus-visible ~ .tab-bar .tab-label[for="t3"] {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.tab-content {
  display: none;
  position: relative;
  z-index: 60;
  flex: 0 1 auto;
  width: 100%;
  height: min(34rem, calc(100vh - 12rem));
  height: min(34rem, calc(100dvh - 12rem));
  min-height: 0;
  margin: 0.5rem auto auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 1rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-40) transparent;
}

.tab-content::-webkit-scrollbar {
  width: 6px;
}

.tab-content::-webkit-scrollbar-track {
  background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
  background: var(--primary-40);
  border-radius: 3px;
}

#t1:checked ~ .tab-content[data-tab="1"],
#t2:checked ~ .tab-content[data-tab="2"],
#t3:checked ~ .tab-content[data-tab="3"] {
  display: flex;
}

/* ─── Unified Block ─── */
.unified-block {
  display: flex;
  width: 100%;
  max-width: 64rem;
  flex: none;
  flex-direction: column;
  overflow: visible;
  border-radius: 0.75rem;
  border: 1px solid var(--primary-20);
  background: oklch(0 0 0 / 30%);
}

.video-area {
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: oklch(0 0 0 / 40%);
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  min-height: 200px;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: oklch(0 0 0 / 40%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.video-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid var(--primary-20);
  background: var(--primary-10);
  flex-shrink: 0;
}

.video-icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-70);
  opacity: 0.6;
}

.video-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.video-text h3 {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.video-text p {
  font-size: 0.75rem;
  color: var(--muted-fg-50);
}

.live-badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  border: 1px solid var(--primary-20);
  background: oklch(0 0 0 / 60%);
  padding: 0.25rem 0.5rem;
}

.live-dot {
  width: 1rem;
  height: 1rem;
  color: var(--red);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.live-text {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 4rem;
  background: linear-gradient(to top, oklch(0 0 0 / 60%), transparent);
  pointer-events: none;
}

.divider-h {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-20), transparent);
}

.divider-v {
  display: none;
}

/* ─── Calculator ── */
.calc-block {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  overflow: visible;
  width: 100%;
}

.calc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.calc-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 0 0.5rem;
}

.calc-title svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.calc-divider {
  margin: 0 0.75rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-40), transparent);
}

.calc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem 0.75rem;
}

.calc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.calc-label svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  border-radius: 50%;
}

.tooltip-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--muted-fg-60);
}

.tooltip-wrap .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--muted);
  color: var(--foreground);
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}

.tooltip-wrap:hover .tooltip-text,
.tooltip-wrap:focus-visible .tooltip-text,
.tooltip-wrap:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.counter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  background: var(--muted);
  color: var(--muted-foreground);
  transition: background 0.2s, color 0.2s;
}

.counter-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-foreground);
}

.counter-btn:disabled {
  cursor: not-allowed;
  background: var(--muted);
  color: var(--muted-fg-40);
  opacity: 0.4;
}

.counter-btn svg {
  width: 1rem;
  height: 1rem;
}

.counter-value {
  min-width: 2.5ch;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.sub-divider {
  margin: 0.5rem 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-10), transparent);
}

.archive-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  padding: 15px;
}

.archive-btn {
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: var(--muted);
  color: var(--muted-foreground);
}

.archive-btn:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.archive-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.total-block {
  margin-top: auto;
  border-radius: var(--radius);
  border: 1px solid var(--primary-10);
  background: var(--primary-10);
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.total-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.25;
}

.total-value {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1.4;
}

/* ─── Contact Form ─── */
.contact-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.contact-box {
  border-radius: var(--radius);
  border: 1px solid var(--primary-20);
  background: var(--primary-10);
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.contact-text {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.4;
}

.contact-input-row {
  display: flex;
  gap: 0.375rem;
}

.contact-input {
  flex: 1;
  min-width: 0;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--foreground);
  padding: 0 0.75rem;
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px var(--primary-20);
}

.contact-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.contact-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: none;
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.contact-send:hover {
  opacity: 0.9;
}

.contact-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-send svg {
  width: 1rem;
  height: 1rem;
}

/* ─── Service Cards ─── */
.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.75rem;
  width: 100%;
  max-width: 64rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.75rem;
  width: 100%;
  max-width: 64rem;
}

.unified-block,
.cards-grid-2,
.cards-grid-3 {
  margin: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid var(--primary-20);
  background: oklch(0 0 0 / 30%);
  padding: 1rem;
  box-shadow: 0 0 15px -3px oklch(from var(--primary) l c h / 8%);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: var(--primary-40);
  box-shadow: 0 0 20px -3px oklch(from var(--primary) l c h / 18%);
}

.card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--primary-10);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
}

.card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.card-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--primary-20);
  background: var(--primary-10);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.card-item-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
}

.card-item-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ─── Notification ─── */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
  box-shadow: 0 4px 12px oklch(0 0 0 / 30%);
  pointer-events: auto;
  animation: slideIn 0.3s ease-out;
  max-width: 24rem;
}

.toast--success {
  border-color: oklch(0.55 0.18 150);
}

.toast--error {
  border-color: var(--red);
}

.toast-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.toast--success .toast-icon {
  color: oklch(0.55 0.18 150);
}

.toast--error .toast-icon {
  color: var(--red);
}

/* ─── Animations ─── */
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Media Queries ─── */
@media (min-width: 640px) {
  header {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 3rem;
  }

  .logo-domain-main {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .logo-domain-sec {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .logo-num {
    margin-top: -0.75rem;
  }

  .logo-sep {
    font-size: 1.25rem;
    margin: 0 0.375rem;
  }

  .slogan {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  .contacts {
    gap: 1.5rem;
    font-size: 1rem;
  }

  .contacts .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .tab-bar {
    padding: 0 2rem;
  }

  .tab-label {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
  }

  .tab-content {
    padding: 0.5rem 2rem 1.5rem;
  }

  .video-icon-wrap {
    width: 5rem;
    height: 5rem;
  }

  .video-icon-wrap svg {
    width: 2.25rem;
    height: 2.25rem;
  }

  .video-text h3 {
    font-size: 1rem;
  }

  .video-text p {
    font-size: 0.8125rem;
  }

  .live-badge {
    left: 1rem;
    top: 1rem;
    padding: 0.375rem 0.75rem;
  }

  .live-dot {
    width: 1.25rem;
    height: 1.25rem;
  }

  .live-text {
    font-size: 0.75rem;
  }

  .calc-title {
    font-size: 1.25rem;
    gap: 0.5rem;
    padding: 0.75rem 0 0.5rem;
  }

  .calc-title svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .calc-body {
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
  }

  .calc-label {
    gap: 0.375rem;
    font-size: 0.875rem;
  }

  .calc-label svg {
    width: 1rem;
    height: 1rem;
  }

  .tooltip-icon {
    width: 0.875rem;
    height: 0.875rem;
  }

  .counter {
    gap: 1rem;
  }

  .counter-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .counter-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .counter-value {
    font-size: 1.25rem;
  }

  .sub-divider {
    margin: 0.75rem 0;
  }

  .archive-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .total-block {
    padding: 0.75rem 1rem;
  }

  .total-label {
    font-size: 0.875rem;
  }

  .total-value {
    font-size: 1.25rem;
  }

  .contact-box {
    padding: 0.75rem 1rem;
  }

  .contact-text {
    font-size: 1rem;
  }

  .contact-input {
    height: 2.5rem;
    font-size: 0.875rem;
  }

  .contact-send {
    width: 2.5rem;
    height: 2.5rem;
  }

  .contact-send svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .card-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .card-item {
    gap: 0.75rem;
  }

  .card-item-text {
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .unified-block {
    flex-direction: row;
    align-items: stretch;
  }

  .divider-h {
    display: none;
  }

  .divider-v {
    display: block;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary-20), transparent);
  }

  .calc-block {
    padding: 1rem;
    flex: 0 0 19rem;
    width: 19rem;
  }

  .video-area {
    border-radius: 0.75rem 0 0 0.75rem;
    min-height: unset;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .tooltip-wrap .tooltip-text {
    white-space: normal;
    width: max-content;
    max-width: min(16rem, calc(100vw - 2rem));
    text-align: center;
  }
}

@media (max-width: 820px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .logo-domain-main {
    font-size: 1.75rem;
    line-height: 2rem;
  }

  .logo-domain-sec {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .logo-num {
    font-size: 0.6em;
    margin-top: -0.5rem;
  }

  .contacts {
    gap: 0.75rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contacts a {
    padding: 0.2rem 0.4rem;
  }

  .cards-grid-2,
  .cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .card-item-text {
    font-size: 0.875rem;
  }

  .card-title {
    font-size: 1rem;
  }
}