/* =========================================================
   DESIGN SYSTEM — SAFE BASE (NO CONFLICTS)
========================================================= */

:root {

  /* ================= COLORS ================= */

  --color-primary: #3b5bdb;
  --color-primary-hover: #2f4cc0;

  --color-text-main: #222;
  --color-text-secondary: #666;

  --color-bg-main: #ffffff;
  --color-bg-soft: #f3f4f7;

  --color-border: rgba(0,0,0,0.1);

  /* ================= RADIUS ================= */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* ================= SHADOW ================= */

  --shadow-soft:
    0 10px 20px rgba(60, 80, 150, 0.06),
    0 4px 8px rgba(60, 80, 150, 0.04);

  --shadow-medium:
    0 20px 40px rgba(60, 80, 150, 0.08),
    0 6px 12px rgba(60, 80, 150, 0.05);

  --shadow-strong:
    0 25px 50px rgba(60, 80, 150, 0.12),
    0 10px 20px rgba(60, 80, 150, 0.06);

  /* ================= SPACING ================= */

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
}

/* =========================================================
   BUTTON BASE (Ќ≈ Ћќћј≈“ —“ј–џ≈)
========================================================= */

button {
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: 0.2s ease;
}

/* Ќќ¬џ≈  Ќќѕ » (можно использовать позже) */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

/* =========================================================
   FAQ BASE (Ѕ≈«  ќЌ‘Ћ» “ќ¬)
========================================================= */

/* только база Ч не трогаем твои текущие стили */
.faq-item {
  border-radius: var(--radius-sm);
}

/* =========================================================
   INPUTS
========================================================= */

input {
  font-size: 16px;
  border: none;
  outline: none;
}

.search-overlay input {
  border-bottom: 1px solid var(--color-border);
}

/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #FAFAFB;}

/* =========================================================
   CONTAINER
========================================================= */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  width: 100%;
  z-index: 1000;

  background: #fff;

  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.025);

  transition: box-shadow .2s ease, background-color .2s ease;
}

.header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 82px;
}

.logo img {
  height: 55px;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #444;
  font-size: 17px;
  transition: color .2s ease;
}

.nav a:hover {
  color: #3b5bdb;
}

.nav a.active {
  color: #3b5bdb;
  font-weight: 600;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.title-main {
  text-align: center;
  font-size: 28px;
  max-width: 900px;
  margin: 0 auto 15px;
}

.desc {
  text-align: center;
  font-size: 24px;
  color: #666;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* =========================================================
   MAIN / CARDS
========================================================= */

#offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* =========================================================
   CARD
========================================================= */

.card {
  background: #f1f2f5;
  border-radius: 12px;
  position: relative;
  overflow: visible;

  box-shadow: -7px -7px 10px rgba(0,0,0,0.1);

  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 7px 7px 10px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* =========================================================
   IMAGE
========================================================= */

.image {
  position: relative;
}

.image img {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
}

/* =========================================================
   BADGE TOP
========================================================= */

.badge-top {
  position: absolute;
  top: -12px;
  left: -12px;

  width: 95px;

  background: #c94c4c;
  color: #fff;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 10px 0;

  border-radius: 10px 0 10px 10px;

  box-shadow: 6px 8px 14px rgba(0,0,0,0.25);
}

.badge-number {
  font-size: 28px;
  font-weight: 700;
}

.badge-text {
    font-size: 11px;
    text-align: center;
    line-height: 1.1;
    width: 100%;
}

/* =========================================================
   BADGES BOTTOM
========================================================= */

.badges-bottom {
  position: absolute;
  right: 20px;
  bottom: 14px;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  width: 125px;
  text-align: center;

  background: rgba(201, 76, 76, 0.6);
  color: #fff;

  padding: 2px 0;

  border-radius: 3px;

  font-size: 13px;
  font-weight: 700;
}

/* =========================================================
   CONTENT
========================================================= */

.content {
  background: #eef0f5;
  padding: 20px 20px 60px;
  border-radius: 0 0 12px 12px;
}

.top {
  display: flex;
  justify-content: space-between;
}

.title {
  font-size: 20px;
  font-weight: 700;
  color: #c94c4c;
}

.subtitle {
  font-size: 14px;
  color: #c94c4c;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: #3b5bdb;
}

.save {
  font-size: 13px;
  color: #3b5bdb;
}

/* =========================================================
   BUTTONS
========================================================= */

.buttons {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

/* ”Ѕ–јЋ flex:1 из button это важно */
button {
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  background: transparent;
  cursor: pointer;
}

/* карточные кнопки (Ќ≈ ломаем дизайн) */
.buttons button {
  flex: 1;
}

.primary {
  border: 1.5px solid #c94c4c;
  color: #c94c4c;
}

.secondary {
  border: 1.5px solid #3b5bdb;
  color: #3b5bdb;
}

/* =========================================================
   CORNER
========================================================= */

.corner-arrow {
  position: absolute;
  bottom: 0;
  right: 0;

  width: 42px;
  height: 42px;

  background: #c94c4c;

  border-top-left-radius: 16px;
  border-bottom-right-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  margin-top: 60px;
  padding: 25px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
}

.footer-left {
  font-size: 16px;
}

.footer-right {
  display: flex;
  gap: 30px;
}

.footer-right a {
  font-size: 16px;
  color: #3b5bdb;
  text-decoration: none;
}

/* =========================================================
   POPUP (FINAL CLEAN)
========================================================= */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.5);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* окно */
.popup {
  background: #fff;
  width: 800px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* header */
.popup-header {
  display: flex;
  align-items: flex-start;
  padding: 25px;
  border-bottom: 1px solid #eee;
}

.popup-title {
  font-size: 26px;
  font-weight: 600;
}

.popup-subtitle {
  margin-top: 6px;
  color: #777;
}

/* крестик */
.popup-close {
  margin-left: auto;
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.popup-close svg {
  width: 22px;
  height: 22px;
}

.popup-close:hover svg path {
  stroke: #c94c4c;
}

/* body */
.popup-body {
  padding: 25px;
  color: #555;
  line-height: 1.6;
}

/* footer */
.popup-footer {
  padding: 25px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 20px;
}

/* =========================================================
   POPUP BUTTONS (Ќ≈  ќЌ‘Ћ» “”ё“ — —ј…“ќћ)
========================================================= */

.popup-btn {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* GET NOW */
.popup-btn.primary {
  border: 1.5px solid #3b5bdb;
  color: #3b5bdb;
  background: transparent;
}

.popup-btn.primary:hover {
  background: #3b5bdb;
  color: #fff;
}

/* CLOSE */
.popup-btn.link {
  background: none;
  border: none;
  color: #3b5bdb;

  padding: 12px 22px;
  border-radius: 6px;

  transition: 0.2s;
}

.popup-btn.link:hover {
  background: rgba(59, 91, 219, 0.2);
}


/* =========================================================
   GLOBAL BUTTONS ( ј–“ќ„ » Ч Ќ≈ “–ќ√ј≈ћ)
========================================================= */

.primary {
  border: 1.5px solid #c94c4c;
  color: #c94c4c;
  background: transparent;
}

.primary:hover {
  background: #c94c4c;
  color: #fff;
}

.secondary {
  border: 1.5px solid #3b5bdb;
  color: #3b5bdb;
}

.secondary:hover {
  background: #3b5bdb;
  color: #fff;
}


/* =========================================================
   SCROLL TOP (≈ƒ»Ќјя ¬≈–—»я)
========================================================= */

#scrollTopBtn {
  position: fixed;
  right: 25px;
  bottom: 25px;

  width: 48px;
  height: 48px;

  background: #c94c4c; /* теперь в стиле сайта */
  border: none;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;

  z-index: 9999;
}

#scrollTopBtn.active {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* ---------- Desktop ---------- */

@media (max-width:1200px){

    #offers{
        grid-template-columns:repeat(3,1fr);
    }

}

/* ---------- Tablet ---------- */

@media (max-width:1200px) and (min-width:901px){

    .container{
        padding:0 20px;
    }

    .header-inner{

        display:flex;
        align-items:center;

        min-height:82px;

    }

    .logo{
        flex:0 0 auto;
    }

    .logo img{
        height:44px;
    }

    .nav{

        display:flex;
        flex:1;

        justify-content:center;
        align-items:center;

        gap:20px;

        margin:0 20px;

    }

    .nav a{
        font-size:15px;
        white-space:nowrap;
    }

    #language-switcher{
        margin-left:0;
    }

    .search{
        margin-left:18px;
        font-size:22px;
    }

    .burger{
        display:none;
    }

}

/* ---------- Mobile / Small Tablet ---------- */

@media (max-width:900px){

    #offers{
        grid-template-columns:repeat(2,1fr);
    }

    .container{
        width:100%;
        padding:0 16px;
    }

    .header-inner{

        display:flex;
        align-items:center;

        min-height:76px;

    }

    .logo{
        flex:0 0 auto;
    }

    .logo img{
        height:34px;
    }

    .nav{
        display:none;
    }

    #language-switcher{
        margin-left:auto;
        margin-right:18px;
        flex:0 0 auto;
    }

    .search{
        margin:0;
        margin-right:18px;

        font-size:28px;

        flex:0 0 auto;
    }

    .burger{

        display:flex;

        align-items:center;
        justify-content:center;
        flex-direction:column;

        width:42px;
        height:42px;

        margin:0;

        flex:0 0 auto;

    }

}

/* ---------- Phones ---------- */

@media (max-width:700px){

    #offers{
        grid-template-columns:1fr;
    }

    .buttons{
        flex-direction:column;
    }

    .buttons button{
        width:100%;
    }

    .footer-inner{
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:15px;
    }

    .footer-right{
        flex-direction:column;
        gap:10px;
    }

}

/* ---------- Very Small Phones ---------- */

@media (max-width:380px){

    .logo img{
        height:30px;
    }

    #language-switcher{
        transform:scale(.92);
        transform-origin:center;
        margin-right:10px;
    }

    .search{
        margin-right:10px;
        font-size:24px;
    }

    .burger{
        width:38px;
        height:38px;
    }

}

/* =========================================================
   LAYOUT FIX
========================================================= */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#offers {
  width: 100%;
}

/* =========================================================
   SEARCH (CLEAN Ч “ќЋ№ ќ OVERLAY)
========================================================= */

.search button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* ”ƒјЋ»Ћ» expand input полностью */

/* =========================================================
   TEXT FIX
========================================================= */

.desc {
  text-align: center;
  color: #666;
  max-width: 100%;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* =========================================================
   PARTNERS PAGE
========================================================= */

.partners-page #partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.partners-page .partner-card {
  position: relative;
  border-radius: 10px; /* как в index */
  overflow: hidden;
  background: #fff;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/*  ј–“»Ќ ј Ч Ѕ≈« ќЅ–≈« » */
.partners-page .img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* стрелка как в index */
.partners-page .partner-card {
  position: relative; /* ключ */
}

.partners-page .corner-arrow {
  width: 32px;
  height: 32px;

  border-top-left-radius: 14px;
  border-bottom-right-radius: 10px;
}

/* низ */
.partners-page .partner-bottom {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.partners-page .partner-title {
  color: #c94c4c;
  font-weight: 600;
}

.partners-page .partner-count {
  color: #3b5bdb;
  font-weight: bold;
}

.partners-page .partner-card {
  transition: all 0.25s ease;
}

.partners-page .partner-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;

  box-shadow: -7px -7px 10px rgba(0,0,0,0.1); /* начальна¤ */
}

.partners-page .partner-card:hover {
  box-shadow: 7px 7px 10px rgba(0,0,0,0.12); /* инверси¤ */
  transform: translateY(-2px);
}

.partners-page .partner-bottom {
  padding: 8px 14px; /* было больше */
}

/* =========================================================
   PARTNERS Ч PROMO + FLIP (SAFE CLEAN)
========================================================= */

/* === WRAPPER === */

.partners-page .promo-wrapper {
  background: #fff;
  padding: 40px 0 0;
  margin-top: 40px;
  border-radius: 0 0 14px 14px;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.12),
    0 5px 15px rgba(0,0,0,0.08);
  text-align: center;
  overflow: hidden;
}

/* === BUTTON === */

.partners-page .get-code {
  display: inline-block;
  margin-bottom: 30px;
  padding: 10px 26px;
  border-radius: 5px;
  border: 1.5px solid #d4573d;
  color: #d4573d;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
}

/* === CONTAINER === */

.partners-page .flip-container {
  width: 100%;
  height: 260px;
  margin: 0;
  position: relative;
  perspective: 1400px;
}

/* === CARD === */

.partners-page .flip-card {
  width: 100%;
  height: 100%;
  position: relative;

  transform-style: preserve-3d;

  /* оставил твою последнюю анимацию */
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);

  transform-origin: 50% 50% !important;
}

/* hover */
.partners-page .flip-container:hover .flip-card {
  transform: rotateX(180deg);
}

/* === SIDES === */

.partners-page .flip-front,
.partners-page .flip-back {
  position: absolute;
  inset: 0;

  backface-visibility: hidden;
  transform-style: preserve-3d;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === FRONT === */

.partners-page .flip-front {
  border-radius: 0 0 14px 14px;

  background: linear-gradient(
    to bottom,
    #eeeeee 0%,
    #e5e5e5 50%,
    #dcdcdc 100%
  );

  transform: rotateX(0deg) translateZ(2px);
}

/* === BACK === */

.partners-page .flip-back {
  border-radius: 0 0 14px 14px;

  background: #fff;
  border: 1px solid #e0e0e0;

  padding: 40px 20px;
  text-align: center;

  transform: rotateX(180deg) translateZ(2px);
}

/* === BACK CONTENT === */

.partners-page .flip-back h3 {
  font-size: 26px;
  font-weight: 600;
  color: #666;
  margin-bottom: 15px;
}

.partners-page .flip-back p {
  font-size: 16px;
  color: #888;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.partners-page .choose-btn {
  padding: 10px 24px;
  border-radius: 5px;
  border: 1.5px solid #4a7bdc;
  background: transparent;
  color: #4a7bdc;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* === CAT === */

.partners-page .flip-front img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  border: 1px solid #fff;
  border-radius: 50%;
  margin-bottom: 20px;

  transform: translateZ(60px);
}

.partners-page .flip-container:hover .flip-front img {
  transform: translateZ(20px);
}

/* === TEXT DEPTH === */

.partners-page .flip-front h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 10px;
  transform: translateZ(30px);
}

.partners-page .flip-front p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transform: translateZ(20px);
}
/* FORCE SLOW FLIP */

.partners-page .flip-card {
  transition: transform 3.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
/* ===== FIX GRID (јƒјѕ“»¬) ===== */

@media (max-width: 900px) {
  .partners-page #partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .partners-page #partners-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== FIX CORNER ===== */

.partners-page .corner-arrow {
  position: absolute;
  bottom: 0;
  right: 0;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;
}
/* ===== CARD SAFE WIDTH ===== */

.partners-page .partner-card {
  width: 100%;
}
/* ===== FIX CORNER SIZE ===== */

.partners-page .corner-arrow {
  width: 24px;
  height: 24px;

  border-top-left-radius: 10px;
  border-bottom-right-radius: 6px;
}

/* уменьшаем иконку внутри */
.partners-page .corner-arrow svg {
  width: 12px;
  height: 12px;
}


/* ===== MOVE COUNT LEFT ===== */

.partners-page .partner-bottom {
  padding-right: 32px; /* чтобы цифра не заходила под угол */
}

.partners-page .partner-count {
  margin-right: 6px;
}
/* ===== BIGGER ARROW INSIDE SMALL CORNER ===== */

.partners-page .corner-arrow svg {
  width: 16px;
  height: 16px;
}

/* делаем линию толще */
.partners-page .corner-arrow svg path {
  stroke-width: 3;
}
/* ===== REAL 3D POP EFFECT ===== */

.partners-page .flip-front img {
  transform: translateZ(60px) scale(1);
  transition: transform 1.2s cubic-bezier(0.22, 1.6, 0.36, 1);
}

/* при начале переворота */
.partners-page .flip-container:hover .flip-front img {
  transform: translateZ(30px) scale(0.92);
}
.partners-page .flip-front h3 {
  transform: translateZ(40px);
  transition: transform 1.2s cubic-bezier(0.22, 1.6, 0.36, 1);
}

.partners-page .flip-front p {
  transform: translateZ(30px);
  transition: transform 1.2s cubic-bezier(0.22, 1.6, 0.36, 1);
}

.partners-page .flip-container:hover .flip-front h3 {
  transform: translateZ(10px);
}

.partners-page .flip-container:hover .flip-front p {
  transform: translateZ(5px);
}

/* =========================================================
   PARTNERS BUTTONS Ч FINAL FIX
========================================================= */

/* GET CODE (главна¤ кнопка) */
.partners-page .get-code {
  border: 1.5px solid #c94c4c;
  color: #c94c4c;
  background: transparent;
  transition: all 0.25s ease;
}

.partners-page .get-code:hover {
  background: #c94c4c;
  color: #fff;
}

/* CHOOSE BUTTON (син¤¤) */
.partners-page .choose-btn {
  border: 1.5px solid #3b5bdb;
  color: #3b5bdb;
  background: transparent;
  transition: all 0.25s ease;
}

.partners-page .choose-btn:hover {
  background: #3b5bdb;
  color: #fff;
}

/* =========================================================
   HEADER SEARCH Ч FINAL HARD FIX
========================================================= */

.header-inner {
  display: flex;
  align-items: center;
}

.search{

    margin-left:14px;

    display:flex;
    align-items:center;

}

/* кнопка */
.search-button {
  position: relative;

  background: none;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   ∆®—“ ќ  –ј—»ћ ¬—≈ SVG ¬Ќ”“–»
========================================================= */

.search-button svg * {
  stroke: #333 !important;
}

/* =========================================================
   ICONS SWITCH
========================================================= */

.icon-search {
  display: block;
}

.icon-close {
  display: none;
}

body.search-open .icon-search {
  display: none;
}

body.search-open .icon-close {
  display: block;
}

/* =========================================================
   SEARCH OVERLAY Ч CLEAN + RESPONSIVE
========================================================= */

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;

  background: rgba(255,255,255,0.75);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.25s ease;

  z-index: 20000;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 90%;
  max-width: 900px;
}

.search-overlay input {
  width: 100%;
  font-size: 24px;

  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);

  background: transparent;
  outline: none;

  padding: 10px 0;
  color: #222;
}

/* =========================================================
   MOBILE FIX (FLIP + BUTTON)
========================================================= */

@media (max-width: 600px) {

  .partners-page .get-code {
    width: 90%;
    max-width: 320px;
    margin: 0 auto 25px;

    display: block;
    text-align: center;
  }

  .partners-page .flip-container {
    height: auto;
  }

  .partners-page .flip-card {
    min-height: 360px;
  }

  .partners-page .flip-front,
  .partners-page .flip-back {
    padding: 25px 15px;
  }

  .partners-page .flip-back p {
    font-size: 15px;
  }

  /* overlay адаптив */
  .search-overlay {
    height: 70px;
  }

  .search-overlay input {
    font-size: 18px;
  }
}

/* =========================================================
   FLIP Ќј  Ћ» 
========================================================= */

.partners-page .flip-card.active {
  transform: rotateX(180deg);
}

/* =========================================================
   FAQ Ч FINAL CLEAN (NO CONFLICTS)
========================================================= */

.faq {
  margin-top: 50px;
}

.faq-item {
  background: #f3f4f7;
  border-radius: 8px;
  margin-bottom: 16px;

  box-shadow:
    0 20px 40px rgba(60, 80, 150, 0.08),
    0 6px 12px rgba(60, 80, 150, 0.05);

  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 25px 50px rgba(60, 80, 150, 0.12),
    0 10px 20px rgba(60, 80, 150, 0.06);
}

/* =========================================================
   HEADER
========================================================= */

.faq-header {
  padding: 20px 50px 20px 24px; /* место под стрелку */
  cursor: pointer;

  font-size: 17px;
  font-weight: 600;
  color: #444;

  position: relative;
}

/* стрелка (как в news) */
.faq-header::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;

  width: 10px;
  height: 10px;

  border-right: 2px solid #666;
  border-bottom: 2px solid #666;

  transform: translateY(-50%) rotate(45deg);
  transition: 0.25s ease;
}

.faq-item.active .faq-header::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* =========================================================
   CONTENT
========================================================= */

.faq-content {
  max-height: 0;
  overflow: hidden;

  padding: 0 24px;

  color: #666;
  font-size: 15px;
  line-height: 1.6;

  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  padding: 15px 24px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .faq-header {
    font-size: 15px;
    padding: 16px 45px 16px 16px;
  }

  .faq-content {
    font-size: 14px;
  }

}

/* =========================================================
   AMUSEMENTS (FIX BUTTONS)
========================================================= */

.amusements {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.amusements a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 200px;
  padding: 12px 28px;

  border-radius: 8px;
  border: 1.5px solid #c94c4c;

  color: #c94c4c;
  background: transparent;

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;

  transition: all 0.25s ease;
}

.amusements a:hover {
  cursor: pointer;
  background: #c94c4c;
  color: #fff;
}

@media (max-width: 600px) {
  .amusements a {
    width: 90%;
    max-width: 320px;
  }
}
.promo {
  display: flex;
  gap: 40px;
  background: #f6f6f6;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
}

.promo-left {
  flex: 1;
}

.promo-right {
  width: 350px;
}

.promo-btn {
  background: #4c8bf5;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  margin: 10px 0;
}

.promo-big {
  font-size: 28px;
  color: #4c8bf5;
  font-weight: 700;
}

.promo-days {
  background: red;
  color: #fff;
  display: inline-block;
  padding: 6px 12px;
  margin: 10px 0;
}

.promo-free {
  color: red;
  font-size: 20px;
  font-weight: 700;
}

.timer {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.timer div {
  background: #6fa4d9;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

.full {
  width: 100%;
}
/* ===== HERO ===== */

.fb-hero {
  max-width: 1200px;
  margin: 60px auto;
  display: flex;
  gap: 80px;
  align-items: stretch;
}

/* ===== LEFT ===== */

.fb-left {
  flex: 1;
  display: flex;
}

.fb-left-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  text-align: center;
  width: 100%;
}

/* ===== TITLE ===== */

.fb-left h1 {
  font-size: 72px;
  line-height: 1.02;

  margin: 0 0 6px;

  letter-spacing: -1px;
}

/* ===== DESCRIPTION ===== */

.fb-desc {
  font-size: 24px;
  color: #777;

  line-height: 1.25;

  max-width: 520px;

  margin-bottom: 10px;
}

.fb-desc span {
  color: #5f7bff;
  font-weight: 700;
}

/* ===== MAIN BLUE BUTTON ===== */

.fb-btn-main {
  width: 460px;
  height: 72px;

  border-radius: 8px;
  border: 1px solid #E7EAF2;

  outline: 1px solid #E7EAF2;

  font-size: 22px;
  font-weight: 700;
  color: #fff;

  background: linear-gradient(
    180deg,
    #7282ff,
    #5f7bff
  );

  margin-bottom: 6px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 6px 18px rgba(95,123,255,0.28);

  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* hover */

.fb-btn-main:hover {
  background: linear-gradient(
    180deg,
    #d46860,
    #c6534c
  );

  box-shadow:
    0 8px 20px rgba(198,83,76,0.35);

  transform: translateY(-2px);
}

/* ===== HELP LINK ===== */

.fb-help {
  margin-bottom: 6px;

  font-size: 15px;
}

/* ===== MINI BLOCK ===== */

.fb-mini {
  margin-bottom: -24px;

  line-height: 1.35;
  color: #777;
}

.fb-mini strong {
  display: block;

  font-size: 56px;
  font-weight: 800;

  color: #7a7a7a;

  margin-bottom: 2px;
}

/* ===== TEXT SLIDER ===== */

.fb-big {
  margin-top: 0;
  margin-bottom: 10px;
}

/* softer glow */

.fb-word {
  text-shadow:
    0 1px 0 #ffffff,
    0 2px 4px rgba(95,123,255,0.18),
    0 0 6px rgba(95,123,255,0.16);
}

/* ===== CENTER PROMO BLOCK ===== */

.fb-promo-center {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 8px 0 6px;
}

/* ===== DAYS ===== */

.fb-days {
  width: 240px;
  height: 60px;

  background: #c6534c;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

	border: 1px solid #E7EAF2;

  outline: 1px solid #E7EAF2;

  font-size: 20px;
  font-weight: 700;

  margin-bottom: 14px;

  box-shadow:
    0 3px 10px rgba(198,83,76,0.2);

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
}

/* hover */

.fb-days:hover {
  background: #5f7bff;

  box-shadow:
    0 5px 16px rgba(95,123,255,0.28);

  transform: translateY(-2px);
}

/* ===== FREE TEXT ===== */

.fb-free {
  color: #c6534c;

  font-size: 36px;
  font-weight: 800;

  margin: 2px 0 4px;

  text-shadow:
    0 1px 0 #fff,
    0 2px 4px rgba(198,83,76,0.14);
}

/* ===== SUB TEXT ===== */

.fb-sub {
  color: #777;

  font-size: 20px;
  font-weight: 500;

  line-height: 1.42;

  margin-bottom: 18px;
}

/* ===== TIMER ===== */

.fb-time {
  font-size: 32px;
  font-weight: 500;

  text-align: center;

  color: #4b5563;

  letter-spacing: 0.3px;

  margin-bottom: 14px;
}

.fb-timer {
  display: flex;
  gap: 18px;
  justify-content: center;

  margin-top: 0;
  margin-bottom: -8px;
}

/* ===== TIMER BOX ===== */

.fb-timer .time-box {
  width: 80px;
  height: 80px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    180deg,
    rgba(150, 175, 225, 0.82),
    rgba(100, 125, 185, 0.82)
  );

  border-radius: 10px;

  border: 1px solid rgba(95,123,255,0.65);

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.28),
    0 3px 8px rgba(0,0,0,0.12),
    0 0 3px rgba(95,123,255,0.16);
}

/* ===== DIGITS ===== */

.fb-timer b {
  display: block;
  perspective: 400px;
}

/* ===== NUMBER ===== */

.fb-timer b span {
  display: inline-block;

  font-size: 30px;
  font-weight: 800;
  line-height: 1;

  color: #f4f7ff;

  text-shadow:
    0 1px 0 #ffffff,
    0 2px 0 #d5defe,
    0 3px 6px rgba(0,0,0,0.18);

  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}

/* ===== LABEL ===== */

.fb-timer .label {
  font-size: 15px;
  margin-top: 6px;

  color: #eef2ff;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.12);
}

/* ===== PURCHASED ===== */

.fb-purchased {
  width: fit-content;

  margin: 20px auto 0;

  text-align: left;

  font-size: 20px;
  color: #2c2c2c;
  font-weight: 700;
}

/* ===== COUNT ===== */

#purchaseCount {
  font-size: 28px;
  font-weight: 800;

  color: #c85c4d;

  text-shadow:
    0 1px 0 #fff,
    0 2px 4px rgba(0,0,0,0.14),
    0 0 4px rgba(200,92,77,0.16);
}

/* ===== VERIFIED ===== */

.fb-verified {
  margin-top: 6px;

  font-size: 16px;
  color: #6b7280;

  font-weight: 600;
}

/* ===== RIGHT ===== */

.fb-right {
  flex: 1;
  display: flex;
}

.fb-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* ===== IMAGE ===== */

.fb-image {
  position: relative;
  overflow: visible;
}

.fb-image img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 16px 16px 0 0;
}

/* ===== BADGE ===== */

.fb-hero .fb-right .fb-card .fb-image > .fb-badge {
  position: absolute;

  top: clamp(-2px, -0.8vw, -14px);
  left: clamp(-10px, -0.8vw, -14px);

  transform: translateY(-12%);

  background: #c6534c;
  color: #fff;

  /* адаптивный размер */
  width: clamp(78px, 9vw, 120px);

  padding:
    clamp(10px, 1vw, 18px)
    0;

  border-radius:
    clamp(8px, 1vw, 10px)
    0
    clamp(8px, 1vw, 10px)
    clamp(8px, 1vw, 10px);

  font-size: clamp(9px, 0.8vw, 13px);

  text-align: center;

  box-shadow:
    0 10px 24px rgba(0,0,0,0.22);

  z-index: 10;

  white-space: nowrap;
}

.fb-hero .fb-right .fb-card .fb-image > .fb-badge b {
  display: block;

  font-size: clamp(20px, 2vw, 26px);

  line-height: 1;

  margin-bottom: 2px;
}

/* ===== BOTTOM BADGES ===== */

.fb-badges-bottom {
  position: absolute;

  right: 18px;
  bottom: 20px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  z-index: 20;
}

.fb-badge-small {
  min-width: 160px;

  background: rgba(201, 76, 76, 0.6);

  color: #fff;

  padding: 5px 10px;

  border-radius: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  font-size: clamp(11px, 0.8vw, 16px);
  font-weight: 700;

  line-height: 1;

  backdrop-filter: blur(4px);

  box-shadow:
    0 4px 10px rgba(0,0,0,0.18);
}

/* ===== HEAD ===== */

.fb-head {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;

  padding: 0 16px; /* воздух */
}

.fb-brand {
  color: #c6534c;
  font-weight: 600;
  font-size: 30px;
}

.fb-plan {
  color: #c6534c;
  font-size: 16px;
  font-weight: 600;
}

/*  Ћё„≈¬ќ≈ »—ѕ–ј¬Ћ≈Ќ»≈ */

.fb-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  text-align: left;
  color: #5f7bff;
  font-weight: 700;
  font-size: 30px;
}

.fb-price span {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

/* ===== ADVANTAGES ===== */

.fb-adv-title {
  text-align: center;
  margin: 20px 0;
  font-weight: 700;
  font-size: 24px;
}

.fb-advantages {
  margin-top: 10px;
}

.fb-advantages ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.fb-advantages li {
  position: relative;
  padding-left: 30px;
  color: #c6534c;
  line-height: 1.4;
}

.fb-advantages li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;   /* было 14 Ч уменьшили */
  color: #c6534c;
  line-height: 1.3;     /* плотнее строки */
}

.fb-advantages li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 2px;             /* к началу строки */

  width: 18px;
  height: 18px;

  border-radius: 50%;
  background: #5f7bff;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* ===== BUTTONS ===== */

.fb-actions {
  display: flex;
  gap: 20px;
  margin-top: auto;
}

.btn-outline {
  flex: 1;

  padding: 16px 12px;   /* выше по вертикали */

  border: 1px solid #5f7bff; /* тоньше */

  border-radius: 8px;

  background: none;
  color: #5f7bff;

  font-weight: 700; /* bold */
}

.btn-outline.red {
  border-color: #c6534c;
  color: #c6534c;
}

.btn-outline {
  transition: all 0.25s ease;
}

/* —»Ќяя */
.btn-outline:hover {
  background: #5f7bff;
  color: #fff;

  box-shadow: 0 0 12px rgba(95,123,255,0.5);
}

/*  –ј—Ќјя */
.btn-outline.red:hover {
  background: #c6534c;
  color: #fff;

  box-shadow: 0 0 12px rgba(198,83,76,0.5);
}

.fb-big {
  position: relative;
  height: 120px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 64px;
  font-weight: 800;
  color: #5f7bff;
}

/* все слова накладываютс¤ */
.fb-word {
  position: absolute;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;

  font-weight: 800;

  /* √–јƒ»≈Ќ“ = тело */
  background: linear-gradient(
    180deg,
    #cfe0ff 0%,     /* верхний блик */
    #7fa0ff 35%,
    #4f6cff 60%,
    #2f4cff 100%    /* тЄмный низ */
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* √Ћ”Ѕ»Ќј (самое важное) */
  text-shadow:
    0 1px 0 #dfe8ff,        /* светлый верхний край */
    0 2px 0 #b9c8ff,
    0 3px 0 #8fa5ff,
    0 4px 0 #6a85ff,
    0 6px 10px rgba(0,0,0,0.25), /* тень вниз */
    0 0 12px rgba(95,123,255,0.6); /* неон */
}

.fb-word {
  position: absolute;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-bottom: -16px;

  white-space: nowrap;
  font-weight: 800;

  /* Ѕј«ќ¬џ… ÷¬≈“ (чтобы текст Ќ» ќ√ƒј не исчезал) */
  color: #5f7bff;

  /* ќЅЏ®ћ */
  text-shadow:
    0 1px 0 #dfe6ff,
    0 2px 0 #c2d0ff,
    0 3px 0 #9fb6ff,
    0 4px 0 #7a98ff,
    0 6px 10px rgba(0,0,0,0.25),

    /* свечение */
    0 0 10px rgba(95,123,255,0.6),
    0 0 20px rgba(95,123,255,0.4);
}

.fb-word.is-visible {
  opacity: 1;
}

.fb-mini {
  text-align: center;

  font-size: 20px;       /* увеличиваем */
  font-weight: 500;

  color: #6f6f6f;
  line-height: 1.4;
}

/* отдельно делаем "Fileboom" крупнее */
.fb-mini strong {
  display: block;
  font-size: 42px;
  font-weight: 700;

  color: #7a7a7a;

  margin-bottom: 16px;
}

/* ========================================
   SAFE RESPONSIVE
======================================== */

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {

  .fb-hero {
    gap: 40px;
    padding: 0 20px;
  }

  .fb-left h1 {
    font-size: 58px;
  }

  .fb-big {
    font-size: 54px;
  }

  .fb-btn-main {
    width: 100%;
    max-width: 460px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 900px) {

  .fb-hero {
    flex-direction: column;

    align-items: center;

    gap: 50px;

    margin: 40px auto;

    padding: 0 18px;
  }

  .fb-left,
  .fb-right {
    width: 100%;
    max-width: 760px;
  }

  .fb-left h1 {
    font-size: 48px;
  }

  .fb-desc {
    font-size: 20px;
  }

  .fb-big {
    font-size: 48px;
    height: 90px;
  }

  .fb-btn-main {
    width: 100%;
    max-width: 100%;
  }

  .fb-actions {
    flex-direction: column;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 540px) {

  .fb-left h1 {
    font-size: 36px;
  }

  .fb-desc {
    font-size: 17px;
  }

  .fb-big {
    font-size: 36px;
    height: 70px;
  }

  .fb-mini strong {
    font-size: 30px;
  }

  .fb-btn-main {
    height: 56px;
    font-size: 18px;
  }

  .fb-days {
    width: 100%;
    max-width: 220px;
  }

  .fb-sub {
    font-size: 16px;
  }

  .fb-time {
    font-size: 22px;
  }

  .fb-timer {
    gap: 10px;
    flex-wrap: wrap;
  }

  .fb-timer .time-box {
    width: 64px;
    height: 64px;
  }

  .fb-timer b span {
    font-size: 20px;
  }

  .fb-timer .label {
    font-size: 11px;
  }

  .fb-head {
    padding: 0;
  }

  .fb-brand,
  .fb-price {
    font-size: 22px;
  }

  .fb-advantages ul {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE BADGES ===== */

@media (max-width: 768px) {

  .fb-badges-bottom {
    right: 7px;
    bottom: 7px;

    gap: 4px;
  }

  .fb-badge-small {
    min-width: unset;

    width: auto;
    max-width: 38vw;

    padding: 0.42em 0.9em;

    border-radius: 4px;

    font-size: clamp(8px, 2.4vw, 12px);
    font-weight: 700;

    line-height: 1.08;

    backdrop-filter: blur(3px);

    box-shadow:
      0 2px 6px rgba(0,0,0,0.14);
  }

}

/* =========================================================
   MOBILE MENU
========================================================= */

.burger{
    display:none;

    width:42px;
    height:42px;

    padding:0;
    margin-left:15px;

    border:none;
    background:transparent;

    cursor:pointer;

    flex:0 0 auto;

    align-items:center;
    justify-content:center;
    flex-direction:column;   /* Полоски друг под другом */
}

.burger span{
    display:block;

    width:26px;
    height:3px;

    margin:3px 0;

    background:#333;
    border-radius:2px;

    transition:all .25s ease;
}

/* Показываем бургер на планшетах и телефонах */

@media (max-width:900px){

    .burger{
        display:flex;
        order:4;
    }

}

/* На больших экранах бургер скрываем */

@media (min-width:901px){

    .burger{
        display:none;
    }

}

/* ==========================================================
   MOBILE MENU
========================================================== */

.mobile-menu {

    position: fixed;

    top: 0;
    right: -320px;

    width: 152px;
    max-width: 80vw;
    height: auto;

	max-height: calc(100vh - 40px);

    display: flex;
    flex-direction: column;

    background: #1d1d1d;
    border-left: 1px solid rgba(255,255,255,.08);
	
	border-radius: 0 0px 0 12px;

    box-shadow: -15px 0 35px rgba(0,0,0,.45);

    transition: right .35s ease;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 10001;

    box-sizing: border-box;
}

.mobile-menu.active {

    right: 0;

}

.mobile-overlay {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.45);

    opacity: 0;
    visibility: hidden;

    transition: opacity .3s ease;

    z-index: 10000;

}

.mobile-overlay.active {

    opacity: 1;
    visibility: visible;

}

/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */

.mobile-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 18px;

    min-height: 72px;

    border-bottom: 1px solid rgba(255,255,255,.05);

    flex-shrink: 0;

}

.mobile-language{

    display:flex;
    align-items:center;

    flex:1;

}

.mobile-language #mobile-language-switcher{

    display:flex;
    align-items:center;

}

.mobile-header img {

    height: 34px;
    width: auto;

}

.mobile-close {

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    border: none;
    border-radius: 10px;

    color: #ffffff;

    font-size: 28px;

    cursor: pointer;

    transition: background .2s ease,
                transform .2s ease;

}

.mobile-close:hover {

    background: rgba(255,255,255,.08);

}

.mobile-close:active {

    transform: scale(.94);

}

/* ----------------------------------------------------------
   MENU
---------------------------------------------------------- */

.mobile-nav {

    display: flex;
    flex-direction: column;

    gap: 2px;

    padding: 24px 12px 20px;

}

.mobile-nav a {

    position: relative;

    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 0 16px 0 18px;

    color: #ffffff;

    text-decoration: none;

    font-size: 17px;
    font-weight: 500;

    border-radius: 8px;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

    user-select: none;

}

.mobile-nav a:hover {

    background: rgba(255,255,255,.06);

}

.mobile-nav a:active {

    transform: scale(.98);

}

/* ----------------------------------------------------------
   ACTIVE
---------------------------------------------------------- */

.mobile-nav a.active {

    background: transparent;

    color: #8d98ff;

}

.mobile-nav a.active::before {

    content: "";

    position: absolute;

    left: 2px;
    top: 8px;
    bottom: 8px;

    width: 4px;

    border-radius: 0 4px 4px 0;

    background: #6d7cff;

}

/* ----------------------------------------------------------
   SCROLLBAR
---------------------------------------------------------- */

.mobile-menu::-webkit-scrollbar {

    width: 6px;

}

.mobile-menu::-webkit-scrollbar-thumb {

    background: rgba(255,255,255,.15);

    border-radius: 20px;

}

/* ----------------------------------------------------------
   DESKTOP
---------------------------------------------------------- */

@media (min-width:993px){

    .mobile-menu,
    .mobile-overlay{

        display:none;

    }

}