/* Tokidrift — Blog */
:root {
  --accent: #00d1ae;
  --accent-dark: #00a88a;
  --accent-light: #e6faf6;
  --text: #1a1f2e;
  --text-muted: #5c6478;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --border: #e2e8ef;
  --shadow: 0 4px 24px rgba(26, 31, 46, 0.08);
  --radius: 12px;
  --max-width: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo:hover {
  color: var(--accent-dark);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-desktop {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-desktop a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: var(--bg);
  padding: 24px;
  z-index: 99;
  overflow-y: auto;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile li {
  border-bottom: 1px solid var(--border);
}

.nav-mobile a {
  display: block;
  padding: 16px 0;
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
}

.nav-mobile .legal-links {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
}

.nav-mobile .legal-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 10px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.85) 0%, rgba(26, 31, 46, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: #fff;
  padding: 80px 24px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-dark:hover {
  background: #2d3548;
  color: #fff;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.bg-alt {
  background: var(--bg-alt);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 31, 46, 0.12);
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 24px;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-body h3 a {
  color: var(--text);
}

.card-body h3 a:hover {
  color: var(--accent-dark);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.read-more:hover {
  color: var(--accent);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 32px 24px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About block */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  height: 400px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-list {
  list-style: none;
  margin: 24px 0;
}

.about-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--text) 0%, #2d3548 100%);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Article page */
.page-hero {
  background: var(--bg-alt);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.page-hero .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 48px 0 80px;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 16px;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.article-content ul,
.article-content ol {
  margin: 16px 0 16px 24px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 8px;
}

.article-featured-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.sidebar-box h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 10px;
}

.sidebar-links a {
  color: var(--text);
  font-size: 0.95rem;
}

.sidebar-links a:hover {
  color: var(--accent-dark);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0 80px;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--text);
  font-size: 1rem;
}

.contact-hours {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.contact-hours h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.contact-hours p {
  color: var(--text-muted);
}

/* Form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-success {
  display: none;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 500;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-doc-id {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
}

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

/* FAQ accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-block,
  .contact-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 280px;
    order: -1;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  section {
    padding: 56px 0;
  }

  .hero {
    min-height: 440px;
  }

  .hero-content {
    padding: 60px 24px;
  }

  .footer-grid {
    gap: 32px;
  }

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

  .footer-legal {
    justify-content: center;
  }
}
