/* ============================================================
   JUTIVO — Онлайн-курсы изделий из джута
   Styles
   ============================================================ */

/* --- Variables --- */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F2EBE0;
  --bg-form: #EDE5D9;
  --text: #2C1A0E;
  --text-muted: #7A6551;
  --accent: #6B4226;
  --accent-hover: #8C5A36;
  --cta: #4E2D10;
  --cta-hover: #6B4226;
  --border: #D9CFC4;
  --white: #FFFFFF;
  --green: #556B3E;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 2px 16px rgba(44,26,14,0.07);
  --shadow-lg: 0 6px 32px rgba(44,26,14,0.12);
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 40px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.btn-primary {
  display: inline-block;
  background: var(--cta);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn-primary:hover {
  background: var(--cta-hover);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  background: var(--cta);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--cta-hover); color: var(--white); }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  padding: 80px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}
.hero h1 {
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-badge-icon {
  font-size: 1.4rem;
}

/* --- Products Section --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.product-card-body {
  padding: 20px;
}
.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Audience Section --- */
.audience-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.audience-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.audience-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.audience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.audience-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.audience-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.audience-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* --- Program Section --- */
.program-modules {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.program-module {
  border-radius: var(--radius);
  overflow: hidden;
}
.program-module-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.program-module-header:hover {
  background: var(--bg-alt);
}
.module-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  min-width: 40px;
}
.module-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.97rem;
}
.module-toggle {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.program-module.open .module-toggle {
  transform: rotate(45deg);
}
.program-module-body {
  display: none;
  padding: 20px 24px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
}
.program-module.open .program-module-body {
  display: block;
}
.program-module-body ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --- Format Section --- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.format-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.format-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.format-item h3 {
  font-size: 0.97rem;
  margin-bottom: 8px;
}
.format-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Instructor Section --- */
.instructor-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.instructor-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.instructor-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.instructor-bio h2 {
  margin-bottom: 6px;
}
.instructor-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}
.instructor-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.instructor-fact {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.instructor-fact-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.instructor-fact-label {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* --- Form Section --- */
.section-form {
  background: var(--bg-form);
  padding: 80px 0;
}
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.form-wrap h2 {
  margin-bottom: 8px;
}
.form-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}
#lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.form-field input:focus {
  border-color: var(--accent);
}
.form-field input::placeholder {
  color: #B5A99A;
}
.form-submit-btn {
  width: 100%;
  background: var(--cta);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.form-submit-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}
.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.form-privacy a { color: var(--text-muted); text-decoration: underline; }

/* --- FAQ Section --- */
#faq .section-tag,
#faq h2 {
  text-align: center;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  background: var(--white);
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover {
  background: var(--bg-alt);
}
.faq-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--white);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

/* --- Footer --- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  color: var(--white);
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--white);
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-company {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: rgba(255,255,255,0.85);
  z-index: 200;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 20px rgba(44,26,14,0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 0.85rem;
  margin: 0;
  flex: 1;
}
.cookie-banner a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}
.cookie-accept-btn {
  background: var(--white);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  padding: 9px 22px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-accept-btn:hover {
  background: var(--bg-alt);
}

/* --- Success Page --- */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.success-icon {
  width: 72px;
  height: 72px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2rem;
  color: var(--white);
}
.success-page h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.success-page p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 60px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-page h2 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 32px 0 12px;
}
.legal-page p, .legal-page li {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.legal-page ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
}
.legal-page li {
  margin-bottom: 6px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding-top: 60px; }
  .hero-image-wrap { order: -1; max-width: 480px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero-actions { justify-content: center; }
  .audience-inner { grid-template-columns: 1fr; }
  .audience-image { display: none; }
  .instructor-inner { grid-template-columns: 1fr; }
  .instructor-img-wrap { max-width: 340px; margin: 0 auto; }
  .instructor-inner { text-align: center; }
  .instructor-facts { max-width: 400px; margin: 28px auto 0; }
  .format-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 16px 24px 24px; border-bottom: 1px solid var(--border); gap: 16px; z-index: 99; }
  .mobile-menu-btn { display: block; }
  .site-header { position: relative; }
  h2 { margin-bottom: 28px; }
  .section { padding: 56px 0; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .format-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-badge { position: static; display: inline-flex; margin-top: 16px; }
  .hero-image-wrap { text-align: left; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .format-grid { grid-template-columns: 1fr; }
  .instructor-facts { grid-template-columns: 1fr 1fr; }
}
