/* ==========================================================================
   Credital — Ресми веб-сайт (credital.kz дизайны негізінде)
   Тілі: Қазақша (kk)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Scada:ital,wght@0,400;0,700;1,400&display=swap');

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Scada', 'PT Sans', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #444444;
  background-color: #F7F7F7;
  background-image: linear-gradient(to bottom, #E3E3E3 0px, #EFEFEF 28px, #F7F7F7 140px);
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #444444;
  text-decoration: underline;
  transition: color 0.15s ease;
}

a:hover {
  color: #DF3035;
}

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

/* ==========================================================================
   Layout Wrappers (985px centered container matching credital.kz)
   ========================================================================== */

.wrapper {
  flex: 1 0 auto;
  width: 100%;
}

.level1 {
  width: 985px;
  margin: 0 auto;
  position: relative;
}

.level2 {
  width: 100%;
  background: #F2F2F2;
  border-top: 1px solid #E2E2E2;
  padding: 28px 0 36px;
}

.level2 > .container {
  width: 985px;
  margin: 0 auto;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  padding: 16px 0 12px;
  position: relative;
  z-index: 50;
}

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

.header .logo {
  width: 185px;
  flex-shrink: 0;
}

.header .logo a {
  display: inline-block;
  text-decoration: none;
}

.header .logo img {
  display: block;
  width: 175px;
  height: 77px;
}

.header .logo .lang-badge {
  margin: 4px 0 0 16px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #444444;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header .logo .lang-badge .lang-active {
  font-weight: 700;
  color: #184DB5;
}

.header .right-area {
  flex: 1;
  min-width: 0;
}

.header .right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
  margin-bottom: 18px;
}

.header .slogan-text {
  margin: 0;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  color: #184DB5;
  letter-spacing: 0.2px;
}

.header .head-contacts {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.header .phone {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .phone a {
  color: #333333;
  text-decoration: none;
}

.header .phone a:hover {
  color: #DF3035;
}

.header .phone-ico,
.header .info-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #DF3035;
  color: #FFFFFF;
  flex-shrink: 0;
}

.header .info-ico {
  background: #184DB5;
}

.header .info {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header .info a {
  color: #444444;
  text-decoration: underline;
}

.header .info a:hover {
  color: #DF3035;
}

/* Top Navigation Menu (Single clean row, no Kazakh wrap bug) */
.nav-toggle {
  display: none;
  background: #DF3035;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #E4E4E4;
  padding-top: 10px;
}

.menu > li {
  position: relative;
  font-size: 15.5px;
  line-height: 22px;
  white-space: nowrap;
}

.menu > li > a,
.menu > li > span.menu-trigger {
  color: #444444;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
}

.menu > li > a:hover,
.menu > li > span.menu-trigger:hover,
.menu > li.current > a,
.menu > li.current > span.menu-trigger {
  color: #DF3035;
}

.menu > li.current > a,
.menu > li.current > span.menu-trigger {
  font-weight: 700;
}

.menu > li .caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

/* Dropdown Submenu */
.menu > li > ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 265px;
  background: #FCFCFC;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-top: 2px solid #DF3035;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 100;
}

.menu > li:hover > ul,
.menu > li:focus-within > ul,
.menu > li.open > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu > li > ul li {
  font-size: 14px;
  white-space: normal;
}

.menu > li > ul li a {
  display: block;
  padding: 7px 16px;
  color: #444444;
  text-decoration: none;
}

.menu > li > ul li a:hover,
.menu > li > ul li.current a {
  background: #F0F0F0;
  color: #DF3035;
}

/* ==========================================================================
   Homepage Hero Slider (.main-img — 985×299px matching credital.kz)
   ========================================================================== */

.main-img {
  width: 100%;
  height: 299px;
  position: relative;
  overflow: hidden;
  background: #1A3A78;
  border: 1px solid #DCDCDC;
  margin-bottom: 24px;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 46px;
  color: #FFFFFF;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-1 {
  background: linear-gradient(120deg, #133A8A 0%, #1E54B7 55%, #2C67D1 100%);
}

.slide-2 {
  background: linear-gradient(120deg, #8F151A 0%, #C72228 55%, #DF3035 100%);
}

.slide-3 {
  background: linear-gradient(120deg, #1F345C 0%, #2C4A80 55%, #3D62A6 100%);
}

.slide-4 {
  background: linear-gradient(120deg, #2B2F3A 0%, #3E4658 55%, #184DB5 100%);
}

.slide-content {
  max-width: 570px;
  position: relative;
  z-index: 2;
}

.slide-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.slide h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  color: #FFFFFF;
}

.slide p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.slide-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #E83A3F 0%, #C91C22 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.slide-btn:hover {
  color: #FFFFFF;
  background: linear-gradient(to bottom, #F1454A 0%, #D92026 100%);
}

.slide-2 .slide-btn {
  background: linear-gradient(to bottom, #245BD0 0%, #15409C 100%);
}

.slide-visual {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-stat-card {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
  width: 245px;
  backdrop-filter: blur(4px);
}

.slide-stat-card .big-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.slide-stat-card .sub-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.slider-bullets {
  position: absolute;
  bottom: 12px;
  right: 18px;
  z-index: 10;
  display: flex;
  gap: 6px;
}

.slider-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.slider-bullet.active {
  background: #DF3035;
  border-color: #FFFFFF;
}

/* ==========================================================================
   Homepage 3-Column Content Area
   ========================================================================== */

.home-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

/* Left Sidebar: Currency Exchange Widget (.tx-valuta-pi1) */
.left-sidebar {
  width: 255px;
  flex-shrink: 0;
}

.kurses {
  background: #FFFFFF;
  border: 1px solid #D8D8D8;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kurses .head {
  background: linear-gradient(to bottom, #F4F4F4 0%, #E5E5E5 100%);
  border-bottom: 1px solid #CFCFCF;
  padding: 10px 14px;
}

.kurses .head-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #222222;
  text-transform: uppercase;
}

.kurses .head-meta {
  font-size: 12px;
  color: #666666;
  margin-top: 2px;
}

.kurses table {
  width: 100%;
  border-collapse: collapse;
}

.kurses .legend td {
  background: #CFD2D7;
  color: #333333;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.kurses tbody tr td {
  padding: 8px 10px;
  border-bottom: 1px solid #C7CACF;
  font-size: 13.5px;
}

.kurses tbody tr:last-child td {
  border-bottom: none;
}

.kurses .cur-code {
  font-weight: 700;
  color: #222222;
}

.kurses .cur-rate {
  font-weight: 700;
  color: #184DB5;
  text-align: right;
}

.kurses .cur-diff {
  text-align: right;
  font-size: 12.5px;
  white-space: nowrap;
}

.kurses .cur-diff.up {
  color: #2E7D32;
}

.kurses .cur-diff.down {
  color: #DF3035;
}

.kurses .kurses-footer {
  background: #F2F2F2;
  padding: 7px 12px;
  font-size: 11.5px;
  color: #666666;
  border-top: 1px solid #DCDCDC;
}

/* Center Column: Credit Product Tabs */
.home-center {
  flex: 1;
  min-width: 0;
}

.news-menu {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  border-bottom: 2px solid #D5D5D5;
}

.news-menu > li {
  margin-right: 4px;
}

.news-menu > li > button {
  background: #EAEAEA;
  border: 1px solid #D5D5D5;
  border-bottom: none;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #444444;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
  position: relative;
  bottom: -2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.news-menu > li > button:hover {
  background: #FFFFFF;
  color: #234FB8;
}

.news-menu > li.ui-state-active > button {
  background: #FFFFFF;
  color: #234FB8;
  border-color: #234FB8;
  border-top-width: 3px;
  border-bottom: 2px solid #FFFFFF;
}

.tab-panel {
  display: none;
  background: #FFFFFF;
  border: 1px solid #DCDCDC;
  padding: 16px;
}

.tab-panel.active {
  display: block;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table tr td {
  padding: 7px 10px;
  border: 1px solid #CCCCCC;
  font-size: 13.5px;
  vertical-align: top;
}

.summary-table tr:nth-child(odd) td {
  background: #EAEAEA;
}

.summary-table tr td:first-child {
  font-weight: 700;
  width: 42%;
  color: #333333;
}

.collateral-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.collateral-list li {
  padding: 9px 0 9px 18px;
  border-bottom: 1px dashed #DCDCDC;
  position: relative;
  font-size: 14.5px;
}

.collateral-list li:last-child {
  border-bottom: none;
}

.collateral-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  background: #DF3035;
  border-radius: 1px;
}

.collateral-list li a {
  color: #184DB5;
  font-weight: 700;
  text-decoration: underline;
}

.collateral-list li a:hover {
  color: #DF3035;
}

.tab-more-link {
  margin-top: 12px;
  font-size: 13.5px;
}

.tab-more-link a {
  color: #E34D2A;
  font-weight: 700;
}

/* Right Sidebar: Online Consultation Promo Banner */
.right-sidebar {
  width: 270px;
  flex-shrink: 0;
}

.promo-banner {
  background: linear-gradient(160deg, #E31E25 0%, #B8141A 100%);
  color: #FFFFFF;
  border-radius: 5px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
  border: 1px solid #A81117;
}

.promo-banner::before {
  content: "%";
  position: absolute;
  right: -12px;
  top: -24px;
  font-size: 130px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  pointer-events: none;
}

.promo-banner .promo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 10px;
}

.promo-banner .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
}

.promo-banner h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
  color: #FFFFFF;
}

.promo-banner p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
}

.promo-banner .promo-phone {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.promo-banner .promo-phone a {
  color: #FFFFFF;
  text-decoration: none;
}

.promo-banner .promo-cta {
  display: inline-block;
  width: 100%;
  background: #FFFFFF;
  color: #DF3035;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.promo-banner .promo-cta:hover {
  background: #F5F5F5;
  color: #B8141A;
}

/* Rules link below 3-column area (#c66) */
.rules-link-bar {
  margin: 0 0 22px;
  font-size: 12.5px;
}

.rules-link-bar a {
  color: #444444;
  text-decoration: underline;
}

.rules-link-bar a:hover {
  color: #DF3035;
}

/* ==========================================================================
   Loan Calculator (.calculator inside .level2)
   ========================================================================== */

.calculator {
  background: #FAFAFA;
  border: 1px solid #D5D5D5;
  display: flex;
  align-items: stretch;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.calculator .calc-left {
  flex: 1;
  background: #ECECEC;
  border-right: 1px solid #CFCFCF;
}

.calculator .calc-block {
  padding: 18px 24px;
  border-bottom: 1px solid #CFCFCF;
  border-top: 1px solid #FFFFFF;
}

.calculator .calc-block:first-child {
  border-top: none;
}

.calculator .calc-block:last-child {
  border-bottom: none;
}

.calc-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222222;
}

.calc-field {
  margin-bottom: 16px;
}

.calc-field:last-child {
  margin-bottom: 0;
}

.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.calc-label-row label {
  font-size: 14px;
  color: #333333;
  font-weight: 700;
}

.calculator select {
  width: 100%;
  max-width: 340px;
  height: 36px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: #333333;
  background: #FFFFFF;
  border: 1px solid #BDBDBD;
  border-radius: 5px;
}

.controls-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calculator input[type="text"].calc-input {
  width: 130px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #B5B5B5;
  border-radius: 10px;
  box-shadow: inset 2px 2px 5px #888888;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  text-align: right;
  background: #FFFFFF;
}

.calculator input[type="text"].calc-input:disabled {
  background: #E2E2E2;
  color: #666666;
  cursor: not-allowed;
}

.calc-unit {
  font-size: 13px;
  color: #555555;
  min-width: 34px;
}

.calc-slider-wrap {
  margin-top: 4px;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to bottom, #BDBDBD, #DCDCDC);
  outline: none;
  cursor: pointer;
}

.calc-slider:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #E83A3F, #B8141A);
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #E83A3F, #B8141A);
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.legend-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-style: italic;
  color: #666666;
  margin-top: 6px;
}

.calc-note {
  margin-top: 8px;
  font-size: 12px;
  color: #666666;
}

/* Calculator Right Panel (3D Cylinders + Monthly Payment + CTA) */
.calculator .calc-right {
  width: 315px;
  flex-shrink: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FAFAFA;
}

.bars-area {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 158px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E2E2;
  margin-bottom: 14px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 115px;
}

.bar-amount {
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 6px;
  text-align: center;
}

.cylinder-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.cyl-blue,
.cyl-red {
  width: 56px;
  position: relative;
  border-radius: 28px / 8px;
  transition: height 0.25s ease;
}

.cyl-blue {
  background: linear-gradient(to right, #123D94 0%, #2D67DB 45%, #1644A3 100%);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.22), 0 3px 6px rgba(0, 0, 0, 0.18);
  min-height: 18px;
}

.cyl-red {
  background: linear-gradient(to right, #A8161B 0%, #EA3D42 45%, #BD181E 100%);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.25);
  margin-bottom: -8px;
  z-index: 2;
  min-height: 12px;
  cursor: help;
}

.percent-tooltip {
  position: relative;
}

.percent-tooltip .tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #222222;
  color: #FFFFFF;
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 20;
}

.percent-tooltip:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
}

.bar-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555555;
  letter-spacing: 0.4px;
}

.month-sum {
  text-align: center;
  margin-bottom: 16px;
}

.month-sum .label {
  font-size: 13px;
  color: #666666;
  margin-bottom: 2px;
}

.month-sum .sum {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: #222222;
}

.month-sum .rate-hint {
  font-size: 12px;
  color: #777777;
  margin-top: 3px;
}

/* Primary Button (.btn) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  padding: 0 20px;
  background: linear-gradient(to bottom, #E83C41 0%, #C61A20 100%);
  border: 1px solid #AE1419;
  border-radius: 5px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
  transition: background 0.15s ease;
}

.btn:hover {
  background: linear-gradient(to bottom, #F2474C 0%, #D42026 100%);
  color: #FFFFFF;
}

.btn-secondary {
  background: linear-gradient(to bottom, #245BD0 0%, #16409E 100%);
  border-color: #123585;
}

.btn-secondary:hover {
  background: linear-gradient(to bottom, #2D67E0 0%, #1C4BB3 100%);
}

/* ==========================================================================
   Messenger Contact Strip (.seti)
   ========================================================================== */

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

.seti-item {
  background: #FFFFFF;
  border: 1px solid #DCDCDC;
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.seti-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.seti-whatsapp .seti-icon { background: #3A8C32; }
.seti-phone .seti-icon { background: #184DB5; }
.seti-mail .seti-icon { background: #44B549; }

.seti-info {
  font-size: 13.5px;
  line-height: 1.4;
}

.seti-info strong {
  display: block;
  font-size: 14px;
  color: #222222;
}

.seti-info a {
  color: #444444;
  text-decoration: none;
}

.seti-info a:hover {
  color: #DF3035;
  text-decoration: underline;
}

/* ==========================================================================
   Subpage Layout (.second)
   ========================================================================== */

.second .page-body {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  padding: 32px 38px 40px;
  margin: 12px 0 36px;
  display: flex;
  gap: 32px;
}

.second .main-content {
  flex: 1;
  min-width: 0;
  line-height: 1.55;
}

.second .sub-sidebar {
  width: 245px;
  flex-shrink: 0;
}

.breadcrumb {
  font-size: 12.5px;
  color: #777777;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #777777;
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: #DF3035;
}

.main-content h1 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 700;
  color: #333333;
  border-bottom: 2px solid #DF3035;
  padding-bottom: 10px;
}

.main-content h2 {
  margin: 24px 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: #222222;
}

.main-content h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #E34D2A;
}

.main-content p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.55;
}

.main-content ul,
.main-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.main-content li {
  margin-bottom: 6px;
  font-size: 14.5px;
}

.main-content blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  background: #DFDFDF;
  border-left: 4px solid #184DB5;
  font-style: italic;
}

.main-content table.contenttable {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
}

.main-content table.contenttable th,
.main-content table.contenttable td {
  border: 1px solid #CCCCCC;
  padding: 9px 12px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.main-content table.contenttable th {
  background: #CFD2D7;
  color: #222222;
  font-weight: 700;
}

.main-content table.contenttable tr.oddrows td,
.main-content table.contenttable tbody tr:nth-child(odd) td {
  background: #EFEFEF;
}

.main-content table.contenttable td:first-child {
  font-weight: 700;
  width: 38%;
  color: #333333;
}

/* Sidebar Navigation Card on Subpages */
.side-card {
  background: #F7F7F7;
  border: 1px solid #DCDCDC;
  padding: 16px;
  margin-bottom: 18px;
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  color: #222222;
  border-bottom: 1px solid #D5D5D5;
  padding-bottom: 6px;
}

.side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav li {
  margin-bottom: 7px;
}

.side-nav li a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  color: #444444;
  border-radius: 3px;
  font-size: 13.5px;
}

.side-nav li a:hover,
.side-nav li.current a {
  background: #DF3035;
  color: #FFFFFF;
}

/* Report / Document Cards & Spoilers */
.report-year-block {
  border: 1px solid #DCDCDC;
  margin-bottom: 18px;
  background: #FAFAFA;
}

.report-year-head {
  background: #EAEAEA;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #222222;
  border-bottom: 1px solid #DCDCDC;
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 10px 16px;
}

.report-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #DCDCDC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-list li:last-child {
  border-bottom: none;
}

.doc-badge {
  display: inline-block;
  background: #DF3035;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Articles List */
.article-item {
  border: 1px solid #E0E0E0;
  background: #FAFAFA;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.article-date {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #888888;
  margin-bottom: 4px;
}

.article-item h3 {
  margin: 0 0 8px;
  color: #184DB5;
}

/* Contacts Grid & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.contact-box {
  background: #F7F7F7;
  border: 1px solid #DCDCDC;
  padding: 18px;
}

.contact-box h3 {
  margin-top: 0;
  color: #184DB5;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 13.5px;
  color: #333333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #C5C5C5;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #333333;
}

.form-group textarea {
  min-height: 96px;
  resize: vertical;
}

.form-success {
  display: none;
  background: #E8F5E9;
  border: 1px solid #66BB6A;
  color: #1B5E20;
  padding: 12px 14px;
  border-radius: 4px;
  margin-top: 12px;
  font-size: 13.5px;
}

/* ==========================================================================
   Footer (.footer)
   ========================================================================== */

.footer {
  flex-shrink: 0;
  background: #FAFAFA;
  background-image: linear-gradient(to bottom, #E5E5E5 0px, #F4F4F4 8px, #FAFAFA 24px);
  border-top: 1px solid #D8D8D8;
  padding: 22px 0 24px;
}

.footer .sub {
  width: 985px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E4E4E4;
}

.footer .author {
  font-size: 13px;
  color: #555555;
  line-height: 1.55;
}

.footer .author strong {
  color: #222222;
}

.footer .author a {
  color: #DF3037;
}

.footer .contacts {
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
}

.footer .contacts a {
  color: #333333;
  text-decoration: none;
  font-weight: 700;
}

.footer .contacts a:hover {
  color: #DF3035;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  font-size: 12.5px;
  color: #666666;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links a {
  color: #555555;
  text-decoration: underline;
}

.footer-legal-links a:hover {
  color: #DF3035;
}

/* ==========================================================================
   Floating Right-Edge Consultant Tab (#consultant)
   ========================================================================== */

#consultant {
  position: fixed;
  top: 210px;
  right: 0;
  z-index: 90;
  background: linear-gradient(to bottom, #E31E25 0%, #B8141A 100%);
  color: #FFFFFF;
  border: 1px solid #9E1015;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 14px 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.22);
}

#consultant:hover {
  background: linear-gradient(to bottom, #F02830 0%, #C9181F 100%);
}

/* ==========================================================================
   Modal Dialogs (Application & Online Consultation)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.modal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 440px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border-top: 4px solid #DF3035;
}

.modal-header {
  padding: 16px 20px;
  background: #F4F4F4;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #222222;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #666666;
  cursor: pointer;
  padding: 0 4px;
}

.modal-close:hover {
  color: #DF3035;
}

.modal-body {
  padding: 20px;
}

.modal-summary {
  background: #F2F6FC;
  border: 1px solid #D3E0F7;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #184DB5;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222222;
  color: #F0F0F0;
  z-index: 180;
  padding: 12px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
  display: none;
}

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

.cookie-banner-inner {
  max-width: 985px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.cookie-banner a {
  color: #93C5FD;
}

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

.cookie-btn {
  background: #DF3035;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn:hover {
  background: #C41E23;
}

/* ==========================================================================
   Responsive Adjustments (< 1010px)
   ========================================================================== */

@media (max-width: 1010px) {
  .level1,
  .level2 > .container,
  .footer .sub {
    width: auto;
    max-width: 985px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-content {
    flex-direction: column;
  }

  .left-sidebar,
  .right-sidebar {
    width: 100%;
  }

  .calculator {
    flex-direction: column;
  }

  .calculator .calc-left {
    border-right: none;
    border-bottom: 1px solid #CFCFCF;
  }

  .calculator .calc-right {
    width: 100%;
  }

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

  .second .page-body {
    flex-direction: column;
    padding: 22px 20px;
  }

  .second .sub-sidebar {
    width: 100%;
  }

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

@media (max-width: 760px) {
  .header-top {
    flex-direction: column;
    gap: 10px;
  }

  .header .right-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-toggle {
    display: inline-block;
    margin-bottom: 8px;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .menu.open {
    display: flex;
  }

  .menu > li > ul {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    border-left: 2px solid #DF3035;
    margin-left: 10px;
    padding: 4px 0;
  }

  .main-img {
    height: auto;
    min-height: 270px;
  }

  .slide {
    position: relative;
    display: none;
    flex-direction: column;
    padding: 24px 20px 48px;
    gap: 16px;
  }

  .slide.active {
    display: flex;
  }

  .slide-visual {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer .contacts {
    text-align: left;
  }

  #consultant {
    display: none;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
