/* подвал: отделён от страницы фоном и скруглением, без линий */
.footer {
  padding: clamp(56px, 6vw, 96px) var(--gutter) 32px;
  border-radius: 32px 32px 0 0;
  background: #06101F;
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 56px);
}

.footer__logo {
  display: inline-block;
}

/* здесь логотип крупный — надписи в нём читаются */
.footer__logo-image {
  width: auto;
  height: clamp(96px, 9vw, 132px);
}

.footer__slogan {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.footer__title {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  font-size: 15px;
  color: rgba(246, 250, 253, 0.82);
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--color-snow);
}

.footer__link--large {
  font-family: var(--font-display);
  font-size: 18px;
  white-space: nowrap;
  color: var(--color-snow);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* круглые кнопки соцсетей: заливка при наведении, как у контурных кнопок */
.footer__social {
  width: 52px;
  height: 52px;
  padding: 0;
}

.footer__social-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.footer__social-dot {
  fill: currentColor;
  stroke: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  margin-top: clamp(48px, 6vw, 88px);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal-link {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.footer__legal-link:hover {
  color: var(--color-snow);
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* кнопка «наверх» */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-night);
  box-shadow: 0 10px 30px rgba(0, 3, 10, 0.45);
  color: var(--color-snow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 16px;
  transition: opacity 0.4s, visibility 0.4s, translate 0.4s var(--ease-out), bottom 0.4s var(--ease-out),
    background-color 0.3s;
}

.to-top--visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.to-top:hover {
  background: var(--color-deep);
}

/* приподнимается над плашкой с итогом конфигуратора (планшет и телефон) */
.to-top--raised {
  bottom: 88px;
}

.to-top__progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  rotate: -90deg;
}

.to-top__track,
.to-top__bar {
  fill: none;
  stroke-width: 1.5;
}

.to-top__track {
  stroke: var(--color-line);
}

/* js двигает stroke-dashoffset от 1 до 0 по мере прокрутки */
.to-top__bar {
  stroke: var(--color-mist);
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.to-top__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}

.to-top:hover .to-top__icon {
  transform: translateY(-3px);
}

