﻿/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.btn:hover {
  opacity: 0.85;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.btn--pill {
  border-radius: var(--radius-pill);
  padding: 15px 30px;
}

.btn--round {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
}

.btn--round svg {
  width: 16px;
  height: 20px;
}

.btn--round img {
  width: 24px;
  height: 24px;
}

.btn--full {
  width: 100%;
}

.btn-group {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.btn-group .btn--round {
  transform: rotate(90deg);
}

/* ===== SECTION TITLE ===== */

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, calc(18.4px + 1.125vw), 40px);
  line-height: normal;
  text-transform: uppercase;
}

.section-title--white {
  color: var(--color-text-light);
}

/* ===== HEADER ===== */

.header {
  position: relative;
  z-index: 20;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 33px clamp(20px, 5%, 80px) 0;
}

.header__logo {
  display: block;
}

.header__logo-img {
  width: 121px;
  height: auto;
  display: block;
}

.header__logo-svg {
  width: 121px;
  height: 37px;
  display: block;
  transform: rotate(180deg) scaleY(-1);
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.125vw, 60px);
}

.header__nav-list a {
  font-size: 17px;
  font-weight: 500;
  line-height: 20.574px;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.header__nav-list a:hover {
  opacity: 0.7;
}

.header__right {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.083vw, 40px);
}

.header__lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}

.header__lang-arrow {
  width: 12px;
  height: 12px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header__vin-input {
  display: flex;
  align-items: center;
  gap: 15px;
  width: clamp(200px, 17.188vw, 330px);
  height: 45px;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 500;
}

.header__vin-input input {
  font-weight: 500;
  font-size: 17px;
  width: 100%;
  background: none;
  border: none;
  outline: none;
}

.header__search-icon {
  width: 15.699px;
  height: 15.699px;
  flex-shrink: 0;
}

.header__burger {
  display: none;
}

/* ----- Header Dark Variant ----- */

.header--dark .header__nav-list a,
.header--dark .header__lang {
  color: var(--color-text-light);
}

.header--dark .header__vin-input {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20.55px);
  -webkit-backdrop-filter: blur(20.55px);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 7px 15px 0 rgba(0, 0, 0, 0.05);
}

.header--dark .header__vin-input input {
  color: rgba(255, 255, 255, 0.7);
}

.header--dark .header__vin-input input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* ----- Header Light Variant ----- */

.header--light .header__nav-list a,
.header--light .header__lang {
  color: var(--color-text-dark);
}

.header--light .header__vin-input {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--color-primary);
  color: rgba(0, 0, 0, 0.5);
}

.header--light .header__vin-input input {
  color: rgba(0, 0, 0, 0.5);
}

.header--light .header__vin-input input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* ===== OFFCANVAS MOBILE MENU ===== */

.header__nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.header__nav-overlay--active {
  display: block;
}

/* ===== FOOTER ===== */

.footer {
  width: 100%;
  border-top: 1px solid var(--color-text-light);
}

.footer--standalone {
  background: var(--color-bg-dark);
  border-top: none;
  border-top: 1px solid var(--color-text-light) #fff;

}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 40px clamp(20px, 5%, 80px) 50px;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.footer__logo {
  display: block;
}

.footer__logo svg {
  width: 121px;
  height: 37px;
  display: block;
  transform: rotate(180deg) scaleY(-1);
}

.footer__nav {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 13.542vw, 260px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.563vw, 30px);
}

.footer__col a {
  font-size: 17px;
  font-weight: 500;
  line-height: 20.574px;
  color: var(--color-text-light);
  transition: opacity var(--transition-fast);
}

.footer__col a:hover {
  opacity: 0.7;
}

.footer__col-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 20.574px;
  color: var(--color-text-footer-heading);
}

.footer__col--services {
  gap: clamp(20px, 2.083vw, 40px);
}

.footer__services-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__col--contacts {
  gap: clamp(20px, 2.083vw, 40px);
}

.footer__contacts-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contact span {
  font-size: 17px;
  font-weight: 500;
  line-height: 20.574px;
  color: var(--color-text-light);
}

.footer__contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== CALCULATOR INPUTS ===== */

.calc-input {
  width: 100%;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-input);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-light);
  border: none;
  outline: none;
}

.calc-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

select.calc-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.85 5C11.65 6.25 7.85 10 6.85 10C5.85 10 2.05 6.25 0.85 5' stroke='white' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

select.calc-input option {
  background: var(--color-bg-input);
  color: var(--color-text-light);
}

/* ===== FAQ ACCORDION ===== */

.faq__right {
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: stretch;
}

.faq__item {
  background: var(--color-bg-input);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  font-weight: 500;
  font-size: 17px;
  color: var(--color-text-light);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.faq__arrow {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq__answer-text {
  padding: 0 20px 20px;
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
  color: var(--color-text-light);
}

.faq__item--active .faq__answer {
  max-height: 1000px;
}

.faq__item--active .faq__arrow {
  transform: rotate(180deg);
}

.faq__contact-title {
  font-weight: 500;
  font-size: 17px;
}

/* ===== HERO (shared base) ===== */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: -83px;
  padding-top: 70px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.083vw, 40px);
  margin-top: auto;
}

.hero__title {
  font-size: clamp(24px, calc(19.2px + 1.5vw), 48px);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.hero__title--bold {
  font-weight: 700;
}

.hero__title--normal {
  font-weight: 400;
}

.hero__title-wrap {
  padding-bottom: clamp(15px, 1.563vw, 30px);
}

.hero__desc {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-light);
}

/* ===== FAQ LAYOUT (shared base) ===== */

.faq__inner {
  display: flex;
  justify-content: space-between;
}

.faq__left {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6.25vw, 120px);
}

.faq__title {
  font-size: clamp(24px, calc(19.2px + 1.5vw), 48px);
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.faq__contact {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.083vw, 40px);
  width: min(273px, 100%);
}

.faq__contact-desc {
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
}

/* ===== CALCULATOR LAYOUT (shared base) ===== */

.calculator__inner {
  display: flex;
  justify-content: space-between;
}

.calculator__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 460px;
}

.calculator__desc {
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
  width: min(460px, 100%);
}

.calculator__form-wrap {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.calculator__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.calculator__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calculator__row {
  display: flex;
  gap: 20px;
}

.calculator__row .calc-input {
  flex: 1;
  min-width: 0;
}

.calculator__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.calculator__result-label {
  font-weight: 300;
  font-size: clamp(14px, 0.938vw, 18px);
}

.calculator__result-value {
  font-weight: 500;
  font-size: clamp(24px, calc(20.8px + 1vw), 40px);
  text-transform: uppercase;
}

/* ===== INFO BLOCK ===== */

.info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-block__title {
  font-weight: 500;
  font-size: 17px;
}

.info-block__desc {
  font-weight: 300;
  font-size: 12px;
  line-height: normal;
}

/* ===== NEWS CARD (shared base) ===== */

.news-card {
  flex: 1;
  height: clamp(350px, 26.042vw, 500px);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card__link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.news-card__img {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: 0 clamp(12px, 1.042vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 1.563vw, 30px);
}

.news-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card__date {
  font-weight: 300;
  font-size: 14px;
}

.news-card__title {
  font-weight: 500;
  font-size: 17px;
}

.news-card__text {
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
}

/* ============================================ */
/* ===== RESPONSIVE — LAYOUT CHANGES ONLY === */
/* ===== Fluid sizing handled by clamp()/min() */
/* ============================================ */

/* --- Tablet: burger menu, stack layouts --- */
@media (max-width: 1024px) {

  /* Burger button */
  .header__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 20px;
    justify-content: center;
    align-items: stretch;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
  }

  .header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-light);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }

  .header--light .header__burger span {
    background: var(--color-text-dark);
  }

  .header__burger--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header__burger--active span:nth-child(2) {
    opacity: 0;
  }

  .header__burger--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Offcanvas nav */
  .header__nav-list {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-bg-darker);
    flex-direction: column;
    gap: 0;
    padding: 80px 30px 30px;
    z-index: 100;
    transition: right 0.3s ease;
  }

  .header__nav-list--active {
    right: 0;
  }

  .header__nav-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border-light);
  }

  .header__nav-list a {
    color: var(--color-text-light) !important;
  }

  .header__vin-input {
    display: none;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .footer__nav {
    gap: 40px;
    flex-wrap: wrap;
  }

  /* FAQ stack */
  .faq__inner {
    flex-direction: column;
    gap: 40px;
  }

  .faq__left {
    width: 100%;
    gap: 40px;
  }

  .faq__right {
    width: 100%;
  }

  /* Calculator stack */
  .calculator__inner {
    flex-direction: column;
    gap: 30px;
  }

  .calculator__form-wrap {
    width: 100%;
  }

  /* News card: auto height on tablet */
  .news-card {
    height: auto;
    min-height: 250px;
  }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
  .header__inner {
    padding-top: 24px;
  }

  .header__logo-img {
    width: 110px;
  }

  .header__right {
    display: none;
  }

  .footer__nav {
    flex-direction: column;
    gap: 30px;
  }

  .hero {
    padding-top: 90px;
  }

  .hero__desc {
    font-size: 15px;
  }
}

/* ===== POPUP / MODAL ===== */

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.popup-overlay--active {
  opacity: 1;
  visibility: visible;
}

.popup {
  position: relative;
  width: min(460px, 100%);
  background: var(--color-text-light);
  border-radius: var(--radius-md);
  padding: clamp(30px, 2.5vw, 48px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
}

.popup-overlay--active .popup {
  transform: translateY(0) scale(1);
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}

.popup__close:hover {
  background: var(--color-bg-card);
}

.popup__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.popup__title {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(20px, 1.25vw, 24px);
  color: var(--color-text-dark);
  text-transform: uppercase;
}

.popup__desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.popup__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--color-bg-light);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-dark);
  transition: border-color var(--transition-fast);
}

.popup__input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.popup__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.popup__input--error {
  border-color: #e53935;
}

.popup__submit {
  width: 100%;
}

.popup__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 20px 0;
}

.popup__success-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.4;
}

.popup__success-text span {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
  .btn--pill {
    padding: 12px 24px;
    font-size: 15px;
  }

  .btn--round {
    width: 45px;
    height: 45px;
  }

  .footer__services-links {
    gap: 14px;
  }

  .footer__contacts-items {
    gap: 14px;
  }
}

/* --- Mobile --- */
@media (max-width: 576px) {
  .header__logo-img {
    width: 100px;
  }

  .btn--pill {
    padding: clamp(10px, 1.563vw, 15px) clamp(20px, 1.563vw, 30px);
    font-size: clamp(13px, 0.885vw, 17px);
  }

  .btn--round {
    width: 38px;
    height: 38px;
  }

  .faq__question {
    font-size: 15px;
    padding: 15px;
  }

  .faq__contact {
    width: 100%;
  }

  .hero {
    height: 100svh;
    min-height: 560px;
    padding-top: 100px;
  }

  .hero__desc {
    font-size: 14px;
  }

  .footer__inner {
    padding-bottom: 30px;
  }

  .footer__left {
    gap: 30px;
  }

  .footer__services-links {
    gap: 10px;
  }

  .footer__contacts-items {
    gap: 10px;
  }

  .info-block__title {
    font-size: 15px;
  }

  .calculator__row {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- Extra small --- */
@media (max-width: 375px) {
  .hero {
    height: 100svh;
    min-height: 500px;
    padding-top: 90px;
  }

  .header__inner {
    padding-top: 16px;
  }

  .header__logo-img {
    width: 90px;
  }
}