/* =========================================================
   ОптЛист — современная B2B-площадка
   Чистый CSS с дизайн-системой через CSS-переменные.
   ========================================================= */

:root {
  /* Brand */
  --background: hsl(220, 30%, 98%);
  --foreground: hsl(222, 47%, 11%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(220, 20%, 96%);
  --muted-fg: hsl(215, 16%, 45%);
  --border: hsl(220, 20%, 90%);

  --primary: hsl(222, 65%, 22%);
  --primary-fg: hsl(210, 40%, 98%);
  --primary-glow: hsl(222, 70%, 35%);

  --accent: hsl(22, 95%, 55%);
  --accent-fg: #fff;
  --accent-glow: hsl(30, 100%, 65%);

  --secondary: hsl(220, 25%, 94%);
  --success: hsl(152, 60%, 42%);
  --destructive: hsl(0, 84%, 60%);

  --radius: 14px;

  --gradient-hero: linear-gradient(135deg, hsl(222, 65%, 18%) 0%, hsl(222, 60%, 28%) 60%, hsl(22, 80%, 35%) 120%);
  --gradient-accent: linear-gradient(135deg, hsl(22, 95%, 55%) 0%, hsl(30, 100%, 65%) 100%);
  --gradient-card: linear-gradient(180deg, #fff 0%, hsl(220, 30%, 98%) 100%);
  --gradient-soft: linear-gradient(135deg, hsl(220, 30%, 97%) 0%, hsl(22, 60%, 96%) 100%);

  --shadow-sm: 0 1px 2px hsl(222 47% 11% / 0.04);
  --shadow-md: 0 4px 12px -2px hsl(222 47% 11% / 0.08);
  --shadow-lg: 0 18px 40px -12px hsl(222 47% 11% / 0.18);
  --shadow-glow: 0 12px 40px -8px hsl(22 95% 55% / 0.45);
  --shadow-card: 0 2px 6px -1px hsl(222 47% 11% / 0.06), 0 8px 24px -8px hsl(222 47% 11% / 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
input { font: inherit; }
::selection { background: hsl(22 95% 55% / 0.25); color: var(--primary); }

h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; line-height: 1.15; }

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 112px 0; } }
.section-soft { background: var(--gradient-soft); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: 36px; margin-top: 12px; }
@media (min-width: 768px) { .section-head h2 { font-size: 44px; } }
.section-head p { color: var(--muted-fg); font-size: 17px; margin-top: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.row-between { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.link-strong { font-weight: 600; color: var(--primary); transition: color 0.2s; }
.link-strong:hover { color: var(--accent); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-glow); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--gradient-accent); color: var(--accent-fg); box-shadow: var(--shadow-glow); }
.btn-accent:hover { transform: translateY(-1px) scale(1.02); }
.btn-ghost { color: var(--primary); }
.btn-ghost:hover { color: var(--accent); }
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid hsl(220 20% 90% / 0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--gradient-accent);
  display: grid; place-items: center;
  color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-glow);
}
.logo-text { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 20px; color: var(--primary); letter-spacing: -0.02em; }
.logo-text .accent { color: var(--accent); }

.main-nav { display: none; gap: 4px; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a {
  padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: hsl(222 47% 11% / 0.8);
  transition: all 0.2s;
}
.main-nav a:hover { background: var(--secondary); color: var(--accent); }

.header-actions { display: none; align-items: center; gap: 8px; }
@media (min-width: 768px) { .header-actions { display: flex; } }

.menu-toggle { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: all 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-top: 1px solid var(--border); background: var(--background); }
.mobile-menu a { padding: 12px; border-radius: 10px; font-weight: 500; }
.mobile-menu a:hover { background: var(--secondary); }
.mobile-actions { display: flex; gap: 8px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--border); }
.mobile-actions .btn { flex: 1; }

/* ========== HERO ========== */
.hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
@media (min-width: 1024px) { .hero { padding: 112px 0 128px; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  opacity: 0.9;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, hsl(22 95% 55% / 0.25), transparent 60%);
}

.hero-content { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
}
.badge-light {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

.hero-title {
  font-size: 48px; color: #fff; margin-top: 24px;
  animation: fade-up 0.7s var(--ease) both;
}
@media (min-width: 640px) { .hero-title { font-size: 60px; } }
@media (min-width: 1024px) { .hero-title { font-size: 72px; } }
.hero-subtitle {
  display: block;
  font-size: 22px; font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px; line-height: 1.3;
}
@media (min-width: 640px) { .hero-subtitle { font-size: 28px; } }
@media (min-width: 1024px) { .hero-subtitle { font-size: 36px; } }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 24px; font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  animation: fade-up 0.7s var(--ease) 0.1s both;
}

.hero-cta {
  margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px;
  animation: fade-up 0.7s var(--ease) 0.2s both;
}

/* Search */
.search-card {
  margin-top: 48px;
  background: #fff; padding: 8px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 8px;
  max-width: 880px;
  animation: fade-up 0.7s var(--ease) 0.3s both;
}
@media (min-width: 640px) { .search-card { flex-direction: row; } }
.search-input {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.search-input svg { width: 20px; height: 20px; color: var(--muted-fg); flex-shrink: 0; }
.search-input input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--foreground); font-size: 15px; }
.search-input input::placeholder { color: var(--muted-fg); }

.search-type { position: relative; }
.search-type-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--secondary); color: var(--foreground);
  font-weight: 500; font-size: 14px;
  width: 100%;
  transition: background 0.2s;
}
.search-type-btn:hover { background: hsl(220 25% 88%); }
.search-type-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.search-type-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.search-type-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 4px; z-index: 10;
  animation: fade-in 0.2s var(--ease);
}
.search-type-menu li {
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font-size: 14px; transition: background 0.15s;
}
.search-type-menu li:hover { background: var(--secondary); color: var(--accent); }

/* Hero stats */
.hero-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 880px;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stats dt { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 30px; color: #fff; }
@media (min-width: 640px) { .hero-stats dt { font-size: 36px; } }
.hero-stats dd { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }

/* ========== FEATURE CARDS ========== */
.feature-card {
  position: relative; overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: block;
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px; color: #fff;
  box-shadow: var(--shadow-glow);
  position: relative;
}
.feature-icon.accent { background: var(--gradient-accent); }
.feature-icon.primary { background: linear-gradient(135deg, var(--primary), var(--primary-glow)); }
.feature-card h3 { margin-top: 20px; font-size: 20px; }
.feature-card p { margin-top: 8px; color: var(--muted-fg); font-size: 14px; line-height: 1.6; }
.link-arrow {
  display: inline-block; margin-top: 20px;
  color: var(--accent); font-weight: 600; font-size: 14px;
  transition: transform 0.2s;
}
.feature-card:hover .link-arrow { transform: translateX(4px); }

/* ========== CATEGORIES ========== */
.cat-grid { gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-card);
}
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--secondary);
  display: grid; place-items: center;
  font-size: 22px;
  transition: background 0.2s;
}
.cat-card:hover .cat-icon { background: hsl(22 95% 55% / 0.1); }
.cat-card h3 { font-size: 15px; }
.cat-card p { font-size: 12px; color: var(--muted-fg); margin-top: 2px; }

/* ========== TENDERS ========== */
.tender-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.tender-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.muted { color: var(--muted-fg); font-size: 12px; }
.tender-card h3 { margin-top: 16px; font-size: 18px; line-height: 1.35; }
.tender-card h3 a { transition: color 0.2s; }
.tender-card:hover h3 a { color: var(--accent); }
.tender-meta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--muted-fg); font-size: 14px; }
.tender-foot {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tender-foot small { color: var(--muted-fg); font-size: 12px; display: block; }
.tender-foot strong { color: var(--primary); font-weight: 700; }

.badge-urgent { background: hsl(0 84% 60% / 0.1); color: var(--destructive); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-new { background: hsl(152 60% 42% / 0.1); color: var(--success); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-popular { background: hsl(22 95% 55% / 0.1); color: var(--accent); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* ========== CTA ========== */
.cta-banner {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .cta-banner { padding: 64px; } }
.cta-glow { position: absolute; width: 384px; height: 384px; border-radius: 50%; filter: blur(80px); }
.cta-glow-1 { top: -96px; right: -96px; background: hsl(22 95% 55% / 0.3); animation: float 6s ease-in-out infinite; }
.cta-glow-2 { bottom: -96px; left: -96px; background: hsl(222 70% 35% / 0.4); }

.cta-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta-grid h2 { color: #fff; font-size: 36px; margin-top: 20px; }
@media (min-width: 1024px) { .cta-grid h2 { font-size: 44px; } }
.cta-grid p { color: rgba(255, 255, 255, 0.8); font-size: 17px; margin-top: 20px; max-width: 480px; }
.cta-buttons { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.benefits { display: flex; flex-direction: column; gap: 14px; }
.benefits li {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.92); font-weight: 500;
  backdrop-filter: blur(8px);
}
.benefits .check {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gradient-accent);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}

/* ========== FOOTER ========== */
.site-footer { background: var(--primary); color: var(--primary-fg); margin-top: 0; }
.footer-grid {
  padding: 64px 16px;
  display: grid; gap: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; padding: 64px 24px; } }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin-top: 16px; max-width: 360px; line-height: 1.6; }
.socials { margin-top: 24px; display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  transition: background 0.2s;
}
.socials a:hover { background: var(--accent); }
.site-footer h4 { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { color: rgba(255, 255, 255, 0.75); font-size: 14px; transition: color 0.2s; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  padding: 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12px; color: rgba(255, 255, 255, 0.6);
}

/* ========== UTILS ========== */
.hover-lift { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ========== ANIMATIONS ========== */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Стили для всех полей ввода в формах */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="tel"], 
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Эффект при клике на поле */
input:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Стиль для кнопок */
form.auth-form button[type="submit"] {
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #2c974b;
}

/* 1. По умолчанию скрываем мобильное меню везде */
.mobile-menu {
    display: none; 
}

/* 2. Показываем его только на экранах меньше 768px (планшеты и телефоны) */
@media (max-width: 767px) {
    /* Мобильное меню будет видно, только когда у него НЕТ атрибута [hidden] */
    .mobile-menu:not([hidden]) {
        display: block;
        position: fixed; /* или absolute, в зависимости от твоей верстки */
        top: 70px; /* высота хедера */
        left: 0;
        width: 100%;
        background: white;
        z-index: 1000;
    }
    
    /* Скрываем обычную навигацию и кнопки на мобилках */
    .main-nav, .header-actions {
        display: none;
    }

    /* Показываем кнопку гамбургера */
    .menu-toggle {
        display: block;
    }
}

/* 3. На больших экранах (компьютеры) */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important; /* Гарантированно скрыто на ПК */
    }
    
    .menu-toggle {
        display: none; /* Скрываем кнопку меню на ПК */
    }
    
    .main-nav, .header-actions {
        display: flex; /* Показываем обычное меню */
    }
}

/* ================= OPTLIST CARD ================= */

.opt-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
}

.opt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.15);
}

/* IMAGE */
.opt-card__image {
  position: relative;
  height: 210px;
  background: #f3f3f3;
  overflow: hidden;
}

.opt-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opt-card__noimg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* BADGE */
.opt-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* BODY */
.opt-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* TITLE */
.opt-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* TEXT */
.opt-card__text {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* META */
.opt-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

/* FOOTER */
.opt-card__footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

/* BUTTON */
.opt-card__btn {
  text-decoration: none;
  font-size: 13px;
  color: #2f6bff;
  font-weight: 500;
}

.opt-card__btn:hover {
  color: #1749c7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.cat-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  align-items: center;
  background: #fff;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.cat-icon {
  font-size: 22px;
}

/* выбранная категория */
.cat-card input:checked + .cat-icon {
  font-weight: bold;
}

.cat-card:has(input:checked) {
  border: 2px solid #111;
  background: #f7f7f7;
}

.section-tight {
  padding-top: 30px;
}

.section-compact .section-head {
  margin-bottom: 24px;
}

/* ===== PROFILE WRAPPER ===== */
.profile-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.profile-header-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
}

/* ===== GRID ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* ===== SIDEBAR ===== */
.profile-sidebar {
  padding: 15px;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--foreground);
  text-decoration: none;
  transition: 0.2s;
}

.profile-nav a:hover {
  background: var(--background);
}

.profile-nav a.active {
  background: var(--accent);
  color: #fff;
}

/* ===== MAIN ===== */
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== INFO ===== */
.card-title {
  margin-bottom: 15px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.info-row span {
  color: #888;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat {
  text-align: center;
  padding: 20px;
}

.stat h3 {
  font-size: 26px;
  margin-bottom: 5px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.product-page-box{
  max-width:1100px;
  margin:50px auto;
  padding:35px;
  background:white;
  border:1px solid #e2e8f0;
  border-radius:25px;
  display:grid;
  grid-template-columns:380px 1fr;
  gap:40px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  }
  
  .product-page-image{
  height:380px;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:12px;
  }
  
  .product-page-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:15px;
  }
  
  .product-no-image{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:70px;
  background:#f8fafc;
  border-radius:15px;
  }
  
  .product-page-category{
  display:inline-block;
  padding:8px 16px;
  background:#eff6ff;
  color:#2563eb;
  border-radius:20px;
  font-weight:600;
  }
  
  .product-page-content h1{
  font-size:42px;
  margin:20px 0;
  }
  
  .product-page-description{
  font-size:20px;
  line-height:1.6;
  color:#475569;
  }
  
  .product-page-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
  margin-top:30px;
  }
  
  .product-page-info div{
  padding:18px;
  border:1px solid #e2e8f0;
  border-radius:15px;
  }
  
  .product-page-info span{
  display:block;
  color:#64748b;
  font-size:14px;
  margin-bottom:8px;
  }
  
  .product-page-info strong{
  font-size:18px;
  }
  
  .product-contact-btn{
  display:inline-block;
  margin-top:30px;
  padding:15px 30px;
  background:#16a34a;
  color:white;
  border-radius:12px;
  font-size:18px;
  font-weight:700;
  text-decoration:none;
  }
  
  @media(max-width:800px){
  .product-page-box{
  grid-template-columns:1fr;
  }
  
  .product-page-info{
  grid-template-columns:1fr;
  }
  }

  .opt-detail-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    padding:15px 25px;
    background:#2563eb;
    color:white;
    border-radius:14px;
    font-size:17px;
    font-weight:700;
    text-decoration:none;
    border:2px solid #2563eb;
    transition:.25s ease;
    }
    
    .opt-detail-btn span{
    font-size:22px;
    transition:.25s ease;
    }
    
    .opt-detail-btn:hover{
    background:white;
    color:#2563eb;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(37,99,235,.25);
    }
    
    .opt-detail-btn:hover span{
    transform:translateX(6px);
    }

    .google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 48px;
    margin-top: 16px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 6px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25);
}

.google-login-btn svg {
    flex-shrink: 0;
}

.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f7f8fa;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    padding: 42px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo a {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    letter-spacing: -1px;
}

.auth-logo span {
    color: #2563eb;
}

.auth-card h1 {
    text-align: center;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.auth-subtitle {
    text-align: center;
    color: #6b7280;
    margin: 10px 0 28px;
    font-size: 15px;
}

.google-login-btn {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.google-login-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 19px;
    font-weight: 700;
    color: #4285f4;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    color: #9ca3af;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-label a {
    color: #2563eb;
    font-size: 13px;
    text-decoration: none;
}

.password-label a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.register-text {
    text-align: center;
    margin: 26px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.register-text a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

.auth-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
}

.auth-page {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 42px 38px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.auth-icon {
  font-size: 42px;
  margin-bottom: 15px;
}

.auth-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}

.auth-description {
  margin: 0 0 28px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

.form-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  background: #2563eb;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.auth-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.auth-button-link {
  display: block;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

.auth-card input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-button-link {
  display: block;
  text-decoration: none;
  box-sizing: border-box;
}
.required-star {
    color: red;
    margin-left: 3px;
    font-weight: bold;
}

.auth-success {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #e8f7ee;
    color: #218838;
    text-align: center;
    font-size: 14px;
}

.tender-detail-page {
background: #f7f8fa;
}

.tender-detail-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 340px;
gap: 30px;
align-items: start;
}

.tender-detail-main,
.buyer-card,
.tender-meta-card {
background: #fff;
border: 1px solid #e8eaee;
border-radius: 18px;
box-shadow: 0 8px 30px rgba(20, 30, 50, .06);
}

.tender-detail-main {
padding: 32px;
}

.tender-detail-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 15px;
margin-bottom: 22px;
}

.tender-detail-badges {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
}

.category-label {
color: #667085;
font-size: 14px;
}

.tender-date {
color: #98a2b3;
font-size: 14px;
}

.tender-detail-title {
font-size: clamp(28px, 4vw, 46px);
line-height: 1.1;
margin: 0 0 28px;
color: #182230;
}

.tender-detail-image {
margin: 0 -32px 30px;
}

.tender-detail-image img {
width: 100%;
max-height: 430px;
object-fit: cover;
display: block;
}

.tender-description-box {
padding-bottom: 28px;
border-bottom: 1px solid #eaecf0;
}

.tender-description-box h2,
.tender-info-box h2 {
font-size: 21px;
margin-bottom: 14px;
}

.tender-description-box p {
color: #475467;
line-height: 1.8;
white-space: pre-line;
font-size: 16px;
}

.tender-info-box {
padding-top: 28px;
}

.tender-info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}

.info-item {
display: flex;
align-items: center;
gap: 13px;
padding: 16px;
border-radius: 12px;
background: #f8fafc;
}

.info-icon {
font-size: 24px;
}

.info-item small {
display: block;
color: #98a2b3;
margin-bottom: 4px;
}

.info-item strong {
color: #182230;
font-size: 15px;
}

.tender-detail-sidebar {
display: flex;
flex-direction: column;
gap: 18px;
position: sticky;
top: 25px;
}

.buyer-card {
padding: 24px;
}

.buyer-card-header {
display: flex;
align-items: center;
gap: 14px;
padding-bottom: 20px;
border-bottom: 1px solid #eaecf0;
}

.buyer-avatar {
width: 52px;
height: 52px;
border-radius: 50%;
background: #eef2ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
font-weight: 700;
}

.buyer-card-header small {
color: #98a2b3;
}

.buyer-card-header h3 {
margin: 3px 0 0;
}

.buyer-details {
display: flex;
flex-direction: column;
gap: 13px;
padding: 20px 0;
color: #475467;
}

.btn-whatsapp {
width: 100%;
text-align: center;
background: #25d366;
color: #fff;
border: none;
}

.btn-whatsapp:hover {
background: #1ebe5d;
color: #fff;
}

.tender-meta-card {
padding: 20px 24px;
}

.tender-meta-card > div {
display: flex;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px solid #eaecf0;
}

.tender-meta-card > div:last-child {
border-bottom: none;
}

.tender-meta-card span {
color: #667085;
}

.tender-meta-card strong {
color: #182230;
}

.back-link {
color: #667085;
text-decoration: none;
font-weight: 600;
}

.back-link:hover {
color: #111827;
}

@media (max-width: 850px) {
.tender-detail-layout {
grid-template-columns: 1fr;
}

.tender-detail-sidebar {
position: static;
}
}

@media (max-width: 600px) {
.tender-detail-main {
padding: 20px;
}

.tender-detail-image {
margin-left: -20px;
margin-right: -20px;
}

.tender-info-grid {
grid-template-columns: 1fr;
}

.tender-detail-header {
align-items: flex-start;
flex-direction: column;
}
}

.opt-card__category {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}
.opt-card__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.opt-card__detail {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
}
.opt-card__detail span {
  color: #777;
}
.opt-card__detail strong {
  text-align: right;
  color: #222;
}
.opt-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #888;
}

