@import 'normalize.css';
@import 'default.css';

/* Общие настройки */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
}

/* Скролл секции */
.scroll-section {
  scroll-snap-align: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.scroll-section.last-section {
  min-height: 90vh;
  height: auto;
  justify-content: flex-start;
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: #B6DDD7;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}
.logo {
  height: 50px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: #00364F;
  font-weight: 600;
  height: 40px;
}
.btn-login {
  background: #FBB040;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Контент */
section {
  max-width: 1200px;
  width: 100%;
  padding: 120px 20px 40px;
  margin: 0 auto;
  box-sizing: border-box;
}
h1, h2 {
  text-align: center;
  margin-bottom: 30px;
}
h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 700; }

/* Hero */
.hero p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.5;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.btn-primary { background: #47BFAC; color: white; }
.btn-secondary { background: #FBB040; color: white; }

/* Features */
.features-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}
.features-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.features-block {
  border: 1px solid #FBB040;
  border-radius: 15px;
  padding: 25px 30px;
  width: 280px;
  min-height: 320px;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
}
.features-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.features-block li {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Как работает */
.how-block {
  border: 1px solid #FBB040;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}
.how-steps li {
  font-size: 18px;
  margin-bottom: 20px;
}
.marketplace-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.marketplace-logos img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Кому это нужно */
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.for-whom-card {
  border: 1px solid #FBB040;
  border-radius: 15px;
  padding: 30px;
  font-size: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Почему Finmetric */
.why-table {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.why-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
}
.why-line {
  height: 2px;
  background: #FBB040;
  margin: 20px 0;
}
.why-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 18px;
  gap: 15px 40px;
  text-align: left;
}
.why-body div {
  display: flex;
  align-items: center;
}
.why-body img {
  width: 20pax;
  height: 20px;
  margin-right: 10px;
}

/* Тарифы */
.tariff-content {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  align-items: stretch;
}
.tariff-lite, .tariff-pro {
  position: relative;
  flex: 1;
  padding: 30px 20px 20px;
  border-radius: 12px;
  background: white;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.tariff-lite { border: 2px solid #47BFAC; }
.tariff-pro { border: 2px solid #FBB040; }
.tariff-tag {
  position: absolute;
  top: -14px;
  right: 20px;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: white;
}
.tariff-tag.lite { background-color: #47BFAC; }
.tariff-tag.pro { background-color: #FBB040; }
.tariff-price {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Footer */
.footer-bg {
  width: 100vw;
  background: #B6DDD7;
}
.footer {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}
.footer-links a {
  font-size: 14px;
  color: #00364F;
  text-decoration: none;
}
.footer-logo {
  text-align: right;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-logo p {
  font-size: 14px;
  color: #00364F;
}

/* Модальные окна */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease-in-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: #fff;
  max-width: 420px;
  width: 90%;
  padding: 24px 20px 28px;
  border-radius: 12px;
  border: 3px solid #FBB040;
  font-size: 13px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 95vh;
  transform: scale(0.9);
  transform-origin: center;
}
.modal h2 {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
}
.modal .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  line-height: 1;
}
.modal input,
.modal select,
.modal button {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 40px;
}
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
}
.toggle-password svg {
  width: 20px;
  height: 20px;
}
.password-hint {
  font-size: 11px;
  color: #666;
  margin: -6px 0 8px;
  display: block;
}
.error-msg {
  font-size: 12px;
  color: red;
  margin-top: -6px;
  margin-bottom: 8px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #47BFAC;
}
#registerBtn:enabled {
  background-color: #FBB040;
  color: white;
  cursor: pointer;
}
#registerBtn:disabled {
  background-color: #ccc;
  color: #888;
  cursor: not-allowed;
}

/* О нас */
.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: #00364F;
  padding: 20px;
}
.about-text ul {
  padding-left: 20px;
  margin: 10px 0 20px;
}
.about-text li {
  margin-bottom: 10px;
}
body {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  padding: 0;
}
.dashboard-container {
  max-width: 800px;
  margin: 120px auto 40px;
  padding: 20px;
}
h2 {
  text-align: center;
  margin-bottom: 20px;
}
.dashboard-block {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.logout-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #FBB040;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.logout-btn:hover {
  background-color: #e0a530;
}
.profile-dropdown .profile-link-menu,
.profile-dropdown .dropdown-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 10px;
  color: #00364F;
  background: none;
  border: none;
  min-height: 36px;
  box-sizing: border-box;
  cursor: pointer;
  font-weight: 500;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}
.profile-dropdown .profile-link-menu {
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
.profile-dropdown .profile-link-menu:hover,
.profile-dropdown .dropdown-btn:hover,
.profile-dropdown .profile-link-menu.active {
  background: #FBB040 !important;
  color: #fff !important;
}
.profile-img {
  transition: box-shadow 0.2s;
}
.profile-img:hover {
  box-shadow: 0 0 0 2px #00364F;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: flex-end;
  width: 100%;
  min-width: 480px;
}

.btn-login,
.profile-menu {
  min-width: 120px;
  text-align: center;
}

.profile-menu {
  display: inline-block;
  position: relative;
}

.profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  vertical-align: middle;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.profile-img:hover {
  box-shadow: 0 0 0 2px #00364F;
}

.profile-tooltip {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: #00364F;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 999;
}

.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 120px;
  z-index: 1000;
}
.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: #00364F;
  padding: 20px;
}
.about-text ul,
.about-text ol {
  padding-left: 20px;
  margin: 10px 0 20px;
}
.about-text li {
  margin-bottom: 10px;
}
