/* ============================================================
   Dogvella – site stylesheet
   ============================================================ */

:root {
    --green: #3AA84A;
    --green-dark: #2E8B3C;
    --green-light: #E8F5EA;
    --ink: #20251f;
    --ink-soft: #4b534a;
    --muted: #6b7468;
    --bg: #f7f9f7;
    --card: #ffffff;
    --line: #e3e8e2;
    --dark: #18201a;
    --dark-2: #23301f;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(16, 32, 16, .08), 0 4px 14px rgba(16, 32, 16, .06);
    --shadow-lg: 0 8px 30px rgba(16, 32, 16, .12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */

.top-bar { background: var(--dark); color: #cfd8cd; font-size: .82rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.top-tagline { margin: 0; }
.top-newsletter { color: var(--green); font-weight: 600; }
.top-newsletter:hover { color: #fff; text-decoration: none; }

.header-main { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff; font-weight: 800; font-size: 1.35rem; display: inline-flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.logo-text span { color: var(--green); }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text span { color: var(--green); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: 8px 14px; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }
.main-nav a.active { color: var(--green-dark); background: var(--green-light); }
.main-nav .btn { color: #fff; }

.search-toggle, .nav-toggle {
    display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--ink-soft);
}
.search-toggle:hover, .nav-toggle:hover { border-color: var(--green); color: var(--green-dark); }

.search-bar { padding-bottom: 14px; }
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form input, .newsletter-form input {
    flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font-size: 1rem; font-family: inherit;
}
.search-form input:focus, .newsletter-form input:focus { outline: 2px solid var(--green); border-color: transparent; }

.pet-nav { border-top: 1px solid var(--line); background: var(--card); }
.pet-nav-inner { display: flex; align-items: center; gap: 16px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.pet-nav-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.pet-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.pet-nav a {
    display: block; padding: 6px 12px; border-radius: 20px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.pet-nav a:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block; border: none; cursor: pointer; border-radius: 8px; padding: 11px 20px;
    font-size: .95rem; font-weight: 600; font-family: inherit; text-align: center; line-height: 1.2; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-light { background: #fff; color: var(--green-dark); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--green); }
.btn-outline { background: transparent; color: var(--green-dark); border: 1px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-danger { background: #d64545; color: #fff; }
.btn-danger:hover { background: #b23b3b; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 7px; }
.btn-block { display: block; width: 100%; }

/* ---------- Flash ---------- */

.flash-stack { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 10px; font-size: .92rem; border: 1px solid; }
.flash-success { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.flash-error { background: #fdecec; border-color: #e5a0a0; color: #a33; }
.flash-warning { background: #fff6e0; border-color: #e6c46a; color: #8a6a1a; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { margin: 18px 0 0; font-size: .86rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: #b9c2b7; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: #fff; padding: 40px 0 38px; }
.page-hero h1 { margin: 0 0 .3em; }
.page-hero p { color: #c9d4c7; max-width: 720px; margin: 0; }
.page-hero .page-hero-meta { margin-top: 12px; color: #9db09a; font-size: .9rem; }
.page-hero .breadcrumbs a, .page-hero .breadcrumbs li::after { color: #8ba488; }
.page-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-hero-img { width: 320px; max-width: 40%; height: 200px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Homepage ---------- */

.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, #16241a 0%, #1f3a24 55%, #2a5a32 100%);
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(58,168,74,.35), transparent 65%);
    border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 0; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { color: #c9d4c7; font-size: 1.08rem; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.7rem; color: var(--green); }
.hero-stat span { font-size: .85rem; color: #9db09a; }
.hero-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
    padding: 16px; backdrop-filter: blur(4px);
}
.hero-card h3 { margin-bottom: .2em; }
.hero-card p { margin: 0; font-size: .86rem; color: #b7c6b4; }
.hero-card a { color: #fff; }
.hero-card a:hover { color: var(--green); text-decoration: none; }

.section { padding: 56px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.section-head .section-kicker { text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; color: var(--green-dark); font-weight: 700; margin-bottom: 6px; }
.section-head .more { font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* Card grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 16px; }
.card-title { font-size: 1.02rem; margin-bottom: .3em; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--green-dark); text-decoration: none; }
.card-text { font-size: .9rem; color: var(--muted); margin: 0; }

.pet-card { text-align: center; padding: 26px 18px; }
.pet-card .pet-icon { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; }
.pet-card h3 { margin-bottom: .2em; }
.pet-card .card-text { font-size: .82rem; }
.pet-card .pet-counts { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.pet-card .btn { margin-top: 14px; }

/* Name cards */
.name-card { position: relative; }
.name-card .card-body { padding: 14px 16px; }
.name-card h3 { margin-bottom: .15em; font-size: 1.15rem; }
.name-card h3 a { color: var(--ink); }
.name-card h3 a:hover { color: var(--green-dark); text-decoration: none; }
.name-meaning { font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.name-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-blue { background: #e6f0fb; color: #1d5fa8; }
.badge-pink { background: #fbeaf0; color: #b3446a; }
.badge-gray { background: #eef0ec; color: #5c6559; }
.badge-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* Trending pet names strip */
.trending-section { padding: 40px 0; }
.trending-head { margin-bottom: 14px; }
.trending-row {
    display: flex; gap: 9px; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.trending-row::-webkit-scrollbar { display: none; }
.trending-card {
    flex: 0 0 auto; width: 88px; display: flex; flex-direction: column; align-items: center;
    padding: 5px 5px 8px; border-radius: 10px; background: var(--bg);
    border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 32, 16, .06);
    text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.trending-card:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(16, 32, 16, .12); text-decoration: none; }
.trending-card-img {
    display: block; width: 100%; height: 66px; border-radius: 7px; overflow: hidden;
    margin-bottom: 5px; background: var(--green-light);
}
.trending-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trending-card-name {
    font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.15;
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trending-card-cat { font-size: 9.5px; color: var(--muted); margin-top: 2px; line-height: 1.1; }

/* Breed cards */
.breed-card { display: block; }
.breed-card .card-body { padding: 16px 18px; }
.breed-card h3 { margin-bottom: .3em; }
.breed-card .breed-meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.breed-card .breed-meta span::before { content: "•"; margin-right: 6px; color: var(--green); }
.breed-card .breed-meta span:first-child::before { content: ""; margin: 0; }
.breed-card .card-text { font-size: .88rem; }

/* Article / product cards */
.thumb { position: relative; padding-top: 58%; background: var(--green-light); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .no-image { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--green-dark); font-weight: 700; font-size: .9rem; }
.article-meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.product-card .card-title a { color: var(--ink); }
.product-cat { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); font-weight: 700; margin-bottom: 4px; }

/* Info band */
.info-band { background: linear-gradient(120deg, var(--green-light), #f2f9f3); }
.info-band-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.info-item h3 { display: flex; align-items: center; gap: 10px; }
.info-item .info-ico { color: var(--green); }

/* Letter browse */
.letter-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 8px; }
.letter-chip {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 0; border-radius: var(--radius); background: var(--card);
    border: 1px solid var(--line); color: var(--ink-soft); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.letter-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green); text-decoration: none; }
.letter-chip b { font-size: 1.05rem; color: var(--green-dark); }
.letter-chip span { font-size: .7rem; color: var(--muted); }

/* Tag links */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    border-radius: 20px; background: var(--card); border: 1px solid var(--line);
    color: var(--ink); font-weight: 600; font-size: .88rem;
    transition: transform .15s ease, border-color .15s ease;
}
.tag-link:hover { transform: translateY(-2px); border-color: var(--green); text-decoration: none; }
.tag-link .tag-count { font-size: .72rem; font-weight: 700; color: var(--green-dark); background: var(--green-light); border-radius: 20px; padding: 1px 7px; }

/* Popular names per pet */
.pet-name-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pet-name-card .pet-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.pet-name-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pet-name-txt b { color: var(--ink); font-size: 1rem; }
.pet-name-txt small { color: var(--muted); font-size: .78rem; }

/* ---------- List pages ---------- */

.list-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; }
.list-toolbar .tb-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: .84rem; font-weight: 600;
    background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
}
.chip:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.chip-clear { color: var(--muted); font-weight: 600; font-size: .84rem; }
.chip-clear:hover { color: var(--green-dark); }
.chip-sm { font-size: .76rem; padding: 3px 9px; }
.chip-count { display: inline-block; background: rgba(0,0,0,.08); border-radius: 10px; padding: 0 6px; margin-left: 3px; font-size: .72rem; font-weight: 700; }
.chip.active .chip-count { background: rgba(255,255,255,.25); }

/* Name database (article) */
.name-db { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 8px 0 24px; }
.name-db-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.name-db-search { flex: 1 1 260px; border: 1px solid var(--line); border-radius: 24px; padding: 9px 16px; font-size: .92rem; font-family: inherit; color: var(--ink); background: #fff; }
.name-db-search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.name-db-count { color: var(--muted); font-size: .86rem; margin: 0; white-space: nowrap; }
.name-db-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.name-db-nav + .name-db-nav { margin-top: 4px; }
.name-db-section { margin: 22px 0 6px; padding-top: 18px; border-top: 1px dashed var(--line); }
.name-db-section h3 { font-size: 1.28rem; margin: 0 0 6px; }
.name-db-blurb { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.name-group { display: flex; flex-wrap: wrap; gap: 7px; }
.name-pill {
    display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 20px;
    padding: 4px 12px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); background: var(--bg);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.name-pill:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-light); text-decoration: none; }

.toolbar-select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: .88rem; font-family: inherit; color: var(--ink-soft); background: var(--card); }

.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

/* ---------- Pagination ---------- */

.pagination { display: flex; justify-content: center; gap: 6px; margin: 36px 0 0; }
.pagination .page-link {
    display: inline-flex; min-width: 38px; height: 38px; padding: 0 10px; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-soft); font-size: .9rem; font-weight: 600;
}
.pagination a.page-link:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.pagination .page-link.current { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Detail pages ---------- */

.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.detail-main, .detail-side { min-width: 0; }
.detail-head { margin-bottom: 22px; }
.detail-head h1 { margin-bottom: .2em; }
.detail-sub { color: var(--muted); font-size: .98rem; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.fact-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact-table th, .fact-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.fact-table th { width: 38%; background: var(--green-light); color: var(--green-dark); font-weight: 700; }
.fact-table td { color: var(--ink-soft); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 5px 12px; border-radius: 20px; background: var(--green-light); color: var(--green-dark); font-size: .84rem; font-weight: 600; }
.tag-list a:hover { background: var(--green); color: #fff; text-decoration: none; }

.pet-link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-link-list a { display: inline-block; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.pet-link-list a:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }

.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 1rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--ink-soft); font-size: .92rem; }
.side-list a:hover { color: var(--green-dark); }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list a { color: var(--green-dark); font-weight: 600; }
.plain-list a:hover { text-decoration: underline; }

.cta-box { margin-top: 44px; background: var(--green-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cta-box h2 { margin: 0 0 6px; font-size: 1.25rem; }
.cta-box p { color: var(--muted); margin: 0 0 16px; }

.article-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.article-body p { font-size: 1rem; }
.article-body h2, .article-body h3 { margin-top: 1.2em; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { margin: 18px 0; padding: 14px 20px; border-left: 4px solid var(--green); background: var(--green-light); border-radius: 0 8px 8px 0; }

/* ---------- Breed detail: quick facts, TOC, headings ---------- */

.breed-hero-wrap { margin-bottom: 26px; }
.breed-hero-img { border-radius: var(--radius); box-shadow: var(--shadow); }

.detail-main > .section-head { margin-top: 44px; }
.detail-main > .article-body { margin-bottom: 44px; }

.qf-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 26px; }
.qf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.qf-item { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.qf-ico {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--green-light);
    color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center;
}
.qf-ico-svg { width: 20px; height: 20px; }
.qf-txt { min-width: 0; }
.qf-txt dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.qf-txt dd { margin: 0; font-size: .92rem; color: var(--ink); font-weight: 600; line-height: 1.35; }

.toc-card { background: var(--green-light); border: 1px solid var(--green); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; }
.toc-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.toc-head svg { width: 18px; height: 18px; }
.toc-card ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 26px; }
.toc-card li { margin-bottom: 7px; break-inside: avoid; }
.toc-card li.toc-sub { padding-left: 14px; }
.toc-card a { color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.toc-card a:hover { color: var(--green-dark); text-decoration: none; }
.toc-card li.toc-sub a { font-size: .85rem; font-weight: 500; }

.article-body h2, .article-body h3, [id] { scroll-margin-top: 18px; }
.article-body h2 {
    display: flex; align-items: center; gap: 10px; padding-bottom: 8px;
    border-bottom: 2px solid var(--green-light); color: var(--dark);
}
.article-body h2::before {
    content: ""; flex: 0 0 auto; width: 5px; height: 1.05em; border-radius: 3px; background: var(--green);
}
.article-body h3 { color: var(--green-dark); }
.article-body figure.article-img {
    display: block; height: auto; margin: 22px 0; overflow: hidden;
    border-radius: 10px; border: 1px solid var(--line); background: var(--card);
}
.article-body figure.article-img img { width: 100%; height: auto; display: block; }
.article-body figure.article-img figcaption {
    padding: 8px 14px; font-size: .85rem; color: var(--muted);
    border-top: 1px solid var(--line); background: var(--green-light);
}
.article-body table {
    width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--card);
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .92rem;
}
.article-body th, .article-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body tr:last-child th, .article-body tr:last-child td { border-bottom: 0; }
.article-body th { background: var(--green-light); color: var(--green-dark); font-weight: 700; }
.article-body td { color: var(--ink-soft); }

@media (max-width: 720px) {
    .qf-grid { grid-template-columns: 1fr; }
    .toc-card ul { columns: 1; }
}

/* ---------- Search ---------- */

.search-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.search-result h3 { margin-bottom: .2em; }
.search-result .sr-type { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); font-weight: 700; margin-bottom: 4px; }
.search-result p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Generator ---------- */

.generator-wrap { max-width: 820px; }
.generator-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.generator-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.generator-controls label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.generator-controls select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .92rem; font-family: inherit; }
.generator-results { margin-top: 22px; }
.generator-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.generator-name { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.generator-name:last-child { border-bottom: 0; }
.generator-name .gn-name { font-size: 1.2rem; font-weight: 700; }
.generator-name .gn-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #c6d2c4; margin-top: 64px; }
.newsletter { background: var(--green); color: #fff; padding: 40px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.newsletter-title { margin-bottom: .2em; color: #fff; }
.newsletter-text { margin: 0; color: #e4f2e5; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { border: none; background: #fff; }
.newsletter-form .btn { background: var(--dark); color: #fff; }
.newsletter-form .btn:hover { background: #000; }

.footer-main { padding: 48px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: #93a38f; font-size: .9rem; max-width: 340px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #c6d2c4; transition: background .2s ease, color .2s ease; }
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-nav h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: #93a38f; font-size: .9rem; }
.footer-nav a:hover { color: var(--green); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .84rem; color: #7d8d79; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: #7d8d79; text-decoration: none; }
.footer-legal a:hover { color: var(--green); text-decoration: none; }

/* ---------- Errors ---------- */

.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 3rem; color: var(--green); }
.error-page p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }

/* ---------- Forms (general) ---------- */

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-group .hint { font-size: .8rem; color: var(--muted); }
.form-control {
    width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
    font-size: .95rem; font-family: inherit; background: #fff; color: var(--ink);
}
.form-control:focus { outline: 2px solid var(--green); border-color: transparent; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; padding: 48px 0; }
    .hero-cards { max-width: 520px; }
    .detail-layout { grid-template-columns: 1fr; }
    .newsletter-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 50; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: 10px 20px; }
    .main-nav a { padding: 12px 10px; }
    .nav-toggle { display: block; }
    .search-toggle { display: block; }
    .search-toggle.hidden { display: none; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .page-hero-inner { flex-direction: column; align-items: flex-start; }
    .page-hero-img { width: 100%; max-width: 100%; height: 190px; }
    .letter-grid { grid-template-columns: repeat(7, 1fr); }
    .info-band-inner { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 460px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .letter-grid { grid-template-columns: repeat(5, 1fr); }
    .top-newsletter { display: none; }
}

/* ============================================================
   Homepage redesign v2
   ============================================================ */

:root {
    --green: #2F8F3A;
    --green-dark: #24702E;
    --green-deep: #1F6B2B;
    --green-light: #E7F3E8;
    --ink: #172033;
    --ink-soft: #3E4657;
    --muted: #5F6368;
    --bg: #FAFAF8;
    --cream: #FBF7EE;
    --card: #ffffff;
    --line: #E8E8E0;
    --dark: #202020;
    --dark-2: #2A2A2A;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 3px rgba(23, 32, 51, .07), 0 4px 14px rgba(23, 32, 51, .05);
    --shadow-lg: 0 12px 34px rgba(23, 32, 51, .13);
}

.hp-ico { width: 20px; height: 20px; color: var(--green); display: inline-block; vertical-align: -4px; }
.chev { width: 14px; height: 14px; color: inherit; opacity: .55; display: inline-block; vertical-align: -2px; }

/* ---------- Header ---------- */

.utility-bar { background: var(--dark); color: #cfd8cd; font-size: .76rem; }
.utility-bar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 27px; gap: 16px; }
.utility-tagline { margin: 0; color: #b8c4b6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.utility-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.utility-country { display: inline-flex; align-items: center; gap: 6px; color: #e4ede3; font-weight: 600; }
.flag { font-size: .95rem; line-height: 1; }
.utility-divider { width: 1px; height: 13px; background: #444; }
.utility-login { display: inline-flex; align-items: center; gap: 6px; color: #cfd8cd; font-weight: 600; }
.utility-login:hover { color: #fff; text-decoration: none; }

.header-main { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 80; }
.header-inner { display: flex; align-items: center; gap: 22px; height: 62px; padding-top: 0; padding-bottom: 0; }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 50%; background: var(--green-light);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1;
}
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 9px; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.main-nav a:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }
.main-nav a.active { color: var(--green-dark); background: var(--green-light); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; padding: 0; }
.header-actions .search-toggle:hover { border-color: var(--green); color: var(--green-dark); }

.btn-pill { border-radius: 999px; }
.btn-generator { padding: 9px 16px; font-size: .88rem; box-shadow: 0 4px 14px rgba(47, 143, 58, .28); white-space: nowrap; }

/* ---------- Home hero ---------- */

.hero { background: linear-gradient(180deg, #FDFBF5 0%, #FAF6EC 100%); padding: 34px 0 0; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding: 26px 0 132px; }
.hero-copy h1 { font-size: clamp(2.35rem, 4.6vw, 3.05rem); line-height: 1.14; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.hero-hi { color: var(--green); }
.hero-desc { color: var(--muted); font-size: 1.02rem; margin: 20px 0 0; line-height: 1.6; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 26px; margin-top: 34px; justify-content: start; }
.hero-stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-ico { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 9px; }
.ico-green { background: #E2F1E3; } .ico-blue { background: #E3EFF7; } .ico-yellow { background: #FAF0D7; } .ico-pink { background: #FCE7EE; }
.hero-stat b { font-size: 1.42rem; color: var(--ink); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.hero-stat small { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-img { object-fit: cover; box-shadow: var(--shadow-lg); }
.hero-dog { width: 78%; border-radius: 44% 56% 50% 46% / 40% 44% 56% 60%; }
.hero-cat { position: absolute; right: 0; bottom: -34px; width: 44%; border-radius: 40% 60% 46% 54% / 50% 42% 58% 50%; border: 7px solid #FAF6EC; }

/* ---------- Generator overlay ---------- */

.gen-overlay { position: relative; z-index: 6; margin-top: -112px; background: #222223; color: #fff; border-radius: 20px; padding: 22px 26px 18px; box-shadow: 0 22px 48px rgba(20, 20, 22, .28); }
.gen-overlay-head { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.gen-overlay-controls { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.gen-field { display: flex; flex-direction: column; gap: 6px; }
.gen-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #a8b4a6; font-weight: 700; }
.gen-wrap { position: relative; display: block; }
.gen-wrap .hp-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #8b9689; pointer-events: none; }
.gen-wrap .chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8b9689; pointer-events: none; }
.gen-select {
    width: 100%; background: #2E2E30; color: #f2f5f1; border: 1px solid #3C3C3E; border-radius: 10px;
    padding: 10px 32px 10px 34px; font-size: .9rem; font-family: inherit; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.gen-select:hover { border-color: #4C4C4E; }
.gen-go { background: var(--green); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: .92rem; font-weight: 700; white-space: nowrap; }
.gen-go:hover { background: var(--green-deep); }
.gen-popular { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; }
.gen-popular-label { color: #9aa; font-weight: 600; }
.gen-popular a { color: #d6dcd4; border: 1px solid #3C3C3E; padding: 3px 11px; border-radius: 999px; }
.gen-popular a:hover { background: #333; color: #fff; text-decoration: none; border-color: var(--green); }

/* ---------- Homepage sections ---------- */

.hp-section { padding: 40px 0; }
.hp-soft { background: #F7F9F6; }
.hp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hp-head-center { justify-content: center; text-align: center; }
.hp-head-t { display: inline-flex; align-items: center; gap: 8px; font-size: 1.42rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.2; }
.hp-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin: 0; }
.hp-more { font-size: .88rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.hp-more:hover { text-decoration: underline; }
.hp-more.hp-more-center { margin: 22px auto 0; display: inline-block; }

.hp-row { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hp-row::-webkit-scrollbar { display: none; }
.hp-row > a, .hp-row > div { flex: 0 0 auto; scroll-snap-align: start; }

/* Explore by pet */
.explore-card { width: 114px; min-width: 114px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px 11px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.explore-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-lg); text-decoration: none; }
.explore-img { width: 82px; height: 82px; border-radius: 50%; overflow: hidden; background: var(--bg); display: flex; }
.explore-img-el { width: 100%; height: 100%; object-fit: cover; }
.explore-name { font-size: .88rem; font-weight: 700; color: var(--ink); }
.explore-count { font-size: .7rem; color: var(--green); font-weight: 700; }
.explore-row { justify-content: space-between; }
.explore-row > a { flex: 0 1 132px; min-width: 112px; }

.hp-more-btn { text-align: center; margin-top: 22px; }

/* AI generator banner */
.ai-banner { display: grid; grid-template-columns: 168px 1fr auto; gap: 26px; align-items: center; background: linear-gradient(115deg, #FDFBF4 0%, #F1F7F0 100%); border: 1px solid var(--line); border-radius: 22px; padding: 26px 32px; position: relative; overflow: hidden; }
.ai-dog { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
.ai-copy h2 { font-size: 1.66rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin: 0; line-height: 1.16; }
.ai-accent { color: var(--green); }
.ai-copy p { color: var(--muted); margin: 10px 0 0; font-size: .95rem; line-height: 1.55; }
.ai-steps { margin: 0 0 14px; padding-left: 19px; color: var(--muted); font-size: .86rem; }
.ai-steps li { margin-bottom: 5px; }

/* Popular breeds */
.chip-card { width: 98px; min-width: 98px; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 10px 8px 9px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.chip-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-lg); text-decoration: none; }
.chip-card-img { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: var(--bg); display: flex; }
.chip-card-el { width: 100%; height: 100%; object-fit: cover; }
.chip-card-name { font-size: .78rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.chip-card-cat { font-size: .64rem; color: var(--muted); }

/* Popular pet names */
.pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pop-card { border-radius: 18px; padding: 20px 18px; display: grid; grid-template-columns: 1fr 84px; gap: 14px; align-items: center; border: 1px solid rgba(23, 32, 51, .06); transition: transform .18s ease, box-shadow .18s ease; }
.pop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tone-green { background: #EAF4E8; } .tone-pink { background: #FBEFF2; } .tone-cream { background: #FBF3E2; } .tone-peach { background: #FCEADF; }
.pop-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.pop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pop-list li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.pop-rank { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--green); font-weight: 800; font-size: .7rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(23, 32, 51, .12); flex: 0 0 auto; }
.pop-list a { color: var(--ink); font-weight: 600; }
.pop-list a:hover { color: var(--green); text-decoration: none; }
.pop-more { display: inline-block; margin-top: 13px; font-size: .83rem; font-weight: 700; color: var(--green); }
.pop-more:hover { text-decoration: underline; }
.pop-card-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow); }

/* Lifestyle guides */
.guide-card { width: 196px; min-width: 196px; background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; display: block; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green); text-decoration: none; }
.guide-img { display: flex; height: 108px; overflow: hidden; background: var(--bg); }
.guide-img-el { width: 100%; height: 100%; object-fit: cover; }
.guide-body { display: block; padding: 11px 12px 13px; }
.guide-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .87rem; font-weight: 700; color: var(--ink); line-height: 1.3; min-height: 2.3em; }
.guide-sub { display: block; margin-top: 5px; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Products */
.prod-card { width: 196px; min-width: 196px; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 20px 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green); text-decoration: none; }
.prod-img { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.prod-emoji { font-size: 1.7rem; line-height: 1; }
.prod-card:nth-child(1) .prod-img { background: #FBE9D9; } .prod-card:nth-child(2) .prod-img { background: #E9F3E6; }
.prod-card:nth-child(3) .prod-img { background: #FDE8F0; } .prod-card:nth-child(4) .prod-img { background: #E8F1F9; }
.prod-card:nth-child(5) .prod-img { background: #F6F0E3; } .prod-card:nth-child(6) .prod-img { background: #EDEAF7; }
.prod-name { font-size: .93rem; font-weight: 700; color: var(--ink); }
.prod-sub { font-size: .72rem; color: var(--muted); }

/* Articles */
.article-card { width: 256px; min-width: 256px; background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green); text-decoration: none; }
.article-img { display: flex; height: 132px; overflow: hidden; background: var(--bg); }
.article-img-el { width: 100%; height: 100%; object-fit: cover; }
.article-body { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px 14px; flex: 1; }
.article-badge { align-self: flex-start; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--green-dark); background: var(--green-light); padding: 3px 9px; border-radius: 999px; }
.article-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.35; min-height: 2.45em; }
.article-meta { font-size: .74rem; color: var(--muted); margin-top: auto; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #c6d2c4; margin-top: 48px; }
.newsletter-banner { padding: 34px 0 0; background: transparent; }
.newsletter-inner { background: var(--green); border-radius: 22px; padding: 34px 38px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; box-shadow: 0 14px 34px rgba(47, 143, 58, .28); }
.newsletter-title { margin: 0 0 .2em; color: #fff; font-size: 1.3rem; }
.newsletter-text { margin: 0; color: #e6f3e7; font-size: .92rem; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; padding: 12px 15px; font-size: .95rem; font-family: inherit; background: #fff; color: var(--ink); }
.newsletter-form input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.newsletter-form .btn { background: var(--dark); color: #fff; border-radius: 999px; }
.newsletter-form .btn:hover { background: #000; }

.footer-main { background: var(--dark); padding: 48px 0 38px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 34px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: #9aa59a; font-size: .9rem; max-width: 300px; margin: 14px 0 0; line-height: 1.6; }
.footer-nav h3 { color: #fff; font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 15px; font-weight: 800; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-nav a { color: #9aa; font-size: .88rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; padding-left: 3px; transition: padding-left .15s ease; }
.footer-bottom { border-top: 1px solid #333; padding: 17px 0; font-size: .8rem; color: #7d8d79; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-legal a { color: #7d8d79; }
.footer-legal a:hover { color: #fff; }
.footer-bottom p { margin: 0; }

/* ---------- Homepage responsive ---------- */

@media (max-width: 1080px) {
    .btn-generator { display: none; }
    .gen-overlay-controls { grid-template-columns: repeat(4, 1fr); }
    .gen-go { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; padding: 24px 0 110px; }
    .hero-visual { justify-content: center; margin-top: 10px; }
    .hero-dog { width: 62%; }
    .hero-cat { right: 8%; bottom: -28px; }
    .hero-stats { grid-template-columns: repeat(2, auto); gap: 20px 34px; }
    .gen-overlay { margin-top: -74px; }
    .gen-overlay-controls { grid-template-columns: repeat(2, 1fr); }
    .gen-go { grid-column: auto; }
    .ai-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .ai-dog { width: 150px; height: 150px; }
    .ai-steps { text-align: left; display: inline-block; }
    .pop-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .utility-tagline { max-width: 60%; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 50; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: 10px 20px; }
    .main-nav a { padding: 12px 10px; }
    .nav-toggle { display: block; }
    .hero-copy h1 { font-size: clamp(2.05rem, 8vw, 2.5rem); }
    .hero-dog { width: 74%; }
    .hero-cat { right: 2%; }
    .hero-stats { gap: 18px 26px; }
    .hero-stat b { font-size: 1.25rem; }
    .gen-overlay { padding: 18px 20px 16px; }
    .gen-overlay-controls { grid-template-columns: 1fr 1fr; }
    .explore-card { width: 100px; min-width: 100px; }
    .explore-img { width: 72px; height: 72px; }
    .pop-card { grid-template-columns: 1fr 70px; }
    .pop-card-img { width: 70px; height: 70px; }
    .hp-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hp-head-center { align-items: center; }
    .newsletter-form { flex-direction: column; width: 100%; max-width: 420px; }
    .newsletter-inner { padding: 28px 24px; }
}

@media (max-width: 460px) {
    .utility-tagline { display: none; }
    .gen-overlay-controls { grid-template-columns: 1fr; }
    .gen-go { grid-column: auto; }
    .pop-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cat { bottom: -20px; width: 40%; }
    .ai-banner { padding: 22px 20px; }
}

.header-actions .search-toggle.hidden { display: none; }

.nav-chev { width: 14px; height: 14px; color: inherit; opacity: .55; flex: 0 0 auto; display: inline-block; vertical-align: -2px; }
.gen-wrap .nav-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8b9689; pointer-events: none; }

/* ---------- Mobile hero fix ---------- */

@media (max-width: 960px) and (min-width: 721px) {
    .hero-inner { padding: 20px 0 30px; gap: 24px; }
    .hero-visual { margin-top: 8px; }
    .hero-dog { width: 58%; max-width: 400px; border-radius: 30px; }
    .hero-cat { right: 8%; bottom: -24px; width: 38%; }
    .gen-overlay { margin-top: -24px; }
    .hero-stats { gap: 22px 30px; }
}

@media (max-width: 720px) {
    .hero { padding-top: 14px; }
    .hero-inner { display: flex; flex-direction: column; align-items: stretch; padding: 8px 0 24px; gap: 12px; }
    .hero-copy { width: 100%; }
    .hero-copy h1 { font-size: clamp(1.6rem, 7vw, 2rem); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
    .hero-desc { font-size: .88rem; margin-top: 10px; line-height: 1.5; }
    .hero-stats { display: flex; justify-content: space-between; gap: 6px; margin-top: 16px; }
    .hero-stat { flex-direction: column; align-items: center; gap: 1px; background: none; border: 0; box-shadow: none; padding: 0; flex: 1 1 0; text-align: center; }
    .stat-ico { width: 26px; height: 26px; font-size: .78rem; margin-bottom: 2px; }
    .hero-stat b { font-size: .98rem; line-height: 1.1; }
    .hero-stat small { font-size: .64rem; line-height: 1.15; margin-top: 0; }
    .hero-visual { position: relative; margin-top: 0; }
    .hero-dog { width: 100%; max-width: 420px; margin: 0 auto; height: 132px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-lg); }
    .hero-cat { position: absolute; bottom: -12px; right: 5%; width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--cream); object-fit: cover; box-shadow: var(--shadow); }
    .gen-overlay { margin-top: 18px; padding: 13px 12px 12px; }
    .gen-overlay-head { font-size: 1rem; margin-bottom: 9px; }
    .gen-overlay-controls { grid-template-columns: 1fr 1fr; gap: 8px; }
    .gen-field { gap: 4px; }
    .gen-label { font-size: .62rem; letter-spacing: .08em; }
    .gen-select { padding: 8px 24px 8px 28px; font-size: .82rem; border-radius: 8px; }
    .gen-go { grid-column: 1 / -1; padding: 11px; font-size: .9rem; }
    .gen-popular { margin-top: 9px; gap: 6px; font-size: .78rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .gen-popular::-webkit-scrollbar { display: none; }
    .gen-popular a { padding: 2px 9px; white-space: nowrap; }
}

@media (max-width: 460px) {
    .hero-copy h1 { font-size: clamp(1.5rem, 7vw, 1.8rem); }
    .hero-dog { height: 118px; }
    .hero-cat { width: 56px; height: 56px; right: 4%; bottom: -10px; }
    .hero-stat small { font-size: .6rem; }
    .gen-overlay { margin-top: 14px; }
    .gen-select { padding-left: 28px; }
    .gen-overlay-controls { grid-template-columns: 1fr 1fr; }
    .gen-go { grid-column: 1 / -1; }
}

/* ============================================================
   Mobile app redesign (<=768px) � base hooks first
   ============================================================ */

.logo-block { display: inline-flex; flex-direction: column; justify-content: center; }
.logo-tagline { display: none; }
.hero-deco { display: none; }
.mobile-nav { display: none; }
.footer-title { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: default; }
.footer-chev { display: none; }
.newsletter-media { display: none; }
.newsletter-note { display: none; }

/* ============================================================
   Mobile app redesign (<=768px) — premium app layout
   ============================================================ */

.hp-viewall { display: none; }
.article-hero { margin-bottom: 24px; }
.product-hero { margin-bottom: 22px; }

@media (max-width: 768px) {

    html, body { overflow-x: hidden; }
    body { background: #fff; padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

    .container { padding-left: 16px; padding-right: 16px; }

    /* ---------- Header (72px app bar) ---------- */
    .utility-bar { display: none; }
    .pet-nav { display: none; }
    .header-main { border-bottom: 1px solid #E8E8E8; }
    .header-inner { height: 72px; gap: 8px; }
    .nav-toggle {
        display: inline-flex; flex: 0 0 auto; width: 42px; height: 42px; padding: 0;
        flex-direction: column; align-items: center; justify-content: center;
        background: #fff; border: 1px solid #E8E8E8; border-radius: 50%;
    }
    .nav-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ink); margin: 2px 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .logo { flex: 1 1 auto; min-width: 0; gap: 8px; }
    .logo-mark { flex: 0 0 auto; width: 32px; height: 32px; font-size: .95rem; }
    .logo-block { min-width: 0; }
    .logo-text { font-size: 1.28rem; line-height: 1; white-space: nowrap; }
    .logo-tagline { display: block; max-width: 112px; font-size: .58rem; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 90; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; padding: 8px 16px 14px; }
    .main-nav a { padding: 12px 10px; font-size: .95rem; }
    .main-nav a .nav-chev { margin-left: auto; }

    .header-actions { flex: 0 0 auto; gap: 8px; }
    .header-actions .search-toggle { display: inline-flex; width: 42px; height: 42px; }
    .btn-generator { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 15px; gap: 5px; font-size: .78rem; }
    .search-bar input { height: 46px; }

    /* ---------- Hero (two-side composition) ---------- */
    .hero { position: relative; overflow: visible; padding: 0; }
    .hero::after { display: none; }
    .hero-inner { position: relative; display: block; height: 330px; padding: 14px 16px 0; }

    .hero-copy { position: relative; z-index: 3; width: 100%; }
    .hero-copy h1 { font-size: clamp(1.8rem, 8.5vw, 2.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
    .hero-hi { color: var(--green); }
    .hero-copy .hero-desc { font-size: .84rem; line-height: 1.45; color: #333; margin: 12px 0 0; max-width: 250px; }

    .hero-visual { position: absolute; right: -4px; bottom: -24px; z-index: 1; width: 50%; height: 200px; }
    .hero-visual picture { display: block; }
    .hero-img { box-shadow: none; }
    .hero-dog { position: absolute; right: 0; bottom: 0; width: 100%; height: auto; border-radius: 44% 50% 40% 48% / 42% 44% 50% 46%; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), #000 78%); mask-image: linear-gradient(to top, rgba(0,0,0,.9), #000 78%); }
    .hero-cat { position: absolute; left: 4%; bottom: 8px; z-index: 2; width: 44%; height: auto; border-radius: 46% 42% 48% 44% / 44% 48% 42% 46%; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 45%, #000 62%, transparent 98%); mask-image: radial-gradient(ellipse 100% 100% at 50% 45%, #000 62%, transparent 98%); }

    .hero-deco { display: block; position: absolute; inset: 0; pointer-events: none; }
    .deco { position: absolute; color: var(--green); opacity: .3; line-height: 1; }
    .deco svg { width: 14px; height: 14px; }
    .deco-paw { top: 128px; left: 62%; font-size: .95rem; }
    .deco-heart { top: 22px; right: 6%; opacity: .25; }
    .deco-sparkle { top: 92px; right: 42%; font-size: .8rem; }
    .deco-paw2 { bottom: 40px; left: 2%; font-size: .7rem; opacity: .22; }

    .hero-stats { position: absolute; left: 0; right: 0; bottom: -46px; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
    .hero-stat { align-items: center; text-align: center; background: #fff; border: 1px solid #E8E8E8; border-radius: 14px; padding: 9px 4px 8px; box-shadow: 0 2px 8px rgba(23,32,51,.05); }
    .stat-ico { width: 24px; height: 24px; font-size: .7rem; margin-bottom: 3px; }
    .hero-stat b { font-size: .95rem; line-height: 1.1; }
    .hero-stat small { font-size: .58rem; line-height: 1.15; margin-top: 1px; }

    /* ---------- Dark Name Generator ---------- */
    .gen-overlay { margin-top: 52px; padding: 16px; border-radius: 16px; background: #202020; box-shadow: 0 18px 40px rgba(20,20,22,.22); }
    .gen-overlay-head { font-size: 1.22rem; margin-bottom: 12px; }
    .gen-overlay-controls { grid-template-columns: 1fr 1fr; gap: 10px 8px; }
    .gen-field { gap: 0; }
    .gen-label { display: none; }
    .gen-wrap .hp-ico { color: var(--green); }
    .gen-wrap .nav-chev { color: #9aa; }
    .gen-select { height: 48px; padding: 0 30px 0 34px; background: #fff; color: #444; border: 1px solid #E8E8E8; border-radius: 9px; font-size: .82rem; }
    .gen-select:focus { outline: 2px solid var(--green); border-color: transparent; }
    .gen-go { grid-column: 1 / -1; height: 50px; padding: 0; border-radius: 10px; font-size: .92rem; }
    .gen-popular { flex-wrap: nowrap; overflow-x: auto; gap: 7px; margin-top: 13px; padding-bottom: 2px; scrollbar-width: none; }
    .gen-popular::-webkit-scrollbar { display: none; }
    .gen-popular-label { flex: 0 0 auto; font-size: .72rem; color: #9aa; }
    .gen-popular a { flex: 0 0 auto; display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: #2E2E30; border-color: #3C3C3E; color: #D6DCD4; font-size: .72rem; }

    /* ---------- Sections ---------- */
    .hp-section { padding: 28px 0 30px; }
    .hp-soft { background: transparent; }
    .hp-head { margin-bottom: 12px; gap: 10px; }
    .hp-head-center { justify-content: space-between; text-align: left; align-items: center; }
    .hp-head-t { font-size: 1.18rem; }
    .hp-head h2 { font-size: 1.18rem; }
    .hp-more { font-size: .8rem; }
    .hp-viewall { display: inline-flex; align-items: center; gap: 3px; }
    .explore-more { display: none; }

    /* ---------- Carousels ---------- */
    .hp-row { margin: 0 -16px; padding: 2px 16px 8px; gap: 10px; scroll-snap-type: x mandatory; }
    .hp-row > a, .hp-row > div { scroll-snap-align: start; }
    .explore-row { justify-content: flex-start; }
    .explore-card { width: 110px; min-width: 110px; gap: 0; padding: 0 0 10px; border-radius: 14px; background: #F6F8F4; border-color: #EFEFEF; }
    .explore-img { width: 100%; height: 94px; border-radius: 14px 14px 0 0; background: #EDF2EA; }
    .explore-name { font-size: .84rem; margin-top: 8px; }
    .explore-count { font-size: .62rem; }

    .chip-card { width: 105px; min-width: 105px; gap: 0; padding: 0 0 9px; border-radius: 14px; }
    .chip-card-img { width: 100%; height: 100px; border-radius: 14px 14px 0 0; background: #F0F3EE; }
    .chip-card-name { font-size: .82rem; margin-top: 8px; }
    .chip-card-cat { font-size: .62rem; margin-top: 2px; }

    .pop-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .pop-grid::-webkit-scrollbar { display: none; }
    .pop-card { flex: 0 0 auto; width: 240px; grid-template-columns: 1fr 64px; gap: 10px; padding: 16px 14px; border-radius: 18px; scroll-snap-align: start; }
    .pop-card h3 { font-size: .95rem; margin-bottom: 9px; }
    .pop-list { gap: 5px; }
    .pop-list li { gap: 7px; font-size: .8rem; }
    .pop-rank { width: 19px; height: 19px; font-size: .62rem; }
    .pop-more { margin-top: 10px; font-size: .76rem; }
    .pop-card-img { width: 62px; height: 62px; }

    .guide-card { width: 210px; min-width: 210px; }
    .guide-img { height: 106px; }
    .guide-title { font-size: .85rem; }
    .guide-sub { font-size: .7rem; }

    .prod-card { width: 138px; min-width: 138px; padding: 16px 10px 14px; gap: 6px; background: #F6F6F4; border-color: #EFEFEF; }
    .prod-img { width: 52px; height: 52px; }
    .prod-emoji { font-size: 1.4rem; }
    .prod-name { font-size: .85rem; }
    .prod-sub { font-size: .68rem; }

    .article-card { width: 270px; min-width: 270px; }
    .article-img { height: 122px; }
    .article-badge { font-size: .6rem; }
    .article-title { font-size: .88rem; }
    .article-meta { font-size: .72rem; }

    /* ---------- AI banner ---------- */
    .ai-banner { grid-template-columns: 84px 1fr; grid-template-rows: auto auto; gap: 12px 14px; padding: 18px 16px; border-radius: 16px; align-items: center; text-align: left; justify-items: stretch; }
    .ai-dog { grid-column: 1; grid-row: 1; width: 84px; height: 84px; border-width: 3px; }
    .ai-copy { grid-column: 2; grid-row: 1; }
    .ai-copy h2 { font-size: 1.28rem; line-height: 1.1; }
    .ai-copy p { font-size: .78rem; line-height: 1.45; margin: 6px 0 0; }
    .ai-actions { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 10px; }
    .ai-steps { list-style: none; counter-reset: aistep; display: grid; gap: 5px; flex: 1; margin: 0; padding: 10px 12px; background: #fff; border: 1px solid #EFEFEF; border-radius: 12px; }
    .ai-steps li { counter-increment: aistep; display: flex; align-items: center; gap: 8px; margin: 0; font-size: .7rem; color: var(--muted); }
    .ai-steps li::before { content: counter(aistep); flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; background: var(--green); color: #fff; font-size: .6rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
    .ai-actions .btn { flex: 0 0 auto; align-self: center; padding: 12px 16px; border-radius: 10px; font-size: .8rem; white-space: nowrap; }

    /* ---------- Newsletter ---------- */
    .newsletter-banner { padding: 6px 0 0; }
    .newsletter-inner { grid-template-columns: 84px 1fr; grid-template-rows: auto auto auto; gap: 12px 14px; padding: 20px 16px; background: #EAF4E8; border-radius: 16px; box-shadow: none; align-items: center; text-align: left; justify-items: stretch; }
    .newsletter-media { display: block; grid-column: 1; grid-row: 1; }
    .newsletter-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }
    .newsletter-copy { grid-column: 2; grid-row: 1; }
    .newsletter-title { font-size: 1rem; color: var(--dark); }
    .newsletter-text { font-size: .74rem; line-height: 1.4; color: #4A5D50; margin: 3px 0 0; }
    .newsletter-form { grid-column: 1 / -1; grid-row: 2; flex-direction: column; gap: 8px; width: 100%; max-width: none; }
    .newsletter-form input { flex: none; width: 100%; height: 48px; padding: 0 15px; border-radius: 12px; font-size: .9rem; border-color: #D6E3D4; }
    .newsletter-form .btn { flex: none; width: 100%; height: 48px; border-radius: 12px; font-size: .9rem; background: var(--green); color: #fff; }
    .newsletter-form .btn:hover { background: var(--green-deep); }
    .newsletter-note { display: block; grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: .66rem; color: #5F7363; text-align: center; }

    /* ---------- Footer accordion ---------- */
    .footer-main { padding: 28px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-brand { padding-bottom: 18px; border-bottom: 1px solid #333; }
    .footer-brand .logo { display: inline-flex; }
    .footer-brand p { font-size: .84rem; }
    .footer-social { margin-top: 14px; }
    .footer-social a { width: 40px; height: 40px; }
    .footer-social svg { width: 17px; height: 17px; }
    .footer-nav { border-bottom: 1px solid #333; }
    .footer-nav h3 { margin: 0; }
    .footer-title { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 0; font-size: .8rem; letter-spacing: .06em; color: #fff; cursor: pointer; }
    .footer-title:hover { color: var(--green); }
    .footer-chev { display: inline-block; width: 15px; height: 15px; color: #9aa59a; transition: transform .2s ease; }
    .footer-nav.open .footer-chev { transform: rotate(180deg); }
    .footer-nav .footer-list { display: none; }
    .footer-nav.open .footer-list { display: grid; gap: 9px; padding: 2px 0 16px; }
    .footer-bottom { padding: 14px 0; }
    .footer-bottom-inner { justify-content: center; text-align: center; }

    /* ---------- Fixed bottom navigation ---------- */
    .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; height: 70px; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid #E8E8E8; border-radius: 24px 24px 0 0; box-shadow: 0 -6px 20px rgba(23,32,51,.08); }
    .mobile-nav-item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8A8F98; font-size: .62rem; font-weight: 600; }
    .mobile-nav-item svg { width: 22px; height: 22px; }
    .mobile-nav-item:hover { color: var(--green); text-decoration: none; }
    .mobile-nav-item.active { color: var(--green); }
    .mobile-nav-item.active svg { stroke-width: 2.4; }
}

/* ============================================================
   Mobile app redesign — internal pages (<=768px) base hooks
   ============================================================ */

.search-tabs, .breed-card-img, .gen-popular-link { display: none; }

@media (max-width: 768px) {

    /* ---------- Page hero (compact app bar) ---------- */
    .page-hero { padding: 20px 0 22px; }
    .page-hero-inner { display: block; gap: 0; }
    .page-hero h1 { font-size: clamp(1.5rem, 7vw, 1.85rem); line-height: 1.15; letter-spacing: -.01em; }
    .page-hero p { font-size: .87rem; line-height: 1.5; max-width: none; }
    .page-hero .page-hero-meta { margin-top: 8px; font-size: .72rem; line-height: 1.5; }
    .page-hero-img { display: none; }
    .page-hero .breadcrumbs { margin-top: 0; margin-bottom: 8px; font-size: .72rem; }

    .section { padding: 22px 0 30px; }

    /* ---------- Grids ---------- */
    .grid { gap: 12px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .name-grid, .article-grid { grid-template-columns: 1fr; }

    /* ---------- Cards ---------- */
    .card { border-radius: 14px; }
    .card:hover { transform: none; box-shadow: var(--shadow); }
    .pet-card { padding: 16px 10px; }
    .pet-card .pet-icon { width: 46px; height: 46px; margin-bottom: 8px; font-size: 1.25rem; }
    .pet-card h3 { font-size: .92rem; margin-bottom: 2px; }
    .pet-card .pet-counts { margin-top: 2px; font-size: .72rem; }
    .pet-card .btn { display: none; }
    .name-card .card-body { padding: 12px 14px; }
    .name-card h3 { font-size: 1rem; }
    .name-card .name-meaning { font-size: .82rem; line-height: 1.45; }
    .name-badges { flex-wrap: wrap; }
    .breed-card .card-body { padding: 12px 14px; }
    .breed-card h3 { font-size: .95rem; }
    .breed-card .breed-meta { font-size: .72rem; gap: 8px; }
    .breed-card .card-text { font-size: .8rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .product-card .card-body { padding: 12px 14px; }
    .product-card .product-cat { font-size: .64rem; letter-spacing: .05em; }
    .product-card h3 { font-size: .9rem; }
    .product-card .card-text { font-size: .78rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .article-grid .thumb { padding-top: 0; height: 170px; }
    .article-grid .article-meta { font-size: .7rem; }
    .article-grid h3 { font-size: .98rem; line-height: 1.35; }
    .article-grid .card-text { font-size: .84rem; line-height: 1.5; }

    /* ---------- Breed card images (2-col, image block) ---------- */
    .breed-card .breed-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #EDF2EA; }
    .breed-card-img { display: block; width: 100%; }
    .breed-card-el { width: 100%; height: 100%; object-fit: cover; }
    .breed-card-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #EDF2EA, #DDE7D9); color: var(--green-dark); font-size: 1.9rem; font-weight: 800; }

    /* ---------- Filters / chips (scrollable rows) ---------- */
    .list-toolbar { padding: 12px 0; border: 0; border-radius: 0; background: transparent; margin-bottom: 10px; gap: 8px 12px; box-shadow: none; }
    .list-toolbar .tb-label { font-size: .68rem; letter-spacing: .06em; }
    .chip-group { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .chip-group::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: .78rem; white-space: nowrap; }
    .toolbar-select { height: 40px; font-size: .84rem; padding: 0 10px; flex: 1 1 150px; min-width: 0; }
    .result-count { font-size: .82rem; margin-bottom: 14px; }

    /* ---------- Pagination (scrollable) ---------- */
    .pagination { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 8px; margin: 24px 0 0; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .pagination::-webkit-scrollbar { display: none; }
    .pagination .page-link { flex: 0 0 auto; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: .86rem; }

    /* ---------- In-page search box ---------- */
    .page-search { margin-bottom: 16px; }
    .page-search .search-form { max-width: none; }
    .page-search .search-form input { flex: 1; height: 50px; padding: 0 16px; border-radius: 12px; font-size: .92rem; }
    .page-search .search-form .btn { height: 50px; padding: 0 18px; border-radius: 12px; font-size: .86rem; }

    /* ---------- Search page (tabs + cards) ---------- */
    .search-page .search-form { margin-bottom: 20px; }
    .search-page .search-form input { flex: 1; height: 50px; padding: 0 16px; border-radius: 12px; font-size: .92rem; }
    .search-page .search-form .btn { height: 50px; padding: 0 20px; border-radius: 12px; font-size: .9rem; }
    .search-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-bottom: 18px; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .search-tabs::-webkit-scrollbar { display: none; }
    .search-tab { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; }
    .search-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
    .search-result { padding: 14px 16px; border-radius: 14px; margin-bottom: 10px; }
    .search-result h3 { font-size: .95rem; }
    .search-result p { font-size: .84rem; line-height: 1.5; }

    /* ---------- Detail layout (single column) ---------- */
    .detail-layout { display: block; }
    .detail-main { min-width: 0; }
    .detail-side { display: grid; grid-template-columns: 1fr; gap: 14px; min-width: 0; }
    .detail-main > .section-head { margin-top: 30px; }
    .detail-main h1 { font-size: clamp(1.4rem, 6.5vw, 1.8rem); line-height: 1.2; }
    .detail-head { margin-bottom: 14px; }
    .detail-sub { font-size: .86rem; line-height: 1.5; }
    .detail-actions { gap: 10px; }
    .detail-actions .btn { flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 14px; border-radius: 10px; font-size: .84rem; }

    /* ---------- Side cards (related = horizontal chips) ---------- */
    .side-card { padding: 14px 16px; border-radius: 14px; margin-bottom: 0; box-shadow: none; }
    .side-card h3 { font-size: .9rem; margin-bottom: 10px; }
    .side-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .side-list::-webkit-scrollbar { display: none; }
    .side-list li { flex: 0 0 auto; padding: 0; border: 0; }
    .side-list a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--green-light); color: var(--green-dark); font-size: .82rem; font-weight: 600; white-space: nowrap; }
    .side-list a:hover { color: var(--green-dark); }

    /* ---------- Fact table (stacked spec cards) ---------- */
    .fact-table, .fact-table tbody { display: block; border: 0; border-radius: 0; background: transparent; }
    .fact-table tr { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
    .fact-table tr:last-child { margin-bottom: 0; }
    .fact-table th, .fact-table td { display: block; width: auto; border: 0; padding: 0; }
    .fact-table th { background: none; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 2px; }
    .fact-table td { color: var(--ink-soft); font-size: .94rem; font-weight: 600; }
    .pet-link-list a { padding: 7px 13px; font-size: .82rem; }

    /* ---------- Tag lists (horizontal swipe) ---------- */
    .tag-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .tag-list::-webkit-scrollbar { display: none; }
    .tag-list a { flex: 0 0 auto; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; font-size: .82rem; white-space: nowrap; }

    /* ---------- Quick facts (2-col tiles) ---------- */
    .qf-card { padding: 16px; border-radius: 16px; margin-bottom: 20px; }
    .qf-card .section-head { margin-bottom: 14px; }
    .qf-card .section-kicker { font-size: .68rem; }
    .qf-card h2 { font-size: 1.05rem; line-height: 1.3; }
    .qf-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .qf-item { flex-direction: column; gap: 7px; padding: 10px 12px; border-radius: 12px; }
    .qf-ico { width: 34px; height: 34px; border-radius: 9px; }
    .qf-ico-svg { width: 17px; height: 17px; }
    .qf-txt dt { font-size: .62rem; }
    .qf-txt dd { font-size: .82rem; line-height: 1.35; }

    /* ---------- TOC (collapsible) ---------- */
    .toc-card { padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; }
    .toc-card.toc-collapse { padding: 0; background: #fff; border-color: var(--line); }
    .toc-card.toc-collapse .toc-head { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 14px 16px; cursor: pointer; }
    .toc-card.toc-collapse .toc-head::after { content: "+"; font-size: 1.25rem; color: var(--green-dark); line-height: 1; font-weight: 800; }
    .toc-card.toc-collapse.open .toc-head::after { content: "\2212"; }
    .toc-card.toc-collapse ul { display: none; }
    .toc-card.toc-collapse.open ul { display: block; columns: 1; margin: 0; padding: 0 16px 14px; }
    .toc-card li { margin-bottom: 8px; }
    .toc-card a { font-size: .86rem; }

    /* ---------- Article body ---------- */
    .article-body { padding: 20px 18px; border-radius: 16px; box-shadow: none; }
    .article-body p { font-size: 1.02rem; line-height: 1.7; }
    .article-body h2 { font-size: 1.15rem; }
    .article-body h3 { font-size: 1rem; }
    .article-body ul, .article-body ol { padding-left: 18px; }
    .article-body table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .article-body tbody { display: table; width: 100%; }
    .article-body img { max-width: 100%; height: auto; border-radius: 12px; }
    .article-body blockquote { margin: 16px 0; padding: 12px 14px; }
    .page-article .article-body h2, .page-article .article-body h3, [id] { scroll-margin-top: 92px; }

    /* ---------- Full-bleed hero images ---------- */
    .article-hero { margin: 0 -16px 22px; }
    .article-hero img { width: 100%; height: auto; border-radius: 0 0 16px 16px; }
    .product-hero { margin: 0 -16px 22px; }
    .product-hero img { width: 100%; height: auto; border-radius: 0 0 16px 16px; }

    /* ---------- Breed hero image (full-bleed) ---------- */
    .breed-hero-wrap { margin: 0 -16px 22px; }
    .breed-hero-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 0 16px 16px; box-shadow: none; }

    /* ---------- Name generator (dark panel) ---------- */
    .generator-panel { padding: 18px 16px; border-radius: 16px; background: #202020; border-color: #2E2E30; box-shadow: 0 18px 40px rgba(20,20,22,.22); }
    .generator-controls { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; margin-bottom: 14px; }
    .generator-controls label { color: #9aa; font-size: .62rem; letter-spacing: .07em; margin-bottom: 5px; }
    .generator-controls select { height: 48px; padding: 0 10px; background: #fff; color: #444; border-color: #E8E8E8; border-radius: 9px; font-size: .86rem; }
    .generator-controls select:focus { outline: 2px solid var(--green); border-color: transparent; }
    .generator-results { margin-top: 14px; }
    .generator-empty { color: #9aa; padding: 20px 0; font-size: .86rem; }
    .generator-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; border: 0; border-radius: 12px; }
    .generator-name:last-child { margin-bottom: 0; }
    .generator-name .gn-name { font-size: 1.05rem; }
    .generator-name .gn-meta { font-size: .74rem; }
    .gen-popular-link { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; margin-top: 14px; border: 1px solid #3C3C3E; border-radius: 10px; color: #D6DCD4; font-size: .84rem; font-weight: 600; }
    .gen-popular-link:hover { border-color: var(--green); color: #fff; text-decoration: none; }
}

@media (max-width: 360px) {
    .qf-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { gap: 10px; }
    .chip { font-size: .76rem; padding: 0 10px; }
    .generator-controls select { font-size: .8rem; }
    .header-inner { gap: 6px; }
    .nav-toggle, .header-actions .search-toggle { width: 38px; height: 38px; }
    .btn-generator { padding: 0 11px; font-size: .74rem; }
    .logo-text { font-size: 1.15rem; }
    .logo-tagline { display: none; }
    .hero-inner { height: 322px; }
    .hero-copy h1 { font-size: 1.85rem; }
    .hero-stats { bottom: -42px; }
    .gen-overlay { margin-top: 48px; }
    .gen-select { font-size: .78rem; padding: 0 26px 0 30px; }
    .prod-card { width: 132px; min-width: 132px; }
}

/* ============================================================
   Desktop hero redesign (min-width: 769px only)
   Mobile (<=768px) layout is NOT touched.
   ============================================================ */
@media (min-width: 769px) {

    .hero { padding: 64px 0 0; }

    .hero .container { max-width: 1450px; padding-left: 50px; padding-right: 50px; }
    .hero .hero-inner { padding: 0; }

    .hero::after {
        right: -60px; top: -60px; width: 460px; height: 460px;
        background: radial-gradient(circle, rgba(58, 168, 74, .12), transparent 62%);
    }

    .hero-deco { display: block; }
    .hero-deco .deco { position: absolute; color: var(--green); line-height: 1; z-index: 0; pointer-events: none; }
    .hero-deco .deco svg { width: 22px; height: 22px; }
    .hero-deco .deco-paw { top: 118px; left: 40%; opacity: .12; }
    .hero-deco .deco-heart { top: 40px; right: 3%; opacity: .1; }
    .hero-deco .deco-sparkle { top: 190px; right: 26%; font-size: .95rem; opacity: .12; }
    .hero-deco .deco-paw2 { bottom: 70px; left: 46%; opacity: .08; }

.hero-inner {
        --hero-fs: clamp(2.8rem, 3.05vw, 3.3rem);
        position: relative;
        display: grid;
        grid-template-columns: 46% 54%;
        align-items: start;
        gap: 0;
    }

    .hero-copy { grid-column: 1; padding-left: 50px; }
    .hero-stats { grid-column: 1; margin-top: 28px; padding-left: 50px; position: relative; z-index: 4; }

    .hero-copy h1 {
        font-size: var(--hero-fs);
        font-weight: 800;
        line-height: 1.06;
        letter-spacing: -.02em;
        margin: 0;
    }
    .hero-desc { margin-top: 20px; font-size: .97rem; line-height: 1.5; color: #46504a; }

    .hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 32px; justify-content: start; }

    .hero-visual {
        position: absolute;
        top: 0;
        margin-top: 0;
        right: clamp(40px, calc(46% - 8 * var(--hero-fs) - 60px), 200px);
        width: 54%;
        height: 450px;
    }
    .hero-visual .hero-img { box-shadow: none; }

    .hero-dog {
        position: absolute; left: 0; top: 0; z-index: 1;
        width: 100%; height: 100%;
        object-fit: cover; object-position: 50% 30%;
        border-radius: 0; border: 0;
        mix-blend-mode: multiply;
        -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 42%, transparent 70%);
        mask-image: radial-gradient(ellipse at 50% 42%, #000 42%, transparent 70%);
    }
    .hero-cat {
        position: absolute; right: -4%; bottom: 0; z-index: 2;
        width: 34%; height: 80%;
        object-fit: cover; object-position: 50% 32%;
        border-radius: 0; border: 0;
        mix-blend-mode: multiply;
        -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 44%, transparent 72%);
        mask-image: radial-gradient(ellipse at 50% 46%, #000 44%, transparent 72%);
    }

    .gen-overlay { margin-top: 26px; }

@media (max-width: 1120px) {
        .hero { padding-top: 48px; }
        .hero-inner { --hero-fs: 2.4rem; grid-template-columns: 44% 56%; }
        .hero-copy h1 { font-size: var(--hero-fs); line-height: 1.1; }
        .hero-desc { font-size: .9rem; }
        .hero-visual { right: 0; height: 360px; width: 56%; }
        .hero-stats { grid-template-columns: repeat(2, auto); gap: 22px 30px; }
        .gen-overlay { margin-top: 22px; }
        .hero-deco .deco-paw { left: 34%; }
    }
}

/* ============================================================
   Name generator (redesigned page)
   ============================================================ */

.gen-hero { background: linear-gradient(180deg, #EEF6EE 0%, var(--bg) 100%); padding: 26px 0 54px; }
.gen-hero .breadcrumbs { margin-bottom: 22px; }
.gen-hero-inner { max-width: 900px; }
.gen-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-light); color: var(--green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.gen-hero-badge .hp-ico { width: 14px; height: 14px; }
.gen-hero-copy h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; margin: 16px 0 14px; }
.gen-hero-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 680px; margin-bottom: 20px; }
.gen-hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 0; padding: 0; }
.gen-hero-stats li { font-size: .9rem; color: var(--ink-soft); }
.gen-hero-stats b { color: var(--ink); font-size: 1.05rem; }

.generator-panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); max-width: 960px; margin: 18px auto 0; position: relative; }
.generator-controls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.generator-controls label { display: block; font-size: .74rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.generator-controls select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: .92rem; font-family: inherit; background: #fff; color: var(--ink); }
.generator-controls select:focus { outline: 2px solid var(--green); border-color: transparent; }
.btn-gen-go { width: 100%; padding: 14px 20px; font-size: 1rem; border-radius: 12px; }

.generator-results { margin-top: 24px; }
.generator-empty { text-align: center; color: var(--muted); padding: 26px 0; font-size: .92rem; }
.gen-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gen-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(16, 32, 16, .05); }
.gen-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gen-card-name { font-size: 1.15rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.gen-card-meta { font-size: .78rem; color: var(--green-dark); font-weight: 600; }
.gen-card-meaning { font-size: .82rem; color: var(--muted); line-height: 1.45; margin: 0; }
.gen-card-foot { margin-top: auto; padding-top: 4px; }
.gen-fav-btn { background: none; border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: all .15s ease; }
.gen-fav-btn:hover { border-color: var(--green); color: var(--green-dark); }
.gen-fav-btn.active { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }

.generator-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.btn-gen-more { padding: 11px 18px; border-radius: 999px; }
.gen-popular-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 700; font-size: .9rem; border: 0; height: auto; padding: 0; }
.gen-popular-link:hover { text-decoration: underline; }

.gen-section { padding: 44px 0; }
.gen-soft { background: #F1F7F0; }
.gen-section-head { max-width: 760px; margin-bottom: 26px; }
.gen-kicker { display: inline-block; text-transform: uppercase; font-size: .74rem; letter-spacing: .12em; color: var(--green-dark); font-weight: 800; margin-bottom: 6px; }
.gen-section-head h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.gen-section-head p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; }

.gen-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gen-step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.gen-step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.gen-step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.gen-step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.gen-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.gen-tags a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; font-size: .88rem; transition: all .15s ease; }
.gen-tags a:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; box-shadow: var(--shadow); }

.gen-advice { max-width: 780px; }
.gen-advice h3 { margin: 0 0 6px; font-size: 1.02rem; }
.gen-advice p { margin: 0 0 18px; color: var(--muted); font-size: .94rem; line-height: 1.6; }

.gen-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gen-link-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-weight: 700; color: var(--ink); font-size: .95rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: all .15s ease; }
.gen-link-card::after { content: "→"; color: var(--green); font-weight: 800; }
.gen-link-card:hover { border-color: var(--green); color: var(--green-dark); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }

.gen-gender-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gen-gender-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: center; transition: all .15s ease; }
.gen-gender-card b { display: block; color: var(--ink); font-size: 1.05rem; }
.gen-gender-card span { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.gen-gender-card:hover { border-color: var(--green); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }

.gen-faq-wrap { max-width: 820px; }
.gen-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.gen-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: .98rem; }
.gen-faq summary::marker { color: var(--green); }
.gen-faq p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.gen-cta { background: var(--green); border-radius: 22px; padding: 38px; text-align: center; color: #fff; }
.gen-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.gen-cta p { margin: 0 auto 22px; color: #E6F3E7; max-width: 520px; font-size: .95rem; }
.gen-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gen-cta .btn-primary { background: var(--dark); color: #fff; border-radius: 999px; }
.gen-cta .btn-primary:hover { background: #000; }
.gen-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); border-radius: 999px; }
.gen-cta .btn-outline:hover { border-color: #fff; color: #fff; }

@media (max-width: 960px) {
    .generator-controls { grid-template-columns: repeat(3, 1fr); }
    .gen-cards { grid-template-columns: repeat(2, 1fr); }
    .gen-steps { grid-template-columns: 1fr; }
    .gen-link-grid { grid-template-columns: repeat(2, 1fr); }
    .gen-gender-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .gen-hero { padding: 20px 0 40px; }
    .generator-panel { margin: 14px auto 0; padding: 20px 16px; border-radius: 16px; }
    .generator-controls { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .btn-gen-go { padding: 13px 14px; font-size: .95rem; }
    .gen-cards { grid-template-columns: 1fr; }
    .generator-actions { flex-direction: column; align-items: stretch; }
    .gen-popular-link { justify-content: center; }
    .gen-section { padding: 34px 0; }
    .gen-cta { padding: 28px 20px; }
}

@media (max-width: 460px) {
    .generator-controls { grid-template-columns: 1fr 1fr; }
}
