@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --midnight:      #132441;
  --midnight-90:   rgba(19,36,65,0.9);
  --midnight-10:   rgba(19,36,65,0.08);
  --yellow:        #D8E63C;
  --yellow-hover:  #c6d32e;
  --yellow-soft:   rgba(216,230,60,0.15);
  --powder:        #87BBD7;
  --powder-light:  #daeef8;
  --powder-soft:   rgba(135,187,215,0.18);
  --cloud:         #F0EEE9;
  --white:         #FFFFFF;

  --text-primary:   #132441;
  --text-secondary: #3d5473;
  --text-muted:     #7a93ae;
  --border:         #e2eaf2;
  --border-soft:    #f0f4f8;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-2xl:28px;

  --shadow-xs: 0 1px 3px rgba(19,36,65,0.06);
  --shadow-sm: 0 2px 8px rgba(19,36,65,0.08);
  --shadow:    0 4px 20px rgba(19,36,65,0.10);
  --shadow-lg: 0 8px 32px rgba(19,36,65,0.14);
  --shadow-xl: 0 16px 56px rgba(19,36,65,0.18);
  --shadow-float: 0 24px 64px rgba(19,36,65,0.22);

  --header-h:  68px;
  --container: 1240px;

  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--white);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--border-soft); }
::-webkit-scrollbar-thumb { background: var(--powder); border-radius: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
}
.btn-primary { background: var(--yellow); color: var(--midnight); border-color: var(--yellow); box-shadow: 0 2px 12px rgba(216,230,60,0.35); }
.btn-primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); box-shadow: 0 4px 20px rgba(216,230,60,0.5); transform: translateY(-1px); }
.btn-outline-dark { background: transparent; color: var(--midnight); border-color: var(--midnight); }
.btn-outline-dark:hover { background: var(--midnight); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-ghost { background: var(--powder-soft); color: var(--midnight); border-color: transparent; }
.btn-ghost:hover { background: var(--powder-light); }
.btn-lg   { height: 56px; padding: 0 40px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm   { height: 34px; padding: 0 16px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

.header { position: sticky; top: 0; z-index: 900; height: var(--header-h); background: var(--midnight); box-shadow: 0 2px 24px rgba(19,36,65,0.3); }
.header__inner { max-width: var(--container); margin: 0 auto; height: 100%; padding: 0 40px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__img-file { height: 42px; width: auto; object-fit: contain; filter: brightness(0) invert(1); transition: opacity .2s; display: block; }
.logo__img-file:hover { opacity: .85; }
.header__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { padding: 8px 18px; font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.7); border-radius: var(--radius-sm); transition: all 0.2s; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--yellow); background: rgba(216,230,60,0.1); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.header__actions .btn { height: 38px; padding: 0 20px; font-size: 0.85rem; }
.header-avatar { cursor: pointer; }
.notif-dot { background: var(--yellow); color: var(--midnight); font-size: .68rem; font-weight: 700; padding: 1px 5px; border-radius: 10px; line-height: 1.4; }

.footer { background: var(--midnight); color: var(--white); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__desc { font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.5); font-weight: 300; max-width: 30ch; }
.footer__col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--powder); margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__link { font-size: 0.875rem; color: rgba(255,255,255,0.55); font-weight: 300; transition: color 0.15s; }
.footer__link:hover { color: var(--white); }
.footer__bottom { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); font-weight: 300; }
.footer__socials { display: flex; gap: 8px; }
.social-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); transition: all 0.2s; }
.social-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--midnight); transform: translateY(-2px); }
.social-btn svg { width: 16px; height: 16px; }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: var(--yellow-soft); border-radius: 20px; font-size: 0.75rem; font-weight: 700; color: var(--midnight); letter-spacing: 0.06em; text-transform: uppercase; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; color: var(--midnight); line-height: 1.18; letter-spacing: -0.025em; }
.section-sub { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; max-width: 56ch; font-weight: 400; }
.section-header-centered { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 56px; }

.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow 0.25s, transform 0.25s; overflow: hidden; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-cloud  { background: var(--cloud); border-color: #e5e0d8; }
.card-powder { background: var(--powder-light); border-color: var(--powder); }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-blue   { background: var(--powder-soft); color: var(--midnight); }
.badge-yellow { background: var(--yellow-soft); color: var(--midnight); }
.badge-green  { background: rgba(52,211,153,0.12); color: #065f46; }

.form-group   { display: flex; flex-direction: column; gap: 7px; }
.form-label   { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.form-hint    { font-size: 0.78rem; color: var(--text-muted); font-weight: 300; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; color: var(--text-primary); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--powder); box-shadow: 0 0 0 3px rgba(135,187,215,0.22); }
.form-input::placeholder { color: var(--text-muted); font-weight: 300; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a93ae' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.input-wrap { position: relative; }
.input-wrap .form-input { padding-left: 44px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 18px; height: 18px; pointer-events: none; }

.check-item  { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 3px 0; user-select: none; }
.check-box   { width: 18px; height: 18px; flex-shrink: 0; border: 2px solid var(--border); border-radius: var(--radius-xs); background: var(--white); transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.check-item:hover .check-box { border-color: var(--powder); }
.check-box.on { background: var(--midnight); border-color: var(--midnight); }
.check-box.on::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); display: block; }
.check-label { font-size: 0.875rem; color: var(--text-primary); }
.check-count { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); font-weight: 300; }

.range-inputs { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.range-inputs .form-input { height: 38px; }

.pagination { display: flex; align-items: center; gap: 6px; }
.pg-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); border: 1.5px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; transition: all 0.15s; cursor: pointer; }
.pg-btn:hover  { border-color: var(--midnight); color: var(--midnight); }
.pg-btn.active { background: var(--midnight); border-color: var(--midnight); color: var(--white); }

.img-ph { background: var(--powder-light); border: 1.5px solid var(--powder); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; flex-shrink: 0; }
.img-ph--round { border-radius: 50%; }
.img-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.img-ph svg line { stroke: var(--powder); stroke-width: 1.5px; }

.stars { display: flex; gap: 2px; }
.star       { width: 14px; height: 14px; color: var(--yellow); fill: var(--yellow); }
.star-empty { color: var(--border); fill: var(--border); }

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19,36,65,.5);
  backdrop-filter: blur(3px);
}
.modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 20px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal__title  { font-size: 1.1rem; font-weight: 700; color: var(--midnight); }
.modal__close  { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-muted); background: var(--border-soft); transition: all .2s; }
.modal__close:hover { background: var(--border); color: var(--midnight); }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes floatShadow { 0%, 100% { opacity: 0.4; transform: scaleX(1); } 50% { opacity: 0.2; transform: scaleX(0.82); } }
.floating        { animation: floatY 3.8s ease-in-out infinite; }
.floating-shadow { width: 70%; height: 12px; margin: 0 auto; background: rgba(19,36,65,0.18); border-radius: 50%; filter: blur(6px); animation: floatShadow 3.8s ease-in-out infinite; }

.divider    { height: 1px; background: var(--border); border: none; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--yellow); }
.font-bold   { font-weight: 700; }
.font-light  { font-weight: 300; }

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .header__inner { padding: 0 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header__inner { padding: 0 16px; }
  .footer__grid { grid-template-columns: 1fr; }
}
