/*
Theme Name: Togbow
Theme URI: https://togbow.com
Author: Togbow
Description: Custom theme for Togbow — personalized coloring books. Design from pencil-new.pen.
Version: 1.0.0
Text Domain: togbow
*/

/* Design tokens from pencil-new.pen */
:root {
  --background: #F5F4F1;
  --card: #FFFFFF;
  --border: #E5E4E1;
  --text-primary: #1A1918;
  --text-secondary: #6D6C6A;
  --text-tertiary: #9C9B99;
  --primary: #3D8A5A;
  --primary-light: #C8F0D8;
  --accent: #D89575;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-pill: 100px;
  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 80px;
  --shadow-sm: 0 1px 2px rgba(26, 25, 24, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 25, 24, 0.08);
  --shadow-lg: 0 10px 24px rgba(26, 25, 24, 0.1);
  /* Aliases for woocommerce.css */
  --spacing-md: var(--spacing-m);
  --spacing-lg: var(--spacing-l);
}

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

/* overflow-x: clip не ломает position: sticky; fallback — hidden для старых браузеров */
html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* ========== Header (from pencil-new.pen) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-header__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px var(--spacing-l);
  max-width: 1200px;
  margin: 0 auto;
}

.site-header__top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-m);
}

.site-header__top-bar-left a {
  color: var(--text-secondary);
  font-size: 14px;
}

.site-header__top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-m);
}

.site-header__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__social a {
  color: var(--text-secondary);
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}

.site-header__social svg {
  width: 20px;
  height: 20px;
}

.site-header__lang-nav {
  display: block;
}

.site-header__lang-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__lang-menu > li {
  margin: 0;
  position: relative;
}

/* Кнопка текущего языка (триггер дропдауна) */
.site-header__lang-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.site-header__lang-menu > li > a:hover {
  background: var(--background);
  border-color: var(--primary);
  color: var(--primary);
}

.site-header__lang-menu > li > a img {
  width: 20px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
}

/* Выпадающий список языков */
.site-header__lang-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 4px 0 0;
  min-width: 100%;
  list-style: none;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
}

.site-header__lang-menu > li.is-open .sub-menu {
  display: block;
}

.site-header__lang-menu .sub-menu li {
  margin: 0;
}

.site-header__lang-menu .sub-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.site-header__lang-menu .sub-menu a:hover {
  background: var(--background);
  color: var(--primary);
}

.site-header__lang-menu .sub-menu a img {
  width: 20px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header__divider {
  height: 1px;
  background: var(--border);
}

.site-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--spacing-l);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.site-header__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav {
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  width: 150px;
}

.site-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
}

.site-nav a {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

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


.site-header__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text-primary);
  transition: background 0.2s, border-color 0.2s;
}

.site-header__cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header__icon-btn:hover {
  background: var(--background);
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

.site-header__cart-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: var(--primary);
  border: none;
  border-bottom: 3px solid #3a7d50;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.site-header__cart-btn svg {
  color: #fff;
  stroke: currentColor;
}

.site-header__cart-btn:hover {
  color: #fff;
  background: #347a4d;
  border-bottom-color: #2d6b3e;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.site-header__cart-btn:hover svg {
  color: #fff;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  font-family: var(--font-family);
  color: #fff;
  background: var(--accent);
  border: none;
  border-bottom: 3px solid #c47d5f;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.site-header__cta:hover {
  color: #fff;
  background: #c47d5f;
  border-bottom-color: #b06d52;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .site-header__top-bar { display: none; }
  .site-header__divider { display: none; }
  .site-nav { display: none; }
  .site-header__main { padding: 8px var(--spacing-l); }
}

/* ========== Main content ========== */
.site-main {
  min-height: 50vh;
  padding: var(--spacing-2xl) 0;
}

/* Anchor scroll offset for sticky header */
.hero-section,
.features-section,
.how-it-works-section,
.cta-section,
.faq-section,
.togbow-contact-form-section {
  scroll-margin-top: 120px;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--spacing-l);
}

.page-title {
  margin-bottom: var(--spacing-l);
}

/* ========== Buttons (unified Figma style) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  font-family: var(--font-family);
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-bottom: 3px solid #3a7d50;
}

.btn-primary:hover {
  color: #fff;
  background: #347a4d;
  border-bottom-color: #2d6b3e;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-bottom: 3px solid #c47d5f;
}

.btn-accent:hover {
  color: #fff;
  background: #c47d5f;
  border-bottom-color: #b06d52;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--text-tertiary);
}

.btn-secondary:hover {
  background: var(--background);
  border-color: var(--text-tertiary);
  border-bottom-color: var(--text-secondary);
  color: var(--text-primary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

/* ========== Forms ========== */
.form-group {
  margin-bottom: var(--spacing-m);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px var(--spacing-m);
  font-family: var(--font-family);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--card);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

/* ========== Cards ========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--spacing-l);
  box-shadow: var(--shadow-sm);
}

/* ========== Keyframes (декорации и анимации) ========== */
@keyframes togbow-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8px, -12px) rotate(2deg); }
  66% { transform: translate(-6px, 8px) rotate(-1deg); }
}

@keyframes togbow-float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

@keyframes togbow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes togbow-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

@keyframes togbow-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes togbow-wave {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(10px) scaleY(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section__blob,
  .hero-section__shape,
  .hero-section__float,
  .hero-section__deco,
  .hero-content,
  .hero-visual,
  .feature-card,
  .timeline-step,
  .cta-section--deco::before {
    animation: none !important;
  }
}

/* ========== Hero ========== */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) var(--spacing-l);
  background: linear-gradient(165deg, #FAF9F6 0%, #F0F5F2 35%, #EEF5F0 60%, #F5F4F1 100%);
}

.hero-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Точечный узор */
.hero-section__pattern--dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(61, 138, 90, 0.07) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

/* Мягкие размытые пятна (лёгкая анимация) */
.hero-section__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: togbow-float-slow 12s ease-in-out infinite;
}

.hero-section__blob--1 {
  width: 420px;
  height: 420px;
  background: var(--primary-light);
  top: -140px;
  right: -100px;
  animation-delay: 0s;
}

.hero-section__blob--2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  opacity: 0.18;
  bottom: 15%;
  left: -80px;
  animation-delay: -4s;
}

.hero-section__blob--3 {
  width: 220px;
  height: 220px;
  background: var(--primary);
  opacity: 0.1;
  top: 45%;
  left: 25%;
  animation-delay: -8s;
}

.hero-section__blob--4 {
  width: 180px;
  height: 180px;
  background: var(--primary-light);
  opacity: 0.35;
  bottom: -40px;
  right: 20%;
  filter: blur(50px);
  animation-delay: -2s;
}

/* Декоративные круги (лёгкое покачивание) */
.hero-section__shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(61, 138, 90, 0.12);
  background: transparent;
  animation: togbow-float 10s ease-in-out infinite;
}

.hero-section__shape--circle.hero-section__shape--1 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 15%;
  animation-delay: 0s;
}

.hero-section__shape--circle.hero-section__shape--2 {
  width: 80px;
  height: 80px;
  bottom: 25%;
  left: 10%;
  animation-delay: -3s;
}

.hero-section__shape--circle.hero-section__shape--3 {
  width: 50px;
  height: 50px;
  top: 60%;
  right: 35%;
  border-color: rgba(216, 149, 117, 0.2);
  animation-delay: -6s;
}

/* Парящие звёздочки и точки */
.hero-section__float {
  position: absolute;
  pointer-events: none;
  animation: togbow-twinkle 3s ease-in-out infinite;
}

.hero-section__float--star {
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233D8A5A' opacity='0.4'%3E%3Cpath d='M12 2l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.hero-section__float--dot {
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}

.hero-section__float--1 { top: 18%; left: 12%; width: 14px; height: 14px; animation-delay: 0s; }
.hero-section__float--2 { top: 55%; right: 25%; width: 18px; height: 18px; animation-delay: -0.8s; }
.hero-section__float--3 { bottom: 30%; left: 25%; width: 12px; height: 12px; animation-delay: -1.6s; }
.hero-section__float--4 { top: 25%; right: 10%; width: 8px; height: 8px; animation-delay: -0.4s; }
.hero-section__float--5 { bottom: 40%; right: 15%; width: 10px; height: 10px; animation-delay: -1.2s; }
.hero-section__float--6 { top: 70%; left: 8%; width: 6px; height: 6px; animation-delay: -2s; }

/* Волнистые декоративные линии */
.hero-section__deco--wave {
  position: absolute;
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(61, 138, 90, 0.15), transparent);
  animation: togbow-wave 5s ease-in-out infinite;
}

.hero-section__deco--1 { top: 35%; left: 5%; transform-origin: left center; animation-delay: 0s; }
.hero-section__deco--2 { bottom: 35%; right: 8%; transform-origin: right center; animation-delay: -2.5s; }

.hero-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: 535px;
  animation: togbow-fade-in-up 0.8s ease-out both;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 15px;
}

.hero-badge span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: var(--spacing-m);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 440px;
}

.btn-hero {
  padding: 12px 24px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  border: none;
  border-bottom: 3px solid #3a7d50;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
}

.btn-hero:hover {
  border-bottom-color: #2d6b3e;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn-hero svg {
  flex-shrink: 0;
}

.hero-hint {
  margin-top: var(--spacing-m);
  font-size: 14px;
  color: var(--text-tertiary);
}

.hero-hint::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 600;
}

/* Hero visual: image (child coloring) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  animation: togbow-fade-in-up 0.8s ease-out 0.2s both;
}

.hero-visual__image-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 24px 48px rgba(26, 25, 24, 0.1);
  border: 1px solid var(--border);
  background: var(--card);
}

.hero-visual__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
}

/* ========== Sections ========== */
.features-section,
.how-it-works-section,
.products-section {
  padding: var(--spacing-3xl) var(--spacing-l);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  font-size: 2rem;
  color: var(--text-primary);
  animation: togbow-fade-in-up 0.6s ease-out both;
}

.features-section {
  position: relative;
  background: transparent;
}

.features-section--deco::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(61, 138, 90, 0.08);
  bottom: 10%;
  right: 5%;
  pointer-events: none;
  z-index: -1;
  animation: togbow-float 15s ease-in-out infinite;
}

/* Белый фон на всю ширину экрана */
.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: var(--card);
  z-index: -1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  text-align: center;
  padding: 26px 14px;
  background: var(--background);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  animation: togbow-fade-in-up 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-m);
  background: var(--primary-light);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  margin-bottom: var(--spacing-s);
  font-size: 1.125rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.how-it-works-section {
  background: var(--background);
  position: relative;
}

.how-it-works-section::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 138, 90, 0.06) 0%, transparent 70%);
  top: 15%;
  left: 8%;
  pointer-events: none;
  z-index: -1;
  animation: togbow-pulse 6s ease-in-out infinite;
}

/* Сетка: слева картинка на всю высоту, справа контент */
.how-it-works-section__inner {
  display: grid;
  gap: 0;
  min-height: 420px;
}

.how-it-works-section--with-image .how-it-works-section__inner {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.how-it-works-section__image {
  position: relative;
  overflow: hidden;
  background: var(--border);
  border-radius: var(--radius-l);
  margin: var(--spacing-m);
}

.how-it-works-section__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.how-it-works-section__content {
  padding: var(--spacing-xl) var(--spacing-l);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how-it-works-section__content .section-title {
  margin-top: 0;
  margin-bottom: var(--spacing-m);
}

.how-it-works-section:not(.how-it-works-section--with-image) .how-it-works-section__inner {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.how-it-works-section:not(.how-it-works-section--with-image) .how-it-works-section__content {
  padding-left: var(--spacing-l);
  padding-right: var(--spacing-l);
}

/* Вертикальный таймлайн */
.steps-timeline {
  position: relative;
  max-width: 640px;
  margin-left: var(--spacing-l);
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 48px;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-l);
  padding-bottom: 18px;
  animation: togbow-fade-in-up 0.5s ease-out both;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(2) { animation-delay: 0.2s; }
.timeline-step:nth-child(3) { animation-delay: 0.3s; }
.timeline-step:nth-child(4) { animation-delay: 0.4s; }
.timeline-step:nth-child(5) { animation-delay: 0.5s; }
.timeline-step:nth-child(6) { animation-delay: 0.6s; }

.timeline-step__number {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  margin-left: -48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-step__content {
  flex: 1;
  padding: 10px var(--spacing-m);
  background: var(--card);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
}

.timeline-step__content h3 {
  margin-bottom: 4px;
  font-size: 1.125rem;
}

.timeline-step__content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.how-it-works-section__cta {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.products-section {
  background: var(--card);
  border-top: 1px solid var(--border);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

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

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  padding: var(--spacing-m);
  font-size: 1.125rem;
  color: var(--text-primary);
}

.product-price {
  padding: 0 var(--spacing-m) var(--spacing-m);
  color: var(--primary);
  font-weight: 600;
}

/* ========== FAQ Section (pencil-new.pen) ========== */
.faq-section {
  background: var(--card);
  padding: 80px var(--spacing-l);
}

@media (min-width: 900px) {
  .faq-section {
    padding: 80px 120px;
  }
}

.faq-section__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  animation: togbow-fade-in-up 0.6s ease-out both;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
}

.faq-item {
  background: var(--background);
  border-radius: 16px;
  padding: var(--spacing-l);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item__question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.faq-item__answer {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ========== CTA Section ========== */
.cta-section {
  padding: var(--spacing-3xl) var(--spacing-l);
  position: relative;
  text-align: center;
  color: #fff;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(61, 138, 90, 0.88);
  pointer-events: none;
}

.cta-section > * {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  margin-bottom: var(--spacing-m);
  color: #fff;
}

.cta-section p {
  font-size: 1em;
  margin-bottom: var(--spacing-xl);
  opacity: 1;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: #fff;
  color: var(--primary);
  border-bottom: 3px solid var(--border);
}

.cta-section .btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-bottom-color: var(--text-tertiary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.cta-section--deco {
  position: relative;
  overflow: hidden;
}

.cta-section--deco::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.08) 45%, transparent 90%);
  background-size: 200% 100%;
  animation: togbow-cta-shine 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes togbow-cta-shine {
  0%, 100% { background-position: 150% 0; }
  50% { background-position: -50% 0; }
}

/* ========== Footer ========== */
/* ========== Footer (pencil-new.pen, лого слева над слоганом) ========== */
.site-footer {
  background: var(--card);
  color: var(--text-primary);
  padding: 60px var(--spacing-l) 24px;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .site-footer {
    padding-left: 120px;
    padding-right: 120px;
  }
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.site-footer__left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  max-width: 300px;
}

.site-footer__logo {
  line-height: 0;
}

.site-footer__logo a,
.site-footer__logo img {
  display: block;
}

.site-footer__logo img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.site-footer__slogan {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.site-footer__nav-title,
.site-footer__contact-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__menu a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
}

.site-footer__menu a:hover {
  color: var(--primary);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

.site-footer__email:hover {
  color: var(--primary);
}

.site-footer__email svg {
  flex-shrink: 0;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__social a {
  color: var(--text-secondary);
  display: inline-flex;
}

.site-footer__social a:hover {
  color: var(--primary);
}

.site-footer__bottom {
  padding-top: var(--spacing-l);
  border-top: 1px solid var(--border);
}

.site-footer__copyright {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer {
    padding: var(--spacing-2xl) var(--spacing-l) var(--spacing-2xl);
  }
}

/* ========== WooCommerce overrides (unified primary button) ========== */
.woocommerce .button,
.woocommerce a.button {
  padding: 12px 24px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
  color: #fff !important;
  background: var(--primary) !important;
  border: none !important;
  border-bottom: 3px solid #3a7d50 !important;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.woocommerce .button:hover,
.woocommerce a.button:hover {
  color: #fff !important;
  background: #347a4d !important;
  border-bottom-color: #2d6b3e !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.mt-m { margin-top: var(--spacing-m); }
.mt-l { margin-top: var(--spacing-l); }
.mb-m { margin-bottom: var(--spacing-m); }
.mb-l { margin-bottom: var(--spacing-l); }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-section__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-hint { margin-top: var(--spacing-s); }
  .hero-visual {
    min-height: 240px;
    order: -1;
  }
  .hero-visual__image-wrap {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: var(--spacing-xl) var(--spacing-m);
  }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .how-it-works-section--with-image .how-it-works-section__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .how-it-works-section__image {
    min-height: 280px;
    max-height: 50vh;
  }
  .how-it-works-section__content {
    padding: var(--spacing-l) var(--spacing-m);
  }
  .steps-timeline {
    padding-left: 44px;
    margin-left: var(--spacing-m);
  }
  .steps-timeline::before {
    left: 13px;
  }
  .timeline-step__number {
    width: 28px;
    height: 28px;
    margin-left: -44px;
    font-size: 0.875rem;
  }
  .how-it-works-section__cta {
    margin-top: var(--spacing-l);
  }
}

/* Contact form section (above footer, front page) */
.togbow-contact-form-section {
  padding: 0 var(--spacing-m) var(--spacing-3xl);
  background: var(--card);
}

.togbow-contact-form-inner {
  max-width: 560px;
  margin: 0 auto;
}

.togbow-contact-form__title {
  margin: 0 0 var(--spacing-m);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
}

.togbow-contact-form__desc {
  margin: 0 0 var(--spacing-xl);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  color: var(--text-secondary);
}

.togbow-contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: var(--spacing-m);
}

.togbow-contact-form-wrap label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.togbow-contact-form-wrap label .required {
  color: #c00;
}

.togbow-contact-form-wrap input[type="text"],
.togbow-contact-form-wrap input[type="email"],
.togbow-contact-form-wrap input[type="tel"],
.togbow-contact-form-wrap textarea {
  width: 100%;
  padding: var(--spacing-s) var(--spacing-m);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  transition: border-color 0.2s;
}

.togbow-contact-form-wrap input::placeholder,
.togbow-contact-form-wrap textarea::placeholder {
  color: var(--text-tertiary);
}

.togbow-contact-form-wrap input:focus,
.togbow-contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.togbow-contact-form-wrap textarea {
  min-height: 120px;
  resize: vertical;
}

.togbow-contact-form-wrap input[type="submit"],
.togbow-contact-form-wrap .wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: var(--spacing-l) auto 0;
  padding: 12px 24px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  color: #fff;
  background: var(--primary);
  border: none;
  border-bottom: 3px solid #3a7d50;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.togbow-contact-form-wrap input[type="submit"]:hover,
.togbow-contact-form-wrap .wpcf7-submit:hover {
  color: #fff;
  background: #347a4d;
  border-bottom-color: #2d6b3e;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.togbow-contact-form-wrap .wpcf7-not-valid-tip {
  font-size: 0.85rem;
  color: #c00;
  margin-top: 2px;
}

.togbow-contact-form-wrap .wpcf7-response-output {
  margin: 0;
  padding: var(--spacing-m);
  border-radius: var(--radius-s);
  font-size: 0.95rem;
}
