/* =========================
   01. VARIABLES
========================= */

:root {
  --red: #d91a32;
  --red-dark: #b9162a;
  --dark: #2f2e2e;
  --text: #333333;
  --muted: #666666;
  --light: #f7f7f7;
  --white: #ffffff;
  --border: #e5e5e5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --container: 1600px;
  --title-size: clamp(1.5rem, 2.5vw, 2.25rem);
}


/* =========================
   02. RESET / BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#steps,
#prices,
#products,
#contacts,
#partner,
#faq {
  scroll-margin-top: 52px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* =========================
   03. LAYOUT
========================= */

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section__header {
  font-size: var(--title-size);
  margin: 0 auto 44px;
  text-align: center;
}


/* =========================
   04. TYPOGRAPHY
========================= */

.h1,
.h2,
.h3 {
  margin: 0;
  color: var(--dark);
  line-height: 1.15;
}

.h1 {
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 20px;
}

.h2 {
  font-size: var(--title-size);
  margin-bottom: 16px;
}

.h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}


/* =========================
   05. BUTTONS
========================= */

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.primary-button:hover {
  background: var(--red-dark);
}


/* =========================
   06. HEADER
========================= */

.header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header_inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo__image {
  width: 90px;
  height: auto;
  margin: 10px 0;
}

.header__menu {
  margin-left: 80px;
}

.header__menu-list {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 500;
  font-size: 16px;
}

.header__menu-list a {
  position: relative;
}

.header__menu-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transform: translateX(-50%);
  transition: 0.2s;
}

.header__menu-list a:hover::after {
  width: 100%;
}

.lang-dropdown-select {
  margin-left: auto;
  width: 140px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 16px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-socials a {
  color: var(--red);
  font-size: 24px;
  line-height: 1;
  transition: 0.2s;
}

.header-socials a:hover {
  transform: scale(1.1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
  border: 0;
}

/* Кнопка бургера */

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}

.mobile-menu-btn::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 26px;
  height: 2px;
  background: var(--dark);
  box-shadow:
    0 8px 0 var(--dark),
    0 16px 0 var(--dark);
}

.language-switcher {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher__button {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.language-switcher__button:hover {
  color: var(--red);
}

.language-switcher__button.active,
.language-switcher__button[hidden] {
  display: none;
}

@media (max-width: 1020px) {
  .language-switcher {
    margin-left: auto;
    gap: 12px;
  }

  .language-switcher__button {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    gap: 10px;
  }

  .language-switcher__button {
    font-size: 16px;
  }
}

/* =========================
   HEADER TABLET / MOBILE
========================= */

@media (max-width: 1020px) {

  .header__menu{
    display: none;
  }

  .header_inner {
    gap: 16px;
  }

  .logo__image {
    width: 90px;
  }

  .lang-dropdown-select {
    margin-left: auto;
    width: 130px;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 680px) {

  .header_inner {
    min-height: 72px;
  }

  .header-socials {
    display: none;
  }

  .logo__image {
    width: 75px;
  }

  .lang-dropdown-select {
    width: 110px;
    font-size: 14px;
  }
}


/* =========================
   07. HERO
========================= */

.hero {
  padding: 130px 0 70px;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.hero .container {
  width: min(100% - 48px, 1560px);
}

.flex-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.hero__title {
  font-size: clamp(44px, 4.1vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__content{
    padding-right: 20px;
}

.hero__content .subtitle {
  max-width: 660px;
  margin-bottom: 26px;
  font-size: 22px;
  line-height: 1.45;
  color: #4b5563;
}

.hero-advantages__container {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.hero-advantages__container li {
  position: relative;
  padding-left: 34px;
  font-size: 18px;
  font-weight: 700;
}

.hero-advantages__container li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.hero__image {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .hero .flex-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__content {
    padding-right: 0;
  }

  .hero__image {
    width: 100%;
    margin-top: 36px;
    justify-content: center;
  }

  .hero__image img {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .hero .container {
    width: min(100% - 24px, 1560px);
  }

  .hero {
    overflow-x: hidden;
  }

  .hero__title {
    font-size: 38px;
    line-height: 1.08;
  }

  .hero__content .subtitle {
    font-size: 18px;
  }

  .hero .primary-button {
    width: 100%;
    min-width: 0;
  }
}

.hero .primary-button {
  min-width: 280px;
  height: 56px;
  font-size: 18px;
}


/* =========================
   08. FEATURES
========================= */

.grid {
  display: grid;
  gap: 24px;
}

.feature__list {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.features__item,
.center-list__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.subtitle-features{
    width: 60%;
    margin: auto;
}

@media (max-width: 1020px) {.subtitle-features{ width: 80%;}}
@media (max-width: 610px) {.subtitle-features{ width: 100%;}}

.features__item {
  text-align: center;
}

.icon__container {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--red);
    display: flex;
  align-items: center;
  justify-content: center;
}


.icon__container i {
  font-size: 36px;
  color: #fff;
}



/* =========================
   09. MISSION
========================= */

.mission-section {
  background: var(--white);
  padding: 80px 0 70px;
}

.mission__wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}

.mission-section .section__header {
  text-align: left;
  margin: 0 0 34px;
  max-width: none;
}

.mission-section .section__title {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 26px;
}

.mission-subtitle {
  margin: 0;
  color: var(--red);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
}

.text-fade-paragraph {
  max-width: 760px;
  font-size: 22px;
  line-height: 1.55;
  color: var(--text);
}

.mission-list__items {
  display: grid;
  gap: 26px;
}

.mission-list__item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
}

.mission-list__icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-list__icon i {
  font-size: 28px;
}

.mission-list__icon--green {
  background: #eef7ea;
}

.mission-list__icon--green i {
  color: #78c850;
}

.mission-list__icon--red {
  background: #fdeaea;
}

.mission-list__icon--red i {
  color: #ef4444;
}

.mission-list__icon--blue {
  background: #edf2f9;
}

.mission-list__icon--blue i {
  color: #2563eb;
}

.mission-list__icon--orange {
  background: #fff3e7;
}

.mission-list__icon--orange i {
  color: #f59e0b;
}

.mission-list__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--dark);
}

.mission-list__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text);
}

.mission-banner {
  margin-top: 80px;
  padding: 46px 32px;
  border-radius: 20px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, #e30613 0%, #e94b59 100%);
  box-shadow: 0 15px 35px rgba(227, 6, 19, 0.2);
}

.mission-banner h3 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
}

.mission-banner p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.45;
}

@media (max-width: 1020px) {
  .mission__wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mission-section .section__header {
    text-align: center;
  }

  .text-fade-paragraph {
    max-width: none;
    text-align: center;
  }

  .mission-list__items {
    max-width: 720px;
    margin: 0 auto;
  }

  .mission-banner {
    margin-top: 56px;
  }
}

@media (max-width: 680px) {
  .mission-section {
    padding: 56px 0;
  }

  .mission-section .section__title {
    font-size: 32px;
  }

  .mission-subtitle {
    font-size: 26px;
  }

  .text-fade-paragraph {
    font-size: 18px;
    line-height: 1.5;
  }

  .mission-list__item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .mission-list__icon {
    width: 48px;
    height: 48px;
  }

  .mission-list__icon i {
    font-size: 22px;
  }

  .mission-list__title {
    font-size: 20px;
  }

  .mission-list__text {
    font-size: 16px;
  }

  .mission-banner {
    padding: 34px 20px;
    border-radius: 16px;
  }

  .mission-banner h3 {
    font-size: 28px;
  }

  .mission-banner p {
    font-size: 18px;
  }
}


/* =========================
   10. STEPS
========================= */

.steps-section {
  background: var(--white);
  padding: 70px 0;
}

.steps-section .section__header {
  margin-bottom: 44px;
}

.steps-section .section__title {
  font-size: 40px;
  line-height: 1.2;
  text-align: center;
}

.step-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.step-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 30px;
  align-items: start;
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.step-content h3 {
  margin: 0 0 6px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--dark);
}

.step-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}

@media (max-width: 680px) {
  .steps-section {
    padding: 44px 0;
  }

  .steps-section .section__header {
    margin-bottom: 28px;
  }

  .steps-section .section__title {
    font-size: 28px;
  }

  .step-list {
    gap: 24px;
  }

  .step-list li {
    grid-template-columns: 42px 1fr;
    gap: 24px;
  }

  .step-number {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .step-content h3 {
    font-size: 19px;
    margin-bottom: 5px;
  }

  .step-content p {
    font-size: 16px;
    line-height: 1.35;
  }
}


/* =========================
   11. PRICES
========================= */

.price-section {
  padding: 90px 0;
}

.price-section .section__header {
  margin-bottom: 42px;
}

.vehicle-tabs {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  transition: 0.2s;
}

.tab-button i {
  font-size: 22px;
  color: currentColor;
  line-height: 1;
  flex-shrink: 0;
}

.tab-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.tab-button.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.price-table {
  display: none;
}

.price-table.active {
  display: grid;
  gap: 14px;
  max-width: 850px;
  margin: 0 auto;
}

.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.price-card span {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-light);
}

.price-card b {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.price-extra {
  max-width: 850px;
  margin: 28px auto 0;
}

.price-extra h3 {
  margin-bottom: 14px;
  font-size: 22px;
  color: var(--dark);
}

.price-extra-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.price-extra-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  color: var(--text);
}

.price-extra-list i {
  font-size: 20px;
  color: var(--text);
  line-height: 1;
  flex-shrink: 0;
}

.price-extra-list span {
  min-width: 0;
  color: var(--text);
}

.price-extra-list b {
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.price-vat {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-light);
}

.price-button-wrapper {
  margin-top: 34px;
  text-align: center;
}

.price-button-wrapper .primary-button {
  min-width: 300px;
}

@media (max-width: 900px) {
  .vehicle-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-button {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
  }

  .tab-button i {
    font-size: 20px;
  }

  .price-extra-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .price-section {
    padding: 56px 0;
  }

  .price-section .section__header {
    margin-bottom: 28px;
  }

  .vehicle-tabs {
    gap: 10px;
    margin-bottom: 24px;
  }

  .price-table.active,
  .price-extra {
    max-width: none;
  }

  .price-card {
    padding: 18px 16px;
    gap: 12px;
  }

  .price-card strong {
    font-size: 17px;
  }

  .price-card span {
    font-size: 13px;
  }

  .price-card b {
    font-size: 18px;
  }

  .price-extra {
    margin-top: 24px;
  }

  .price-extra h3 {
    margin-bottom: 12px;
    font-size: 20px;
  }

  .price-extra-list {
    gap: 10px;
  }

  .price-extra-list li {
    grid-template-columns: 20px 1fr auto;
    gap: 8px;
    font-size: 14px;
  }

  .price-extra-list i {
    font-size: 18px;
  }

  .price-extra-list b {
    font-size: 14px;
  }

  .price-button-wrapper .primary-button {
    width: 100%;
    min-width: unset;
  }
}

/* =========================
   12. CONTACTS
========================= */

.contacts-section {
  background: var(--white);
}

.contacts-wrapper {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.contacts-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.contacts-filter {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 12px;
  margin-bottom: 14px;
}

.contacts-filter input,
.contacts-filter select,
.contact-form input,
.contact-form select,
.contact-form textarea,
.form-wrapper input,
.form-wrapper select,
.form-wrapper textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.contacts-count {
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--dark);
}

.contacts-list {
  height: 500px;
  overflow-y: auto;
  padding-right: 8px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.contacts-list::-webkit-scrollbar {
  width: 8px;
}

.contacts-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 999px;
}

.contacts-list::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 999px;
}

.center-list__item {
  position: relative;
  cursor: pointer;
  padding: 18px 20px;
  padding-top: 38px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}

.center-list__item:hover,
.center-list__item.active {
  border-color: rgba(217, 26, 50, 0.45);
  box-shadow: 0 8px 24px rgba(217, 26, 50, 0.12);
}

.center-list__item h3 {
  margin: 0 0 8px;
  padding-right: 110px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--dark);
}

.center-list__item p {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}

.center-list__item a {
  color: var(--red);
  font-weight: 700;
}

.dealer-type-dealer,
.dealer-type-partner {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.dealer-type-dealer {
  background: rgba(217, 26, 50, 0.12);
  color: var(--red);
}

.dealer-type-partner {
  background: rgba(47, 46, 46, 0.1);
  color: var(--dark);
}

.contacts-detail {
  height: 640px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.contacts-detail h3 {
  margin: 0 0 12px;
  font-size: 26px;
  color: var(--dark);
}

.contacts-detail p {
  margin: 6px 0;
  font-size: 17px;
}

.contacts-detail a {
  color: var(--red);
  font-weight: 700;
}

.contacts-map {
  width: 100%;
  flex: 1;
  min-height: 300px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 20px;
}

@media (max-width: 1020px) {
  .contacts-wrapper {
    grid-template-columns: 1fr;
  }

  .contacts-list {
    height: 430px;
  }

  .contacts-detail {
    height: auto;
    min-height: unset;
  }

  .contacts-map {
    height: 360px;
    flex: unset;
  }
}

@media (max-width: 680px) {
  .contacts-filter {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contacts-filter input,
  .contacts-filter select {
    min-width: 0;
    font-size: 14px;
  }

  .contacts-list {
    height: 390px;
  }

  .center-list__item {
    padding: 16px;
    padding-top: 42px;
  }

  .center-list__item h3 {
    padding-right: 0;
    font-size: 18px;
  }

  .contacts-detail {
    padding: 20px;
  }

  .contacts-detail h3 {
    font-size: 22px;
  }

  .contacts-map {
    height: 300px;
  }
}

/* =========================
   13. PARTNER
========================= */

.partner-section {
  background: var(--white);
  padding: 80px 0;
}

.partner-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(217, 26, 50, 0.95), rgba(235, 76, 92, 0.95)),
    var(--red);
  color: var(--white);
  box-shadow: 0 18px 45px rgba(217, 26, 50, 0.22);
}

.partner-title {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 52px);
}

.partner-subtitle {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1.45;
}

.partner-benefits {
  display: grid;
  gap: 12px;
}

.partner-benefits li {
  position: relative;
  padding-left: 30px;
  font-size: 18px;
  font-weight: 700;
}

.partner-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--white);
  font-weight: 900;
}

.partner-action {
  padding: 34px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.partner-action p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.45;
}

.partner-action .primary-button {
  background: var(--white);
  color: var(--red);
  width: 100%;
}

.partner-action .primary-button:hover {
  background: #f3f3f3;
}

@media (max-width: 900px) {
  .partner-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }
}

@media (max-width: 680px) {
  .partner-section {
    padding: 56px 0;
  }

  .partner-card {
    padding: 28px;
    border-radius: 18px;
  }

  .partner-title {
    font-size: 30px;
  }

  .partner-subtitle {
    font-size: 18px;
  }

  .partner-benefits li {
    font-size: 16px;
  }

  .partner-action {
    padding: 24px;
  }
}


/* =========================
   14. AI ASSISTANT CTA
========================= */

.questions-section {
  padding: 100px 0;
}

.questions-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.questions-title {
  margin: 0 0 24px;
  line-height: 1.1;
}

.questions-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--red),
    #ff294d
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;

}

.questions-text {
  max-width: 920px;
  margin: 0 auto 36px;
  line-height: 1.6;
      color: var(--muted);
    font-size: 20px;
}

.questions-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 34px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 8px;
  background-color: var(--red);
  border: none;
  color: white;
  cursor: pointer;
  transition: 0.5s;
}

.questions-button:hover {
  background-color: var(--red-dark);
}

.chat-button.chat-button--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
}

.chat-hint.chat-hint--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  .questions-section {
    padding: 70px 0;
  }

  .questions-title {
    margin-bottom: 20px;
    font-size: 36px;
  }

  .questions-icon {
    width: 82px;
    height: 82px;
    font-size: 36px;
    margin-bottom: 24px;
  }

  .questions-text {
    font-size: 18px;
    margin-bottom: 28px;
  }

  .questions-button {
    width: 100%;
    justify-content: center;
  }
}


/* =========================
   15. MODALS / FORMS
========================= */

dialog {
  width: min(100% - 32px, 560px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.modal-content {
  position: relative;
  padding: 36px;
  background: var(--white);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

.form-wrapper,
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

/* =========================
   SERVICE MODAL
========================= */

.service-modal {
  box-sizing: border-box;
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: 64px 36px 36px;
  margin: 0 10px;
  border-radius: 18px;
}

.service-modal__close {
  right: 22px;
  top: 16px;
  line-height: 1;
}

.service-modal__title {
  margin-bottom: 30px;
}

.service-step {
  display: none;
  opacity: 0;
  transform: translateY(14px);
}

.service-step--active {
  display: block;
  animation: serviceStepIn 0.24s ease forwards;
}

@keyframes serviceStepIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-city-card {
  min-height: 88px;
  padding: 22px;
  border: 0;
  background: #f5f6f8;
  color: var(--dark);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 26px;
  font-weight: 800;
  transition: 0.2s;
}

.service-city-card:hover {
  background: var(--red);
  color: var(--white);
}

.service-partner-text {
  margin-top: 34px;
  text-align: center;
  font-size: 21px;
  color: var(--dark);
}

.service-partner-text span {
  color: var(--red);
  font-weight: 900;
}

.service-partner-text a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.service-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.service-back,
.service-nearest {
  border: 0;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 0;
}

.service-nearest {
  color: var(--red);
}

.service-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-back i {
  font-size: 16px;
}

.service-back:hover,
.service-nearest:hover {
  color: var(--red);
}

.service-centers-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-center-card {
  padding: 28px;
  border: 0;
  background: #f5f6f8;
  color: var(--dark);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: 0.2s;
}

.service-center-card:hover {
  background: #eef0f3;
  transform: translateY(-2px);
}

.service-center-card h4 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.service-center-card p {
  margin: 7px 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.35;
}

.selected-center-card {
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0 26px;
  background: #f5f6f8;
}

.selected-center-card h4 {
  font-size: 24px;
  margin: 0 0 12px;
}

.selected-center-card p {
  margin: 6px 0;
  color: #4b5563;
  font-size: 17px;
}

.service-modal .form-wrapper {
  margin-top: 0;
}

.service-modal .form-group {
  display: grid;
  gap: 8px;
}

.service-modal .form-group label {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.service-modal .form-group label span {
  color: var(--red);
}

.service-modal .form-group input,
.service-modal .form-group textarea {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 16px 18px;
  font: inherit;
  font-size: 18px;
  color: var(--dark);
  background: #f5f6f8;
}

.service-modal .form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-policy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
}

.form-policy input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-policy a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.form-policy a:hover {
  text-decoration: underline;
}

.service-submit:disabled,
.service-submit:disabled:hover {
  background: #c8c8c8;
  color: #ffffff;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.service-submit.service-submit--error {
  background: #991b1b;
  color: #ffffff;
}

.service-success {
  text-align: center;
  padding: 0px 0 10px;
}

.service-success__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.service-success p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.45;
  color: #4b5563;
}

body.modal-open {
  overflow: hidden;
}

.modal-dialog {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.modal-dialog[open].modal-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s ease;
}

.modal-dialog[open].modal-show::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .service-modal {
    padding: 64px 22px 28px;
    max-height: 90vh;
  }

  .service-city-grid,
  .service-centers-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-city-card {
    min-height: 74px;
    font-size: 22px;
  }

  .service-modal__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-partner-text {
    font-size: 18px;
  }

  .service-center-card {
    padding: 22px;
  }

  .service-center-card h4 {
    font-size: 22px;
  }
}

/* =========================
   PARTNER
========================= */

.partner-step {
display: none;
opacity: 0;
transform: translateY(14px);
}

.partner-step--active {
display: block;
animation: serviceStepIn 0.24s ease forwards;
}

/* =========================
   16. MOBILE MENU
========================= */

.mobile-overlay {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  opacity: 0;
  transform: translateY(-20px);
}

.mobile-overlay[open] {
  opacity: 1;
  transform: translateY(0);
  animation: mobileMenuOpen 0.25s ease forwards;
}

.mobile-overlay::backdrop {
  background: rgba(0, 0, 0, 0.45);
  animation: mobileBackdropOpen 0.25s ease forwards;
}

.mobile-overlay__close-button-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 28px 34px 0;
}

.mobile-overlay__body {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 56px;
  padding: 40px 24px 80px;
}

.mobile-menu-list {
  display: grid;
  gap: 30px;
  text-align: center;
}

.mobile-menu-list a {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
  color: var(--dark);
}

.mobile-menu-list a:hover {
  color: var(--red);
}

.mobile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-socials a {
  color: var(--red);
  font-size: 36px;
  line-height: 1;
}

.mobile-socials a:hover {
  transform: scale(1.1);
}

.cross-button {
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.cross-button::before,
.cross-button::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 25px;
  width: 34px;
  height: 2px;
  background: var(--dark);
}

.cross-button::before {
  transform: rotate(45deg);
}

.cross-button::after {
  transform: rotate(-45deg);
}

@keyframes mobileMenuOpen {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileBackdropOpen {
  from {
    background: rgba(0, 0, 0, 0);
  }

  to {
    background: rgba(0, 0, 0, 0.45);
  }
}


/* =========================
   17. CHAT
========================= */

.chat-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 10px 30px rgba(217, 26, 50, 0.3);
  transition: 0.2s;
}

.chat-button:hover {
  transform: translateY(-2px);
}

.chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 9999;
}

.chat-modal.active {
  display: flex;
}

.chat-window {
  width: 420px;
  height: 650px;
  background: var(--white);
  border-radius: 20px;
  margin: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.chat-header span {
  color: #4caf50;
  font-size: 14px;
  font-weight: 700;
}

.chat-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dark);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.chat-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.chat-message {
  max-width: 82%;
  width: fit-content;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f4f4;
  color: var(--dark);
  line-height: 1.55;
  font-size: 15px;
}

.chat-message--bot {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.chat-message--user {
  align-self: flex-end;
  background: var(--red);
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.chat-message--loading {
  color: var(--muted);
}

.chat-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px 14px;
  flex-wrap: nowrap;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
}

.chat-quick::-webkit-scrollbar {
  display: none;
}

.chat-quick button {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: #f7f7f7;
  color: var(--dark);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.chat-quick button:hover {
  background: #eeeeee;
}

.chat-input {
  border-top: 1px solid var(--border);
  padding: 16px;
  display: flex;
  gap: 12px;
}

.chat-message {
  white-space: pre-line;
  
}

.chat-input input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
}

.chat-input button {
  width: 50px;
  height: 48px;
  flex-shrink: 0;
  border: 0;
  border-radius: 14px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s;
}

.chat-input button:hover {
  transform: translateY(-1px);
}

.chat-input button:disabled,
.chat-input input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.chat-hint {
  position: fixed;
  right: 100px;
  bottom: 24px;
  max-width: 280px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  font-size: 14px;
  line-height: 1.45;
  z-index: 899;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s;
}

.chat-hint::after {
  content: '';
  position: absolute;
  right: -7px;
  bottom: 24px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
}

.chat-hint.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .chat-hint {
    right: 16px;
    bottom: 100px;
    max-width: 240px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .chat-hint::after {
    content: '';
    position: absolute;
    right: 24px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
  }
}

@media (max-width: 680px) {
  .chat-button {
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .chat-modal {
    align-items: stretch;
    justify-content: stretch;
  }

  .chat-window {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .chat-header {
    padding: 18px;
  }

  .chat-header h3 {
    font-size: 22px;
  }

  .chat-body {
    padding: 18px;
    gap: 12px;
  }

  .chat-message {
    max-width: 88%;
    font-size: 15px;
  }

  .chat-quick {
    padding: 10px 18px 12px;
  }

  .chat-quick button {
    padding: 7px 12px;
    font-size: 13px;
  }

  .chat-input {
    padding: 14px;
  }
}

/* =========================
   18. FOOTER
========================= */

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 56px 0 24px;
}

.footer .container {
  max-width: 1400px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  min-height: 230px;
}

.footer__cell {
  display: flex;
}

.footer__cell:nth-child(1) {
  justify-content: center;
}

.footer__cell:nth-child(2) {
  justify-content: center;
}

.footer__cell:nth-child(3) {
  justify-content: center;
}

.footer__column {
  width: fit-content;
  max-width: 420px;
}

.footer__h3 {
  margin: 0 0 24px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__links li {
  list-style: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}

.footer__links a:hover {
  opacity: 0.75;
}

.footer__socials a {
  gap: 12px;
}

.footer__socials i {
  width: 22px;
  font-size: 24px;
}

.footer__bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(120, 130, 160, 0.35);
  text-align: center;
}

.footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 1020px) {
  .footer__top {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 36px;
  }

  .footer__cell {
    justify-content: flex-start !important;
  }

  .footer__bottom {
    margin-top: 32px;
  }
}

@media (max-width: 680px) {
  .footer {
    padding: 44px 0 24px;
  }

  .footer__h3 {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .footer__links {
    gap: 12px;
  }

  .footer__links a {
    font-size: 15px;
  }

  .footer__socials i {
    width: 20px;
    font-size: 22px;
  }

  .footer__bottom p {
    font-size: 13px;
  }
}
/* =========================
   19. RESPONSIVE
========================= */

@media (max-width: 1120px) {
  .header__menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
  }

  .mobile-menu-btn::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 14px;
    width: 26px;
    height: 2px;
    background: var(--dark);
    box-shadow: 0 8px 0 var(--dark), 0 16px 0 var(--dark);
  }

  .flex-wrapper,
  .mission__wrapper,
  .contacts-wrapper,
  .grid-4-cols {
    grid-template-columns: 1fr;
  }

  .feature__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-detail {
    position: static;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 56px 0;
  }

  .header_inner {
    min-height: 72px;
  }

  .logo__image {
    width: 90px;
  }

  .lang-dropdown-select {
    max-width: 95px;
  }

  .hero {
    padding: 120px 0 56px;
  }

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

  .step-list li::before {
    left: 22px;
    top: 22px;
  }

  .dealer-cta__wrapper {
    padding: 32px 22px;
  }

}


/* =========================
   PRODUCTS
========================= */

.products-section {
  background: var(--white);
  padding: 80px 0;
}

.products-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.products-row::-webkit-scrollbar {
  height: 8px;
}

.products-row::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

.products-row::-webkit-scrollbar-track {
  background: #f5f6f8;
  border-radius: 999px;
}

.product-card {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}

.product-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.product-content h3 {
  min-height: 50px;
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--dark);
}

.product-description {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.product-details {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--red);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  transition: opacity 0.2s;
}

.product-details::after {
  content: " →";
  margin-left: 5px;
}

.product-details:hover {
  opacity: 0.72;
  text-decoration: underline;
}

.product-variants-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.product-variant-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f6f8;
  color: var(--dark);
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: 0.2s;
}

.product-variant-chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.product-variant-chip--active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.product-variant-chip--active:hover {
  color: var(--white);
}

.product-variant-chip--in-cart {
  border-color: var(--red);
}


.product-variant-chip--in-cart::after {
  content: "✓";
  margin-left: 5px;
  font-size: 10px;
  font-weight: 900;
}

.product-variant-chip--in-cart:hover {
  border-color: var(--red);
}

.product-selected-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 18px;
}

.product-selected-price strong {
  color: var(--red);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

.product-bundle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.product-button {
  flex: 0 0 64px;
  width: 64px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-size: 17px;
  transition: 0.2s;
}

.product-button:hover {
  transform: translateY(-2px);
}

.product-button--added,
.product-button--added:hover {
  background: #c8c8c8;
  color: #ffffff;
}

.cart-section-button-wrap {
  min-height: 84px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cart-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 28px auto 0;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  padding: 14px 26px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s;
}

.cart-section-button--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-section-button strong {
  min-width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.modal-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.modal-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cart-modal-content {
  width: min(100% - 32px, 900px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 22px;
}

body.modal-open {
  overflow: hidden;
}

.cart-empty {
  padding: 20px;
  border-radius: var(--radius);
  background: #f5f6f8;
  color: #4b5563;
  margin-bottom: 24px;
}

.cart-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: #ffffff;
}

.cart-item__image {
  width: 132px;
  height: 132px;
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cart-item__title {
  margin: 0;
  padding-right: 40px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--dark);
}

.cart-remove {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.cart-item__controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
}

.cart-volume {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f5f6f8;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 6px;
}

.cart-quantity button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--dark);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.cart-quantity span {
  min-width: 26px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.cart-item__price {
  min-width: 95px;
  text-align: right;
  font-size: 21px;
  font-weight: 900;
  color: var(--red);
  white-space: nowrap;
}

.cart-item__bundle {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.cart-add-same {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.cart-total {
  margin: 0 0 28px;
  text-align: right;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.cart-total span {
  color: var(--red);
}

.cart-delivery-radios {
  display: grid;
  gap: 12px;
}

.cart-delivery-radios label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f6f8;
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cart-delivery-radios input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--red);
}

#cart-submit:disabled {
  background: #c8c8c8;
  cursor: not-allowed;
}

.cart-step {
  display: none;
}

.cart-step--active {
  display: block;
}

.cart-success {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
  border-radius: 24px;
  opacity: 0;
  transform: translateY(12px);
  animation: cartSuccessShow 0.35s ease forwards;
}

@keyframes cartSuccessShow {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.cart-success__title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--dark);
}

.cart-success__text {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .products-section {
    padding: 56px 0;
  }

  .products-row {
    gap: 14px;
    margin: 0 -16px;
    padding: 0 16px 12px;
  }

  .products-row::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    flex-basis: 250px;
  }

  .product-image {
    height: 190px;
  }

  .product-content {
    padding: 18px;
  }

  .product-content h3 {
    min-height: 44px;
    font-size: 18px;
  }

  .product-description {
    font-size: 14px;
  }

  .product-details {
    font-size: 13px;
  }

  .product-variant-chip {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .product-selected-price strong {
    font-size: 22px;
  }

  .product-button {
    flex-basis: 58px;
    width: 58px;
    height: 44px;
  }

  .cart-modal-content {
    width: min(100% - 20px, 900px);
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    justify-items: stretch;
    text-align: left;
    gap: 10px;
    padding: 12px 0;
    border-radius: 0;
  }

  .cart-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 4px;
  }

  .cart-item__image {
    width: 64px;
    height: 84px;
  }

  .cart-item__body {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
    gap: 6px;
  }

  .cart-item__title {
    padding-right: 24px;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
  }

  .cart-remove {
    top: 4px;
    right: 0;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }

  .cart-item__controls {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto auto;
    align-items: center;
    gap: 6px;
  }

  .cart-volume {
    width: 100%;
    min-width: 0;
    max-width: 140px;
    min-height: 34px;
    padding: 6px 7px;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    border-radius: 10px;
  }

  .cart-quantity {
    padding: 0;
    gap: 2px;
    white-space: nowrap;
  }

  .cart-quantity button {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .cart-quantity span {
    min-width: 14px;
    font-size: 14px;
  }

  .cart-item__price {
    min-width: 0;
    text-align: right;
    font-size: 16px;
    white-space: nowrap;
  }

  .cart-add-same {
    justify-self: start;
    text-align: left;
    font-size: 13px;
    margin-top: 2px;
  }

  .cart-total {
    text-align: center;
    font-size: 28px;
  }

  .cart-delivery-radios label {
    align-items: flex-start;
    text-align: left;
  }

  .cart-success__title {
    font-size: 28px;
  }

  .cart-success__text {
    font-size: 16px;
  }
}