﻿/*
Theme Name: Avto-Sklo
Author: Codex
Description: Landing and blog theme for Avto-Sklo.
Version: 1.0
Text Domain: avto-sklo
*/

:root {
  color-scheme: light;
  --bg: #0f131a;
  --surface: #151b24;
  --surface-2: #1b2330;
  --card: #111822;
  --text: #f3f6fb;
  --muted: #b7c1d6;
  --accent: #4dd2ff;
  --accent-2: #ffb347;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 80px rgba(4, 8, 16, 0.4);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111a24 0%, #0b0f14 55%, #090c12 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 16, 22, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo-text {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.5px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
}

.logo-icon .logo-svg {
  width: 44px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-icon .sparkle {
  fill: var(--accent-2);
  stroke: none;
}

.form-success-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 22, 30, 0.98);
  border: 1px solid rgba(77, 210, 255, 0.35);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(4, 8, 16, 0.35);
  z-index: 60;
  font-size: 13px;
  max-width: min(520px, 92vw);
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-success-toast.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
}

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

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(77, 210, 255, 0.2);
  color: var(--text);
  border: 1px solid rgba(77, 210, 255, 0.4);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  background: #0d1218;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 64px);
  overflow: auto;
  z-index: 9;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 50px;
}

.hero-glow {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 60%;
  background: radial-gradient(circle at 30% 20%, rgba(77, 210, 255, 0.3), transparent 60%),
    radial-gradient(circle at 70% 10%, rgba(255, 179, 71, 0.2), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 18px;
}

.hero-text h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 3.8vw, 46px);
  margin: 10px 0;
}

.hero-content h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 3.9vw, 48px);
  margin: 4px 0;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
}

.lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #74f7d8);
  color: #091018;
  box-shadow: 0 12px 30px rgba(77, 210, 255, 0.3);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

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

.hero-card {
  background: linear-gradient(160deg, rgba(21, 27, 36, 0.95), rgba(17, 24, 34, 0.8));
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-form {
  background: linear-gradient(160deg, rgba(21, 27, 36, 0.95), rgba(17, 24, 34, 0.8));
  padding: 14px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.hero-form h3 {
  margin: 0;
  font-size: 18px;
}

.hero-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hero-card.compact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.next-steps {
  display: grid;
  gap: 10px;
  margin: 6px 0 4px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.step-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(77, 210, 255, 0.5), rgba(255, 179, 71, 0.35));
  box-shadow: 0 8px 16px rgba(77, 210, 255, 0.2);
  flex-shrink: 0;
}

.form {
  display: grid;
  gap: 10px;
}

.hero-form .form {
  gap: 8px;
}

.form-compact {
  margin-top: 4px;
}

.form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.form label.file-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.hero-form .form label.file-field {
  font-size: 12px;
}

.file-label {
  white-space: nowrap;
}

.hero-form .form label {
  gap: 2px;
  font-size: 12px;
}

.form input,
.form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f141b;
  color: var(--text);
}

.file-field {
  flex-wrap: nowrap;
}

.file-field {
  position: relative;
}

.file-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(77, 210, 255, 0.18);
  color: var(--text);
  font-size: 12px;
  border: 1px solid rgba(77, 210, 255, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.hero-form .form input,
.hero-form .form select {
  padding: 8px 10px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.checkbox input {
  margin-top: 3px;
}

.hero-form .form .checkbox {
  margin-top: 2px;
  margin-bottom: 8px;
}

.hero-form .form button {
  margin-top: 12px;
}

.hero-form .form small {
  margin-top: 10px;
  display: block;
}

.section {
  padding: 52px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.services {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.services article,
.grid.why article {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.why-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.why-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 22px;
}

.problem-card {
  position: relative;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.problem-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.problem-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(77, 210, 255, 0.5), rgba(255, 179, 71, 0.35));
  margin-bottom: 12px;
  box-shadow: 0 10px 22px rgba(77, 210, 255, 0.2);
}

.grid.why {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.ba {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0f15;
  cursor: ew-resize;
  touch-action: none;
}

.ba-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 26px;
  align-items: center;
}

.ba-wrap {
  max-width: 720px;
}

.ba-aside {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.ba-aside h3 {
  margin: 0;
  font-size: 18px;
}

.ba-aside ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.ba-aside li {
  line-height: 1.55;
}

.ba-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(77, 210, 255, 0.08);
  border: 1px solid rgba(77, 210, 255, 0.2);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.ba-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ba-image.before {
  background-image: linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    url("https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1400&q=60");
}

.ba-image.after {
  background-image: linear-gradient(130deg, rgba(77, 210, 255, 0.3), rgba(0, 0, 0, 0.1)),
    url("https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1400&q=60");
  width: 55%;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(77, 210, 255, 0.9);
  box-shadow: 0 10px 22px rgba(77, 210, 255, 0.25);
  border: 2px solid rgba(9, 13, 19, 0.6);
}

.ba-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  background: rgba(15, 20, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: dragHint 2.4s ease-in-out infinite;
  pointer-events: none;
}

.ba.dragging .ba-hint {
  opacity: 0.2;
}

@keyframes dragHint {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.9;
  }
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
}

.roadmap {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.roadmap-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface-2);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.roadmap-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.roadmap-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.roadmap-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #0b1118;
  background: linear-gradient(135deg, rgba(77, 210, 255, 0.9), rgba(255, 179, 71, 0.8));
  box-shadow: 0 10px 22px rgba(77, 210, 255, 0.25);
  flex-shrink: 0;
}

.roadmap-item::after {
  content: "";
  position: absolute;
  left: 38px;
  top: 60px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(77, 210, 255, 0.4), rgba(255, 179, 71, 0.1));
}

.roadmap-item:last-child::after {
  display: none;
}

.process-aside {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  position: sticky;
  top: 90px;
}

.process-aside h3 {
  margin: 0;
  font-size: 20px;
}

.process-aside p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.process-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.process-stats div {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
  display: block;
  font-weight: 700;
  font-size: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.process-checks {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.process-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(77, 210, 255, 0.08);
  border: 1px solid rgba(77, 210, 255, 0.2);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.reviews-widget {
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
}

.stars {
  font-size: 20px;
  margin-bottom: 10px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.cta {
  background: radial-gradient(circle at top left, rgba(77, 210, 255, 0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(255, 179, 71, 0.2), transparent 60%);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.contact-info {
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.contact-info strong {
  color: var(--text);
}

.map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-lg);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  background: #0b1016;
}

.footer-map {
  margin-top: 24px;
}

.footer-map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-lg);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 15, 0.7);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(520px, 92vw);
  background: linear-gradient(160deg, rgba(21, 27, 36, 0.98), rgba(17, 24, 34, 0.92));
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  z-index: 1;
  max-height: min(88vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 13, 19, 0.8);
  color: var(--text);
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.mobile-cta {
  display: none;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(77, 210, 255, 0.12);
  border: 1px solid rgba(77, 210, 255, 0.25);
  color: var(--muted);
  font-size: 12px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #74f7d8;
  box-shadow: 0 0 0 6px rgba(116, 247, 216, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
}

.badge-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 210, 255, 0.35);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.trust-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(116, 247, 216, 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(116, 247, 216, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(116, 247, 216, 0);
  }
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}

.about-text h2 {
  margin: 0 0 12px;
  font-family: "Unbounded", sans-serif;
}

.about-text p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 50px 0 20px;
}

.page-hero h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.page-hero p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.page-wrap .entry-content {
  color: var(--text);
  line-height: 1.7;
}

.blog-hero {
  padding: 46px 0 20px;
}

.blog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.post-card-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0f15;
}

.post-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-card-thumb.placeholder {
  height: 180px;
  background: linear-gradient(135deg, rgba(77, 210, 255, 0.18), rgba(255, 179, 71, 0.12));
}

.post-card h3 {
  margin: 0;
  font-size: 20px;
}

.post-meta {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.post-shell {
  width: min(860px, 92vw);
  margin: 0 auto;
  padding: 40px 0 60px;
}

.post-header h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 8px 0 12px;
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.post-toc {
  margin: 24px 0;
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.post-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.post-toc a {
  color: var(--muted);
}

.post-toc .toc-level-3 {
  padding-left: 16px;
  font-size: 14px;
}

.post-toc.is-empty {
  display: none;
}

.post-content {
  line-height: 1.8;
}

.post-content h2,
.post-content h3 {
  margin-top: 28px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 18px 0;
}

.post-content th,
.post-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.post-content tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.post-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(77, 210, 255, 0.08);
  color: var(--text);
}

.post-content code {
  background: #0e141b;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-faq {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.post-faq details {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.posts-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.posts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.posts-pagination .current {
  background: rgba(77, 210, 255, 0.2);
  border-color: rgba(77, 210, 255, 0.4);
}

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

  .menu-btn {
    display: block;
  }

  .hero-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ba-wrap {
    max-width: 100%;
  }

  .process-aside {
    position: static;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-form {
    display: none;
  }

  .hero-actions {
    display: none;
  }

  body {
    padding-bottom: 78px;
  }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: rgba(12, 16, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    z-index: 50;
  }

  .mobile-cta .btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .mobile-cta .btn.ghost {
    background: rgba(77, 210, 255, 0.12);
    border-color: rgba(77, 210, 255, 0.4);
    color: var(--text);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 46px 0 54px;
  }

  .hero-card {
    padding: 18px;
  }

  .ba {
    height: 240px;
  }

  .modal-card {
    max-height: 86vh;
    padding: 20px;
  }
}
.file-field input[type="file"]::-ms-browse {
  margin-right: 10px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(77, 210, 255, 0.18);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 700px) {
  .form label.file-field {
    flex-wrap: wrap;
  }

  .file-label {
    white-space: normal;
  }
}
