/* ==========================================
   VISA CENTER — Main Stylesheet
   Revolut-inspired redesign: clean, light, premium
   ========================================== */

/* Design tokens — shared across all apps */
@import url('tokens.css');

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.75rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section--alt {
  background: var(--color-bg-alt);
}

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

.section__title--left {
  text-align: left;
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 1.125rem;
  line-height: 1.6;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: inherit;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text);
  color: var(--color-text);
}

.header__cabinet,
.mobile-menu__cabinet {
  background: transparent !important;
  color: var(--color-text) !important;
  border: 2px solid var(--color-border) !important;
  border-radius: 100px !important;
  font-weight: 600;
  text-decoration: none;
}

.header__cabinet:hover,
.mobile-menu__cabinet:hover {
  background: var(--color-bg-alt) !important;
  border-color: var(--color-text) !important;
  color: var(--color-text) !important;
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-border);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition), padding var(--transition);
}

.header--scrolled {
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header--scrolled .header__inner {
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.header__logo:hover {
  color: var(--color-text);
}

.header__logo-icon {
  font-size: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-text);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-right: 12px;
}

.lang-switcher__btn {
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}

.lang-switcher__btn:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.lang-switcher__btn--active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.lang-switcher__btn--active:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

/* ---------- Language Dropdown ---------- */
#lang-switcher,
#lang-switcher-mobile {
  position: relative;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
  white-space: nowrap;
}

.lang-dropdown__toggle:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.lang-dropdown__flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-dropdown__arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.lang-dropdown__menu--open + .lang-dropdown__arrow,
.lang-dropdown__toggle[aria-expanded="true"] .lang-dropdown__arrow {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  padding: 4px 0;
}

.lang-dropdown__menu--open {
  display: block;
}

.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}

.lang-dropdown__item:hover {
  background: var(--color-bg-alt);
}

.lang-dropdown__item--active {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary-light);
}

.lang-dropdown__item-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-dropdown__item-name {
  line-height: 1.3;
}

.header__cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 20px;
}

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

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__link {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 0;
}

.mobile-menu__cta {
  margin-top: 8px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #0B0F1A 0%, #131929 100%);
  color: #ffffff;
  padding: 160px 0 100px;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 740px;
}

.hero__title {
  color: #ffffff;
  font-size: 3.75rem;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .btn-primary {
  background: #ffffff;
  color: #0B0F1A;
  border-color: #ffffff;
}

.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.85);
  color: #0B0F1A;
}

.hero .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.hero__cabinet-link {
  display: inline-block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition);
}

.hero__cabinet-link:hover {
  color: #ffffff;
}

.hero__stats {
  display: flex;
  gap: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ---------- Services ---------- */
.service-card {
  background: var(--color-bg);
  border: none;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-alt);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.service-card__title {
  margin-bottom: 12px;
}

.service-card__text {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- How It Works (Steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  display: none;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step__title {
  margin-bottom: 10px;
}

.step__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text {
  color: var(--color-text-light);
  margin-bottom: 28px;
  line-height: 1.7;
  font-size: 1.05rem;
}

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

.about__list-item {
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.about__list-item::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-weight: 700;
}

.about__image-placeholder {
  background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
  border: none;
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

.about__image-placeholder span {
  font-size: 3rem;
  margin-bottom: 8px;
}

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
  overflow: hidden;
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  font-family: inherit;
  line-height: 1.4;
}

.faq__question:hover {
  color: var(--color-text-light);
}

.faq__icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item--open .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding: 0 0 24px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--color-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form__group {
  margin-bottom: 20px;
}

.contact-form__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.contact-form__input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-bg);
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(6, 102, 235, 0.12);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__submit {
  width: 100%;
  margin-top: 4px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 16px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.contact-info__value {
  font-weight: 600;
  color: var(--color-text);
}

a.contact-info__value:hover {
  color: var(--color-primary-light);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 56px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  margin-bottom: 12px;
  display: inline-flex;
}

.footer__logo .header__logo-icon,
.footer__logo .header__logo-text {
  color: #fff;
}

.footer__description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 12px;
}

.footer__heading {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

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

.footer__link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: 96px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  max-width: 360px;
}

.toast--success { background: var(--color-success); }
.toast--error { background: var(--color-error); }
.toast--info { background: var(--color-primary-light); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ---------- Chat Widget ---------- */
.chat-widget__trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
  animation: pulse 2s infinite;
}

.chat-widget__trigger:hover {
  transform: scale(1.1);
  background: var(--color-accent-hover);
}

.chat-widget__trigger--active {
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 28, 32, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(25, 28, 32, 0); }
}

.chat-widget__window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  animation: widgetSlideIn 0.3s ease;
}

.chat-widget__window--open {
  display: flex;
}

@keyframes widgetSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-widget__header {
  background: var(--color-text);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-widget__header-title {
  font-weight: 700;
  font-size: 1rem;
}

.chat-widget__header-subtitle {
  font-size: 0.8rem;
  opacity: 0.7;
}

.chat-widget__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.chat-widget__close:hover {
  opacity: 1;
}

.chat-widget__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-widget__message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: messageIn 0.3s ease;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-widget__message--bot {
  background: var(--color-bg-alt);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-widget__message--user {
  background: var(--color-text);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-widget__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-self: flex-start;
  animation: messageIn 0.3s ease;
}

.chat-widget__option-btn {
  padding: 10px 20px;
  border: 2px solid var(--color-primary-light);
  background: var(--color-bg);
  color: var(--color-primary-light);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
}

.chat-widget__option-btn:hover {
  background: var(--color-primary-light);
  color: #fff;
}

/* ---------- Contact Form (inside widget) ---------- */
.chat-widget__contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  animation: messageIn 0.3s ease;
}

.chat-widget__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-bg);
}

.chat-widget__input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 2px rgba(6, 102, 235, 0.12);
}

.chat-widget__contact-submit {
  margin-top: 4px;
}

/* ---------- Checklist (inside widget) ---------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
  width: 100%;
  animation: messageIn 0.3s ease;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.88rem;
}

.checklist__item:hover {
  background: var(--color-border);
}

.checklist__checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 0.75rem;
  color: #fff;
}

.checklist__item--checked .checklist__checkbox {
  background: var(--color-success);
  border-color: var(--color-success);
}

.checklist__label {
  line-height: 1.3;
}

.checklist__required {
  color: var(--color-error);
  font-size: 0.75rem;
}

.checklist__actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.checklist__actions .btn {
  flex: 1;
}

/* ---------- Upload Form ---------- */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-bg-alt);
  animation: messageIn 0.3s ease;
}

.upload-zone:hover {
  border-color: var(--color-primary-light);
  background: rgba(6, 102, 235, 0.04);
}

.upload-zone--dragover {
  border-color: var(--color-primary-light);
  background: rgba(6, 102, 235, 0.08);
  transform: scale(1.02);
}

.upload-zone__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.upload-zone__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.upload-zone__text strong {
  color: var(--color-primary-light);
}

.upload-zone__hint {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

.upload-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  animation: messageIn 0.3s ease;
}

.upload-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.upload-file-item--error {
  border: 1px solid var(--color-error);
  background: rgba(220, 38, 38, 0.04);
}

.upload-file-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.upload-file-item__info {
  flex: 1;
  min-width: 0;
}

.upload-file-item__name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-item__size {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.upload-file-item__error {
  font-size: 0.78rem;
  color: var(--color-error);
}

.upload-file-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 1.1rem;
  padding: 4px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.upload-file-item__remove:hover {
  color: var(--color-error);
}

.upload-progress {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.upload-progress__bar {
  height: 100%;
  background: var(--color-primary-light);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.upload-progress__bar--done {
  background: var(--color-success);
}

.upload-submit {
  width: 100%;
  margin-top: 12px;
}

.upload-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Media Queries ---------- */

/* --- Tablet landscape / small desktop (1024-1200px) --- */
@media (max-width: 1200px) {
  .nav {
    gap: 20px;
  }

  .nav__link {
    font-size: 0.88rem;
  }

  .header__cabinet,
  .header__cta {
    padding: 6px 14px;
    font-size: 0.82rem;
  }
}

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  .nav {
    gap: 16px;
  }

  .nav__link {
    font-size: 0.85rem;
  }

  .header__cabinet,
  .header__cta {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .contact__inner {
    gap: 32px;
  }

  .hero__stats {
    gap: 40px;
  }
}

/* --- Tablet portrait narrow (681-768px) — compact nav --- */
@media (max-width: 768px) and (min-width: 681px) {
  .nav {
    gap: 12px;
  }

  .nav__link {
    font-size: 0.82rem;
  }

  .header__cabinet,
  .header__cta {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

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

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }
}

/* --- Tablet portrait / large mobile (max 680px) --- */
@media (max-width: 680px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .nav,
  .header__cta,
  .header__cabinet {
    display: none;
  }

  .lang-switcher {
    margin-right: auto;
    margin-left: 16px;
  }

  #lang-switcher {
    margin-right: auto;
    margin-left: 16px;
  }

  #lang-switcher-mobile {
    margin-top: 8px;
  }

  #lang-switcher-mobile .lang-dropdown__menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 50vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-lg);
    min-width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu__cabinet {
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    padding: 130px 0 70px;
    min-height: auto;
  }

  .hero__inner {
    text-align: center;
    align-items: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .hero__stats {
    gap: 32px;
  }

  .hero__stat {
    align-items: center;
  }

  .hero__stat-number {
    font-size: 2rem;
  }

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

  .about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__image-placeholder {
    height: 200px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .section__subtitle {
    margin-bottom: 36px;
  }

  .service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.4rem;
  }

  /* Chat widget — fullscreen on mobile */
  .chat-widget__window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .chat-widget__trigger {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}

/* --- Small mobile (max 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.85rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero__stat {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

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

  .contact-form {
    padding: 24px;
  }

  .faq__question {
    padding: 20px 0;
    font-size: 0.95rem;
  }

  .faq__answer p {
    padding: 0 0 20px;
  }

  .service-card {
    padding: 28px;
  }

  .toast-container {
    right: 12px;
    left: 12px;
  }

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

/* --- Very small mobile (max 360px) --- */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

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

  .hero__title {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header__inner {
    height: 64px;
  }

  .mobile-menu {
    padding: 16px;
  }
}

/* --- Footer: prevent chat widget overlap on mobile --- */
@media (max-width: 680px) {
  .footer__bottom {
    padding-bottom: 80px;
  }
}

/* --- Accessibility: reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .chat-widget__trigger {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
