/* ============================================
   Инкасc Коллект — Modern Design
   ============================================ */

:root {
  --primary: #1a2332;
  --primary-light: #2a3a52;
  --accent: #d4a843;
  --accent-light: #e8c36a;
  --accent-dark: #b89232;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f1724;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
h2.text-center { text-align: center; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
[class*="col-"] { padding: 0 0.75rem; flex: 1 0 0%; }

/* Grid helpers */
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-auto { flex: 0 0 auto; width: auto; }

@media (min-width: 768px) {
  .col-sm-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333%; max-width: 58.333%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8 { flex: 0 0 66.667%; max-width: 66.667%; }
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.d-none { display: none !important; }
.d-block { display: block !important; }

@media (max-width: 575px) {
  .d-sm-none { display: none !important; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.925rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn-default {
  background: var(--accent);
  color: #fff;
}
.btn-default:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}
.btn-gray {
  background: rgba(26, 35, 50, 0.08);
  color: var(--primary);
}
.btn-gray:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: relative;
  z-index: 100;
}

.header-top {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.header-top a {
  color: rgba(255,255,255,0.85);
}
.header-top a:hover {
  color: var(--accent);
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-contact i {
  margin-right: 0.35rem;
  color: var(--accent);
}

/* Main Nav */
.header-main {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 70px;
}
.logo img {
  height: 44px;
  width: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  background: rgba(212, 168, 67, 0.08);
}
.nav-list .dropdown {
  position: relative;
}
.nav-list .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 50;
}
.nav-list .dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  padding: 0.5rem 0.75rem;
}
.dropdown-menu a:hover {
  background: var(--bg-alt);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .nav-list .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }
  .header-main .container { position: relative; }
}

/* ============================================
   HERO / SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  min-height: 520px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 520px;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide .bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 5;
}
.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-dots span.active {
  background: var(--accent);
  transform: scale(1.25);
}
.hero-slide .container {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
}
.hero-title {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3rem);
  max-width: 600px;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.hero-title br { display: none; }
@media (min-width: 576px) {
  .hero-title br { display: inline; }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 5rem 0;
}
section.bg-alt {
  background: var(--bg-alt);
}
section.bg-dark {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
}
section.bg-dark h2,
section.bg-dark h3,
section.bg-dark h4 {
  color: #fff;
}
section.bg-dark p {
  color: rgba(255,255,255,0.7);
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.advantage-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.advantage-item img {
  height: 60px;
  margin-bottom: 1rem;
}
.advantage-item .title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.advantage-item p {
  font-size: 0.925rem;
  color: var(--text-light);
  margin: 0;
}

/* About section */
.about-section {
  position: relative;
}
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 0;
}
.about-section .container {
  position: relative;
  z-index: 1;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  align-items: flex-start;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card .icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-sm);
}
.service-card .icon img {
  width: 32px;
  height: 32px;
}
.service-card .content .title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.service-card .content .desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Payments */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card .card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.news-card .card-body {
  padding: 1.25rem;
}
.news-card .card-body h5 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.news-card .card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}
.news-card .card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Documents / certificates */
.documents-slider {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.documents-slider a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  max-width: 240px;
}
.documents-slider a:hover {
  transform: scale(1.03);
}

/* Counter (stats) */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-item .label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 200px;
}

/* Partners */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.partners-grid img {
  max-height: 60px;
  filter: grayscale(0.3);
  opacity: 0.7;
  transition: all var(--transition);
}
.partners-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Documents info */
.documents-info {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.documents-info img {
  max-height: 200px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
}
.site-footer a:hover {
  color: var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-menu a {
  font-size: 0.9rem;
}
.footer-contacts p {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
}
.footer-contacts i {
  color: var(--accent);
  margin-right: 0.5rem;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--primary-light);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb .sep {
  margin: 0 0.5rem;
  color: #ccc;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.open {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h4 {
  font-size: 1.1rem;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
}
.modal-body {
  padding: 1.5rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
select.form-control {
  appearance: auto;
}
.modal-text-after {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  margin: 0;
}
.page-header .breadcrumb {
  color: rgba(255,255,255,0.7);
  padding: 0 0 0.75rem;
}
.page-header .breadcrumb a {
  color: var(--accent-light);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-item {
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  height: 100%;
}
.contact-item h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.contact-item p {
  margin-bottom: 0.35rem;
}

/* ============================================
   LEGAL FRAMEWORK
   ============================================ */
.legal-list {
  list-style: none;
  padding: 0;
}
.legal-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.legal-list li:last-child {
  border-bottom: none;
}
.legal-list a {
  font-weight: 500;
}

/* ============================================
   UTILITIES
   ============================================ */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.p-0 { padding: 0; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

/* Maps */
.map-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 0.5rem;
}
.map-container iframe,
.map-container script + * {
  width: 100%;
  border: none;
}

/* Blockquote styling */
blockquote {
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1rem;
}
blockquote p { margin-bottom: 0.25rem; }
