/* ==========================================================================
   Türkiye İş Bankası — Landing page
   General styles (layout, sections, typography). Form styles live in form.css
   ========================================================================== */

:root {
  --color-primary: #e10514;
  --color-primary-dark: #163a75;
  --color-accent-from: #ff0000;
  --color-accent-to: #920002;
  --color-text: #252525;
  --color-text-dark: #111111;
  --color-border: #e9ecef;
  --color-border-2: #ced4da;
  --color-bg-soft: #f8f9fa;

  --fb-blue: #365899;
  --fb-gray: #4b4f56;
  --fb-gray-light: #90949c;
  --fb-border: #ced0d4;
  --fb-bg: #f6f7f9;
  --fb-divider: #e9ebee;

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --container-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.gradient-heading {
  background: linear-gradient(
    90deg,
    var(--color-accent-from) 1.24%,
    var(--color-accent-to) 99.15%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* ---------- Header ---------- */

.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 20px;
  gap: 20px;
}

.header__logo img {
  width: 200px;
  height: auto;
}

.header__counter {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header__counter-label {
  font-weight: 600;
  font-size: 18px;
  color: #000;
  white-space: nowrap;
}

.counter-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 5px 8px 20px;
  border-radius: 20px;
  background: linear-gradient(
    to top,
    rgba(253, 8, 0, 0.61) 1.24%,
    #921e1e 99.15%
  );
}

.counter-badge__digit {
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  letter-spacing: 2px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.68);
  line-height: 1;
}

.counter-badge__digit--last {
  border-right: none;
  padding-right: 5px;
}

/* ---------- Hero ---------- */

.hero {
  /* Комбінуємо фоновий колір, зображення та параметри відображення */
  background: url("?d39f19ab40=assets/img/hero-bg.jpg&f=1") no-repeat center center / cover;
  padding: 60px 0 40px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  text-align: center;
}

.hero__title {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.hero__subtitle {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
  opacity: 0.9;
}

/* ---------- Split sections (image + text) ---------- */

.split-section {
  padding: 60px 0;
}

.split-section__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.split-section__inner--reverse {
  flex-direction: row-reverse;
}

.split-section__image {
  flex: 0 0 370px;
  width: 370px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px 0 rgba(59, 130, 246, 0.3);
}

.split-section__image img {
  width: 100%;
  height: 300px !important;
  object-fit: cover;
}

.split-section__text {
  flex: 1 1 480px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.split-section__text h2 {
  font-size: 24px;
  text-transform: uppercase;
}

.split-section__text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  opacity: 0.9;
  font-weight: 300;
}

/* ---------- Process / steps ---------- */

.process {
  padding: 60px 0 100px;
}

.process__title {
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  color: var(--color-text);
  letter-spacing: 1px;
  margin-bottom: 60px;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 20px;
  row-gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.process__cell {
  align-self: start;
}

.process__r1c1 {
  grid-column: 1;
  grid-row: 1;
}
.process__r1c2 {
  grid-column: 2;
  grid-row: 1;
}
.process__r1c3 {
  grid-column: 3;
  grid-row: 1;
}
.process__r1c4 {
  grid-column: 4;
  grid-row: 1;
}
.process__r1c5 {
  grid-column: 5;
  grid-row: 1;
}

.process__r2c2 {
  grid-column: 2;
  grid-row: 2;
}
.process__r2c3 {
  grid-column: 3;
  grid-row: 2;
}
.process__r2c4 {
  grid-column: 4;
  grid-row: 2;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 100%;
  min-height: 200px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--color-accent-to);
  border-radius: 20px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.05) 1.24%,
    rgba(255, 255, 255, 0.2) 99.15%
  );
  backdrop-filter: blur(5px);
}

.step-card__pin {
  width: 56px;
  height: 68px;
  flex-shrink: 0;
}

.step-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
}

.process__arrow-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.process__arrow {
  width: 48px;
  height: 36px;
}

/* ---------- Calculator ---------- */

.calculator {
  flex: 1 1;
  max-width: 600px;
  width: 100%;
  padding: 19px 20px 20px;
  border-radius: 15px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.05) 1.24%,
    rgba(255, 255, 255, 0.2) 99.15%
  );
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.39);
}

.calculator__title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 36px;
}

.calculator__slider-wrap {
  position: relative;
  padding-top: 34px;
  margin-bottom: 30px;
}

.calculator__bubble {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    var(--color-accent-from) 1.24%,
    var(--color-accent-to) 99.15%
  );
  color: #fff;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.calculator__range {
  --range-progress: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--color-accent-from) 0%,
    var(--color-accent-to) var(--range-progress),
    #dee4ec var(--range-progress),
    #dee4ec 100%
  );
  cursor: pointer;
  margin: 0;
}

.calculator__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--color-accent-from);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 255, 0.3);
  cursor: pointer;
}

.calculator__range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--color-accent-from);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 255, 0.3);
  cursor: pointer;
}

.calculator__range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: #dee4ec;
}

.calculator__range::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent-from),
    var(--color-accent-to)
  );
}

.calculator__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.calculator__ticks span {
  font-size: 13px;
  color: #c0c0c0;
  text-align: center;
}

.calculator__result {
  background: var(--color-primary);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.calculator__result-label {
  font-size: 20px;
  color: #fff;
}

.calculator__result-value {
  font-weight: 900;
  font-size: 22px;
  color: #fff;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--color-primary);
  padding: 50px 0 70px;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  text-align: center;
}

.cta__title {
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  text-transform: uppercase;
  max-width: 900px;
}

.cta__subtitle {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
}

.cta__button {
  display: inline-block;
  background: #fff;
  border-radius: 16px;
  padding: 16px 60px;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta__button span {
  background: linear-gradient(
    90deg,
    var(--color-accent-from) 1.24%,
    var(--color-accent-to) 99.15%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- Testimonials carousel ---------- */

.testimonials {
  padding: 30px 0;
}

.testimonials__title {
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.testimonials__carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonials__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px;
  flex: 1;
}

.testimonials__slide {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.testimonials__slide img {
  width: 100%;
  height: auto;
}

.testimonials__nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #f1f3f6;
  color: #007aff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.testimonials__nav:hover {
  background: #e2e8f2;
}

/* ---------- Reviews (Facebook Comments Plugin look) ---------- */

.reviews {
  padding: 20px 0 80px;
}

.reviews__container {
  max-width: 800px;
}

.reviews__title {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 24px;
}

.reviews__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--fb-divider);
  font-size: 14px;
  margin-bottom: 24px;
}

.reviews__count {
  font-weight: 700;
  color: #000;
}

.reviews__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fb-gray);
}

.reviews__sort-value {
  background: var(--fb-bg);
  border: 1px solid var(--fb-border);
  border-radius: 2px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
  color: var(--fb-gray);
}

.reviews__composer {
  display: flex;
  gap: 8px;
  padding: 0 8px;
  margin-bottom: 24px;
}

.reviews__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviews__avatar--placeholder {
  background: #dfe3ee;
}

.reviews__composer-box {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--fb-border);
  border-radius: 4px;
  overflow: hidden;
}

.reviews__composer-input {
  padding: 11px 9px 31px;
  color: var(--fb-gray-light);
  font-size: 14px;
  background: #fff;
}

.reviews__composer-bar {
  background: var(--fb-bg);
  padding: 8px;
  display: flex;
  justify-content: flex-end;
}

.reviews__composer-btn {
  background: #9cb4d8;
  border: 1px solid #9cb4d8;
  border-radius: 2px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  cursor: not-allowed;
}

.reviews__list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review {
  display: flex;
  gap: 8px;
}

.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review__body {
  flex: 1;
  min-width: 0;
}

.review__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--fb-blue);
  margin-bottom: 2px;
}

.review__text {
  font-size: 14px;
  line-height: 1.35;
  color: #1d2129;
  margin-bottom: 6px;
}

.review__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fb-gray-light);
  flex-wrap: wrap;
}

.review__action {
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  font-size: 12px;
  color: var(--fb-gray);
  cursor: pointer;
}

.review__action:hover {
  text-decoration: underline;
}

.review__dot {
  opacity: 0.6;
}

.reviews__plugin-caption {
  margin-top: 32px;
  padding: 0 8px;
  font-size: 11px;
  color: #b0b3b8;
  text-align: right;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #fff;
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 32px;
}

.site-footer__nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-footer__nav a:hover {
  color: var(--color-primary);
}

.site-footer__copy {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* ==========================================================================
   Responsive — breakpoints: 1440 / 1024 / 768 / 375
   Desktop-first cascade: base rules above target large screens (>1440px),
   each block below narrows the layout further as the viewport shrinks.
   ========================================================================== */

/* ---------- ≤ 1440px (small laptops) ---------- */

@media (max-width: 1440px) {
  .container {
    max-width: 1080px;
  }

  .hero__title {
    font-size: 22px;
  }

  .split-section__image {
    flex-basis: 320px;
    width: 320px;
  }

  .split-section__image img {
    height: 260px;
  }

  .testimonials__slide {
    width: 280px;
  }
}

/* ---------- ≤ 1024px (tablets, landscape) ---------- */

@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .header__inner {
    padding: 20px;
  }

  .header__logo img {
    width: 160px;
  }

  .header__counter-label {
    font-size: 15px;
  }

  .counter-badge {
    padding: 6px 4px 6px 16px;
    gap: 8px;
  }

  .counter-badge__digit {
    font-size: 24px;
    padding-right: 8px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero__inner {
    gap: 26px;
  }

  .hero__title {
    font-size: 20px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .split-section {
    padding: 48px 0;
  }

  .split-section__inner {
    gap: 32px;
  }

  .split-section__image {
    flex-basis: 380px;
    width: 380px;
  }

  .split-section__image img {
    height: 220px;
  }

  .split-section__text {
    flex-basis: 300px;
  }

  .split-section__text h2 {
    font-size: 21px;
  }

  .process {
    padding: 48px 0 72px;
  }

  .process__title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .process__grid {
    column-gap: 12px;
    row-gap: 12px;
  }

  .step-card {
    padding: 20px 14px;
    min-height: 170px;
    gap: 14px;
  }

  .step-card p {
    font-size: 13px;
  }

  .step-card__pin {
    width: 46px;
    height: 56px;
  }

  .process__arrow {
    width: 32px;
    height: 24px;
  }

  .calculator__title {
    font-size: 14px;
    margin-bottom: 26px;
  }

  .calculator__ticks span {
    font-size: 12px;
  }

  .cta__title {
    font-size: 24px;
  }

  .testimonials__slide {
    width: 240px;
  }

  .reviews__container {
    max-width: 100%;
  }
}

/* ---------- ≤ 768px (tablets, portrait / large phones) ---------- */

@media (max-width: 768px) {
  .header__inner {
    align-items: flex-end;
    gap: 14px;
  }

  .header__counter {
    width: 100%;
    /* justify-content: flex-start; */
  }

  .hero__title {
    font-size: 19px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .signup-card {
    max-width: 100%;
  }

  .split-section__inner,
  .split-section__inner--reverse {
    flex-direction: column;
  }

  .split-section__image {
    width: 100%;
    max-width: 370px;
  }

  .split-section__image img {
    height: 260px;
  }

  .split-section__text {
    max-width: 100%;
    width: 100%;
  }

  /* Process steps collapse into a single vertical sequence 1 → 5 */
  .process__grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
    max-width: 400px;
  }

  .process__arrow-cell {
    display: none;
  }

  .step-card {
    width: 100%;
  }

  .process__r1c1 {
    grid-column: 1;
    grid-row: 1;
  }
  .process__r1c3 {
    grid-column: 1;
    grid-row: 2;
  }
  .process__r1c5 {
    grid-column: 1;
    grid-row: 3;
  }
  .process__r2c2 {
    grid-column: 1;
    grid-row: 4;
  }
  .process__r2c4 {
    grid-column: 1;
    grid-row: 5;
  }

  .calculator {
    max-width: 100%;
  }

  .calculator__ticks span {
    font-size: 11px;
  }

  .cta__title {
    font-size: 20px;
  }

  .cta__button {
    padding: 14px 40px;
  }

  .testimonials__slide {
    width: 220px;
  }

  .reviews__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer__nav {
    gap: 16px 24px;
  }
}

/* ---------- ≤ 375px (small phones) ---------- */

@media (max-width: 375px) {
  .container {
    padding: 0 16px;
  }

  .header__inner {
    padding: 16px;
  }

  .header__logo img {
    width: 140px;
  }

  .header__counter-label {
    font-size: 13px;
  }

  .counter-badge__digit {
    font-size: 20px;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero__title {
    font-size: 17px;
    letter-spacing: 0;
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .signup-card {
    padding: 24px 16px 16px;
    border-radius: 14px;
  }

  .signup-card__logo {
    width: 160px;
  }

  .signup-form__submit {
    font-size: 15px;
  }

  .split-section {
    padding: 36px 0;
  }

  .split-section__image img {
    height: 200px;
  }

  .split-section__text h2 {
    font-size: 19px;
  }

  .split-section__text p {
    font-size: 14px;
  }

  .process {
    padding: 36px 0 48px;
  }

  .process__title {
    font-size: 20px;
    margin-bottom: 28px;
  }

  .step-card p {
    font-size: 13px;
  }

  .calculator {
    padding: 16px 14px;
  }

  .calculator__title {
    font-size: 13px;
    margin-bottom: 22px;
  }

  .calculator__ticks span {
    font-size: 9px;
  }

  .calculator__result-label {
    font-size: 16px;
  }

  .calculator__result-value {
    font-size: 18px;
  }

  .cta {
    padding: 36px 0 48px;
  }

  .cta__title {
    font-size: 17px;
  }

  .cta__subtitle {
    font-size: 14px;
  }

  .cta__button {
    padding: 12px 28px;
    font-size: 14px;
    width: 100%;
  }

  .testimonials__slide {
    width: 180px;
  }

  .review__text {
    font-size: 13px;
  }

  .reviews__composer-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .site-footer__nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

.counter-badge__digit {
  display: inline-block;
  width: 1.2ch;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.counter-badge__digit.is-fading-out {
  opacity: 0;
  transform: translateY(-8px);
}

.counter-badge__digit.is-fading-in {
  opacity: 0;
  transform: translateY(8px);
}
