/* ============================
   GLOBAL
============================ */

:root {
  --bg-main: #f7f1e8;
  --bg-cream: #f3e6d6;
  --bg-dark: #050505;
  --text-main: #2b2118;
  --text-muted: #7a6a5a;
  --accent-brown: #8c6a4a;
  --accent-dark: #3b3027;
  --border-soft: rgba(0, 0, 0, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.08);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   PARALLAX BACKGROUND
============================ */

.parallax-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.parallax-blob {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  background: radial-gradient(circle at 30% 30%, #f5e9dd, #cbb8a9);
}

.parallax-blob.blob-1 { top: -40px; left: -60px; }
.parallax-blob.blob-2 { top: 40%; right: -80px; background: radial-gradient(circle at 30% 30%, #e0c9a6, #8c6a4a); }
.parallax-blob.blob-3 { bottom: -60px; left: 10%; width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #f3e6d6, #b89a7a); }

/* ============================
   HEADER
============================ */

.header-modern {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

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

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--accent-brown);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--text-main);
  opacity: 0.7;
  padding: 6px 10px;
  border-radius: 999px;
  transition: var(--transition-fast);
}

.nav a:hover {
  background: rgba(0, 0, 0, 0.04);
  opacity: 1;
}

/* BURGER MENU */

#burger {
  width: 26px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

#burger span {
  height: 3px;
  background: #2b2118;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  #burger {
    display: flex;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    position: absolute;
    right: 20px;
    top: 60px;
    box-shadow: var(--shadow-soft);
  }
}

/* ============================
   HERO
============================ */

.hero-centered {
  text-align: center;
  padding: 80px 0 40px;
}

.hero-center-block {
  max-width: 680px;
  margin: 0 auto;
}

.accent-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 34px;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--accent-brown);
  margin: 18px auto 24px;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.7);
}

/* ============================
   GENERATOR
============================ */

.generator-wrapper {
  margin-top: 40px;
}

.generator-modern {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 520px;
  margin: 0 auto;
}

/* Tabs */
.generator-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.gen-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition-fast);
}

.gen-tab.active {
  background: var(--accent-brown);
  color: #fff;
  border-color: var(--accent-brown);
}

/* Sections */
.gen-section {
  margin-bottom: 22px;
}

.hidden {
  display: none;
}

.field-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* TEXTAREA */
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  min-height: 90px;
  resize: vertical;
  outline: none;
  transition: var(--transition-fast);
}

textarea:focus {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* EMOTIONS */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip.active {
  background: var(--accent-brown);
  color: #fff;
  border-color: var(--accent-brown);
}

/* TRENDS */
.trend-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trend-btn {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition-fast);
}

.trend-btn.active {
  background: var(--accent-brown);
  color: #fff;
  border-color: var(--accent-brown);
}

/* PHOTO UPLOAD */
.photo-dropzone {
  width: 100%;
  height: 180px;
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  transition: 0.25s;
  text-align: center;
}

.photo-dropzone:hover {
  border-color: var(--accent-brown);
  background: rgba(255,255,255,0.9);
}

.remove-photo-btn {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ff4d4d;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

/* Generate button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent-brown);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition-fast);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* ============================
   RESULT
============================ */

.result-section {
  margin-top: 40px;
  display: none;
}

.result-section.visible {
  display: block;
}

.palette-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.palette-color {
  min-width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-med);
}

.palette-color:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.palette-color-meta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.palette-description {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.palette-recommendations {
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent-brown);
}

/* ============================
   GRADIENTS
============================ */

.templates-section {
  margin-top: 40px;
  display: none;
}

.templates-section.visible {
  display: block;
}

.templates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.templates-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.template-card {
  flex: 0 0 220px;
  height: 130px;
  border-radius: var(--radius-lg);
  background: #111;
  color: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: var(--transition-med);
  cursor: grab;
}

.template-card:active {
  cursor: grabbing;
}

.template-card.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ============================
   BLOG (REDESIGN)
============================ */

.blog-preview {
  margin-top: 60px;
  background: #111;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.blog-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.blog-subtitle {
  font-size: 14px;
  color: #c9c9c9;
}

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

.blog-card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  transition: 0.25s;
  border: 1px solid rgba(255,255,255,0.06);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-thumb {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.blog-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.blog-card-desc {
  font-size: 13px;
  color: #d0c4b5;
  margin-bottom: 6px;
}

.blog-card-date {
  font-size: 11px;
  color: #a89a8a;
}

/* ============================
   REFERRAL
============================ */

.referral {
  padding: 40px 0 50px;
}

.referral-inner {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.referral-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.referral-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.referral-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn-ref {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f7f1e8;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-ref:hover {
  background: #f3e6d6;
  transform: translateY(-1px);
}

/* ============================
   SEO TEXT
============================ */

.seo-text {
  padding: 50px 0;
  background: #fff;
  color: var(--text-main);
}

.seo-text h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.seo-text p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* ============================
   FOOTER
============================ */

footer {
  background: var(--bg-dark);
  color: #f7f1e8;
  padding: 24px 0 18px;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #d0c4b5;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  opacity: 0.7;
}
.footer-follow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-follow-links a {
  color: #5a331f;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.footer-follow-links a:hover {
  opacity: 1;
}


/* ============================
   BLOG PAGE
============================ */

.blog-page {
  min-height: 100vh;
  background: var(--bg-dark);
  color: #f7f1e8;
  padding-bottom: 40px;
}

.blog-page-header {
  padding: 20px 0 10px;
}

.blog-page-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
}

.blog-page-subtitle {
  font-size: 13px;
  color: #a89a8a;
}

.blog-page-list {
  margin-top: 20px;
}

/* ============================
   MOBILE
============================ */

@media (max-width: 768px) {

  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .palette-of-day {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    order: 2;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .accent-title {
    font-size: 26px;
  }

  .hero-centered {
    padding: 60px 0 30px;
  }

  .generator-modern {
    padding: 24px 18px;
  }

  .template-card {
    flex: 0 0 180px;
    height: 120px;
  }

  .blog-videos {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================
   SWIPE HINT
============================ */

.swipe-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}
.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #f7f1e8;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
/* ============================
   BLOG PAGE — FINAL REDESIGN
============================ */

.blog-page {
  min-height: 100vh;
  background: #0d0d0d;
  color: #f7f1e8;
  padding-bottom: 60px;
}

/* HEADER */
.blog-page .header-modern {
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.blog-page .logo {
  color: #f7f1e8;
}

.blog-page .nav a {
  color: #f7f1e8;
  opacity: 0.7;
}

.blog-page .nav a:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

/* HERO IMAGE BLOCK */
.blog-hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.blog-hero img {
  max-width: 260px;
  border-radius: 18px;
  margin-bottom: 20px;
}

.blog-hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-hero-subtitle {
  font-size: 15px;
  color: #b8b1a8;
}

/* BLOG LIST */
.blog-page-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.blog-card {
  background: #1a1a1a;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: 0.25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.blog-thumb {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #222;
}

.blog-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.blog-card-desc {
  font-size: 14px;
  color: #d0c4b5;
  margin-bottom: 6px;
}

.blog-card-date {
  font-size: 12px;
  color: #a89a8a;
}

/* AD SLOT */
.blog-ad {
  margin-top: 40px;
  background: #111;
  border: 1px dashed rgba(255,255,255,0.15);
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  color: #c9c9c9;
}

/* FOOTER */
.blog-page footer {
  background: #000;
  color: #f7f1e8;
  padding: 30px 0;
}

.blog-page .footer-links a {
  color: #d0c4b5;
}

.blog-page .footer-links a:hover {
  opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 26px;
  }
  .blog-page-list {
    grid-template-columns: 1fr;
  }
}
.export-row {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.copy-color-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s;
}

.copy-color-btn:hover {
  background: #fff;
}
.side-banner {
  position: fixed;
  top: 120px;
  width: 140px;
  height: 600px;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  z-index: 50;
}

.left-banner {
  left: 20px;
}

.right-banner {
  right: 20px;
}

@media (max-width: 1200px) {
  .side-banner {
    display: none;
  }
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
}

.toast.visible {
  opacity: 1;
}
@media (max-width: 768px) {
  .nav,
  .palette-of-day,
  #burger {
    display: none !important;
  }

  .header-inner {
    justify-content: center;
  }

  .logo {
    margin: 0 auto;
    text-align: center;
  }
}
.side-banner {
  position: fixed;
  top: 120px;
  width: 140px;
  height: 600px;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  z-index: 50;
}

.left-banner { left: 20px; }
.right-banner { right: 20px; }

@media (max-width: 1200px) {
  .side-banner { display: none; }
}
.gen-ad {
  width: 100%;
  height: 120px;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px dashed rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .gen-ad { display: none; }
}
.images-section {
  margin-top: 40px;
}

.palette-images-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.palette-image-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: var(--transition-med);
}

.palette-image-card:hover {
  transform: translateY(-3px);
}

.palette-image-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.palette-image-meta {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

  /* Desktop only */
  .ad-desktop { display: block; }
  .ad-mobile { display: none; }

  @media (max-width: 1024px) {
    .ad-desktop { display: none; }
    .ad-mobile { display: block; }
  }

  /* Side banners */
  .side-ad {
    position: fixed;
    top: 120px;
    width: 160px;
    z-index: 999;
  }
  .side-left { left: 10px; }
  .side-right { right: 10px; }

  /* Floating smartlink button */
  .smartlink-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8c6a4a;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: 0.25s ease;
  }
  .smartlink-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  }
/* ============================================
   LOADIFY — NEW GENERATOR SECTION REDESIGN
   (drop-in override)
============================================ */

/* --- Контейнер генератора --- */
.generator-modern {
  width: 100%;
  max-width: 760px;
  padding: 40px 36px;
  border-radius: 32px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

/* Декоративные пятна */
.generator-modern::before,
.generator-modern::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: -1;
}

.generator-modern::before {
  background: #f3e6d6;
  top: -40px;
  left: -60px;
}

.generator-modern::after {
  background: #d8c0a4;
  bottom: -40px;
  right: -60px;
}

/* --- Заголовок --- */
#generator h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

/* --- Табы --- */
.generator-tabs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}

.gen-tab {
  flex: 1;
  padding: 12px 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: 0.25s;
}

.gen-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.gen-tab.active {
  background: linear-gradient(135deg, #8c6a4a, #a9825c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(140,106,74,0.35);
}

/* --- Поля ввода --- */
.gen-section {
  background: rgba(255,255,255,0.7);
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #6a5a4a;
}

/* --- Текстовое поле --- */
textarea {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  padding: 14px 16px;
  min-height: 110px;
  font-size: 14px;
  resize: vertical;
  transition: 0.25s;
}

textarea:focus {
  border-color: #8c6a4a;
  box-shadow: 0 0 0 3px rgba(140,106,74,0.15);
}

/* --- Чипсы эмоций --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.chip.active {
  background: #8c6a4a;
  color: #fff;
  border-color: #8c6a4a;
  box-shadow: 0 6px 20px rgba(140,106,74,0.35);
}

/* --- Тренды --- */
.trend-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trend-btn {
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.trend-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.trend-btn.active {
  background: #8c6a4a;
  color: #fff;
  border-color: #8c6a4a;
  box-shadow: 0 6px 20px rgba(140,106,74,0.35);
}

/* --- Dropzone --- */
.photo-dropzone {
  height: 200px;
  border-radius: 22px;
  border: 2px dashed rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  transition: 0.25s;
}

.photo-dropzone:hover {
  border-color: #8c6a4a;
  background: rgba(255,255,255,0.85);
  transform: scale(1.02);
}

/* --- Кнопка генерации --- */
#btn-generate {
  width: 100%;
  margin-top: 20px;
  padding: 14px 0;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #8c6a4a, #a9825c);
  box-shadow: 0 10px 26px rgba(140,106,74,0.35);
}

#btn-generate:not(:disabled):hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(140,106,74,0.45);
}
/* ============================================
   LOADIFY — NEW GENERATOR SECTION REDESIGN
   (drop-in override)
============================================ */

/* --- Контейнер генератора --- */
.generator-modern {
  width: 100%;
  max-width: 760px;
  padding: 40px 36px;
  border-radius: 32px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

/* Декоративные пятна */
.generator-modern::before,
.generator-modern::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: -1;
}

.generator-modern::before {
  background: #f3e6d6;
  top: -40px;
  left: -60px;
}

.generator-modern::after {
  background: #d8c0a4;
  bottom: -40px;
  right: -60px;
}

/* --- Заголовок --- */
#generator h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

/* --- Табы --- */
.generator-tabs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}

.gen-tab {
  flex: 1;
  padding: 12px 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: 0.25s;
}

.gen-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.gen-tab.active {
  background: linear-gradient(135deg, #8c6a4a, #a9825c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(140,106,74,0.35);
}

/* --- Поля ввода --- */
.gen-section {
  background: rgba(255,255,255,0.7);
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #6a5a4a;
}

/* --- Текстовое поле --- */
textarea {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  padding: 14px 16px;
  min-height: 110px;
  font-size: 14px;
  resize: vertical;
  transition: 0.25s;
}

textarea:focus {
  border-color: #8c6a4a;
  box-shadow: 0 0 0 3px rgba(140,106,74,0.15);
}

/* --- Чипсы эмоций --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.chip.active {
  background: #8c6a4a;
  color: #fff;
  border-color: #8c6a4a;
  box-shadow: 0 6px 20px rgba(140,106,74,0.35);
}

/* --- Тренды --- */
.trend-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trend-btn {
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.trend-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.trend-btn.active {
  background: #8c6a4a;
  color: #fff;
  border-color: #8c6a4a;
  box-shadow: 0 6px 20px rgba(140,106,74,0.35);
}

/* --- Dropzone --- */
.photo-dropzone {
  height: 200px;
  border-radius: 22px;
  border: 2px dashed rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  transition: 0.25s;
}

.photo-dropzone:hover {
  border-color: #8c6a4a;
  background: rgba(255,255,255,0.85);
  transform: scale(1.02);
}

/* --- Кнопка генерации --- */
#btn-generate {
  width: 100%;
  margin-top: 20px;
  padding: 14px 0;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #8c6a4a, #a9825c);
  box-shadow: 0 10px 26px rgba(140,106,74,0.35);
}

#btn-generate:not(:disabled):hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(140,106,74,0.45);
}
/* ============================================
   FIX: EMOTION CHIPS TEXT OVERFLOW + SHARP CORNERS
============================================ */

/* Острые углы */
.chip {
  border-radius: 8px !important;
}

/* Чтобы текст не упирался */
.chip {
  padding: 8px 14px !important;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* На телефоне — компактнее */
@media (max-width: 768px) {
  .chip {
    padding: 6px 10px !important;
    font-size: 12px !important;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chips {
    gap: 6px !important;
  }
}
/* ============================================
   HARD OVERRIDE: RECTANGULAR BUTTONS
============================================ */

/* Универсальный стиль для всех кнопок генератора */
.gen-tab,
.chip,
.trend-btn,
.btn-primary,
.btn-ref,
#btn-generate {
  border-radius: 6px !important; /* Лёгкое скругление */
  padding: 10px 14px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* Чипсы эмоций */
.chip {
  padding: 8px 12px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

/* Табы */
.gen-tab {
  padding: 10px 0 !important;
  text-align: center;
}

/* Тренды */
.trend-btn {
  padding: 8px 12px !important;
}

/* Dropzone тоже делаем прямоугольным */
.photo-dropzone {
  border-radius: 10px !important;
}

/* Секция генератора */
.gen-section {
  border-radius: 10px !important;
}

/* Текстовое поле */
textarea {
  border-radius: 8px !important;
}

/* Мобильный фикс */
@media (max-width: 768px) {
  .gen-tab {
    flex: 1 1 calc(50% - 6px);
  }

  .chip,
  .trend-btn {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}
.blog-search-wrapper {
  margin: 20px auto 30px;
  text-align: center;
}

.blog-search {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.blog-search:focus {
  border-color: #8c6a4a;
  box-shadow: 0 0 0 3px rgba(140,106,74,0.15);
  outline: none;
}
.blog-videos {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-card.tile {
  width: 340px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

/* Чередование */
.blog-card.left {
  margin-right: auto;
}

.blog-card.right {
  margin-left: auto;
}

/* Превью */
.blog-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Контент */
.blog-content {
  padding: 16px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-card-desc {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
  color: #4a3f35;
}

.blog-links a {
  margin-right: 12px;
  color: #8c6a4a;
  font-weight: 600;
}

.blog-card-date {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 10px;
}
.blog-footer-banner {
  margin-top: 60px;
  text-align: center;
}

.blog-coffee-img {
  max-width: 260px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.blog-footer-text {
  font-size: 15px;
  color: #6a5a4a;
}
/* === DARK BLOG CARDS === */

.blog-videos {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Плитка */
.blog-card.tile {
  width: 360px;
  background: #1a1a1a;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
  color: #f2f2f2;
}

/* Чередование */
.blog-card.left {
  margin-right: auto;
}

.blog-card.right {
  margin-left: auto;
}

/* Превью */
.blog-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Контент */
.blog-content {
  padding: 18px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.blog-card-desc {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 14px;
  color: #d6d6d6;
}

.blog-links a {
  margin-right: 14px;
  color: #ffb86c;
  font-weight: 600;
}

.blog-card-date {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 12px;
}
.blog-search-wrapper {
  margin: 25px auto 35px;
  text-align: center;
}

.blog-search {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: #1f1f1f;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: 0.2s;
}

.blog-search::placeholder {
  color: #888;
}

.blog-search:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,184,108,0.35);
}
.blog-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.blog-link-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #ffb86c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.blog-link-btn:hover {
  background: #3a3a3a;
  border-color: #ffb86c;
}
.footer-new {
  background: #000;
  color: #f7f1e8;
  padding: 50px 0 30px;
  margin-top: 60px;
}

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

.footer-col-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: #d0c4b5;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: 0.2s;
}

.footer-list a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-links-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links-bottom a {
  color: #d0c4b5;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: 0.2s;
}

.footer-links-bottom a:hover {
  opacity: 1;
}

.footer-contact-btn {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  margin-top: 20;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.6;
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
/* TELEGRAM PROMO SECTION */
.tg-promo {
  background: linear-gradient(135deg, #f3e6d6, #cbb8a9);
  padding: 60px 0;
  margin: 60px auto;
}

.tg-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.tg-promo-text {
  max-width: 520px;
}

.tg-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #3b3027;
}

.tg-subtitle {
  font-size: 15px;
  color: #7a6a5a;
  margin-bottom: 24px;
}

.tg-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #3b3027;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.tg-btn:hover {
  background: #8c6a4a;
}

.tg-promo-graphic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f5e9dd, #b89a7a);
  filter: blur(20px);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .tg-promo-inner {
    flex-direction: column;
    text-align: center;
  }
  .tg-promo-graphic {
    display: none;
  }
}
.gradient-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.gradient-modal.hidden {
  display: none;
}

.gradient-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.gradient-preview {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.copy-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.copy-option {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f7f1e8;
  cursor: pointer;
  font-size: 13px;
}

.copy-option:hover {
  background: #f3e6d6;
}

.gradient-code {
  background: #f7f1e8;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  text-align: left;
  white-space: pre-wrap;
}

.close-modal {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #3b3027;
  color: #fff;
  border: none;
  cursor: pointer;
}
/* COPY BUTTON ON GRADIENT */
.copy-gradient-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  user-select: none;
}

.copy-gradient-btn:hover {
  background: rgba(0,0,0,0.75);
}

.copy-option {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #f7f1e8;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}

.copy-option:hover {
  background: #f3e6d6;
}
.blog-card-desc {
  font-size: 13px;
  color: #d0c4b5;
  margin-bottom: 6px;
  line-height: 1.45;
  white-space: normal;
}
.blog-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.blog-videos {
  column-count: 2;
  column-gap: 16px;
}

.blog-card {
  break-inside: avoid;
  margin-bottom: 16px;
}
.blog-page .blog-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card-desc { line-height: 1.45; }
.blog-card-title { line-height: 1.3; }
.blog-content { gap: 6px; }
.blog-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-title {
  line-height: 1.3;
}

.blog-card-desc {
  line-height: 1.5;
  white-space: normal;
}
.blog-videos {
  column-count: 2;
  column-gap: 20px;
}

.blog-card {
  break-inside: avoid;
  margin-bottom: 20px;
}
.blog-card-desc {
  white-space: pre-line;
}
/* MAIN PAGE — MASONRY */
.blog-preview .blog-videos {
  column-count: 3;
  column-gap: 20px;
}

.blog-preview .blog-card {
  break-inside: avoid;
  margin-bottom: 20px;
}
/* BLOG PAGE — DESKTOP GRID */
.blog-page .blog-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* BLOG PAGE — MOBILE LIST */
@media (max-width: 768px) {
  .blog-page .blog-videos {
    display: block;
  }

  .blog-page .blog-card {
    margin-bottom: 20px;
  }
}
.blog-card-title {
  line-height: 1.3;
}

.blog-card-desc {
  line-height: 1.5;
  white-space: pre-line;
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* MAIN PAGE — MASONRY */
.blog-preview .blog-videos {
  column-count: 3;
  column-gap: 20px;
}

.blog-preview .blog-card {
  break-inside: avoid;
  margin-bottom: 20px;
}
/* BLOG PAGE — DESKTOP GRID */
.blog-page .blog-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* BLOG PAGE — MOBILE LIST */
@media (max-width: 768px) {
  .blog-page .blog-videos {
    display: block;
  }

  .blog-page .blog-card {
    margin-bottom: 20px;
  }
}

.blog-card-title {
  line-height: 1.3;
}

.blog-card-desc {
  line-height: 1.5;
  white-space: pre-line;
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* BLOG PAGE — layout fix */
.blog-page .blog-videos {
  margin-top: 30px;
}

/* Десктоп: 3 в ряд, нормальная сетка */
@media (min-width: 769px) {
  .blog-page .blog-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: flex-start; /* чтобы не растягивало по высоте */
  }
}

/* Мобильный: блог за блогом вниз */
@media (max-width: 768px) {
  .blog-page .blog-videos {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
}
/* BLOG PAGE — layout fix */
.blog-page .blog-videos {
  margin-top: 30px;
}

/* Десктоп: 3 в ряд, нормальная сетка */
@media (min-width: 769px) {
  .blog-page .blog-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: flex-start; /* чтобы не растягивало по высоте */
  }
}

/* Мобильный: блог за блогом вниз */
@media (max-width: 768px) {
  .blog-page .blog-videos {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
}
.blog-card-desc {
  white-space: pre-line;
}
/* INDEX — 3 blog cards with staggered heights */
.blog-preview .blog-videos {
  display: flex;
  gap: 18px;
}

.blog-preview .blog-card {
  flex: 1;
}

/* Ступенька */
.blog-preview .blog-card:nth-child(1) {
  margin-top: 0;
}

.blog-preview .blog-card:nth-child(2) {
  margin-top: 32px;
}

.blog-preview .blog-card:nth-child(3) {
  margin-top: 18px;
}

/* На телефоне — обычная колонка */
@media (max-width: 768px) {
  .blog-preview .blog-videos {
    flex-direction: column;
  }

  .blog-preview .blog-card {
    margin-top: 0 !important;
  }
}
.blog-videos-index {
  column-count: 3;
  column-gap: 20px;
}

.blog-videos-index .blog-card {
  break-inside: avoid;
  margin-bottom: 20px;
}
.blog-page .blog-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .blog-page .blog-videos {
    grid-template-columns: 1fr;
  }
}
/* INDEX — masonry layout */
.blog-videos-index {
  column-count: 3;
  column-gap: 20px;
}

.blog-videos-index .blog-card {
  break-inside: avoid;
  margin-bottom: 20px;
}

/* На телефоне — обычная колонка */
@media (max-width: 768px) {
  .blog-videos-index {
    column-count: 1;
  }
}
/* INDEX — masonry layout for ALL devices except phones */
.blog-videos-index {
  column-count: 3;
  column-gap: 20px;
}

.blog-videos-index .blog-card {
  break-inside: avoid;
  margin-bottom: 20px;
}

/* Phones only */
@media (max-width: 600px) {
  .blog-videos-index {
    column-count: 1;
  }
}
@media (min-width:600px) and (max-width:768px){.blog-videos-index{column-count:2}.blog-page .blog-videos{grid-template-columns:repeat(2,1fr)}}
/* ============================================
   TABLETS — UNIVERSAL FIXES (600–1024px)
============================================ */

@media (min-width:600px) and (max-width:1024px) {

  /* ---------- GLOBAL LAYOUT ---------- */
  .container {
    max-width: 900px;
    padding: 0 24px;
  }

  /* ---------- BLOG PAGE GRID ---------- */
  .blog-page .blog-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 26px;
    align-items: flex-start;
  }

  /* ---------- BLOG PREVIEW (INDEX) ---------- */
  .blog-videos-index {
    column-count: 2 !important;
    column-gap: 22px !important;
  }

  /* ---------- BLOG CARD ---------- */
  .blog-card {
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 22px;
  }

  .blog-card-title {
    font-size: 17px;
  }

  .blog-card-desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .blog-thumb {
    border-radius: 14px;
    margin-bottom: 14px;
  }

  /* ---------- BLOG HEADER ---------- */
  .blog-preview .blog-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* ---------- SEARCH ---------- */
  .blog-search {
    max-width: 380px;
    font-size: 15px;
    padding: 14px 16px;
  }

  /* ---------- BLOG LINKS ---------- */
  .blog-links {
    justify-content: center;
  }

  .blog-link-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* ---------- SHARE BLOCK ---------- */
  .share-block {
    padding: 22px;
    border-radius: 16px;
  }

  .share-title {
    font-size: 19px;
  }

  .share-subtitle {
    font-size: 14px;
  }

  .share-buttons {
    gap: 10px;
  }

  .share-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .social-links {
    gap: 10px;
  }

  .social-link {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* ---------- BUTTONS ---------- */
  .btn-copy,
  .export-btn,
  .more-btn,
  .show-more-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* ---------- BLOG FOOTER BANNER ---------- */
  .blog-footer-banner {
    margin-top: 50px;
  }

  .blog-coffee-img {
    max-width: 220px;
  }

  .blog-footer-text {
    font-size: 14px;
  }
}
/* ============================================
   iPad Pro FIX (1024–1180px)
============================================ */

@media (min-width:1024px) and (max-width:1180px) {

  .blog-page .blog-videos {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  .blog-videos-index {
    column-count: 3;
  }

  .blog-card {
    padding: 20px;
  }
}
/* ============================================
   iPad Mini FIX (600–720px)
============================================ */

@media (min-width:600px) and (max-width:720px) {

  .blog-page .blog-videos {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  .blog-videos-index {
    column-count: 2 !important;
    column-gap: 18px;
  }

  .blog-card {
    padding: 16px;
    border-radius: 14px;
  }

  .blog-card-title {
    font-size: 16px;
  }

  .blog-card-desc {
    font-size: 14px;
  }
}
/* ============================================
   TABLET PORTRAIT (VERTICAL MODE)
   iPad / iPad Mini / iPad Air — ALWAYS 2 COLUMNS
============================================ */

@media (min-width:768px) and (max-width:1024px) and (orientation: portrait) {

  /* BLOG PAGE GRID */
  .blog-page .blog-videos {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 26px !important;
  }

  /* BLOG PREVIEW MASONRY (INDEX) */
  .blog-videos-index {
    column-count: 2 !important;
    column-gap: 22px !important;
  }

  /* CARD TUNING */
  .blog-card {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .blog-card-title {
    font-size: 17px !important;
  }

  .blog-card-desc {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}
/* ============================================
   BLOG PREVIEW COLLAPSED MODE (INDEX PAGE)
============================================ */

.blog-preview-collapsible {
  max-height: 520px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s ease, filter 0.4s ease;
}

.blog-preview-collapsible::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(17,17,17,0), rgba(17,17,17,1));
  backdrop-filter: blur(6px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-preview-collapsible.expanded {
  max-height: 3000px;
  filter: none;
}

.blog-preview-collapsible.expanded::after {
  opacity: 0;
}

/* BUTTON */
.show-more-wrapper {
  text-align: center;
  margin-top: 20px;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #8c6a4a;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s;
  border: none;
}

.show-more-btn:hover {
  background: #a9825c;
  transform: translateY(-2px);
}

.show-more-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.show-more-btn.expanded svg {
  transform: rotate(180deg);
}
.blog-preview-collapsible {
  max-height: 520px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s ease, filter 0.4s ease;
}

.blog-preview-collapsible::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(17,17,17,0), rgba(17,17,17,1));
  backdrop-filter: blur(6px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-preview-collapsible.expanded {
  max-height: 3000px;
  filter: none;
}

.blog-preview-collapsible.expanded::after {
  opacity: 0;
}

.show-more-wrapper {
  text-align: center;
  margin-top: 20px;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #8c6a4a;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s;
  border: none;
}

.show-more-btn:hover {
  background: #a9825c;
  transform: translateY(-2px);
}

.show-more-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.show-more-btn.expanded svg {
  transform: rotate(180deg);
}
.blog-preview-collapsible {
  max-height: 480px; /* поднял выше */
  overflow: hidden;
  position: relative;
  transition: max-height 0.7s ease, filter 0.5s ease;
}

/* Мягкий, высокий blur */
.blog-preview-collapsible::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px; /* выше */
  background: linear-gradient(
    to bottom,
    rgba(17,17,17,0) 0%,
    rgba(17,17,17,0.4) 40%,
    rgba(17,17,17,0.75) 70%,
    rgba(17,17,17,1) 100%
  );
  backdrop-filter: blur(10px); /* мягче и красивее */
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Раскрытие */
.blog-preview-collapsible.expanded {
  max-height: 3000px;
}

.blog-preview-collapsible.expanded::after {
  opacity: 0;
}
.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #8c6a4a;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s;
  border: none;
}

.show-more-btn:hover {
  background: #a9825c;
  transform: translateY(-2px);
}

.show-more-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s ease;
}

/* Поворот стрелки вверх */
.show-more-btn.expanded svg {
  transform: rotate(180deg);
}