:root{
  --bg: #f6f7fb;
  --white: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2f3bff;
  --primary-2: #2732d9;
  --radius: 20px;
  --shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  --container: 1440px;
}

@font-face {
  font-family: "Inter";
  src: url('/fonts/Inter-VariableFont_opsz,wght.ttf');
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  font-family: "Inter";
  margin:0;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity:.9; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page {
  padding: 40px 0;
}

.body {
  position: relative;
  overflow: visible;
  background: var(--white);
  padding: 10px 40px;
}

/* ===== HEADER (clean) ===== */

.header{
  margin-top: 24px;
}

.header__inner{
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow);
  padding: 18px 28px;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative; /* нужно для выпадающего nav */
}

.header-left{
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0; /* важно: чтобы nav мог ужиматься */
  flex: 1 1 auto;
  min-width: 0 !important;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 400;
  flex-shrink: 0;
}

.brand__logo{
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 300;
  font-size: 35px;
  box-shadow: 0px 3px 3px 0px #b2afff;
}

/* right side actions */
.header-actions{
  margin-left: auto !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

/* nav (desktop) */
.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  color: var(--muted);
  font-weight: 400;

  flex: 1 1 auto;
  min-width: 0;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.nav a.active{
  color: var(--text);
  background: rgba(47, 59, 255, 0.08);
}

/* ===== burger ===== */
.nav-toggle{
  display: none;
}

.menu-btn{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f4f6;
  display: none; /* по умолчанию скрыто */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border: none;
  transition: background .15s ease;
  flex-shrink: 0;
}

.menu-btn:hover{ background: #e5e7eb; }

.menu-btn span{
  width: 18px;
  height: 2px;
  background: #1f2937;
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}

/* крестик при открытии */
.nav-toggle:checked + .menu-btn span:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle:checked + .menu-btn span:nth-child(2){
  opacity: 0;
}
.nav-toggle:checked + .menu-btn span:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

/* logout icon */
.logout-form{
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.logout-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: #4f46e5;
  padding: 0;
  border-radius: 10px;
}

.logout-btn:hover{
  background: rgba(79, 70, 229, 0.1);
}

.logout-btn svg{ display:block; }

/* ===== MOBILE <= 794 ===== */
@media (max-width: 794px){
  /* показываем бургер, прячем горизонтальный nav */
  .menu-btn{ display: flex; }
  .nav{
    display: none;
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% + 10px);

    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px;

    flex-direction: column;
    gap: 6px;
    z-index: 50;
  }

  /* раскрытие меню */
  .nav-toggle:checked ~ .nav{
    display: flex;
  }

  .nav a{
    padding: 10px 12px;
    border-radius: 10px;
  }
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary{
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover{
  background: var(--primary-2);
}

.hero_actions{
  position: absolute;
  left: 48px;
  bottom: 0;
  transform: translateY(50%);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 5;
}

.hero_actions .btn{
  background: #fff;
  color: #261ED1;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 10px 16px;
}

.hero{
  padding-bottom: 48px;
}

.logout-form{
  display: inline-flex;
  align-items: center;
}

.logout-btn{
  background: none;
  border: none;
  cursor: pointer;
  color: #4f46e5;
  padding: 6px;
  display: flex;
  align-items: center;
}

.logout-btn:hover{
  color: #4338ca;
}

.header_inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-form{
  display: flex;
  align-items: center;
}

.logout-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: #4f46e5;
}

.logout-btn:hover{
  background: rgba(79, 70, 229, 0.1);
  border-radius: 8px;
}

.logout-btn svg{
  display: block;
}

h2{
  color: #4A4A4A;
  font-size: 26px;
}

.profile-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

/* ===== Header adaptive fix (<= 794px) ===== */
@media (max-width: 794px) {
  .header__inner{
    padding: 12px 16px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .header-left{
    gap: 10px !important;
    min-width: 0 !important;
  }

  /* оставляем только "3", убираем "Знаниум" */
  .brand__text{ display: none !important; }

  /* показываем бургер */
  .menu-btn{ display: flex !important; }

  /* навигацию прячем (она откроется по чекбоксу как ты уже сделал) */
  .nav{ display: none; }

  /* правые кнопки не должны переноситься */
  .header-actions{
    margin-left: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
  }

  /* чуть ужимаем кнопку */
  .header-actions .btn.btn-primary{
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
  }

  /* иконка выхода компактнее */
  .logout-btn{
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }
}

/* Карточки */
.profile-page > section,
.profile-page > div {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Заголовки */
.profile-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.profile-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
}

.profile-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-section.danger h2 {
    color: #dc2626;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

input:focus {
    border-color: #4f46e5;
    outline: none;
}

.profile-section form {
    max-width: 520px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row label {
	max-width: 360px;
    font-size: 14px;
    color: #374151;
    text-align: right;
}

.form-row input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.profile-section button {
    margin-left: 136px;
    margin-top: 8px;
}

.notregister-row {
    font-size: 14px;
	padding-bottom: 15px;
}

.form-row input {
  width: 320px;
  max-width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.form-actions{
  display: flex;
  max-width: 550px;
  padding: 5px;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Ошибки в .form-row всегда под полем (2-я колонка grid) */
.form-row > ul.text-sm,
.form-row > .mt-2{
  grid-column: 2 / -1;
}

/* Чуть аккуратнее отступы у списка ошибок */
.form-row > ul.text-sm{
  margin: 6px 0 0;
  padding-left: 0;
  list-style: none;
}

.form-medium {
  padding: 5px;
}

@media (max-width: 622px) {

  /* 1) Каждая строка формы -> вертикально */
  .form-row{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  /* 2) Лейблы всегда слева */
  .form-row label{
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* 3) Инпуты — на всю доступную ширину */
  .form-row input,
  .form-row select,
  .form-row textarea{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* 4) Кнопки по центру */
  .form-actions,
  .profile-actions{
    display: flex !important;
    justify-content: center !important;
  }

  .form-actions .btn,
  .profile-actions .btn,
  button.btn{
    width: auto !important;
  }
}

.paddingtest {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.list {
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.list-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.list-link {
    text-decoration: none;
    font-weight: 500;
}

.list-link:hover {
    text-decoration: underline;
}

.list-meta {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

.pagination {
    margin-top: 20px;
}

.divider{
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.list{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-card{
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.list-card__title{
  margin-bottom: 10px;
}

.options{
  margin: 0;
  padding-left: 18px;
}

.options-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.badge{
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

.badge--success{
  border-color: #86efac;
}

.login-options{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.question-image {
    display: block;
    width: 100%;
    max-width: 320px;        /* максимум на десктопе */
    height: auto;
    margin-top: 12px;

    border-radius: 12px;
    border: 1px solid #eee;
}

/* планшеты */
@media (max-width: 1024px) {
    .question-image {
        max-width: 200px;
    }
}

/* мобильные */
@media (max-width: 640px) {
    .question-image {
        border-radius: 10px;
    }
}

/* link row */
.link-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:6px;
}

/* qr */
.qr-block{
  margin-top:16px;
  padding:14px;
  border:1px solid #eee;
  border-radius:16px;
}
.qr-block__title{
  font-weight:700;
  margin-bottom:10px;
}
.qr-block__code{
  display:flex;
  justify-content:flex-start;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload-btn{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.file-upload-btn:hover{
  background: #f9fafb;
}

.file-upload-name{
  font-size: 13px;
  color: #6b7280;
}

/* status / badge */
.badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #ddd;
  background:#fff;
  font-weight:700;
}
.badge--closed{
  border-color:#fca5a5;
}

.status{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #ddd;
  font-size:13px;
  white-space:nowrap;
}
.status--ok{ }
.status--bad{
  border-color:#fca5a5;
  font-weight:700;
}

/* table */
.table-wrap{
  margin-top:12px;
  overflow-x:auto;
  border:1px solid #eee;
  border-radius:16px;
}
.table{
  width:100%;
  border-collapse:collapse;
  min-width: 680px; /* чтобы на мобиле был горизонтальный скролл, а не поломка */
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid #eee;
  text-align:left;
  vertical-align:middle;
}
.table thead th{
  font-weight:700;
  background:#fafafa;
}
.row-timeout td{
  font-weight:700;
}

.col-num{ width: 60px; }
.col-score{ width: 110px; }
.col-time{ width: 110px; }
.col-status{ width: 120px; }

/* small btn helper */
.btn--sm{ padding: 8px 10px; }

/* ----- Checkbox ----- */

.checkbox{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  user-select: none;
}

/* hide native checkbox */
.checkbox input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* custom box */
.checkbox-box{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #c7cbe0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

/* checkmark */
.checkbox-box::after{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--primary);
  transform: scale(0);
  transition: transform .12s ease;
}

/* checked state */
.checkbox input:checked + .checkbox-box{
  border-color: var(--primary);
}

.checkbox input:checked + .checkbox-box::after{
  transform: scale(1);
}

/* hover */
.checkbox:hover .checkbox-box{
  border-color: var(--primary);
}

/* ----- Forgot password link ----- */

.forgot-link{
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover{
  text-decoration: underline;
  color: var(--primary-2);
}

/* ----- Mobile ----- */
@media (max-width: 622px){
  .login-options{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===== Form options row ===== */

.form-options{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 20px;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== UI CHECKBOX ===== */

.ui-checkbox{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  user-select: none;
}

/* hide native checkbox */
.ui-checkbox input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* visual box */
.ui-checkbox__box{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #c7cbe0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

/* indicator */
.ui-checkbox__box::after{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--primary);
  transform: scale(0);
  transition: transform .12s ease;
}

/* checked */
.ui-checkbox input:checked + .ui-checkbox__box{
  border-color: var(--primary);
}

.ui-checkbox input:checked + .ui-checkbox__box::after{
  transform: scale(1);
}

/* hover */
.ui-checkbox:hover .ui-checkbox__box{
  border-color: var(--primary);
}

/* label text */
.ui-checkbox__label{
  line-height: 1.2;
}

/* ===== UI LINK (text button) ===== */

.ui-link{
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.ui-link:hover{
  color: var(--primary-2);
  text-decoration: underline;
}


.form-row .form-error{
  grid-column: 2 / -1;   /* всегда под инпутом (в правой колонке) */
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #dc2626;        /* можно заменить на var(--danger) если есть */
}

/* x-input-error обычно рендерит <ul><li>... */
.form-row .form-error ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-row .form-error li{
  margin: 2px 0 0;
}

/* На мобилке, если form-row у тебя становится 1 колонкой — пусть занимает всю ширину */
@media (max-width: 622px){
  .form-row .form-error{
    grid-column: 1 / -1;
  }
}
button.ui-link{
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button.ui-link::-moz-focus-inner{
  border: 0;
  padding: 0;
}

button.ui-link:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Mobile ===== */

@media (max-width: 622px){
  .form-options{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===== FOOTER ===== */
.footer{
  margin-top: 0px;
  margin-bottom: 24px;
}

.footer__inner{
  background: #261ED1;
  color: #fff;
  border-radius: 0px 0px 20px 20px;
  padding: 24px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}

.footer__left{
  font-size: 14px;
  opacity: .9;
}

.footer__right{
  display:flex;
  align-items:center;
  gap: 18px;
  font-size: 14px;
}

.footer__right a{
  display:flex;
  align-items:center;
  gap: 6px;
  opacity: .95;
}

.footer__right a:hover{
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 760px){
  .footer__inner{
    flex-direction: column;
    text-align:center;
  }
}

/* ===== HERO (HOME) ===== */
.hero{
  margin-top: 0px;
}

.hero__card{
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #2f2bff 0%, #261ED1 79%);
  color: #fff;
}

.hero__content{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 56px;
  min-height: 320px;
  padding: 56px;
  flex-wrap: nowrap;
}


.hero__actions{
  position: absolute;
  left: 56px;
  bottom: 0;
  transform: translateY(50%);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 5;
}

.hero{
  padding-bottom: 56px;
}

.btn--light{
  background: #fff;
  color: #000ea8;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

@media (max-width: 900px){
  .hero__content{
    padding: 36px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions{
    left: 24px;
    right: 24px;
  }
}

.btn--ghost{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: 10px 16px;
}
.btn--ghost:hover{
  background: rgba(255,255,255,.12);
}

.posthero{
  margin-top: 96px;
}
.posthero__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.posthero__card{
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px){
  .posthero__grid{
    grid-template-columns: 1fr;
  }
}

.hero__card{
  border-radius: 0 0 20px 20px;
}

.hero__subtitle{
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: .9;
  max-width: 520px;
}

/* 2) Убираем жёсткий минимум ширины (он ломает адаптив) */
.hero__left{
  min-width: 0 !important;  /* было 420px */
}

/* 3) Немного аккуратнее шаги */
.hero__steps{
  flex-wrap: wrap;
  row-gap: 8px;
}

.step{
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.hero__actions{
  align-items: center;
}

.posthero{
  margin-top: 2px;
}

.posthero__card h3{
  margin: 0 0 10px 0;
  font-size: 16px;
}

.posthero__card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* 6) Адаптив: уменьшаем паддинги и нормально укладываем кнопки */
@media (max-width: 900px){
  .hero__content{
    gap: 18px;
    min-height: auto;
  }

  .hero__actions{
    position: static;
    transform: none;
    margin-top: 18px;
  }
}

/* 7) Очень узкие экраны */
@media (max-width: 520px){
  .hero__title{
    font-size: 28px;
  }

  .btn--light,
  .btn--ghost{
    width: 100%;
    justify-content: center;
  }

  .hero__actions{
    width: 100%;
  }
}


.hero__left{
  max-width: 560px;
}

.hero__title{
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 12px 0;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.hero__left{
  max-width: 560px;
  min-width: 420px;
}

.hero__right{
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: 0;
}

.hero__steps{
  display:flex;
  align-items:center;
  gap: 10px;
}

.step{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 2px solid rgba(255,255,255,.65);
  font-weight: 700;
  opacity: .9;
}

.step--active{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.9);
  opacity: 1;
}

.hero__badge{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(15deg);
  color: #ffce00;
}

.hero__badge svg{
  width: 56px;
  height: 56px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: transform .08s ease, opacity .15s ease;
}

.btn:hover{ opacity: .95; }
.btn:active{ transform: translateY(1px); }

@media (max-width: 900px){
  .hero__content{
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 36px 24px;
  }

  .hero__right{
    margin-left: 0;
  }

  .hero__title{
    font-size: 34px;
  }
}

/* ===== Modal ===== */
.modal {
  display:none;
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal__dialog {
  position: relative;
  max-width: 520px;
  width: calc(100% - 32px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2ff;
}

.modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.modal__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.modal__body {
  padding: 18px;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.form-row--stack {
  grid-template-columns: 1fr !important;
}

.btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary { background:#4f46e5; color:#fff; }
.btn-secondary { background:#f3f4f6; color:#111827; }
.btn-danger { background:#ef4444; color:#fff; }

.btn-primary:hover { filter: brightness(0.95); }
.btn-danger:hover { filter: brightness(0.95); }

.d-flex {
  display: flex;
  padding: 6px 45px;
  align-items: center;
  gap: 30px;
}

.text-muted {
  padding:5px 45px;
}