/* ==========================================================================
   «ИнвестКредитМаркет» МҚҰ» ЖШС — Main Stylesheet
   Reference visual style: investcredit.kz (Consulting / Navy & Yellow theme)
   ========================================================================== */

:root {
  --base: #002e5b;
  --base-dark: #002042;
  --third: #fde428;
  --third-hover: #f0d617;
  --secondary: #6c98e1;
  --bg-white: #ffffff;
  --bg-light: #f2f2f2;
  --text-body: #333333;
  --text-muted: #666666;
  --border-light: #e5e5e5;
  --font-heading: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Open Sans', 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --container-max: 1170px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--base);
  margin-top: 0;
  letter-spacing: 0.01px;
}

p {
  margin: 0 0 16px;
  font-weight: 400;
}

a {
  color: var(--base);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px;
}

/* Yellow short accent bar under headings (exact investcredit.kz signature) */
.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-heading h1,
.section-heading h2 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--base);
  margin-bottom: 14px;
}

.section-heading.left-align {
  text-align: left;
  margin-bottom: 30px;
}

.section-heading.light h2,
.section-heading.light h3 {
  color: #ffffff;
}

.heading-bar {
  display: inline-block;
  width: 44px;
  height: 4px;
  background: var(--third);
  border-radius: 2px;
}

.section-heading.left-align .heading-bar {
  display: block;
}

/* ==========================================================================
   HEADER TOP BAR (Yellow #fde428) + MAIN NAV BAR (Navy #002e5b)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
}

.header-top {
  background: var(--third);
  padding: 28px 0 26px;
  color: var(--base);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 46px;
  width: auto;
}

.header-info-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.header-info-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--base);
}

.header-info-item i {
  font-size: 20px;
  color: var(--base);
  flex-shrink: 0;
}

.header-phone-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone-link {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--base);
  white-space: nowrap;
}

.header-phone-link:hover {
  color: #000000;
}

.whatsapp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  font-size: 15px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.whatsapp-badge:hover {
  transform: scale(1.1);
}

/* Main Navigation Bar */
.top-nav {
  background: var(--base);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.main-menu > li {
  position: relative;
}

.main-menu > li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 17px 22px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  transition: color var(--transition), background var(--transition);
}

.main-menu > li:first-child > a {
  padding-left: 0;
}

.main-menu > li > a:hover,
.main-menu > li.active > a,
.main-menu > li:hover > a {
  color: var(--third);
}

/* Dropdown menu */
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 310px;
  background: var(--base);
  border-top: 3px solid var(--third);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.main-menu > li.has-dropdown:hover > .sub-menu,
.main-menu > li.has-dropdown.open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: #e8eef5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.sub-menu li:last-child a {
  border-bottom: none;
}

.sub-menu li a:hover,
.sub-menu li.active a {
  background: rgba(253, 228, 40, 0.12);
  color: var(--third);
  padding-left: 25px;
}

/* Mobile menu button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.mobile-toggle:hover {
  border-color: var(--third);
  color: var(--third);
}

/* ==========================================================================
   HOMEPAGE SECTIONS
   ========================================================================== */
.section-pad {
  padding: 64px 0;
}

.section-pad-sm {
  padding: 48px 0;
}

/* 1. Documentation Section */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
}

.doc-item:hover {
  background: #f7f9fc;
  transform: translateY(-2px);
}

.doc-pdf-icon {
  position: relative;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dotted #cfd7e3;
  border-radius: 4px;
  background: #ffffff;
}

.doc-pdf-badge {
  width: 44px;
  height: 48px;
  background: var(--base);
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--third);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--third);
}

.doc-pdf-badge i {
  font-size: 18px;
  margin-bottom: 2px;
}

.doc-pdf-badge span {
  font-size: 10px;
  letter-spacing: 0.6px;
}

.doc-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  line-height: 1.4;
}

.doc-item:hover .doc-title {
  color: var(--base);
}

/* 2. Loan Product Cards (.info_box.style_3) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(0, 46, 91, 0.1);
  background: var(--third);
  display: block;
}

.product-card-img {
  width: 100%;
  display: block;
}

.product-card-overlay {
  background: rgba(0, 46, 91, 0.94);
  color: #ffffff;
  padding: 20px 24px;
  transition: all 0.3s ease;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-card-header i {
  font-size: 28px;
  color: var(--third);
  flex-shrink: 0;
}

.product-card-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.product-card-body {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #dbe6f2;
}

.product-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--third);
}

.product-card:hover .product-card-overlay {
  background: var(--base);
}

.product-card:hover .product-card-more {
  text-decoration: underline;
}

/* 3. Our Advantages (6 Hexagon Cards on #f2f2f2) */
.advantages-section {
  background: var(--bg-light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.advantage-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
  border-radius: 4px;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(0, 46, 91, 0.08);
}

.hex-wrap {
  position: relative;
  width: 64px;
  height: 74px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-wrap::before,
.hex-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background: var(--third);
  transition: height 0.25s ease;
}

.hex-wrap::before {
  top: -12px;
}

.hex-wrap::after {
  bottom: -12px;
}

.advantage-card:hover .hex-wrap::before,
.advantage-card:hover .hex-wrap::after {
  height: 12px;
}

.hex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hex-wrap i {
  position: relative;
  z-index: 1;
  font-size: 22px;
  color: var(--base);
}

.advantage-text h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--base);
  margin-bottom: 10px;
}

.advantage-text p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

/* 4. Steps Section (Dark Low-Poly Background) */
.steps-section {
  position: relative;
  background: #2b3a46 url('../img/poly-bg.svg') center/cover no-repeat;
  padding: 72px 0;
  color: #ffffff;
}

.steps-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.steps-section .container {
  position: relative;
  z-index: 1;
}

.steps-heading {
  text-align: center;
  margin-bottom: 44px;
}

.steps-heading h2 {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.steps-heading mark {
  background: transparent;
  color: var(--third);
  padding: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-item i {
  font-size: 40px;
  color: #ffffff;
  flex-shrink: 0;
}

.step-item span {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: #ffffff;
}

/* 5. Loan Calculator Section (.wpcalc) */
.calc-section {
  position: relative;
  background: var(--base);
  padding: 68px 0;
  color: #ffffff;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.calc-intro h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.calc-intro p {
  color: #cbd9e8;
  font-size: 15px;
  line-height: 1.6;
}

.calc-box {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 32px 34px;
  background: rgba(0, 32, 66, 0.45);
}

.calc-box.light-mode {
  background: #f7f9fc;
  border: 1px solid #d5dfe9;
  color: var(--base);
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.calc-row label {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
}

.calc-box.light-mode .calc-row label {
  color: var(--base);
}

.calc-input,
.calc-select {
  width: 100%;
  height: 46px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: #222222;
  background: #fcfcfc;
  border: 1px solid #cecece;
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition);
}

.calc-select {
  background: #d8d8d8;
  cursor: pointer;
}

.calc-input:focus,
.calc-select:focus {
  border-color: var(--third);
}

.calc-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px 20px;
  background: var(--third);
  color: var(--base);
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.calc-btn:hover {
  background: var(--third-hover);
}

.calc-results {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.calc-box.light-mode .calc-results {
  border-top-color: #d5dfe9;
}

.calc-res-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  padding: 6px 0;
  font-family: var(--font-heading);
  font-size: 17px;
}

.calc-res-val {
  font-weight: 700;
  color: var(--third);
}

.calc-box.light-mode .calc-res-val {
  color: var(--base);
}

.calc-schedule-wrap {
  margin-top: 16px;
  max-height: 280px;
  overflow-y: auto;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.calc-box.light-mode .calc-schedule-wrap {
  background: #ffffff;
  border: 1px solid #d5dfe9;
}

.calc-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.calc-schedule-table th,
.calc-schedule-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.calc-box.light-mode .calc-schedule-table th,
.calc-box.light-mode .calc-schedule-table td {
  border-bottom-color: #e6ecf2;
}

.calc-schedule-table th {
  font-weight: 700;
  color: var(--third);
}

.calc-box.light-mode .calc-schedule-table th {
  color: var(--base);
  background: #eef3f8;
}

/* 6. Contacts Strip & Map on Homepage */
.contacts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.contact-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #f7f9fc;
  border-left: 4px solid var(--third);
  border-radius: 4px;
}

.contact-strip-item i {
  font-size: 24px;
  color: var(--base);
  margin-top: 2px;
}

.contact-strip-item strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--base);
  margin-bottom: 4px;
}

.map-frame-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dde3ea;
  box-shadow: 0 4px 16px rgba(0, 46, 91, 0.08);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.map-overlay-card {
  background: #ffffff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #e5e5e5;
}

/* 7. SEO Text & Warning Alert Box */
.seo-content h4,
.seo-content h5,
.seo-content h6 {
  font-size: 22px;
  margin: 26px 0 12px;
  color: var(--base);
}

.seo-content p {
  color: #444444;
  line-height: 1.7;
}

.warning-banner {
  margin-top: 34px;
  padding: 22px 26px;
  background: #fef6e7;
  border: 1px solid #f9d7a3;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.warning-banner i {
  font-size: 28px;
  color: #f3b047;
  margin-top: 2px;
  flex-shrink: 0;
}

.warning-banner p {
  margin: 0 0 8px;
  color: #5a4e3c;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.5;
}

.warning-banner a {
  color: #2b6cb0;
  font-weight: 600;
  font-style: italic;
  text-decoration: underline;
}

/* ==========================================================================
   INNER PAGES 2-COLUMN LAYOUT + SIDEBAR + BOTTOM YELLOW CTA
   ========================================================================== */
.page-breadcrumb {
  background: #f5f7fa;
  border-bottom: 1px solid #e5ebf1;
  padding: 12px 0;
  font-size: 13.5px;
  color: #666666;
}

.page-breadcrumb a {
  color: var(--base);
  font-weight: 600;
}

.page-breadcrumb span.sep {
  margin: 0 8px;
  color: #999999;
}

.inner-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 40px;
  padding: 46px 0 64px;
  align-items: start;
}

.inner-main h1 {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 12px;
}

.inner-main .heading-bar {
  display: block;
  margin-bottom: 28px;
}

/* Conditions Table (matching investcredit.kz) */
.conditions-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  border: 1px solid #e2e8f0;
}

.conditions-table th,
.conditions-table td {
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.5;
}

.conditions-table th {
  width: 36%;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #222222;
  background: #fafbfd;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-pdf-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--base);
  color: #ffffff !important;
  padding: 18px 20px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  transition: background var(--transition);
}

.sidebar-pdf-btn:hover {
  background: var(--base-dark);
}

.sidebar-pdf-btn i {
  font-size: 24px;
  color: var(--third);
  flex-shrink: 0;
}

.sidebar-help-box {
  background: var(--third);
  padding: 26px 24px;
  border-radius: 4px;
  color: var(--base);
}

.sidebar-help-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--base);
  margin-bottom: 10px;
}

.sidebar-help-box p {
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #1c2c3c;
}

.btn-white-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--base) !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-white-navy:hover {
  background: var(--base);
  color: #ffffff !important;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--base);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-navy:hover {
  background: var(--base-dark);
}

.sidebar-testimonial {
  background: #f5f7fa;
  border: 1px solid #e5ebf1;
  padding: 22px;
  border-radius: 4px;
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
}

.sidebar-testimonial .author {
  margin-top: 12px;
  font-weight: 700;
  color: var(--base);
  font-family: var(--font-heading);
}

/* Bottom Yellow CTA Bar (on inner pages, matching investcredit.kz) */
.bottom-cta-bar {
  background: var(--third);
  padding: 28px 0;
}

.bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bottom-cta-inner h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--base);
}

/* Forms (Application / Question / Review) */
.form-card {
  background: #f7f9fc;
  border: 1px solid #dce4ee;
  border-top: 4px solid var(--base);
  border-radius: 6px;
  padding: 28px;
  margin-top: 32px;
}

.form-card h3 {
  font-size: 22px;
  margin-bottom: 18px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--base);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid #ccd6e2;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  outline: none;
}

.form-control:focus {
  border-color: var(--base);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: #e6f6ec;
  color: #146c38;
  border: 1px solid #a8dfc0;
}

.form-status.error {
  display: block;
  background: #fdecec;
  color: #a92020;
  border: 1px solid #f5bcbc;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid #dfe6ef;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: #f8fafd;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-q i {
  transition: transform 0.2s ease;
  color: var(--base);
}

.faq-item.open .faq-q {
  background: var(--base);
  color: #ffffff;
}

.faq-item.open .faq-q i {
  color: var(--third);
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #444444;
  border-top: 1px solid #e6ecf2;
}

.faq-item.open .faq-a {
  display: block;
}

/* Financial Reporting Year Cards */
.report-year-block {
  margin-bottom: 28px;
  padding: 22px 24px;
  background: #f8fafd;
  border: 1px solid #e1e8f0;
  border-left: 4px solid var(--base);
  border-radius: 4px;
}

.report-year-block h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.report-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.report-links li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--base);
}

.report-links li a i {
  color: #c53030;
  font-size: 18px;
}

.report-links li a:hover {
  color: var(--secondary);
}

/* Contacts Page Cards */
.contacts-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
}

.contacts-navy-card {
  background: var(--base);
  color: #ffffff;
  padding: 32px;
  border-radius: 6px;
}

.contacts-navy-card h2 {
  color: var(--third);
  font-size: 24px;
  margin-bottom: 20px;
}

.contacts-navy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-navy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.contacts-navy-list li i {
  color: var(--third);
  font-size: 18px;
  margin-top: 3px;
  width: 20px;
  text-align: center;
}

.contacts-navy-list li a {
  color: #ffffff;
  font-weight: 600;
}

.contacts-navy-list li a:hover {
  color: var(--third);
}

/* Legal Pages Typography */
.legal-doc h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #edf2f7;
}

.legal-doc ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-meta {
  background: #f5f7fa;
  border-left: 4px solid var(--third);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #444444;
}

/* ==========================================================================
   FOOTER (#002e5b, 3 columns + copyright & legal bar)
   ========================================================================== */
.site-footer {
  background: var(--base);
  color: #dbe6f2;
  box-shadow: inset 0 2px 5px 0 rgba(0, 0, 0, 0.39);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}

.footer-col h3 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(204, 204, 204, 0.45);
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14.5px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-list li i {
  color: var(--third);
  margin-top: 4px;
  width: 16px;
  flex-shrink: 0;
}

.footer-contact-list a {
  color: #ffffff;
}

.footer-contact-list a:hover {
  color: var(--third);
}

.footer-license-thumb {
  max-width: 190px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}

.footer-license-thumb:hover {
  transform: scale(1.03);
  border-color: var(--third);
}

.footer-requisites {
  font-size: 14px;
  line-height: 1.65;
  color: #dbe6f2;
}

.footer-requisites ul {
  margin: 10px 0 14px;
  padding-left: 18px;
}

.footer-requisites li {
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(204, 204, 204, 0.3);
  padding: 20px 0;
  font-size: 13.5px;
  color: #b7c8da;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #dbe6f2;
  font-size: 13.5px;
}

.footer-legal-links a:hover {
  color: var(--third);
  text-decoration: underline;
}

/* ==========================================================================
   MODAL & COOKIE CONSENT BANNER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 18, 38, 0.75);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 6px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #666666;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--base);
}

.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 960px;
  margin: 0 auto;
  background: var(--base-dark);
  color: #ffffff;
  border: 1px solid rgba(253, 228, 40, 0.45);
  border-radius: 8px;
  padding: 16px 22px;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #e5eef7;
}

.cookie-banner a {
  color: var(--third);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--third);
  color: var(--base);
  border: none;
  padding: 9px 18px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

.cookie-btn-decline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 9px 14px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .inner-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 18px 0;
  }
  .header-info-group {
    gap: 14px;
  }
  .mobile-toggle {
    display: inline-flex;
    margin: 10px 0;
  }
  .top-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 12px;
  }
  .main-menu.open {
    display: flex;
  }
  .main-menu > li + li::before {
    display: none;
  }
  .main-menu > li > a {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    padding-left: 14px;
    min-width: 0;
  }
  .main-menu > li.has-dropdown.open > .sub-menu {
    display: block;
  }
  .docs-grid,
  .products-grid,
  .advantages-grid,
  .steps-grid,
  .contacts-strip,
  .contacts-page-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .calc-row,
  .calc-res-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: 30px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
