﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Базовые настройки */
body {
  font-family: 'GT Eesti Pro Display', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f2f8fc;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/*Настройка логотипа*/
.logo img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo img:hover {
  transform: scale(1.04);
}

/* менюшка */
.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #5494cf;
  width: 100%;
  padding: 0 3%;
  position: sticky;
  top: 0;
  z-index: 1000;
  cursor: pointer;
}

.nav-menu .dropdown ul li a {
  display: block;
  font-family: 'GT Eesti Pro Display', sans-serif;
  color: #1A3055;
  text-decoration: none;
  font-size: calc(12px + (18+12)*((100vw-350px)/(1600-300)));
  padding: 5% 0 5% 10%;
  border-radius: 15px;
}

.nav-menu .dropdown ul li a:hover {
  background-color: #cde3f7;

}

.nav-menu .dropdown ul li ul {
  flex-direction: column;
  position: absolute;
  right: 0;
  width: 18rem;
  background-color: #e8f3fc;
  opacity: 0;
  border-radius: 15px;
  transition: 0.3s;
  margin-top: 45%;
  visibility: hidden;
}

/* Активное меню (открытое по клику) */
.nav-menu .dropdown ul li ul.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-menu .dropdown ul li {
  position: relative;
  list-style: none;
}



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

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  margin-left: 4px;
  font-size: calc(20px + (35+20)*((100vw-350px)/(1600-300)));
}

.menu-item {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  text-decoration: none;
  color: #f8f3e7;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-name {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f8f3e7;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: bold;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.brand-subtitle {
  color: #f8f3e7;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1;
  white-space: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin-left: -4px;
  border: 0;
  border-radius: 50%;
  background-color: #858b94;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle::before {
  content: "☾";
  font-size: 18px;
  line-height: 1;
}

.theme-toggle:hover {
  background-color: #6e747c;
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(248, 243, 231, 0.85);
  outline-offset: 3px;
}

body.theme-dark {
  background-color: #121923;
  color: #e7edf5;
}

body.theme-dark .nav-menu,
body.theme-dark .site-footer {
  background-color: #243140;
}

body.theme-dark .nav-menu .dropdown ul li ul {
  background-color: #1b2430;
}

body.theme-dark .nav-menu .dropdown ul li a,
body.theme-dark .brand-name,
body.theme-dark .brand-subtitle,
body.theme-dark .menu-item,
body.theme-dark .mail,
body.theme-dark .footer-nav a,
body.theme-dark .footer-contact a,
body.theme-dark .footer-brand-block h3,
body.theme-dark .footer-brand-block p,
body.theme-dark .footer-bottom p,
body.theme-dark .collection-card-link,
body.theme-dark .collection-intro p,
body.theme-dark .card p {
  color: #e7edf5;
}

body.theme-dark .nav-menu .dropdown ul li a:hover {
  background-color: #334254;
}

body.theme-dark .collection-list,
body.theme-dark .card,
body.theme-dark .mail {
  background-color: #1b2430;
}

body.theme-dark .collection-card-header,
body.theme-dark .card p {
  border-color: #3a4858;
}

body.theme-dark .back-to-top {
  background-color: #334254;
}

body.theme-dark .back-to-top:hover {
  background-color: #415164;
}

body.theme-dark .theme-toggle {
  background-color: #a0a6ae;
  color: #1b2430;
}

body.theme-dark .theme-toggle::before {
  content: "☀";
}

body.theme-dark iframe {
  filter: saturate(0.9) brightness(0.88);
}


.collection-list {
  background-color: #cde3f7;
  border-radius: 30px;
  padding: 48px 40px;
  margin: 5%;
  height: auto;
}

.collection-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collection-card-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.collection-card-link {
  color: #6b7fa7;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 600;
  font-size: 24px;
  text-decoration: none;
  background: transparent;
  transition: opacity 0.2s;
}



iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(320px, 42vw, 460px);
  margin: 20px auto 0;
  border: 0;
  border-radius: 24px;
}

.image-container {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vw, 500px);
  margin: 0 auto 5%;
  overflow: hidden;
}

.photo-shape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(40%);
}

.text-overlay {
  position: absolute;
  top: 5%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5% 4% 8%;
  flex-direction: column;
  gap: 20px;
}

.text-overlay h1 {
  color: #f2f8fc;
  font-family: 'GT Eesti Pro Display', Arial, sans-serif;
  font-size: 75pt;
  font-weight: 600;
  margin: 0;
  max-width: 80%;
  text-align: center;
  line-height: 0.95;
  text-wrap: balance;
}

.btn_vesh {
  background-color: #E6A15C;
  border-radius: 20px;
  color: #EAF0F8;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
  margin-top: 24px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn_vesh:hover {
  background-color: #d48a3a;
  transform: scale(1.04);
}

.c_vesh {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  width: 31%;
  margin-bottom: 20px;
  background-color: #fffaf7;
  border-radius: 26px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.collection-card-header {
  border-bottom: 1px solid #e7ddd3;
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.collection-card-header a {
  display: block;
  margin-top: 0;
}

.card p {
  margin-top: 8px;
  font-size: 14pt;
  color: #2c3e4e;
  line-height: 1.4;
  text-align: left;
  border-top: 1px dashed #bdd4e8;
  padding-top: 8px;
  margin-bottom: 4px;
}

.card p1 {
  margin-top: 8px;
  font-size: 14pt;
  color: #2c3e4e;
  line-height: 1.4;
  text-align: left;
}

.btn_card {
  background-color: #ff8d5c;
  color: #fffcfc;
  min-width: 128px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 20px;
  text-decoration: none;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  align-self: flex-end;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn_card:hover {
  transform: scale(1.04);
}

.card p:last-of-type {
  margin-bottom: auto;
  /* Проталкивает кнопку вниз */
}


dialog {
  margin: 5% auto 0;
  padding: 0;
  width: min(92%, 57.5rem);
  max-height: 86vh;
  border: none;
  position: relative;
  background-color: #e3f2ff;
  border-radius: 28px;
  outline: none;
  box-shadow: 0 28px 60px rgba(26, 48, 85, 0.2);
  overflow: auto;
}

dialog:not([open]),
.ColesoDialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: rgba(26, 48, 85, 0.32);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  right: 20px;
  top: 18px;
  cursor: pointer;
  font-family: 'GT Eesti Pro Display', sans-serif;
  text-decoration: none;
  color: #1A3055;
  border: none;
  background: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(26, 48, 85, 0.12);
}

.collection-help-button {
  position: fixed;
  right: 32px;
  bottom: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #5494cf;
  color: transparent;
  text-decoration: none;
  border-radius: 50%;
  font-family: 'GT Eesti Pro Display', sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  z-index: 1000;
}

.collection-help-button::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 4px;
  height: 18px;
  background-color: #f8f3e7;
  border-radius: 999px;
}

.collection-help-button::after {
  content: "";
  position: absolute;
  bottom: 16px;
  width: 4px;
  height: 4px;
  background-color: #f8f3e7;
  border-radius: 50%;
}

.collection-help-button:hover {
  background-color: #467fb2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

dialog {
  margin: 5% auto 0;
  padding: 0;
  width: min(92%, 57.5rem);
  max-height: 86vh;
  border: none;
  background-color: #e3f2ff;
  border-radius: 28px;
  outline: none;
  box-shadow: 0 28px 60px rgba(26, 48, 85, 0.2);
  overflow: auto;
}



.dialog-close:focus-visible,
.community-help-button:focus-visible,
.upload-btn-veshi-pdf:focus-visible {
  outline: 3px solid #EAF0F8;
  outline-offset: 4px;
}

.Dowload {

  width: 70%;
  height: auto;
  z-index: 8;

}

.upload-btn-veshi-pdf {
  position: absolute;
  top: 18px;
  right: 72px;
  cursor: pointer;
  font-family: 'GT Eesti Pro Display', sans-serif;
  color: #1A3055;
  border: none;
  background: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(26, 48, 85, 0.12);
  z-index: 7;

}

.upload-btn-veshi-pdf:hover {
  background-color: #f8f3e7;
}


dialog::backdrop {
  background: rgba(26, 48, 85, 0.32);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
  font-family: 'GT Eesti Pro Display', sans-serif;
  text-decoration: none;
  color: #1A3055;
  border: none;
  background: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(26, 48, 85, 0.12);
}




.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #5494cf;
  color: transparent;
  text-decoration: none;
  border-radius: 50%;
  font-family: 'GT Eesti Pro Display', sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  z-index: 1000;
}

.back-to-top::before,
.back-to-top::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 14px;
  height: 14px;
  border-top: 10px solid #f8f3e7;
  border-left: 10px solid #f8f3e7;
  transform: rotate(45deg);
}

.back-to-top::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 4px;
  height: 18px;
  background-color: #f8f3e7;
  border-radius: 999px;
}

.back-to-top:hover {
  background-color: #467fb2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid #EAF0F8;
  outline-offset: 4px;
}

.site-footer {
  margin-top: 56px;
  padding: 32px 40px 24px;
  background-color: #5494cf;
  color: #f8f3e7;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow-x: clip;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand-block h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1;
}

.footer-brand-block p,
.footer-contact p,
.footer-bottom p {
  font-size: 16px;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.footer-nav a,
.footer-contact a {
  color: #f8f3e7;
  text-decoration: none;
}

.footer-nav a {
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-nav a:hover {
  transform: scale(1.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 243, 231, 0.28);
}

@media (max-width: 1200px) {
  .nav-menu {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-brand,
  .nav-links,
  .mail {
    justify-content: center;
  }

  .card {
    width: calc(50% - 10px);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .image-container {
    height: clamp(280px, 72vw, 380px);
  }

  .text-overlay {
    top: 0;
    padding: 12% 18px 12%;
    justify-content: center;
    gap: 14px;
  }

  .text-overlay h1 {
    font-size: clamp(34px, 7vw, 52px);
    max-width: 9ch;
    line-height: 0.98;
  }

  .btn_vesh {
    font-size: 16px;
    padding: 10px 18px;
    white-space: normal;
    text-align: center;
    max-width: 320px;
  }

  .nav-menu {
    padding: 18px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-subtitle,
  .menu-item,
  .mail {
    font-size: 16px;
  }


  dialog {
    padding: 0;
  }

  .collection-guide {
    padding: 82px 20px 22px;
  }

  .dialog-close,
  .upload-btn-veshi-pdf {
    top: 14px;
    width: 40px;
    height: 40px;
    z-index: 4;
  }

  .dialog-close {
    right: 14px;
  }

  .upload-btn-veshi-pdf {
    right: 62px;
  }

  .collection-guide-grid,
  .collection-guide-steps,
  .guide-check-items {
    grid-template-columns: 1fr;
  }

  .collection-help-button {
    right: 32px;
    bottom: 95px;
  }

  .nav-menu {
    padding: 18px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-subtitle,
  .menu-item,
  .mail {
    font-size: 16px;
  }

  .collection-list {
    padding: 28px 20px;
  }

  .card {
    width: 100%;
    margin-bottom: 0;
    padding: 20px;
  }

  .collection-card-link {
    font-size: 22px;
  }

  iframe {
    height: 320px;
    border-radius: 20px;
  }

  .back-to-top {
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .back-to-top::before {
    top: 16px;
    width: 12px;
    height: 12px;
    border-top-width: 3px;
    border-left-width: 3px;
  }

  .back-to-top::after {
    top: 23px;
    width: 3px;
    height: 16px;
  }

  .site-footer {
    padding: 28px 20px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .image-container {
    height: 240px;
  }

  .text-overlay h1 {
    font-size: 36pt;
  }

  .card {
    width: 100%;
    text-align: left;
  }

  .collection-card-header {
    justify-content: flex-start;
  }

  .card p {
    text-align: left;
  }

  .btn_card {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }
}

/*оформление памятки*/
.collection-guide {
  padding: 38px 34px 30px;
}

.collection-guide-header {
  padding: 0 4px 24px;
  text-align: center;
}

.collection-guide-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background-color: #ffffff;
  color: #5494cf;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-guide-header h3 {
  margin: 0 0 14px;
  color: #5494cf;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.16;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.collection-guide-lead {
  margin: 0;
  color: #2c3e4e;
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
}

.collection-guide-grid,
.collection-guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.guide-panel {
  padding: 22px 20px;
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(84, 148, 207, 0.14);
}

.guide-panel h4,
.guide-checklist h4 {
  margin: 0 0 14px;
  color: #5494cf;
  font-size: 24px;
  line-height: 1.1;
}

.guide-list,
.guide-steps-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li,
.guide-steps-list li {
  position: relative;
  padding-left: 34px;
  color: #2c3e4e;
  font-size: 15px;
  line-height: 1.55;
  text-align: justify;
}

.guide-list li::before,
.guide-steps-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.guide-list--good li::before {
  content: "+";
  background-color: #5494cf;
  color: #f8f3e7;
}

.guide-list--bad li::before {
  content: "x";
  background-color: #ff8d5c;
  color: #ffffff;
}

.guide-steps-list {
  counter-reset: guide-step;
}

.guide-steps-list li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  background-color: #ffffff;
  color: #5494cf;
  box-shadow: inset 0 0 0 1px rgba(84, 148, 207, 0.24);
}

.guide-checklist {
  margin-top: 8px;
  padding: 24px 22px;
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(84, 148, 207, 0.18);
}

.guide-check-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.guide-check-items p {
  position: relative;
  margin: 0;
  padding: 14px 14px 14px 48px;
  border-radius: 18px;
  background-color: #ffffff;
  color: #2c3e4e;
  font-size: 14px;
  line-height: 1.45;
  text-align: justify;
}

.guide-check-items p::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #5494cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.guide-note {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: 20px;
  background-color: #ffffff;
  color: #1A3055;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-align: justify;
}

.dialog-close:hover {
  background-color: #f8f3e7;
}

.dialog-close:focus-visible,
.collection-help-button:focus-visible {
  outline: 3px solid #EAF0F8;
  outline-offset: 4px;
}




.coleso-header-btn {
  background: linear-gradient(135deg, #ff8d5c 0%, #ff6b3d 100%);
  border: none;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  font-family: 'GT Eesti Pro Display', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-right: 16px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coleso-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 109, 61, 0.4);
}

.ColesoDialog {
  margin: auto;
  padding: 0;
  height: auto;
  width: auto;
  max-width: 90vw;
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none;
  overflow: visible;
}

.ColesoDialog::backdrop {
  background: rgba(26, 48, 85, 0.5);
  backdrop-filter: blur(5px);
}

.dialog-coleso-close {
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
  font-family: 'GT Eesti Pro Display', sans-serif;
  color: #1A3055;
  border: none;
  background: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(26, 48, 85, 0.12);
}

/* общие настройки страницы */
.tipobody {

  margin-top: 1%;
  /* подключаем сетку */
  display: grid;
  /* ставим всё по центру */
  place-items: center;
  /* если что-то не помещается на своё место — скрываем то, что не поместилось */
  overflow: hidden;
  box-sizing: border-box;
}

/* общий блок для всех элементов */
.deal-wheel {
  /* задаём переменные блока */
  /* размеры колеса */
  --size: clamp(230px, 72vmin, 700px);
  /* настройки яркости и заливки фона секторов */
  --lg-hs: 0 3%;
  --lg-stop: 50%;
  --lg: linear-gradient(hsl(var(--lg-hs) 0%) 0 var(--lg-stop),
      hsl(var(--lg-hs) 20%) var(--lg-stop) 100%);
  /* добавляем позиционирование относительно других элементов */
  position: relative;
  /* подключаем сетку */
  display: grid;
  grid-gap: calc(var(--size) / 20);
  /* выравниваем содержимое блока по центру */
  align-items: center;
  /* задаём имена областей внутри сетки */
  grid-template-areas:
    "spinner"
    "trigger";
  /* устанавливаем размер шрифта */
  font-size: calc(var(--size) / 23);
}

/* всё, что относится ко внутренним элементам главного блока, будет находиться в области сетки с названием spinner */
.deal-wheel>* {
  grid-area: spinner;
}

/* сам блок и кнопка будут находиться в области сетки с названием trigger и будут выровнены по центру */
.deal-wheel .btn-spin {
  grid-area: trigger;
  justify-self: center;
  background-color: #ff8d5c;

  transition: transform 0.2s, box-shadow 0.2s;
}

.deal-wheel .btn-spin:hover {
  transform: scale(1.04);
}

/* сектор колеса */
.spinner {
  /* добавляем относительное позиционирование */
  position: relative;
  /* подключаем сетку */
  display: grid;
  /* выравниваем всё по центру */
  align-items: center;
  /* добавляем элемент в сетку */
  grid-template-areas: "spinner";
  /* устанавливаем размеры */
  width: var(--size);
  height: var(--size);
  /* поворачиваем элемент  */
  transform: rotate(calc(var(--rotate, 25) * 1deg));
  /* рисуем круглую обводку, а всё, что не поместится, — будет скрыто за кругом */
  border-radius: 50%;
}

/* всё, что внутри этого блока, будет находиться в области сетки с названием spinner */
.spinner * {
  grid-area: spinner;
}

/* текст на секторах */
.prize {
  /* включаем «гибкую» вёрстку */
  display: flex;
  align-items: center;
  /* задаём отступы от краёв блока */
  padding: 0 calc(var(--size) / 6) 0 calc(var(--size) / 20);
  /* устанавливаем размеры */
  width: 50%;
  height: 50%;
  /* устанавливаем координаты, относительно которых будем вращать текст */
  transform-origin: center right;
  /* поворачиваем текст */
  transform: rotate(var(--rotate));
  /* запрещаем пользователю выделять мышкой текст на секторах */
  user-select: none;
}

.prize .text {
  display: block;
  max-width: calc(var(--size) / 4.2);
  font-size: clamp(11px, calc(var(--size) / 19), 28px);
  line-height: 1.05;
  white-space: normal;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* язычок */
.ticker {
  /* добавляем относительное позиционирование */
  position: relative;
  /* устанавливаем размеры */
  left: calc(var(--size) / -15);
  width: calc(var(--size) / 10);
  height: calc(var(--size) / 20);
  /* фон язычка */
  background: #ff8d5c;

  /* делаем так, чтобы язычок был выше колеса */
  z-index: 1;
  /* форма язычка */
  clip-path: polygon(20% 0, 100% 50%, 20% 100%, 0% 50%);
  /* устанавливаем точку, относительно которой будет вращаться язычок при движении колеса */
  transform-origin: center left;
}

/* кнопка запуска колеса */
.btn-spin {
  color: white;
  background: black;
  border: none;
  /* берём размер шрифта такой же, как в колесе */
  font-size: inherit;
  /* добавляем отступы от текста внутри кнопки */
  padding: 0.9rem 2rem 1rem;
  /* скругляем углы */
  border-radius: 0.5rem;
  /* меняем внешний вид курсора над кнопкой на руку*/
  cursor: pointer;
  min-height: 48px;
  width: min(72vw, 220px);
  text-align: center;
}

/* если кнопка нажата и неактивна */
.btn-spin:disabled {
  /* меняем внешний вид курсора */
  cursor: progress;
  /* делаем кнопку полупрозрачной */
  opacity: 0.25;
}

/* анимация вращения */
.is-spinning .spinner {
  transition: transform 3s cubic-bezier(0.1, -0.01, 0, 1);
}

/* анимация движения язычка */
.is-spinning .ticker {
  animation: tick 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* эффект, когда колесо задевает язычок при вращении */
@keyframes tick {
  40% {
    /* чуть поворачиваем язычок наверх в середине анимации */
    transform: rotate(-12deg);
  }
}

.prize .text {
  color: #ffffff;
  /* Белый цвет */

}

/* анимируем выпавший сектор */
.prize.selected .text {
  /* делаем текст белым */
  color: #0e4a82;

  /* настраиваем длительность анимации */
  animation: selected 800ms ease;
}

/* настраиваем анимацию текста на выпавшем секторе по кадрам */
@keyframes selected {

  /* что происходит на 25% от начала анимации */
  25% {
    /* увеличиваем текст в 1,25 раза */
    transform: scale(1.25);
    /* добавляем тексту тень */
    text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
  }

  40% {
    transform: scale(0.92);
    text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
  }

  60% {
    transform: scale(1.02);
    text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
  }

  75% {
    transform: scale(0.98);
  }

  85% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .nav-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 10px;
    column-gap: 12px;
    padding: 10px 12px;
  }

  .nav-brand {
    min-width: 0;
    gap: 8px;
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .dropdown {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
  }

  .brand-text {
    min-width: 0;
    margin-left: 0;
  }

  .brand-name,
  .brand-subtitle {
    white-space: normal;
  }

  .brand-name {
    font-size: clamp(18px, 5vw, 24px);
  }

  .brand-subtitle {
    font-size: clamp(12px, 3vw, 14px);
  }

  .nav-menu .dropdown ul li ul {
    width: min(280px, calc(100vw - 24px));
    margin-top: 12px;
  }

  .collection-list {
    margin: 20px 12px;
    padding: 24px 18px;
  }

  .coleso-header-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
    margin-right: 0;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    column-gap: 10px;
  }

  .nav-brand {
    min-width: 0;
  }

  .dropdown {
    justify-self: end;
  }

  .nav-menu .dropdown ul li ul {
    position: fixed;
    top: 72px;
    right: 10px;
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    margin-top: 0;
    padding: 8px;
    box-shadow: 0 18px 36px rgba(26, 48, 85, 0.22);
    z-index: 2000;
  }

  .logo img {
    width: 52px;
    height: 52px;
  }

  .text-overlay h1 {
    font-size: clamp(28px, 10vw, 52px);
  }

  .btn_vesh,
  .coleso-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin-right: 0;
  }

  .coleso-header-btn {
    align-self: stretch;
  }

  .image-container {
    height: clamp(260px, 72vw, 340px);
    margin-bottom: 24px;
  }

  .text-overlay {
    top: 0;
    padding: 8% 5% 10%;
    gap: 12px;
  }

  .btn_vesh {
    width: min(92%, 340px);
    max-width: 92%;
    padding: 10px 4.5%;
    margin-top: 2%;
    font-size: clamp(14px, 4vw, 16px);
  }

  dialog,
  .ColesoDialog {
    width: min(92vw, 760px);
    max-width: none;
  }

  .collection-guide {
    padding: 74px 14px 18px;
  }

  .guide-panel,
  .guide-checklist,
  .guide-note {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .guide-panel h4,
  .guide-checklist h4 {
    font-size: 20px;
  }

  .guide-list li,
  .guide-steps-list li,
  .guide-check-items p,
  .guide-note,
  .collection-guide-lead {
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  .collection-guide-header h3 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .dialog-close,
  .upload-btn-veshi-pdf {
    top: 12px;
    width: 38px;
    height: 38px;
  }

  .dialog-close {
    right: 12px;
  }

  .upload-btn-veshi-pdf {
    right: 56px;
  }

  .ColesoDialog {
    position: relative;
    width: min(96vw, 420px);
    max-width: min(96vw, 420px);
    min-height: min(82vh, 560px);
    padding: 74px 0 20px;
    display: grid;
    align-content: center;
  }

  .tipobody {
    margin-top: 0;
    padding: 12px 8px 8px;
    overflow: visible;
  }

  .dialog-coleso-close {
    top: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
    font-size: 24px;
    z-index: 5;
  }

  .deal-wheel {
    --size: min(82vw, 300px);
    grid-gap: 14px;
  }

  .prize {
    padding: 0 calc(var(--size) / 6.5) 0 calc(var(--size) / 18);
  }

  .prize .text {
    max-width: calc(var(--size) / 4.15);
    font-size: clamp(10px, calc(var(--size) / 20), 17px);
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .btn-spin {
    width: min(74vw, 220px);
    max-width: 220px;
    min-height: 46px;
    padding: 0.85rem 1rem 0.95rem;
  }

  .back-to-top,
  .collection-help-button {
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    bottom: 12px;
  }

  .collection-help-button {
    bottom: 68px;
  }
}

@media (max-width: 768px) {
  dialog {
    width: min(94vw, 640px);
    max-height: 88vh;
  }

  .collection-guide {
    padding: 76px 18px 20px;
    overflow-x: hidden;
  }

  .collection-guide-header {
    padding: 0 0 20px;
  }

  .collection-guide-header h3 {
    font-size: clamp(24px, 5.2vw, 32px);
    max-width: 12ch;
  }

  .collection-guide-lead {
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
  }

  .collection-guide-grid,
  .collection-guide-steps,
  .guide-check-items {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .collection-guide-grid,
  .collection-guide-steps {
    margin-bottom: 14px;
  }

  .guide-panel,
  .guide-checklist,
  .guide-note {
    min-width: 0;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .guide-panel h4,
  .guide-checklist h4 {
    font-size: clamp(18px, 4.4vw, 22px);
    margin-bottom: 12px;
  }

  .guide-list,
  .guide-steps-list {
    gap: 10px;
  }

  .guide-list li,
  .guide-steps-list li {
    padding-left: 30px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    text-wrap: pretty;
    overflow-wrap: anywhere;
  }

  .guide-list li::before,
  .guide-steps-list li::before {
    top: 1px;
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .guide-check-items p {
    padding: 12px 12px 12px 42px;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .guide-check-items p::before {
    left: 12px;
    font-size: 20px;
  }

  .guide-note {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu"
      "wheel wheel";
    align-items: center;
    justify-items: stretch;
    row-gap: 8px;
    column-gap: 8px;
    padding: 8px 10px;
  }

  .nav-brand {
    grid-area: brand;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .theme-toggle {
    display: none;
  }

  .logo {
    width: 44px;
    height: 44px;
  }

  .logo img {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    gap: 2px;
    margin-left: 0;
    min-width: 0;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 16px;
    line-height: 1.05;
    white-space: normal;
  }

  .brand-subtitle {
    font-size: 11px;
    line-height: 1.1;
    white-space: normal;
  }

  .dropdown {
    grid-area: menu;
    justify-self: end;
    align-self: center;
  }

  #menu {
    width: 34px;
    height: 34px;
  }

  .coleso-header-btn {
    grid-area: wheel;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    border-radius: 18px;
  }

  .image-container {
    height: clamp(300px, 92vw, 360px);
  }

  .text-overlay {
    top: 0;
    justify-content: center;
    padding: 20px 16px 24px;
    gap: 12px;
  }

  .text-overlay h1 {
    font-size: clamp(22px, 8.6vw, 32px);
    max-width: 8ch;
    line-height: 1;
  }

  .nav-menu .dropdown ul li ul {
    width: calc(100vw - 20px);
    top: 68px;
  }

  .btn_vesh {
    width: min(94%, 320px);
    max-width: 94%;
    padding: 10px 5%;
    border-radius: 18px;
  }

  .collection-list {
    padding: 18px 12px;
  }

  .collection-card-header {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .collection-card-header img {
    width: 52px;
    height: 52px;
  }

  .collection-card-link {
    font-size: 18px;
  }

  .card {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .card p,
  .card p1 {
    font-size: 15px;
    line-height: 1.45;
  }

  .btn_card {
    width: 100%;
  }

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

  .ColesoDialog {
    max-width: calc(100vw - 16px);
    min-height: min(80vh, 520px);
    padding: 72px 0 18px;
  }

  .collection-guide {
    padding: 72px 12px 16px;
  }

  .collection-guide-header {
    padding-bottom: 16px;
  }

  .collection-guide-header h3 {
    font-size: clamp(20px, 7.2vw, 28px);
    max-width: 10ch;
  }

  .collection-guide-lead {
    font-size: 14px;
    line-height: 1.5;
    max-width: 26ch;
  }

  .guide-panel,
  .guide-checklist,
  .guide-note {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .guide-panel h4,
  .guide-checklist h4 {
    font-size: 17px;
    line-height: 1.15;
  }

  .guide-list li,
  .guide-steps-list li,
  .guide-check-items p,
  .guide-note {
    font-size: 13px;
    line-height: 1.45;
  }

  .guide-list li,
  .guide-steps-list li {
    padding-left: 28px;
  }

  .guide-list li::before,
  .guide-steps-list li::before {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .guide-check-items {
    gap: 10px;
  }

  .guide-check-items p {
    padding: 11px 12px 11px 38px;
  }

  .guide-check-items p::before {
    left: 11px;
    font-size: 18px;
  }

  .dialog-close,
  .upload-btn-veshi-pdf,
  .dialog-coleso-close {
    width: 36px;
    height: 36px;
  }

  .dialog-close,
  .dialog-coleso-close {
    right: 10px;
  }

  .dialog-coleso-close {
    top: 8px;
    font-size: 22px;
  }

  .upload-btn-veshi-pdf {
    right: 52px;
  }

  .tipobody {
    padding: 14px 4px 8px;
  }

  .deal-wheel {
    --size: min(84vw, 280px);
    grid-gap: 12px;
  }

  .prize .text {
    max-width: calc(var(--size) / 4);
    font-size: clamp(9px, calc(var(--size) / 21), 15px);
    line-height: 1;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .btn-spin {
    width: min(78vw, 200px);
    max-width: 200px;
    min-height: 44px;
    padding: 0.8rem 0.9rem 0.9rem;
    font-size: 15px;
  }
}

@media (max-width: 375px) {
  .collection-guide {
    padding: 68px 10px 14px;
  }

  .collection-guide-header h3 {
    font-size: clamp(19px, 7vw, 24px);
  }

  .collection-guide-lead {
    font-size: 13px;
    max-width: 24ch;
  }

  .guide-panel,
  .guide-checklist,
  .guide-note {
    padding: 14px 12px;
  }

  .guide-panel h4,
  .guide-checklist h4 {
    font-size: 16px;
  }

  .guide-list li,
  .guide-steps-list li,
  .guide-check-items p,
  .guide-note {
    font-size: 12.5px;
  }

  .image-container {
    height: 280px;
  }

  .text-overlay {
    padding: 18px 12px 22px;
  }

  .text-overlay h1 {
    font-size: clamp(20px, 8vw, 28px);
    max-width: 7ch;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .coleso-header-btn {
    font-size: 12px;
    padding: 9px 10px;
    min-height: 40px;
  }

  .ColesoDialog {
    min-height: min(78vh, 500px);
    padding-top: 68px;
  }

  .deal-wheel {
    --size: min(82vw, 260px);
    grid-gap: 10px;
  }

  .prize .text {
    max-width: calc(var(--size) / 3.9);
    font-size: clamp(9px, calc(var(--size) / 22), 13px);
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .btn-spin {
    width: min(76vw, 190px);
    min-height: 42px;
    font-size: 14px;
  }

  .collection-list {
    margin: 16px 8px;
    padding: 16px 10px;
  }

  .collection-card-link {
    font-size: 17px;
  }

  .card p,
  .card p1 {
    font-size: 14px;
  }

  .btn_card {
    min-width: 112px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  dialog {
    width: min(95vw, 430px);
    max-width: min(95vw, 430px);
    max-height: 90vh;
    overflow: auto;
  }

  .collection-guide {
    width: 860px;
    max-width: none;
    padding: 38px 34px 30px;
    zoom: 0.62;
    overflow: visible;
  }

  .collection-guide-header {
    padding: 0 4px 24px;
  }

  .collection-guide-header h3 {
    font-size: clamp(24px, 3.2vw, 36px);
    max-width: 30ch;
  }

  .collection-guide-lead {
    max-width: 54ch;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
  }

  .collection-guide-grid,
  .collection-guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
  }

  .guide-panel {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .guide-panel h4,
  .guide-checklist h4 {
    margin-bottom: 14px;
    font-size: 24px;
    line-height: 1.1;
  }

  .guide-list,
  .guide-steps-list {
    gap: 12px;
  }

  .guide-list li,
  .guide-steps-list li {
    padding-left: 34px;
    font-size: 15px;
    line-height: 1.55;
    text-align: justify;
    overflow-wrap: normal;
  }

  .guide-list li::before,
  .guide-steps-list li::before {
    top: 0;
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .guide-checklist {
    margin-top: 8px;
    padding: 24px 22px;
    border-radius: 24px;
  }

  .guide-check-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .guide-check-items p {
    padding: 14px 14px 14px 48px;
    font-size: 14px;
    line-height: 1.45;
    text-align: justify;
    overflow-wrap: normal;
  }

  .guide-check-items p::before {
    left: 14px;
    font-size: 22px;
  }

  .guide-note {
    margin: 18px 0 0;
    padding: 18px 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
  }
}

@media (max-width: 480px) {
  dialog {
    width: min(96vw, 360px);
    max-width: min(96vw, 360px);
  }

  .collection-guide {
    width: 860px;
    max-width: none;
    padding: 38px 34px 30px;
    zoom: 0.4;
  }
}

@media (max-width: 375px) {
  dialog {
    width: min(96vw, 340px);
    max-width: min(96vw, 340px);
  }

  .collection-guide {
    width: 860px;
    max-width: none;
    padding: 38px 34px 30px;
    zoom: 0.36;
  }
}