:root {
  --primary-blue: #163b76;
  --light-blue: #00b5f1;
  --dark-blue: #004064; /* Approx from gradient */
  --text-dark: #323232;
  --text-light: #ffffff;
  --bg-light: #f6fafd;
  --border-color: rgba(50, 50, 50, 0.1);
  --gradient-blue: linear-gradient(90deg, #0066a0 0%, #1e4686 100%);
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background-color: #fff;
  overflow-x: hidden;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.blue-text {
    color: #008ac5;
}

.green-text {
    color: #73d039;
}

.black-text {
    color: #323232;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}


/* check form */

.form-input.error {
    border: 2px solid #ff4d4f;
    background: #fff6f6;
}

.form-input.success {
    border: 2px solid #28a745;
}

.input-error {
    font-size: 13px;
    color: #ff4d4f;
    margin-top: 5px;
    display: none;
}

.input-error.active {
    display: block;
}

.shake {
    animation: shake 0.25s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}



/* check form */




/* Utility for merged images */
.merged-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.top-banner-section {
  width: 100%;
  overflow: hidden;
}
.banner-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-section {
  padding: 40px 0;
}
.hero-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 992px) {
  .hero-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.hero-content {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
.hero-subtitle {
  font-size: 20px;
  color: var(--text-dark);
}
.hero-action {
  margin-top: 10px;
}
.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-primary:hover {
  opacity: 0.9;
}
.hero-qr {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: white;
  padding: 0px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 440px;
}
.qr-code {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.qr-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-dark);
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.hero-image img {
  border-radius: 20px;
  max-width: 90%;
}

.info-cards-section {
  padding: 60px 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.info-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.card-icon {
  width: 30px;
  height: 30px;
}
.card-label {
  font-weight: 600;
  color: var(--text-dark);
}
.card-body {
  background: var(--gradient-blue);
  padding: 30px;
  border-radius: 10px;
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
}
.card-body p {
  font-size: 16px;
  line-height: 1.5;
}

.calculator-section {
  padding: 40px 0;
}
.calculator-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 992px) {
  .calculator-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
/*.calc-controls {
  flex: 1;
  padding-right: 40px;
}*/


.calc-controls{
width:100%;
max-width:470px;
}


/* slider mobile fix */

.slider-container{
width:100%;
}

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

#litersSlider{
width:100%;
}


.fuel-toggle {
  display: flex;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 5px;
  width: fit-content;
  margin-bottom: 40px;
}
.toggle-option {
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.4);
  font-weight: 500;
}
.toggle-option.active {
  background-color: var(--light-blue);
  color: white;
}
.slider-container {
  position: relative;
  padding: 20px 0;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
}
.slider-track {
  position: relative;
  height: 4px;
  width: 100%;
}
.track-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(22, 59, 118, 0.1);
  border-radius: 100px;
}
.track-fill {
  position: absolute;
  height: 100%;
  background-color: var(--light-blue);
  border-radius: 100px;
}
.thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.thumb-label {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-blue);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.calc-result-card {
  flex: 1;
  background: var(--gradient-blue);
  border-radius: 15px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 248px;
}
.result-content {
  z-index: 2;
  color: white;
}
.result-label {
  opacity: 0.6;
  margin-bottom: 10px;
}
.result-value {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 30px;
}




.btn-white {
    background-color: white;
    color: #1e4686;
    padding: 12px 34px;
    border-radius: 5px;
    font-weight: 600;
    z-index: 100;
    opacity: 0.5;
}
.piggy-bank-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px;
  height: 250px;
}
.piggy-img {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 212px;
  opacity: 0.2; /* As per design opacity */
}

.steps-section {
  padding: 60px 0;
}
.steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.steps-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%; /* Adjust to align with text columns */
  position: relative;
}
.step-marker {
  z-index: 2;
}
.step-circle {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}
.step-circle.green {
  background: linear-gradient(90deg, #6bc82b 0%, #4a8b22 100%);
}
.step-line {
  flex: 1;
  height: 1px;
  background-color: #ccc;
  margin: 0 10px;
  position: relative;
}
/* Dots on line */
.step-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #ccc; /* Placeholder for the dot SVG */
  border-radius: 50%;
}

.steps-text-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  text-align: center;
}
@media (min-width: 768px) {
  .steps-text-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-item p {
  font-size: 16px;
  line-height: 1.5;
}

.partners-section {
  padding: 40px 0;
  background-color: white;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.partner-logo-okko {
  height: 150px;
  width: auto;
  object-fit: contain;
}
.divider {
  width: 1px;
  height: 40px;
  background-color: #ccc;
  opacity: 0.5;
  display: none;
}
@media (min-width: 768px) {
  .divider {
    display: block;
  }
}

.faq-section {
  padding: 60px 0;
  background-color: white;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}
.faq-item.expanded {
  border-color: #3f74c9;
}
.faq-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-question {
  font-weight: 600;
  color: var(--text-dark);
}
.faq-body {
  padding: 0 24px 24px 24px;
  color: rgba(50, 50, 50, 0.6);
  line-height: 1.6;
}

.contact-section {
  padding: 60px 0 100px 0;
}
.contact-form {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }
}
.input-group {
  flex: 1;
}
.form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.consent-text {
  font-size: 14px;
  color: rgba(50, 50, 50, 0.6);
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .form-actions {
    flex-direction: row;
    align-items: center;
  }
}
.rules-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-blue);
  border: 1px solid rgba(22, 59, 118, 0.2);
  padding: 12px 24px;
  border-radius: 5px;
}

.site-footer {
  background-color: #0071aa;
  color: white;
  padding: 40px 0;
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 30px;
}
.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.footer-divider {
  width: 100%;
  opacity: 0.2;
}

.footer-links a,
.footer-links a:visited {
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    opacity: 0.75; /* лёгкое затемнение */
    border-bottom: 1px solid rgba(255, 255, 255, 0.6); /* аккуратный underline */
}


.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  opacity: 0.6;
  font-size: 14px;
}
@media (min-width: 768px) {
  .footer-info {
    flex-direction: row;
    justify-content: space-between;
  }
}
.developer {
  display: flex;
  align-items: center;
  gap: 10px;
}



/* slider */

.slider-container{
    margin-top:40px;
}

.slider-track{
    position:relative;
    width:400px;
    height:10px;
}

.track-bg{
    background:#ddd;
    height:10px;
    border-radius:10px;
}

.track-fill{
    position:absolute;
    top:0;
    left:0;
    height:10px;
    background:#008ac5;
    border-radius:10px;
    width:40%;
}

#litersSlider{
    position:absolute;
    top:-10px;
    width:100%;
    opacity:0;
    height:30px;
    cursor:pointer;
}

/* thumb */

.thumb{
    position:absolute;
    top:-5px;
    transform:translateX(-50%);
}

.thumb-label{
    position:absolute;
    top:15px;
    left:210px;
    font-weight:bold;
}

/* result card */

.calc-result-card{
    background:#1E4686;
    color:white;
    padding:40px;
    border-radius:20px;
   
}

.result-label{
    font-size:18px;
}

.result-value{
    font-size:30px;
    font-weight:bold;
}

/*.btn-white{
    margin-top:20px;
    padding:12px 20px;
    border:none;
    border-radius:10px;
    cursor:pointer;
}
*/

.btn-white {
    background-color: white;
    color: #1e4686;
    padding: 12px 34px;
    border-radius: 5px;
    font-weight: 600;
}

.slider-labels{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}





.result-card {
  background: var(--gradient-primary);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 248px;
  box-sizing: border-box;
}
.result-text {
  position: relative;
  z-index: 2;
}
.result-text p {
  font-size: 20px;
  opacity: 0.6;
}
.result-text h3 {
  font-size: 68px;
  font-weight: 700;
  margin: 15px 0 30px;
}
.btn-secondary {
  background-color: var(--color-text-light);
  color: var(--color-primary-dark);
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .calculator-wrapper {
    flex-direction: column;
  }
  .calculator-controls,
  .calculator-result {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .calculator-controls h2 {
    font-size: 32px;
  }
  .result-text h3 {
    font-size: 48px;
  }
}



/* FAQ GRID */

.faq-grid{
row-gap:25px;
}

/* карточка */

.faq-card{
background:#fff;
border-radius:16px;
padding:25px;
box-shadow:0 8px 25px rgba(0,0,0,0.05);
transition:0.25s;
}

.faq-card:hover{
box-shadow:0 10px 35px rgba(0,0,0,0.08);
}

/* header */

.faq-header{
display:flex;
justify-content:space-between;
align-items:center;
cursor:pointer;
font-size:18px;
font-weight:600;
}

/* вопрос */

.faq-question{
max-width:90%;
}

/* иконка */

.faq-icon{
width:24px;
transition:0.25s;
}

/* тело */

.faq-body{
padding-top:18px;
color:#555;
line-height:1.6;
font-size:15px;
}

/* переключение иконок */

.faq-header:not(.collapsed) .faq-icon{
content:url("https://promo.mtb.ua/okko/assets/close.svg");
}

.faq-header.collapsed .faq-icon{
content:url("https://promo.mtb.ua/okko/assets/open.svg");
}

/* mobile */

@media (max-width:991px){

.faq-card{
padding:20px;
}

.faq-header{
font-size:16px;
}

}



