/* ========================================
   Заробіток в інтернеті — Стилі сайту
   ======================================== */

/* --- Токени --- */
:root {
  --ink: #1A2332;
  --ink-light: #2E3A48;
  --paper: #F8F6F3;
  --paper-warm: #F0EDE8;
  --accent: #2D7A4F;
  --accent-hover: #236140;
  --warm: #C4722A;
  --warm-hover: #A85E1F;
  --muted: #6B7A85;
  --border: #DDD8D0;
  --border-light: #EBE7E1;
  --success: #2D7A4F;
  --white: #FFFFFF;

  --font-display: Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', Consolas, monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius: 6px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 35, 50, 0.1);

  --max-width: 1100px;
  --header-height: 64px;
}

/* --- Скидання та база --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- Вишиванковий орнамент (підпис сайту) --- */
.ornament {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-md) 0;
}

.ornament__diamond {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.6;
}

.ornament__diamond:nth-child(2) {
  opacity: 1;
  width: 14px;
  height: 14px;
  background: var(--warm);
}

.ornament__diamond:nth-child(4) {
  opacity: 1;
  width: 14px;
  height: 14px;
  background: var(--warm);
}

/* --- Шапка --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--ink-light);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav__cta {
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.nav__cta:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* Мобільне меню */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* --- Героїчний блок --- */
.hero {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

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

.btn--warm {
  background: var(--warm);
  color: var(--white);
}

.btn--warm:hover {
  background: var(--warm-hover);
  color: var(--white);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* --- Секції --- */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section--alt {
  background: var(--paper-warm);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  line-height: 1.3;
}

.section__desc {
  color: var(--muted);
  margin-top: var(--space-sm);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Картки методів --- */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.method-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s, transform 0.3s;
}

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

.method-card__number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.method-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.method-card__text {
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.method-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.method-card__link::after {
  content: '→';
  transition: transform 0.2s;
}

.method-card__link:hover::after {
  transform: translateX(3px);
}

/* --- Статистика --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  text-align: center;
}

.stat {
  padding: var(--space-md);
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Кроки --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

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

/* --- Блоки-цитати / виділення --- */
.callout {
  background: var(--white);
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-lg) 0;
}

.callout--warm {
  border-left-color: var(--warm);
}

.callout__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.6;
}

.callout__author {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Контактна секція --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 1.5rem;
}

.contact-card__icon--viber {
  background: #7360F2;
  color: var(--white);
}

.contact-card__icon--whatsapp {
  background: #25D366;
  color: var(--white);
}

.contact-card__icon--telegram {
  background: #0088CC;
  color: var(--white);
}

.contact-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.contact-card__text {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

/* --- Футер --- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer__heading {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.8rem;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Сторінка політики --- */
.policy-content {
  max-width: 720px;
  margin: 0 auto;
}

.policy-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--ink);
}

.policy-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: var(--space-md) 0 var(--space-xs);
  color: var(--ink);
}

.policy-content p {
  margin-bottom: var(--space-sm);
  color: var(--ink-light);
  line-height: 1.8;
}

.policy-content ul {
  margin: var(--space-sm) 0;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
  color: var(--ink-light);
  line-height: 1.7;
}

.policy-content a {
  color: var(--accent);
}

.policy-content a:hover {
  text-decoration: underline;
}

/* --- Списки на сторінках --- */
.content-list {
  list-style: none;
  padding: 0;
}

.content-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.content-list li:last-child {
  border-bottom: none;
}

.content-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

.content-list__text {
  color: var(--ink-light);
  line-height: 1.6;
}

.content-list__text strong {
  color: var(--ink);
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-md) 0;
}

.faq-item__question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  font-family: inherit;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item--open .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item--open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding-top: var(--space-sm);
  color: var(--ink-light);
  line-height: 1.7;
}

/* --- Заголовок сторінки --- */
.page-header {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.page-header__subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Бейдж / тег --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--green {
  background: rgba(45, 122, 79, 0.1);
  color: var(--accent);
}

.badge--orange {
  background: rgba(196, 114, 42, 0.1);
  color: var(--warm);
}

/* --- Анімації --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .fade-up--visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Форма зворотного зв'язку --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Адаптивність --- */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-xl) var(--space-md);
  }

  .hero__title {
    font-size: 1.8rem;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
