/*
 * Base styles for brand-affiliate site.
 * Color palette is set by renderer via CSS vars (5 hexes).
 */

:root {
    /* Колорный пайплайн — все 5 хексов от Claude. Перезаписывается рендерером. */
    --primary:      #0ea5e9;
    --primary-dark: #0c4a6e;
    --accent:       #fbbf24;
    --bg:           #f0f9ff;
    --text:         #0f172a;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, sans-serif;
    --content-max-width: 1180px;
    --radius: 8px;
    --transition: 0.2s ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

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

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

.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================== Header ============================== */
.site-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 50;
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem;
}
.brand-wordmark { font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { font-weight: 500; color: var(--text); }

/* ============================== Hero ============================== */
.hero {
    background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
    padding: 4rem 0;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-text h1 {
    font-size: 2.8rem; margin: 0 0 1rem; color: var(--primary-dark);
}
.hero-text p { font-size: 1.15rem; margin-bottom: 1.5rem; }

/* ============================== Buttons ============================== */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    border: 0;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }

/* ============================== Testimonials ============================== */
.testimonials { padding: 4rem 0; background: #fff; }
.testimonials h2 { text-align: center; margin-bottom: 2.5rem; }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.testimonial {
    background: var(--bg); padding: 1.5rem; border-radius: var(--radius);
}
.stars { color: var(--accent); font-size: 1.1rem; }
.testimonial h3 { margin: 0.5rem 0; font-size: 1.1rem; }
.testimonial p { margin: 0; }

/* ============================== Sections (About/Why) ============================== */
.about-section, .why-section { padding: 4rem 0; }
.about-section { background: var(--bg); }
.why-section { background: #fff; }
.about-section h2, .why-section h2 { font-size: 2rem; margin-bottom: 1rem; }

/* ============================== Products ============================== */
.products { padding: 4rem 0; background: var(--bg); }
.products h2 { text-align: center; margin-bottom: 2.5rem; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}
.product-card {
    background: #fff; padding: 1.5rem; border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); display: flex; flex-direction: column;
}
.product-card img { aspect-ratio: 1/1; object-fit: contain; margin-bottom: 1rem; }
.product-card h3 { font-size: 1.05rem; min-height: 3em; }
.product-card p { flex-grow: 1; font-size: 0.95rem; }
.product-card .btn { margin-top: 1rem; text-align: center; }

/* ============================== FAQ ============================== */
.faq { padding: 4rem 0; background: #fff; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}
.faq-item summary {
    font-weight: 600; cursor: pointer; padding: 0.5rem 0;
}
.faq-item p { margin: 0.5rem 0 0; color: #475569; }

/* ============================== CTA ============================== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 4rem 0; text-align: center;
}
.cta h2 { color: #fff; font-size: 2.2rem; margin-bottom: 1rem; }
.cta p { font-size: 1.15rem; margin-bottom: 1.5rem; }
.cta .btn-primary { background: var(--accent); color: var(--primary-dark); }

/* ============================== Footer ============================== */
.site-footer {
    background: var(--primary-dark); color: #cbd5e1; padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; margin: 0 0 0.75rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem; font-size: 0.9rem; margin-bottom: 0.5rem;
}
.footer-copyright { text-align: center; font-size: 0.85rem; opacity: 0.7; }

/* ============================== Page sections (about/contact/legal) ============================== */
.page-section { padding: 3rem 0; min-height: 60vh; }
.page-section h1 { color: var(--primary-dark); margin-bottom: 1.5rem; }
.page-section h2 { color: var(--primary-dark); margin-top: 2rem; }
.page-section p { margin-bottom: 1rem; }
.page-cta { margin-top: 2rem; text-align: center; }

/* ============================== Contact ============================== */
.contact-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 2rem;
}
.contact-form label {
    display: block; margin-bottom: 1rem; font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%; padding: 0.7rem;
    border: 1px solid #cbd5e1; border-radius: var(--radius);
    font-family: inherit; font-size: 1rem;
    margin-top: 0.35rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none; border-color: var(--primary);
}
.contact-toast {
    background: var(--primary); color: #fff; padding: 0.8rem 1rem;
    border-radius: var(--radius); margin-top: 1rem;
}
.contact-details { background: var(--bg); padding: 1.5rem; border-radius: var(--radius); }

/* ============================== Responsive ============================== */
@media (max-width: 900px) {
    .hero-inner, .footer-grid, .contact-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 { font-size: 2rem; }
    .site-nav { gap: 1rem; font-size: 0.9rem; }
}



/* reset base gradients so theme backgrounds apply cleanly */
.hero, .cta { background-image: none; }

/* ===== AI BRAND THEME (override) ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
  --primary: #1c2b3f;
  --primary-dark: #0f1a29;
  --accent: #c8952f;
  --bg: #ffffff;
  --text: #1c2b3f;
  --radius: 10px;
  --font-sans: 'Montserrat', sans-serif;
}

.site-header {
  background: #1c2b3f;
  color: #f5f0e6;
  border-bottom: 3px solid #c8952f;
}

.brand-wordmark {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 1px;
  color: #f5f0e6;
  text-transform: uppercase;
}

.site-nav a {
  color: #cfd8e3;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #c8952f;
}

.hero {
  background: #1c2b3f;
  color: #f5f0e6;
  border-radius: var(--radius);
}

.hero-text h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn {
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.75rem;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.btn-primary {
  background: #c8952f;
  color: #1c2b3f;
}

.btn-primary:hover {
  background: #dba63c;
  color: #1c2b3f;
}

.btn-secondary {
  background: #ffffff;
  color: #1c2b3f;
  border: 2px solid #1c2b3f;
}

.btn-secondary:hover {
  background: #f5f0e6;
}

.testimonials {
  background: #f7f5f0;
  color: #1c2b3f;
}

.testimonial {
  background: #ffffff;
  color: #1c2b3f;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #e5e0d5;
}

.stars {
  color: #c8952f;
}

.about-section {
  background: #ffffff;
  color: #1c2b3f;
}

.why-section {
  background: #f7f5f0;
  color: #1c2b3f;
}

.products {
  background: #ffffff;
  color: #1c2b3f;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e5e0d5;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  color: #1c2b3f;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.faq {
  background: #f7f5f0;
  color: #1c2b3f;
}

.cta {
  background: #1c2b3f;
  color: #f5f0e6;
  border-radius: var(--radius);
}

.cta h2, .cta h1, .cta h3 {
  color: #ffffff;
}

.site-footer {
  background: #0f1a29;
  color: #cfd8e3;
  border-top: 3px solid #c8952f;
}

/* safety: hero primary button pops on any hero bg (mirror CTA) */
.hero .btn-primary { background: var(--accent); color: var(--primary-dark); }
.hero .btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
