.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.logo__name {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.logo__note {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.logo--brand {
  gap: 4px;
}

.logo__wordmark {
  display: block;
  flex: none;
  width: 126px;
  height: 29px;
  overflow: visible;
  color: inherit;
}

.logo--stacked {
  gap: 6px;
}

.logo__stacked-word {
  display: block;
  flex: none;
  width: 126px;
  height: 29px;
  overflow: visible;
  color: inherit;
}

.logo__descriptor {
  color: inherit;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.site-header .bb-logo__ball {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: site-logo-ball 3.4s infinite;
  will-change: transform;
}

@keyframes site-logo-ball {
  0%,
  7% {
    transform: translateY(0) scale(1, 1);
    animation-timing-function: cubic-bezier(0.45, 0, 0.9, 0.55);
  }

  27% {
    transform: translateY(25px) scale(0.98, 1.04);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  }

  30% {
    transform: translateY(25px) scale(1.12, 0.84);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  }

  43% {
    transform: translateY(0) scale(0.96, 1.05);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  }

  50%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .bb-logo__ball {
    animation: none;
  }
}

.logo--display {
  gap: var(--space-2);
}

.logo--display .logo__name {
  font-size: clamp(56px, 12vw, 88px);
}

.logo--display .logo__note {
  margin-top: var(--space-1);
  font-size: clamp(16px, 2vw, 20px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-5);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  min-width: 0;
}

.site-header__nav a {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--color-success);
}

.header-cta {
  display: none;
}

.burger {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-left: auto;
  padding: 0;
  border: 2px solid var(--color-accent-strong);
  border-radius: 14px;
  background: transparent;
  color: var(--color-text);
}

.burger__glyph {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.burger__glyph::before,
.burger__glyph::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.burger__glyph::before {
  top: -6px;
}

.burger__glyph::after {
  top: 6px;
}

.burger[aria-expanded="true"] .burger__glyph {
  background: transparent;
}

.burger[aria-expanded="true"] .burger__glyph::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger__glyph::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .burger__glyph,
  .burger__glyph::before,
  .burger__glyph::after {
    transition: transform 0.15s ease, top 0.15s ease, background 0.15s ease;
  }
}

.site-menu {
  position: fixed;
  z-index: 30;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6) var(--gutter);
  overflow: auto;
  background: var(--color-bg);
}

.site-menu > nav,
.site-menu__contacts {
  width: min(var(--container), 100%);
}

.site-menu[hidden] {
  display: none;
}

.site-menu__list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu__list a {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
}

.site-menu__list a:hover {
  color: var(--color-success);
}

.site-menu__cta {
  margin-top: var(--space-5);
  justify-self: start;
}

.site-menu__contacts {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: none;
  background-color: currentColor;
  mask-image: var(--icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.icon-court { --icon: url("../img/icons/court.svg?v=7"); }
.icon-paddle { --icon: url("../img/icons/paddle.svg?v=7"); }
.icon-ball { --icon: url("../img/icons/ball.svg?v=7"); }
.icon-clock { --icon: url("../img/icons/clock.svg?v=7"); }
.icon-serve { --icon: url("../img/icons/serve.svg?v=7"); }
.icon-kitchen { --icon: url("../img/icons/kitchen.svg?v=7"); }
.icon-score { --icon: url("../img/icons/score.svg?v=7"); }
.icon-percent { --icon: url("../img/icons/percent.svg?v=7"); }
.icon-sun { --icon: url("../img/icons/sun.svg?v=7"); }
.icon-pair { --icon: url("../img/icons/pair.svg?v=7"); }
.icon-phone { --icon: url("../img/icons/phone.svg?v=7"); }
.icon-mail { --icon: url("../img/icons/mail.svg?v=7"); }
.icon-pin { --icon: url("../img/icons/pin.svg?v=7"); }
.icon-car { --icon: url("../img/icons/car.svg?v=1"); }
.icon-parking { --icon: url("../img/icons/parking.svg?v=1"); }
.icon-locker { --icon: url("../img/icons/locker.svg?v=1"); }
.icon-copy { --icon: url("../img/icons/copy.svg?v=1"); }

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-row .icon {
  width: 18px;
  height: 18px;
}

.site-menu__contacts a {
  font-weight: 700;
  text-decoration: none;
}

.site-menu__contacts a:hover {
  color: var(--color-success);
}

.site-menu__address {
  color: var(--color-text-soft);
}

@media (min-width: 960px) {
  .burger {
    display: none;
  }

  .site-header__nav,
  .header-cta {
    display: flex;
  }

  body.is-menu-open .burger {
    display: grid;
  }

  body.is-menu-open .site-header__nav,
  body.is-menu-open .header-cta {
    display: none;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button--primary {
  background: var(--color-accent);
}

.button--primary:hover:not(:disabled) {
  background: var(--color-accent-strong);
}

.button--secondary {
  border: 1.5px solid var(--color-text);
  background: transparent;
}

.button--secondary:hover:not(:disabled) {
  background: var(--color-surface);
}

.button--ghost {
  min-height: 40px;
  padding-inline: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 959px) {
  .header-cta {
    display: none;
  }
}

.button:focus-visible,
.burger:focus-visible,
.site-header__nav a:focus-visible,
.site-menu__list a:focus-visible,
.input:focus-visible,
.select:focus-visible,
.check input:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field[hidden] {
  display: none;
}

.field label {
  font-size: var(--text-small);
  font-weight: 600;
}

.input,
.select,
textarea.input {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
}

textarea.input {
  height: auto;
  min-height: 120px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23001f3f' d='M1.2 1.2 6 6.2l4.8-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.input::placeholder {
  color: var(--color-text-soft);
}

.field__hint {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13px;
}

.field--error .input,
.field--error .select {
  border-color: var(--color-error);
}

.field--error .field__hint {
  color: var(--color-error);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-text);
}

.check a {
  color: var(--color-success);
  font-weight: 600;
}

.form-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.form-card[hidden],
.note[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
}

.field--wide,
.check,
.form-card .button {
  grid-column: 1 / -1;
}

.form-card .button {
  justify-self: start;
}

.form-foot {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.form-foot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.form-foot .check {
  align-items: center;
}

.form-foot .check input {
  margin-top: 0;
}

.form-foot .button {
  flex: none;
}

.form-foot__offer {
  margin: 0;
  color: var(--color-text-soft);
  font-size: var(--text-small);
}

.form-foot__offer a {
  color: var(--color-success);
  font-weight: 700;
}

.site-footer__legal {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.promo__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.promo__toggle .icon {
  width: 18px;
  height: 18px;
}

.promo__panel {
  margin-top: 12px;
}

.promo__panel[hidden] {
  display: none;
}

.promo__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo__row .input {
  flex: 1;
  min-width: 0;
}

.promo__result {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--color-success);
}

.promo__result.is-error {
  color: var(--color-error);
}

.promo__result[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .promo__row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: var(--space-5);
  }

  .form-foot__row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-foot .button {
    width: 100%;
  }
}

.note {
  padding: 20px var(--space-5);
  border-radius: var(--radius-md);
}

.note h3 {
  margin: 0 0 var(--space-2);
  font-size: 20px;
}

.note p + p,
.note p + .button {
  margin-top: var(--space-4);
}

.note--success {
  background: var(--color-success-soft);
  color: var(--color-success);
  text-align: center;
}

.note--limit {
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.band {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--color-text);
  color: var(--color-white);
}

.band h3 {
  margin: 0 0 var(--space-3);
  color: var(--color-white);
  font-size: clamp(28px, 4vw, 40px);
}

.band p {
  max-width: 36em;
  color: var(--color-inverse-soft);
}

.band .button {
  margin-top: var(--space-5);
}

.status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.status--new {
  background: #e6eef8;
  color: var(--color-text);
}

.status--done {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status--cancelled {
  background: var(--color-error-soft);
  color: var(--color-error);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 14px var(--space-4);
  text-align: left;
  vertical-align: middle;
}

.table-wrap th {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-wrap td {
  border-bottom: 1px solid var(--color-border);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  margin-top: var(--space-8);
  padding: var(--space-7) 0 var(--space-6);
  background: var(--color-surface);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: var(--space-6);
  align-items: start;
}

.site-footer__org {
  font-weight: 700;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-success);
}

.site-footer .logo:hover {
  color: var(--color-text);
}

.site-footer__contacts {
  display: grid;
  gap: 6px;
}

.site-footer__copy {
  margin-top: var(--space-6);
  color: var(--color-text-soft);
  font-size: var(--text-small);
}

.rules-more {
  margin-top: var(--space-5);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-success);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.rules-more:hover {
  color: var(--color-text);
}

.rules-dialog {
  display: none;
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 920px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-bg-raised);
  color: var(--color-text);
  box-shadow: 0 24px 80px rgba(0, 31, 63, 0.28);
}

.rules-dialog[open] {
  display: flex;
}

.rules-dialog::backdrop {
  background: rgba(0, 31, 63, 0.55);
}

.rules-dialog__panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.rules-dialog__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.section .rules-dialog h2,
.rules-dialog h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.rules-dialog .prose h2 {
  margin: var(--space-6) 0 var(--space-3);
  font-size: 28px;
}

.rules-dialog .prose h2:first-child {
  margin-top: var(--space-5);
}

.rules-dialog__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.rules-dialog__close:hover {
  background: var(--color-accent);
}

.rules-dialog__body {
  min-height: 0;
  overflow: auto;
  padding: var(--space-2) var(--space-5) var(--space-6);
}

@media (max-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .rules-dialog {
    width: min(760px, calc(100vw - 16px));
  }

  .rules-dialog__bar,
  .rules-dialog__body {
    padding-inline: var(--space-4);
  }
}

/* Компоненты дизайн-системы */

.button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.button--with-icon {
  gap: 9px;
}

.button--with-icon .icon {
  width: 18px;
  height: 18px;
}

.button--light {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--color-white);
}

.button--light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.switch {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.switch__track {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  margin-top: 2px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 31, 63, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch input:checked + .switch__track {
  border-color: var(--color-text);
  background: var(--color-text);
}

.switch input:checked + .switch__track::after {
  transform: translateX(20px);
  background: var(--color-accent);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.switch input:disabled + .switch__track {
  opacity: 0.45;
}

.switch input:disabled ~ .switch__text {
  opacity: 0.55;
}

.switch:has(input:disabled) {
  cursor: not-allowed;
}

.switch__text {
  display: grid;
  gap: 2px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.switch__hint {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  gap: 2px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segmented__item {
  position: relative;
  flex: none;
}

.segmented__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.segmented__item span {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.segmented__item input:checked + span {
  background: var(--color-text);
  color: var(--color-white);
}

.segmented__item input:focus-visible + span {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.segmented__item input:disabled + span {
  opacity: 0.4;
  cursor: not-allowed;
}

.chip.is-active {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-white);
}

.chip.is-active:hover {
  background: var(--color-text);
}

.list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 22px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-strong);
}

.list--ordered {
  counter-reset: pickl-list;
}

.list--ordered li {
  padding-left: 29px;
}

.list--ordered li::before {
  counter-increment: pickl-list;
  content: counter(pickl-list);
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 10px;
  font-weight: 800;
}

.list--check li {
  padding-left: 28px;
}

.list--check li::before {
  content: "✓";
  top: 0.08em;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 800;
}

.list--divided {
  gap: 0;
}

.list--divided li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  padding-left: 0;
}

.list--divided li:first-child {
  border-top: 1px solid var(--color-border);
}

.list--divided li::before {
  display: none;
}

.list--divided li > span:first-child {
  color: var(--color-text-soft);
  font-size: 13px;
}

.list--divided li > span:last-child,
.list--divided li > a {
  font-weight: 700;
  text-align: right;
}

.table-wrap .is-numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.input:disabled,
.select:disabled,
textarea.input:disabled {
  background: var(--color-surface);
  color: var(--color-text-soft);
  cursor: not-allowed;
  opacity: 1;
}

.field--success .input,
.field--success .select {
  border-color: var(--color-success);
}

.field--success .field__hint {
  color: var(--color-success);
}

.text-link {
  color: var(--color-success);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  .switch__track,
  .switch__track::after,
  .segmented__item span {
    transition: none;
  }
}

/* Копирование email в подвале */

.contact-row--email {
  flex-wrap: wrap;
}

.contact-row--email > a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-copy {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.email-copy:hover {
  border-color: var(--color-text);
  background: var(--color-white);
  color: var(--color-text);
}

.email-copy:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.email-copy .icon {
  width: 13px;
  height: 13px;
}

.email-copy.is-copied {
  border-color: var(--color-success);
  background: var(--color-success-soft);
  color: var(--color-success);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .email-copy {
    transition: none;
  }
}

/* Плашка согласия на куки */

.cookie-consent {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(900px, calc(100vw - 32px));
  padding: 17px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 18px 50px rgba(0, 31, 63, 0.18);
  transform: translateX(-50%);
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__kicker {
  margin: 0 0 4px;
  color: var(--color-success);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.05;
}

.cookie-consent p:not(.cookie-consent__kicker) {
  max-width: 62ch;
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-consent a {
  color: var(--color-success);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent a:hover {
  color: var(--color-text);
}

.cookie-consent__form {
  flex: none;
}

.cookie-consent__form .button {
  min-width: 120px;
}

@media (max-width: 700px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    width: auto;
    padding: 15px 16px;
    transform: none;
  }

  .cookie-consent h2 {
    font-size: 19px;
  }

  .cookie-consent__form {
    margin-top: 12px;
  }

  .cookie-consent__form .button {
    width: 100%;
  }
}

@media print {
  .cookie-consent {
    display: none;
  }
}
