/* Modern white-red theme for WeTheNorth — no Bootstrap, pure custom CSS */

/* Base & reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --wt-red: #d52b1e;
  --wt-dark-red: #b71c1c;
  --wt-light-red: #fef1ef;
  --wt-white: #ffffff;
  --wt-offwhite: #f9fafc;
  --wt-gray: #6c757d;
  --wt-dark: #212529;
  --wt-border-radius: 20px;
  --wt-shadow: 0 15px 30px -10px rgba(213, 43, 30, 0.15);
  --wt-shadow-hover: 0 20px 40px -10px rgba(213, 43, 30, 0.25);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--wt-offwhite);
  color: var(--wt-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--wt-white);
  border-bottom: 4px solid var(--wt-red);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand img {
  transition: transform 0.2s;
  display: block;
}

.navbar-brand img:hover {
  transform: scale(1.02);
}

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

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--wt-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.dropdown-toggle:hover {
  background: var(--wt-light-red);
  border-color: var(--wt-red);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 150px;
  margin-top: 5px;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--wt-dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: var(--wt-light-red);
  color: var(--wt-red);
  border-radius: 8px;
}

.flag-canada {
  border: 2px solid var(--wt-red);
  border-radius: 8px;
}

/* Typography */
.page-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin: 2rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--wt-gray);
  margin-bottom: 3rem;
}

.text-red {
  color: var(--wt-red);
}

.bg-red {
  background-color: var(--wt-red);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 3rem 0 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--wt-red);
  margin: 0.5rem auto 0;
  border-radius: 4px;
}

/* Content blocks (new SEO blocks) */
.content-block {
  background: var(--wt-white);
  border-radius: var(--wt-border-radius);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--wt-shadow);
  border-left: 6px solid var(--wt-red);
}

.block-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wt-dark-red);
  margin-bottom: 1.2rem;
}

.feature-list {
  list-style: none;
  padding-left: 1.2rem;
  margin: 1.5rem 0;
}

.feature-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
}

.feature-list li::before {
  content: "✔️";
  color: var(--wt-red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Cards */
.card {
  background: var(--wt-white);
  border-radius: var(--wt-border-radius);
  box-shadow: var(--wt-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.welcome-card {
  padding: 2rem;
  background: linear-gradient(145deg, #ffffff, #fef6f5);
}

.card-header {
  padding: 1.2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 1.8rem;
}

.access-card .card-header {
  border-radius: var(--wt-border-radius) var(--wt-border-radius) 0 0;
}

/* Row/col grid (custom flex) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

[class*="col-"] {
  padding: 0 10px;
  margin-bottom: 20px;
}

.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }

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

/* Fact cards */
.fact-cards {
  margin-top: 1rem;
}

.fact-item {
  background: white;
  border-radius: 20px;
  padding: 1.8rem 1.2rem;
  height: 100%;
  box-shadow: 0 8px 20px rgba(213,43,30,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.fact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--wt-shadow-hover);
}

.fact-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.fact-item h4 {
  margin-bottom: 0.8rem;
  color: var(--wt-dark-red);
}

/* Link list */
.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  display: flex;
  align-items: center;
  background: #fafafa;
  border-radius: 40px;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.link-list .badge {
  background: var(--wt-red);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-weight: bold;
}

.link-list code {
  flex: 1;
  font-family: 'Courier New', monospace;
  background: none;
  color: var(--wt-dark-red);
  word-break: break-all;
  padding-right: 10px;
}

.copy-btn {
  background: none;
  border: 1px solid var(--wt-red);
  border-radius: 30px;
  padding: 5px 12px;
  color: var(--wt-red);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--wt-red);
  color: white;
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--wt-gray);
}

/* Feature table */
.feature-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin: 1rem 0 2rem;
}

.feature-table th {
  background: var(--wt-red);
  color: white;
  padding: 1rem;
  border-radius: 12px 0 0 12px;
  width: 30%;
  font-weight: 600;
}

.feature-table td {
  background: white;
  padding: 1rem;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* Payment card */
.payment-card {
  background: var(--wt-light-red);
  padding: 2rem;
  border-left: 6px solid var(--wt-red);
}

/* Rule list */
.rule-list {
  list-style: none;
  padding-left: 1.5rem;
}

.rule-list li {
  margin-bottom: 0.7rem;
  position: relative;
}

.rule-list li::before {
  content: "•";
  color: var(--wt-red);
  font-size: 1.5rem;
  position: absolute;
  left: -1.2rem;
  top: -0.3rem;
}

/* Screenshots */
.screenshot-row {
  margin-top: 1rem;
}

.screenshot {
  width: 100%;
  border-radius: 16px;
  border: 4px solid white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.screenshot:hover {
  transform: scale(1.02);
}

.screenshot-caption {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--wt-gray);
}

/* FAQ Accordion */
.faq-accordion {
  margin: 2rem 0;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
  overflow: hidden;
}

.faq-question {
  background: var(--wt-white);
  padding: 1.2rem 1.8rem;
  font-weight: 600;
  color: var(--wt-dark-red);
  cursor: pointer;
  position: relative;
  border-left: 5px solid var(--wt-red);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--wt-light-red);
}

.faq-question::after {
  content: "▼";
  font-size: 0.8rem;
  position: absolute;
  right: 1.8rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.8rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fcf8f7;
}

.faq-item.open .faq-answer {
  padding: 1.2rem 1.8rem;
  max-height: 200px; /* enough for answers */
}

/* Footer */
.footer {
  background: #1e1e2a;
  color: #aaa;
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 4px solid var(--wt-red);
}

.footer a {
  color: #f0b2b2;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.partners {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .col-md-8, .col-md-6, .col-md-4, .col-md-2 { flex: 0 0 100%; max-width: 100%; }

  .page-title { font-size: 2.5rem; }
  .section-title { font-size: 1.8rem; }
  .block-title { font-size: 1.5rem; }

  .content-block { padding: 1.5rem; }

  .feature-table th, .feature-table td {
      display: block;
      width: 100%;
      border-radius: 12px;
  }
  .feature-table th { border-radius: 12px 12px 0 0; }
  .feature-table td { border-radius: 0 0 12px 12px; }

  .link-list li { flex-wrap: wrap; }
  .link-list code { width: 100%; margin-bottom: 5px; }
}
/* Guide list (нумерованный список) */
.guide-list {
  padding-left: 1.5rem;
  margin: 1rem 0;
  counter-reset: guide-counter;
}

.guide-list li {
  list-style: none;
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 2.2rem;
  font-weight: 500;
}

.guide-list li::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  background: var(--wt-red);
  color: white;
  font-weight: bold;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.9rem;
}

/* Дополнительные улучшения для цитат и выделений */
.content-block p:last-child {
  margin-bottom: 0;
}

.content-block ul, .content-block ol {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.feature-list strong {
  color: var(--wt-dark-red);
}

/* Для блока преимуществ */
.advantage-item {
  border-left: 4px solid var(--wt-red);
  padding-left: 1rem;
  margin: 1rem 0;
}