@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --purple: #9F3FFF;
  --green: #C5F401;
  --white: #fff;
  --gray: #333;.feature-card
  --radius: 16px;
  --winter-pink: #ff7ab5;
  --winter-gold: #ffe08a;
  --winter-deep: #0b1029;
  --winter-plum: #241041;
}


html {
  overflow-y: scroll; /* прокрутка работает */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-image:
      radial-gradient(circle at 20% -10%, rgba(255, 255, 255, 0.08), transparent 55%),
      radial-gradient(circle at 80% 0%, rgba(255, 196, 138, 0.12), transparent 50%),
      linear-gradient(160deg, #0b1029 0%, #241041 55%, #120724 100%);
    background-attachment: fixed;
    background-color: #0b1029;
    color: #f7f8ff;
    min-height: 100vh;
}
.snow-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
}

.snow-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    color: white;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}
/*Logo pc*/
.header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
}
main, .content {
  margin-top: 80px; /* чтобы не перекрывало контент */
}
.header.scrolled {
  position: fixed;
  background: #983df0c7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  width: 67%;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 110px;
  height: 42px;
}

.logo-text {
  font-weight: bold;
  color: white;
  transition: color 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  color: white;
  transition: color 0.3s ease;
  position: relative;
}

.header .nav-menu a,
.header .logo-text {
  transition: color 0.3s ease;
}

.header.scrolled .nav-menu a,
.header.scrolled .logo-text {
  color: #b1e238;
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .logo-text:hover {
  color: #fff;
}
.badges {
  font-size: 10px;
  border-radius: 50%;
  padding: 2px 5px;
  font-weight: bold;
  position: absolute;
  top: -12%;
}

.badges.green {
  background: #7fcf1f;
  color: black;
}

.badges.red {
  background: red;
  color: white;
}

/* промо*/
/* Experience hub */
.main {
  position: relative;
  max-width: 1100px;
  margin: 40px auto;
  padding: 70px 30px 90px;
  border-radius: 32px;
  color: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 223, 140, 0.4), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(120, 196, 255, 0.22), transparent 55%),
    linear-gradient(140deg, rgba(27, 18, 61, 0.96), rgba(88, 27, 128, 0.94) 55%, rgba(19, 10, 42, 1));
  box-shadow: 0 35px 80px rgba(7, 3, 20, 0.6), 0 0 65px rgba(161, 79, 252, 0.35);
  backdrop-filter: blur(8px);
}
.main::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 140%;
  height: 120px;
  transform: translateX(-50%);
  background-image:
    radial-gradient(circle, rgba(255, 199, 0, 0.95) 25%, transparent 45%),
    radial-gradient(circle, rgba(0, 213, 255, 0.8) 25%, transparent 45%),
    radial-gradient(circle, rgba(255, 99, 132, 0.85) 25%, transparent 45%),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 25%, transparent 45%);
  background-size: 120px 50px;
  background-position: 0 20px, 30px 50px, 60px 25px, 90px 45px;
  background-repeat: repeat-x;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
  animation: garlandGlow 8s ease-in-out infinite;
}
.main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 60%);
  background-size: 200% 200%;
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: shimmer 18s linear infinite;
  pointer-events: none;
}
@keyframes garlandGlow {
  0% { opacity: 0.7; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35)); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.65)); }
  100% { opacity: 0.7; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35)); }
}
.site-footer {
  position: relative;
  margin: 80px auto 140px;
  padding: 32px 24px 0;
  max-width: 1100px;
  color: #f7f8ff;
  text-align: center;
}

.footer-inner {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.p-footer {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(247, 248, 255, 0.8);
}

.footer-winter {
  position: relative;
  margin-top: 28px;
  min-height: clamp(180px, 28vw, 260px);
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  pointer-events: none;
}

.footer-winter::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -30%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 255, 0.4));
  border-radius: 50% 50% 0 0 / 55% 55% 0 0;
  filter: drop-shadow(0 -8px 24px rgba(15, 8, 32, 0.3));
  pointer-events: none;
}

.footer-snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.footer-santa {
  position: absolute;
  bottom: 0;
  right: clamp(6px, 4vw, 40px);
  width: clamp(120px, 28vw, 200px);
  pointer-events: none;
}

.footer-santa-sway {
  width: 100%;
  animation: santaFloat 6s ease-in-out infinite;
  transform-origin: 50% 100%;
  will-change: transform;
}

.footer-santa-figure {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .site-footer {
    margin: 60px auto 120px;
    padding: 28px 18px 0;
  }
  .footer-santa {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: clamp(120px, 38vw, 160px);
  }
}

.footer-winter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 7, 36, 0) 0%, rgba(18, 7, 36, 0.4) 100%);
  pointer-events: none;
}
.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}
@media screen and (min-width: 860px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    padding-inline: 20px;
  }
}
.news-area{
  margin:0 auto;
  max-width:1260px;
  padding:0 16px;
}
.news-toggle-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:40px auto 0;
  max-width:900px;
  padding:0 6px;
}
.news-toggle-bar__text{
  display:flex;
  flex-direction:column;
  gap:4px;
  color:#fff;
}
.news-toggle-bar__text strong{
  font-size:1.1rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.news-toggle-bar__text span{
  font-size:.95rem;
  color:rgba(255,255,255,.75);
}
.news-toggle{
  background:rgba(255,255,255,.15);
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  padding:12px 28px;
  font-weight:600;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}
.news-toggle:hover{
  background:#c5f401;
  color:#111;
  transform:translateY(-2px);
}
.news-collapse{
  max-width:1260px;
  margin:0 auto;
  transition:max-height .6s ease, opacity .4s ease, transform .4s ease;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-20px);
  will-change:max-height;
}
.news-collapse.is-open{
  max-height:4000px;
  opacity:1;
  transform:none;
}
.news-collapse:not(.is-open) .news-hub{
  pointer-events:none;
}
@media (max-width:520px){
  .news-toggle-bar{
    flex-direction:column;
    align-items:flex-start;
  }
  .news-toggle{
    width:100%;
    text-align:center;
  }
}
/* Новости */
.news-hub{
  max-width:1200px;
  margin:80px auto;
  padding:42px 40px;
  border-radius:42px;
  background:radial-gradient(120% 140% at 12% 16%,rgba(197,244,1,.18),transparent 60%),linear-gradient(135deg,#1b0f3e,#2c0f4c 55%,#120820);
  color:#fff;
  box-shadow:0 45px 90px rgba(10,4,24,.55);
  position:relative;
  overflow:hidden;
}
.news-hub::after{
  content:'';
  position:absolute;
  inset:20px;
  border-radius:32px;
  border:1px solid rgba(255,255,255,.08);
  pointer-events:none;
}
.news-header{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:24px;
  margin-bottom:34px;
}
.news-header__text{
  max-width:560px;
}
.news-tag{
  font-size:12px;
  letter-spacing:.28em;
  text-transform:uppercase;
  margin:0 0 10px;
  color:rgba(255,255,255,.7);
}
.news-header__text h2{
  margin:0 0 12px;
  font-size:clamp(2rem,3vw,2.6rem);
}
.news-lead{
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.7;
}
.news-header__meta{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:.95rem;
  color:rgba(255,255,255,.85);
}
.news-note{
  opacity:.75;
}
.news-city-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}
.city-news{
  background:#fff;
  color:#1d1432;
  border-radius:28px;
  padding:26px;
  box-shadow:0 30px 70px rgba(12,4,32,.25);
  display:flex;
  flex-direction:column;
  gap:20px;
}
.city-news__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.city-news__eyebrow{
  margin:0;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.2em;
  color:#8c84b0;
}
.city-news__header h3{
  margin:6px 0 0;
  font-size:1.4rem;
  color:#1d1432;
}
.city-news__date{
  font-size:.9rem;
  color:#8c84b0;
}
.city-news__list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.city-news__item{
  display:flex;
  gap:16px;
  align-items:flex-start;
  border-bottom:1px solid rgba(13,8,28,.08);
  padding-bottom:14px;
}
.city-news__item:last-child{
  border-bottom:none;
  padding-bottom:0;
}
.city-news__thumb{
  width:64px;
  height:64px;
  border-radius:16px;
  background:linear-gradient(135deg,#f6f7fb,#e6e6ff);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#5549a3;
  overflow:hidden;
}
.city-news__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
}
.city-news__body{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.city-news__time{
  font-size:.85rem;
  color:#8c84b0;
}
.city-news__body h4{
  margin:0;
  font-size:1.05rem;
  color:#1d1432;
}
.city-news__body p{
  margin:0;
  color:#4b4363;
  line-height:1.5;
}
.city-news__branch{
  font-size:.85rem;
  color:#8c84b0;
}
.city-news__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  background:#13112b;
  color:#fff;
  border-radius:999px;
  text-decoration:none;
  font-size:.85rem;
  font-weight:600;
}
.city-news__cta:hover{
  background:#2a2754;
}
.city-news__item .city-news__cta{
  margin-top:4px;
}
@media (max-width:900px){
  .news-hub{
    margin:60px 16px;
    padding:32px 24px;
    border-radius:32px;
  }
  .news-city-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:620px){
  .news-header{
    flex-direction:column;
  }
}
@media (max-width:460px){
  .news-hub{
    margin:48px 12px;
    padding:26px 16px;
  }
}
.gold-tariffs{
  margin:90px auto;
  max-width:1240px;
  padding:60px 70px;
  background:linear-gradient(135deg,#7d31f6,#a14efc);
  border-radius:60px;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.gold-tariffs::after{
  content:'';
  position:absolute;
  inset:24px;
  border-radius:48px;
  border:1px solid rgba(255,255,255,.18);
  pointer-events:none;
}
.gold-layout{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,0.5fr);
  gap:40px;
  align-items:center;
}
.gold-card{
  display:flex;
  align-items:center;
}
.gold-card--info{
  justify-content:space-between;
}
.gold-eyebrow{
  font-size:14px;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin:0 0 10px;
}
.gold-card__text h2{
  margin:0 0 12px;
  font-size:2.1rem;
}
.gold-card__text p{
  margin:0;
  line-height:1.7;
}
.gold-card__visual{
  flex-shrink:0;
}
.gold-card__visual img{
  width:300px;
  height:auto;
  display:block;
}
.gold-card--table{
  flex-direction:column;
  gap:20px;
  background:#fff;
  color:#1a1230;
  padding:36px;
  border-radius:32px;
  box-shadow:0 45px 90px rgba(23,6,54,.25);
}
.gold-table-head,
.gold-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:82px;
  align-items:center;
}
.gold-table-head{
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.92rem;
  border-bottom:1px solid rgba(7,5,24,.08);
  padding-bottom:8px;
}
.gold-table-body{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.gold-row{
  padding-bottom:10px;
  border-bottom:1px dashed rgba(7,5,24,.12);
}
.gold-row:last-child{
  border-bottom:none;
}
.gold-probe{
  font-size:1.1rem;
  font-weight:600;
}
.gold-price{
  font-size:1.05rem;
  font-weight:500;
}
.gold-footnote{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  font-size:.9rem;
  color:#7e78a4;
}
@media (max-width:900px){
  .news-hub{
    margin:60px 16px;
    padding:34px 24px 40px;
  }
  .news-hub::after{
    inset:16px;
  }
  .news-layout{
    grid-template-columns:1fr;
  }
  .news-feature{
    padding:28px;
    min-height:auto;
  }
  .gold-tariffs{
    padding:40px 30px;
    border-radius:40px;
  }
  .gold-layout{
    grid-template-columns:1fr;
    gap:30px;
  }
  .gold-card{
    flex-direction:column;
    text-align:center;
  }
  .gold-card__visual img{
    width:200px;
    margin:0 auto;
  }
  .gold-card--table{
    padding:28px;
  }
}
@media (max-width:620px){
  .news-header{
    flex-direction:column;
  }
  .news-feature__footer{
    align-items:flex-start;
  }
  .news-item{
    padding:20px;
  }
  .news-item__content{
    flex-direction:column;
    align-items:flex-start;
  }
  .news-item__media{
    width:82px;
    height:82px;
  }
}
@media (max-width:460px){
  .news-hub{
    margin:48px 12px;
    padding:26px 18px 34px;
  }
  .news-chip{
    font-size:.78rem;
  }
  .news-link{
    width:83%;
    text-align:center;
    margin:0 auto;
  }
  .news-item__footer{
    flex-direction:column;
    align-items:flex-start;
  }
  .news-header__meta{
    width:100%;
  }
  .gold-card__text h2{
    font-size:1.8rem;
  }
  .gold-tariffs{
    padding:30px 20px;
    border-radius:32px;
  }
  .gold-card__visual img{
    width:160px;
  }
  .gold-card--table{
    padding:24px;
  }
}
.hero-copy {
  display: grid;
  gap: 18px;
}
.hero-eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.hero-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
}
.hero-panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.cta.primary {
  background: #b3ff48;
  color: #120631;
  box-shadow: 0 12px 30px rgba(179, 255, 72, 0.35);
}
.cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(179, 255, 72, 0.45);
}
.cta.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.cta.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.hero-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orb {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(179, 255, 143, 0.6) 0%, rgba(140, 96, 255, 0.1) 70%);
  animation: pulse 12s ease-in-out infinite;
}
.hero-orb.orb-one {
  width: 220px;
  height: 220px;
  top: 20px;
  left: 14%;
  animation-delay: -2s;
}
.hero-orb.orb-two {
  width: 160px;
  height: 160px;
  bottom: 10px;
  right: 12%;
  animation-delay: 4s;
}
.hero-card {
  position: relative;
  width: min(320px, 90%);
  padding: 26px;
  border-radius: 24px;
  background: rgba(12, 6, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  text-align: left;
  box-shadow: 0 20px 40px rgba(10, 5, 30, 0.4);
  animation: float 7s ease-in-out infinite;
}
.hero-card h3 {
    display: flex;
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #ffffff;
    justify-content: space-evenly;
}
.hero-card p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #0088CC;
  color: #ede9f2;
  font-weight: 600;
  font-size: 0.85rem;
}

.feature-grid {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  display: grid;
  gap: 18px;
}
@media screen and (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feature-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(12, 6, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.88);
  transform: translateY(20px);
  animation: fadeUp 0.9s ease forwards;
}
.feature-card:nth-child(2) {
  animation-delay: 0.12s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.24s;
}
.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #ffffff;
}
.feature-card p {
  margin: 0;
  line-height: 1.6;
}
.confidence-strip {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  padding: 18px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.confidence-strip strong {
  color: #ffffff;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
@keyframes fadeUp {
  0% { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes ping {
  0% { transform: scale(0.9); opacity: 1; }
  80%, 100% { transform: scale(1.45); opacity: 0; }
}
@keyframes santaFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .main,
  .feature-card,
  .hero-card,
  .hero-orb,
  .status-dot,
  .footer-winter,
  .footer-snow-canvas,
  .footer-santa,
  .footer-santa-sway {
    animation: none !important;
    transition: none !important;
  }
}

.green-btn {
    margin-top: 10px;
    background: #b3eb53;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
}

.section-title {
    padding: 0 20px;
    margin-top: 30px;
    font-size: 20px;
    color: #fdfafa;
}
.search-modal-content::-webkit-scrollbar {
    display: none;
}
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px 15px 0px;
}
.goods-stack {
  position: relative;
  z-index: 300;
}
@media screen and (min-width: 550px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 16px;
    padding: 10px 20px;
  }

  .product {
    width: 100%;
  }
  .product-content {
    flex-grow: 1;
  }
}
#main-header {
  display: none;
}
@media screen and (min-width: 1150px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  }
}

@media screen and (min-width: 950px) {
  .bottom-nav, .top-bar, .mobile {
    display: none !important;
  }
  #main-header {
    display: flex;
  }
  .main {
    margin-top: 100px;
  }
  body {
    width: 70%;
    margin: 0 auto !important;
  }
      #about {
        display: flex ; align-items: center; justify-content: center; gap: 15px;
      }
      .search-container{
  padding: 0 !important;
  width: 87%;
}
#searchInput {
  font-size: 16px !important;
  width: 87% !important;
}
}

@media screen and (min-width: 1177px) {
    .branches-list {
        display: flex !important;
        flex-direction: row;
        align-content: space-between;
        flex-wrap: wrap;
        justify-content: center;

  }
.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* две колонки */
  gap: 20px; /* отступ между блоками */
  justify-content: center;
}

}
.branches-grid {
  display: grid;
  grid-template-columns: 1fr; /* по умолчанию — 1 блок (моб.) */
  gap: 20px;
  padding: 10px;
}
/* Планшет (≥ 770px) — 2 колонки */
@media screen and (min-width: 770px) {
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ПК/Ноутбук (≥ 1178px) — 3 колонки */
@media screen and (min-width: 1178px) {
  .branches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width: 770px) and (max-width: 1177px) {
  .branches-grid > .branch-card:last-child:nth-child(odd) {
    grid-column: 1 / 3;
    justify-self: center;
  }
}
@media screen and (min-width: 1178px) {
  .branches-grid > .branch-card:last-child:nth-child(3n+1):not(:nth-child(3n+2)):not(:nth-child(3n)) {
    grid-column: 2 / 3;
    justify-self: center;
  }
}
.branches-button-wrapper {
  text-align: center;
  margin: 20px 0;
}

.show-all-button {
  padding: 10px 20px;
  background-color: #cdff00;
  border: none;
  border-radius: 8px;
  font-weight: 400;
  cursor: pointer;
  font-size: 16px;
}
.gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(140deg, rgba(27, 8, 56, 0.88), rgba(111, 51, 192, 0.72));
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
}

.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left, rgba(255, 255, 255, 0.2), transparent 58%),
              radial-gradient(circle at right, rgba(255, 255, 255, 0.2), transparent 58%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.gallery-current {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery.is-animating .gallery-current {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.gallery-progress {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.gallery-progress span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0.6;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.gallery-progress span.is-active {
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

@media (max-width: 520px) {
  .gallery {
    aspect-ratio: 1 / 1;
  }
}

@media (hover: hover) {
  .gallery {
    cursor: grab;
  }
  .gallery.is-animating {
    cursor: grabbing;
  }
}

.product a{
  text-decoration: none;
  color: #000;
}

.product {
    background: white;
    border-radius: 12px;
    width: 95%;
    padding: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    position: relative;
    font-size: 13px;
}

.product .info {
    padding: 5px 0;
    font-size: 13px;
    color: #333;
}

.product .info .name {
    font-weight: 600;
    margin-bottom: 4px;
}

.product .desc-label {
    font-weight: 500;
    color: #555;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product .price {
    margin-top: 6px;
    font-weight: bold;
    color: #000;
}
.name-id-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.name {
    font-size: 18px;
    font-weight: bold;
    max-width: 80%;
    word-wrap: break-word;
}

.article {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}
.product .card-price {
    font-size: 12px;
    color: #888;
}


.product .img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}



.load-more-wrapper {
  text-align: center;
  margin: 20px auto 120px; /* отступ снизу, чтобы не прилипала к bottom-nav */
  width: 100%;
}

#load-more {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  background-color: #B1E238;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin: 0 auto;
}

.favorite.hearted img {
    filter: invert(24%) sepia(93%) saturate(6446%) hue-rotate(346deg) brightness(98%) contrast(106%);
}

.category-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 1.5em 20px 1em;
  padding: 0.9em 1.8em;
  background: #b3ff48;
  color: #120631;
  font-size: 1.05em;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(179, 255, 72, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(179, 255, 72, 0.42);
}

.category-overlay {
  position: absolute;
  z-index: 1200;
}

.category-overlay.hidden {
  display: none;
}

.category-popover {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(25, 14, 70, 0.28);
  padding: 18px 20px 20px;
  min-width: 320px;
  max-width: 520px;
  border: 1px solid rgba(120, 98, 212, 0.12);
}

.category-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-popover-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f143b;
}

.close-btn {
  background: none;
  border: none;
  color: #5c36c8;
  font-size: 1.6rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: rgba(92, 54, 200, 0.12);
}

.category-popover-body {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.category-column,
.subcategory-column {
  flex: 1 1 0;
  min-width: 160px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
}

.category-list,
.subcategory-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  background: rgba(240, 238, 255, 0.9);
  overflow-y: auto;
  scrollbar-width: thin;
  max-height: inherit;
}

.category-item,
.subcategory-item {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #28194d;
  transition: background 0.18s ease, color 0.18s ease;
}

.category-item + .category-item,
.subcategory-item + .subcategory-item {
  margin-top: 6px;
}

.category-item:hover,
.subcategory-item:hover {
  background: rgba(92, 54, 200, 0.12);
}

.category-item.active,
.subcategory-item.active {
  background: #5c36c8;
  color: #ffffff;
}

.subcategory-column h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(31, 20, 59, 0.85);
}

@media (max-width: 640px) {
  .category-popover {
   width: min(calc(60vw - 24px), 420px);
        padding: 10px;
    }
  

  .category-popover-body {
    flex-direction: column;
    gap: 12px;
  }

  .category-column,
  .subcategory-column {
    max-height: 220px;
  }
}
.add-to-cart {
  background: #9F3FFF;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
}
.add-to-cart {
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.add-to-cart .icon-cart,
.add-to-cart .icon-check {
  transition: opacity 0.3s ease;
}

.icon-check {
  display: none;
  opacity: 0;
}

.added .icon-cart {
  display: none;
  opacity: 0;
}

.added .icon-check {
  display: inline;
  opacity: 1;
}

.added {
  background-color: #C5F401 !important;
  color: black !important;
}


/* ---Добавить корзину --- */
.cart-fab {
  position: fixed;
  bottom: 170px;
  right: 20px;
  background: #C5F401;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  color: #000;
  z-index: 1000;
  text-decoration: none;
}

.cart-fab span {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 3px 7px;
}

/* --- ОБНОВЛЁННЫЙ СТИЛЬ ДЛЯ .bottom-nav --- */
.bottom-nav {
  height: 90px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    z-index: 1000;
}

 .bottom-nav a,
.bottom-nav .nav-item {
    text-decoration: none;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    font-size: 12px;
    text-align: center;
}


.bottom-nav a.active,
.bottom-nav .nav-item.active {
    color: #000;
}

.bottom-nav .nav-icon {
    margin-bottom: 3px;
}

.bottom-nav a img,
.bottom-nav .nav-item img {
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s;
}

.bottom-nav a.active img,
.bottom-nav .nav-item.active img {
    filter: none;
}

/* Убираем синие рамки */
.bottom-nav a:focus,
.bottom-nav a:active,
.bottom-nav .nav-item:focus,
.bottom-nav .nav-item:active {
    outline: none;
}

/* Значок "badge" остаётся */
.badge {
    position: absolute;
    top: 2%;
    right: 11%;
    background: red;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 4px 6px;
    min-width: 6px;
    text-align: center;
    line-height: 1;
}

.location {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}
.branches-list {
  padding: 0 16px;
  margin-bottom: 10px;
}

.branch-card {
  display: flex;
  justify-content: space-between;
  background: white;
  border-radius: 12px;
  padding: 16px;
    align-items: center;
  gap: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.branch-left {
  flex: 1;
  display: flex;
      flex-direction: column;
    align-items: flex-start;
}

.branch-right {
  min-width: 115px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
      align-items: flex-end;
}

.branch-address {
  font-size: 16px;
  margin-bottom: 12px;
}

.status-badge,
.how-to-badge {
  display: inline-flex;
  align-items: center;
  background: #983DF0;
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
  gap: 6px;
}

.status-badge .work {
  color: #B1E238;
  font-weight: bold;
  margin-left: 4px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.contact-row a {
  text-decoration: none;
  color: #333;
}

.branch-contacts-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

.about-us {
  padding: 20px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.about-box {
  background-color: #A047E1;
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.branch-abouts-title  {
  font-weight: bold;
      display: flex;
    font-size: 20px;
}
.about-logo {
  width: 80px;
  margin-bottom: 12px;
}


.about-text {
  font-weight: 400;
  font-size: 18px;
  margin: 12px 0;
}

.review-btn {
  background-color: #B1E238;
  color: #000;
  padding: 8px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.review-btn:hover {
  background-color: #a4cf2b;
}
.trust-section {
  text-align: center;
  padding: 24px 0;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.trust-counter {
  font-size: 32px;
  font-weight: bold;
  color: #B1E238;
  margin: 8px 0;
}
.trust-meta {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 4px;
}
.recaptcha-wrapper {
  margin-top: 80px;
}
.label.sold  {
    position: absolute;
    top: 10px;
    left: 10px;
    background: crimson;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 1;
}
.product-status-label {
  color: crimson;
}
/* Сброс стилей для Telegram Mini App */
.tg-mini-app * {
    box-sizing: border-box !important;
}

.tg-mini-app body {
    background: #983DF0 !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* Фикс для header */
.tg-mini-app .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #983DF0 !important;
    padding: 10px 0 !important;
}

.tg-mini-app .header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 15px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Фикс для контейнера */
.tg-mini-app .container {
    margin-top: 80px !important; /* Отступ под фиксированным header */
    padding: 20px !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Фикс для bottom-nav */
.tg-mini-app .bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    display: flex !important;
    justify-content: space-around !important;
    padding: 10px 0 !important;
    z-index: 1000 !important;
    border-top: 1px solid #ddd !important;
}

/* Фикс для форм */
.tg-mini-app select, 
.tg-mini-app input {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    margin: 10px 0 !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    font-size: 16px !important;
    background: #fff !important;
    color: #000 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.tg-mini-app .submit-btn {
    width: 100% !important;
    background: #B1E238 !important;
    color: black !important;
    padding: 12px !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 16px !important;
}

/* Убедимся, что все элементы видны */
.tg-mini-app .profile-info,
.tg-mini-app #debt-form,
.tg-mini-app .result {
    position: relative !important;
    z-index: 1 !important;
}
