body {
  font-family: "Arial", sans-serif;
  font-size: var(--font-size-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
  margin: var(--main-indignation);
  padding: var(--main-indignation);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1440px;   
  margin: 0 auto;      
  padding: 0 20px;    
}

body::before {
  content: "";
  position: fixed;
  inset: 0; 
  background: var(--img-bg) center/cover no-repeat; 
  opacity: 0.3;
  z-index: -1;
}

.cover {
  position: relative;
  background-image: url(../images/cover.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--bg-color);
  text-transform: uppercase;
  z-index: 0;
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 4px var(--accent-color),
              0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.cover__title .cover__line {
  font-family: 'Playfair Display', serif;
  color: #fff;
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.6),
    4px 4px 8px rgba(0,0,0,0.4),
    0 0 10px rgba(255,255,255,0.2);
}

.header {
  display: grid;
  grid-template-columns: min-content 1fr 1fr 1fr;
  align-items: center;
  padding: 20px 24px;
}

.header__menu {
  display: flex;
  justify-self: center;
}

.header__links-list {
  display: flex;
  list-style-type: circle;
  gap: 20px;
  margin: 0 12px 5px 0;
}

.header__links-list-item a {
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 1.0rem;
  color: #2d2d2d;
  text-decoration: none;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: none;
  filter: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.header__links-list-item a:hover {
  color: #000;
  transform: scale(1.05);
}

.header__links-list-item_no-bullit {
  list-style-type: none;
  text-decoration: none;
}

.header__link {
  position: relative;
  color: #000;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.header__link:hover {
  color: #2441b6; 
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #2441b6;
  transition: width 0.3s ease;
}

.header__link:hover::after {
  width: 100%;
}

.header__link_active {
  color: #2441b6;
  font-weight: 700;
}

.header__logo {
  display: block;
  max-width: clamp(120px, 12vw, 200px); 
  margin-inline: clamp(8px, 3vw, 40px); 
  height: auto;
}

.address {
  font-style: normal; 
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.4;
  font-size: 14px;
  color: #333;
}

.address a {
  color: var(--accent-color, #d6336c);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.address a:hover {
  color: #a0204c;
  text-decoration: underline;
}

.address__street {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
  line-height: 1.5;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 20px;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  border-radius: inherit;
}

.overlay:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

.cover__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5em;
  padding: 5% 2%;
}

.cover__line {
  font-size: clamp(32px, 8vw, 80px);
  font-weight: 700;
  line-height: 2.1;
  letter-spacing: 0.2em;
  display: flex;
  justify-content: flex-start;
}

.cover__line_left {
 margin-right: clamp(2.5rem, -10.8824rem + 50.9804vw, 35rem);
}

.cover__line_right {
margin-left: clamp(5rem, -7.3529rem + 47.0588vw, 35rem);
}

.cover__description {
  display: flex;
  align-items: baseline;
  justify-content: space-evenly;
  padding: 31px 53px 51px 51px;
  gap: 104px;
}

.cover__description-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  animation: slideText 10s linear infinite;
}

.button,
.oplata__text-end {
  padding: 12px 24px;
  border-radius: 10px;
  background-color: var(--button-color);
  color: var(--bg-color);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 4px var(--blue-color),
              0 4px 12px rgba(0, 0, 0, 0.15);
  text-shadow: 0 0 4px var(--blue-color);
  margin-top: auto; 
}

.button:hover,
.oplata__text-end:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.oplata .form {
  display: flex;
  justify-content: center; 
  margin-top: 2em;
}

.lots__heading {
  /*padding: 80px 0 0px 176px;*/
  color: #000;
  font-size: var(--font-size-xlarge);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out forwards;
  margin-top: 20px;
  
}

.lots__card-list {
  display: flex;
  flex-wrap: wrap;    
  gap: 24px;            
  list-style: none;
  padding: 0;
  margin: 0;
}

.lots__card-list-item {
  flex: 1 1 calc(25% - 20px); 
  box-sizing: border-box;    
}

.card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1;
  padding: 51px 40px 48px;
  justify-content: space-between;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.card--type-asscher   { background-image: url(../images/Cutting_forms/Asscher.jpg);  width: 100%; }
.card--type-baguette  { background-image: url(../images/Cutting_forms/Baguette.jpg); }
.card--type-cushion   { background-image: url(../images/Cutting_forms/Cushion.jpg); }
.card--type-emerald   { background-image: url(../images/Cutting_forms/Emerald.jpg); }
.card--type-heart     { background-image: url(../images/Cutting_forms/Heart.jpg); }
.card--type-marquise  { background-image: url(../images/Cutting_forms/Marquise.jpg); }
.card--type-oval      { background-image: url(../images/Cutting_forms/Oval.jpg); }
.card--type-pear      { background-image: url(../images/Cutting_forms/Pear.jpg); }
.card--type-princess  { background-image: url(../images/Cutting_forms/Princess.jpg); }
.card--type-radiant   { background-image: url(../images/Cutting_forms/Radiant.jpg); }
.card--type-round     { background-image: url(../images/Cutting_forms/Round.jpg); }
.card--type-trilliant { background-image: url(../images/Cutting_forms/Trilliant.jpg); }

.card--type-asscher,
.card--type-baguette,
.card--type-cushion,
.card--type-emerald,
.card--type-heart,
.card--type-marquise,
.card--type-oval,
.card--type-pear,
.card--type-princess,
.card--type-radiant,
.card--type-round,
.card--type-trilliant {
  width: 313px;
  
}

.card__title {
  color: white;
  font-size: var(--font-size-medium);
  font-weight: 700;
  line-height: 120%;
  text-decoration-line: underline;
  text-transform: uppercase;
}

.card__text {
  color: white;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 120%;
}

.lots__look-more-link {
  display: block;
  text-underline-offset: 3px;
  padding-top: 30px;
  color: black;
  font-size: 20px;
  font-weight: 400;
  line-height: 23.48px;
  margin-left: 64px;
}

.about {
  margin-top: 124px;
}

.about__container {
  display: grid;
  grid-template-columns: 334px 1fr;
  gap: 25px;
  padding: 31px 24px 0;
}

.about__logo {
  justify-self: center;
  width: 240px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__logo-item {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100; 
}

.about__logo-item img {
  display: block;       
  max-width: 180px;     
  height: auto;
}

.about__logo-image {
  max-width: 100%;
  max-height: 100%; 
}

.about__column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(1.25rem, -0.8088rem + 7.8431vw, 6.25rem);
}

.about__title {
  color: black;
  font-size: 30px;
  font-weight: 700;
  line-height: 46.96px;
  text-transform: uppercase;
}

.about__column-text {
  display: flex;
  gap: 25px;
  flex-direction: column;
  padding-top: clamp(1.25rem, -0.1912rem + 5.4902vw, 4.75rem);
}

.about__text {
  align-self: flex-start;
  font-family: "Raleway", sans-serif;
  color: black;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
}

.about__section-title {
  margin: 28px 0 12px;
  color: black;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.about__term {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 2px 10px;
  margin-right: 6px;
  border-radius: 999px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(30,144,255,.18) 0%, rgba(30,144,255,0) 70%),
    linear-gradient(0deg, rgba(30,144,255,.12), rgba(30,144,255,.12));
  color: #0b3d91;
  box-shadow: inset 0 0 0 1px rgba(30,144,255,.35);
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  padding: 181px 50px 88px;
  gap: 140px;
  align-items: flex-start;
}

.footer_address {
  font-style: normal;
  line-height: 24.3px;
  letter-spacing: 0.18px;
  font-family: "Raleway", sans-serif;
  list-style-type: none;
}

.footer_menu {
  padding-left: 5px;
}

.footer__menu-list-item {
  list-style-type: none;
  text-align: center;
}

.footer__menu-link_active {
  text-decoration: none;
}

.footer__social-list {
  display: flex;
  gap: 48px;
  list-style: none;
}

.footer__social-list-item {
  width: 48px;
}

.footer__menu-link {
  font-family: "Arial", sans-serif;
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: #2d2d2d;
  text-decoration: none;
  background: linear-gradient(to right, currentColor 0%, currentColor 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1px rgba(0,0,0,0.25);
  filter: contrast(1.1) brightness(0.9);
  transition: transform 0.2s ease, color 0.3s ease;
}

.footer__menu-link:hover {
  color: #000;
  transform: scale(1.05) rotate(-1deg);
}

.oplata {
  background: 
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.8)), 
    url(../images/cash_second.png);
  width: 400px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

.oplata__text-end {
  position: absolute;
  bottom: 20px;
  left: 50%; 
  transform: translateX(-50%);
  background-color: var(--blue-color);
  font-size: 22px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.oplata__text-end:hover {
  background-color: #004aad; 
  transform: translateX(-50%) scale(1.05); 
}

.oplata__content {
  font-size: 18px;
  text-transform: none;
}

.oplata__text {
  font-weight: 700;
}

.cart__pay-button {
  background-color: #1e90ff;        
  color: #fff;                     
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px 10px 30px;     
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  display: inline-block;
  margin-top: 10px;
  position: relative;                
}

.cart__pay-button::before {
  content: "₽";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 16px;
}

.cart__pay-button:hover {
  background-color: #0f78d1; 
  transform: translateY(-2px);     
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cart__pay-button:active {
  transform: translateY(0);
  background-color: #0b5c9e;
  box-shadow: none;
}

.nav-link { 
  position: relative;
  color: #000;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 5px 10px;
  transition: color 0.3s ease;
}
.nav-link:hover { color:#2441b6; }
.nav-link::after { content:""; position:absolute; left:0; bottom:-2px; width:0%; height:2px; background:#2441b6; transition:width .3s; }
.nav-link:hover::after { width:100%; }
.nav-link_active { color:#2441b6; font-weight:700; }

.modal {
  border: none;
  padding: 0;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  background: #000;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.modal__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.modal__close {
  margin: 12px auto;
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent-color, #d6336c);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal__close:hover {
  background: #a0204c;
  transform: translateY(-2px);
}

.company__text {
  display: inline-block;
  padding: 0.25em 0.75em;
  margin-left: 0.25em;
  border-radius: 8px;
  background-color: var(--blue-color);
  color: #fff;
  font-weight: 500;
  font-size: 0.95em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.company__text:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.company__text:active {
  transform: translateY(0);
}

.company__text:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.card__pay-btn {
  margin-top: clamp(12px, 2vw, 20px);
  width: 100%;
}

#payment-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  display: none; 
}

.card .overlay { pointer-events: none; }
.card__pay-btn { position: relative; z-index: 2; }

.footer address {
  font-family: 'Caveat', cursive;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-style: normal;
  font-weight: 500;
  text-align: center;
  margin: 10px 0;
  color: var(--text-color);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}

.switch {
  cursor: pointer;
  width: 100px;
  height: 26px;
  background: var(--border-color);
  border-radius: 50px;
  position: relative;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.switch span {
  font-size: 14px;
  pointer-events: none;
}

#theme-switch { display: none; }
#theme-switch:checked + .switch { background: var(--accent-color); }

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0);
  color: var(--accent-color);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  position: relative;
  width: 100px;
}

.cart-button:hover {
  background-color: #1c86ee;
  transform: translateY(-2px);
}

.cart-count {
  background-color: #ff4d4f;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  right: -5px;
  pointer-events: none;
}

.about__feature { margin: 10px 0; }

.about__details {
  border-radius: 10px;
  background: rgba(30,144,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(30,144,255,0.15);
  padding: 10px 12px;
}

.about__summary {
  list-style: none;
  cursor: pointer;
  outline: none;
  user-select: none;
  display: flex;
  align-items: baseline;
  gap: 6px;

  font-family: "Raleway", sans-serif;
  color: black;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
}
.about__summary::-webkit-details-marker { display: none; }
.about__summary::marker { content: ""; }

.about__summary::after {
  content: "Читать далее";
  margin-left: auto;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--accent-color, #1e90ff);
  text-decoration: underline;
  transition: color .2s ease, transform .2s ease;
}
.about__details[open] .about__summary::after { content: "Свернуть"; }
.about__summary:hover::after { color: #0f78d1; transform: translateY(-1px); }

.about__more {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(30,144,255,0.35);

  font-family: "Raleway", sans-serif;
  color: black;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
}

/*стилизация карточки, дополнительная*/

/* Оверлей поверх картинки, чтобы текст читался */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.40) 40%,
      rgba(0,0,0,.25) 100%);
  z-index: 0;
}

/* контент поверх оверлея */
.card > * { position: relative; z-index: 1; }

/* заголовок/текст */
.card__title,
.card__text { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* «Читать далее / Свернуть» внутри карточки */
.card__details {
  margin-top: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  padding: 10px 12px;
}

.card__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}
.card__summary::-webkit-details-marker { display: none; }
.card__summary::marker { content: ""; }

.card__summary::after {
  content: "Читать далее";
  margin-left: auto;
  font-size: .9em;
  font-weight: 600;
  color: #1e90ff;
  text-decoration: underline;
  transition: color .2s ease, transform .2s ease;
}
.card__details[open] .card__summary::after { content: "Свернуть"; }
.card__summary:hover::after { color: #0f78d1; transform: translateY(-1px); }

.card__more {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,.35);
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

/* чуть подсветим карточку при ховере */
.card:hover::before {
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.45) 0%,
      rgba(0,0,0,.32) 40%,
      rgba(0,0,0,.18) 100%);
}

.card__summary {
  background: none;
  border: none;
  padding: 0;
}

.card::before {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.25) 40%,
    rgba(0,0,0,.15) 100%
  );
}

.card__more {
  transition: all .3s ease;
}

.card__summary {
  font-weight: 600;
  font-size: 14px;
  color: #1e90ff;
  text-decoration: underline;
}

/* ==== Модалки карточек — базовые стили ==== */
.card__more-btn {
  /* наследует общий .button, поэтому — только нюансы */
  white-space: nowrap;
}

.card__modal {
  border: none;
  padding: 0;
  margin: 0;
  width: min(720px, 92vw);
  color: var(--text-primary, #111);
  background: var(--surface-elevated, #fff);
  border-radius: 16px;
  box-shadow:
    0 10px 25px rgba(0,0,0,.12),
    0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
}

/* Внутренние отступы и типографика */
.card__modal .card__title {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.25;
  padding: 20px 24px 8px;
  margin: 0;
}

.card__modal .card__text {
  font-size: 16px;
  line-height: 1.6;
  padding: 0 24px 12px;
  margin: 0;
}

/* Нижняя панель с кнопкой закрытия */
.card__modal .modal__close-btn {
  width: 100%;
  border-radius: 0;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 14px 18px;
}

/* ==== Анимация открытия/закрытия ==== */
.card__modal[open] {
  animation: cardModalIn .18s ease-out;
}
@keyframes cardModalIn {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* ==== Затемнение фона ==== */
.card__modal::backdrop {
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(2px);
  animation: cardBackdropIn .2s ease-out;
}

/* ==== Тёмная тема (если есть) ==== */
@media (prefers-color-scheme: dark) {
  .card__modal {
    color: var(--text-on-dark, #f5f5f5);
    background: var(--surface-elevated-dark, #1a1a1a);
    box-shadow:
      0 10px 25px rgba(0,0,0,.6),
      0 2px 8px rgba(0,0,0,.4);
  }
  .card__modal .modal__close-btn {
    border-top-color: rgba(255,255,255,.08);
  }
  .card__modal::backdrop {
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(2px);
  }
}

/* ===== Preloader ===== */
html.is-preloading,
html.is-preloading body { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #f2f3f5;
  color: #111;
  transition: opacity .35s ease, visibility .35s ease;
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
}

.preloader__logo {
  font-family: "Caveat", cursive, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Квадратики */
.preloader__squares {
  --size: 14px;
  --gap: 10px;
  display: grid;
  grid-auto-flow: column;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.preloader__square {
  width: var(--size);
  height: var(--size);
  border-radius: 3px;
  outline: 2px solid rgba(33, 64, 178, .8);
  background: transparent;
  animation: sq-fill 1.2s infinite;
}

.preloader__square:nth-child(1) { animation-delay: 0s; }
.preloader__square:nth-child(2) { animation-delay: .15s; }
.preloader__square:nth-child(3) { animation-delay: .30s; }
.preloader__square:nth-child(4) { animation-delay: .45s; }



/* Скрытие после загрузки */
.preloader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==== Мобильные детали ==== */
@media (max-width: 480px) {
  .card__modal .card__title { padding: 16px 16px 6px; }
  .card__modal .card__text  { padding: 0 16px 10px; }
}

/* ==== Уважение к предпочитаемому снижению анимации ==== */
@media (prefers-reduced-motion: reduce) {
  .card__modal[open],
  .card__modal::backdrop {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .header {
    grid-template-columns: 1fr 1fr;
  }

  .header__logo {
    padding-right: 30px;  
  }

  .header__links-list {
     display: flex;
    flex-direction: column;
    gap: 4px; 
    padding: 0;
    margin: 0;
  }

  .header__links-list-item {
    margin: 0; 
    line-height: 1.2; 
  }

   .header__link {
    font-size: 14px; 
    padding: 4px 0;   
  }

  .address-item { padding-left: 0; }

  .about__container { grid-template-columns: 1fr; }
 
  .cover__description {
    display: grid;
    grid-template-columns: 1fr; 
  }

  .lots__heading,
  .card__title,
  .cover__description-text {
    font-size: 18px;
  }

  .lots__card-list {
    grid-template-columns: auto; 
    padding-left: 0;
  }

  .lots__heading { padding-left: 29px; }

  .button-item { margin-top: 10px; }

  .address {
    font-size: 14px;
    line-height: 16px;
  }

  .footer {
    display: grid;
    grid-template-columns: 1fr; 
  }

  .footer__social-list {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
  }

  .footer__social-list-item img {
    display: block;
    width: 32px;
    height: 32px;
    cursor: pointer;
  }

  .footer__social-list-item:nth-child(1) img { animation: floatIcon 3s ease-in-out infinite; }
  .footer__social-list-item:nth-child(2) img { animation: rotateIcon 4s linear infinite; }
  .footer__social-list-item:nth-child(3) img { animation: swingIcon 2.5s ease-in-out infinite; }

  .oplata__text {
    font-size: clamp(0.85rem, 4vw, 1rem);
    line-height: 1.4;                     
    white-space: normal;                  
    word-break: break-word;               
  }

  .oplata__text-end {
    font-size: clamp(0.9rem, 4vw, 1rem);
    padding:6px 12px;
  }
}

@media (max-width: 432px) {
  .header__link {
    display: block;
    font-size: 20px;       
    line-height: 1.2;      
    padding: 10px 0;       
    text-align: left;    
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .header__link:hover,
  .header__link:active {
    background-color: rgba(36, 65, 182, 0.1); 
    color: #2441b6;                           
  }

  .header__links-list,
  .footer__menu-list {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 250px; 
  }  

  .lots__card-list {    
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    align-items: center;
  }

  .cover__line_right { margin-left: 10px; }
}