body {
    color: #212121;
    background: #fff;
}

.site-main {
    overflow: hidden;
}

.text-logo {
    color: #121212;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

.text-logo span {
    display: inline-block;
    padding: 5px 8px;
    margin-right: 5px;
    color: #fff;
    background: #121212;
}

.main-menu {
    display: block;
}

.main-menu li.active > a,
.main-menu li a:hover {
    color: #0e7c72;
}

.header-controls button {
    color: #121212;
}

.page-hero {
    padding: 92px 0 64px;
    background: #f5f5f2;
}

.page-hero.compact {
    padding: 72px 0;
}

.home-hero {
    position: relative;
    padding: 94px 0 36px;
    background: #111;
    color: #fff;
}

.home-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.45)), url("/assets/img/portfolio/10.jpg");
    background-size: cover;
    background-position: center;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero h1,
.home-hero p,
.home-hero a {
    color: #fff;
}

.home-hero h1 {
    max-width: 860px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    margin-bottom: 24px;
}

.home-hero .lead {
    max-width: 820px;
    color: #e5e5e5;
    font-size: 18px;
}

.home-gallery-hero {
    position: relative;
    background: #111;
}

.home-gallery-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.56) 34%, rgba(0, 0, 0, 0.06) 72%);
}

.home-gallery-copy {
    position: absolute;
    z-index: 5;
    left: clamp(22px, 6vw, 82px);
    top: clamp(34px, 7vw, 88px);
    width: min(760px, calc(100% - 44px));
}

.home-gallery-copy h1,
.home-gallery-copy p,
.home-gallery-copy a {
    color: #fff;
}

.home-gallery-copy h1 {
    font-size: clamp(38px, 6.4vw, 72px);
    line-height: 1.04;
    margin-bottom: 22px;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.home-gallery-copy > p:not(.eyebrow) {
    max-width: 760px;
    color: #ededed;
    font-size: 18px;
}

.home-gallery-hero .hero-link {
    background: rgba(6, 6, 6, 0.82);
    text-align: center;
    z-index: 3;
}

.home-gallery-hero .hero-link h2 {
    font-size: 25px;
}

.home-gallery-hero .hero-slider {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid #e8e8e8;
}

.hero-strip a {
    min-height: 118px;
    padding: 26px;
    color: #121212;
    border-right: 1px solid #e4e4e0;
}

.hero-strip a:last-child {
    border-right: 0;
}

.hero-strip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.hero-strip span {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.eyebrow {
    margin-bottom: 16px;
    color: #0e7c72;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-hero h1 {
    max-width: 960px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    margin-bottom: 20px;
}

.page-hero p {
    max-width: 860px;
    font-size: 18px;
}

.content-section {
    padding: 88px 0;
}

.content-section.tight {
    padding: 58px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.section-heading p {
    max-width: 640px;
    margin-bottom: 0;
}

.prompt-grid,
.category-grid,
.before-grid,
.tool-grid,
.settings-grid,
.blog-grid {
    display: grid;
    gap: 28px;
}

.prompt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid,
.before-grid,
.tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.prompt-card,
.category-card,
.before-card,
.tool-card,
.blog-card,
.detail-panel,
.generator-panel,
.faq-item,
.policy-box {
    border: 1px solid #e8e8e8;
    background: #fff;
}

.prompt-card,
.blog-card {
    min-width: 0;
}

.prompt-card-image,
.blog-card-image,
.before-image,
.result-card {
    display: block;
    overflow: hidden;
    background: #f0f0ed;
}

.prompt-card-image img,
.blog-card-image img,
.before-image img,
.result-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.prompt-card-body,
.category-card,
.before-card-body,
.tool-card,
.blog-card-body {
    padding: 26px;
}

.prompt-card h3,
.category-card h3,
.before-card h3,
.blog-card h3 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.28;
}

.prompt-card h3 a,
.blog-card h3 a {
    color: #212121;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #1f403d;
    background: #edf6f4;
    border: 1px solid #cfe5e1;
    font-size: 12px;
    font-weight: 600;
}

.tag-filter,
.generator-mode {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d8d8d2;
    background: #fff;
    color: #212121;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.tag-filter.active,
.generator-mode.active {
    color: #fff;
    background: #212121;
    border-color: #212121;
}

.text-link {
    display: inline-block;
    color: #212121;
    font-weight: 700;
    border-bottom: 2px solid #0e7c72;
}

.text-link:hover {
    color: #0e7c72;
}

.site-btn.secondary {
    color: #212121;
    background: #fff;
    border: 2px solid #fff;
}

.site-btn.light {
    color: #212121;
    background: #f5f5f2;
}

.site-btn.small,
.copy-btn {
    min-width: 0;
    padding: 13px 18px;
    font-size: 12px;
}

.search-panel {
    padding: 26px;
    margin-top: -32px;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hero-strip + .search-panel {
    margin-top: 0;
}

.search-close-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    transform: none;
    -webkit-transform: none;
}

.search-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.search-panel input,
.generator-form input,
.generator-form select,
.generator-form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d7d7d2;
    padding: 15px 16px;
    color: #212121;
    background: #fff;
    font-size: 14px;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    margin: 42px 0;
    color: #8a8a8a;
    background: #f4f4f1;
    border: 1px dashed #cfcfca;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #777;
    font-size: 13px;
}

.breadcrumbs a {
    color: #555;
}

.breadcrumbs span:before {
    content: "/";
    margin-right: 8px;
    color: #aaa;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
    gap: 42px;
}

.detail-panel {
    padding: 34px;
    margin-bottom: 28px;
}

.result-card {
    margin-bottom: 28px;
}

.copy-box {
    margin-bottom: 26px;
    border: 1px solid #dcdcd7;
    background: #fbfbf8;
}

.copy-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    color: #fff;
    background: #212121;
    font-weight: 600;
}

.copy-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.copy-btn.copied {
    background: #0e7c72;
    border-color: #0e7c72;
}

.copy-box pre {
    white-space: pre-wrap;
    margin: 0;
    padding: 20px;
    color: #313131;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.8;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.compare-box {
    padding: 22px;
    border: 1px solid #e2e2dc;
    background: #fff;
}

.compare-box h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

.compare-box.bad {
    border-left: 4px solid #bd4b4b;
}

.compare-box.good {
    border-left: 4px solid #0e7c72;
}

.setting-item {
    padding: 20px;
    background: #f5f5f2;
}

.setting-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
}

.variation-list,
.mistake-list,
.content-list {
    padding-left: 20px;
}

.variation-list li,
.mistake-list li,
.content-list li {
    margin-bottom: 12px;
    color: #6e6e6e;
    line-height: 1.7;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    padding: 24px;
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.before-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.generator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 34px;
}

.generator-panel {
    padding: 32px;
}

.generator-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.generator-form .full {
    grid-column: 1 / -1;
}

.generator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.generator-output {
    min-height: 300px;
    resize: vertical;
}

.negative-columns {
    columns: 2;
    column-gap: 40px;
}

.negative-columns li {
    break-inside: avoid;
    margin-bottom: 10px;
    color: #666;
    line-height: 1.7;
}

.policy-box {
    padding: 34px;
}

.policy-box h2 {
    margin-top: 34px;
    margin-bottom: 14px;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    display: inline-block;
    margin-left: 22px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.blog-date {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: #fff;
    background: #212121;
    font-size: 12px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 22px;
}

@media only screen and (max-width: 1199px) {
    .main-menu li a {
        margin-right: 18px;
    }

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

    .category-grid,
    .before-grid,
    .tool-grid,
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 991px) {
    .main-menu {
        float: none;
    }

    .hero-strip,
    .detail-layout,
    .generator-layout {
        grid-template-columns: 1fr;
    }

    .home-gallery-copy {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        padding: 48px 22px;
        background: #111;
    }

    .home-gallery-hero:before {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    h1 {
        font-size: 42px;
    }

    .home-hero {
        padding-top: 66px;
    }

    .content-section {
        padding: 58px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 14px;
    }

    .prompt-grid,
    .category-grid,
    .before-grid,
    .tool-grid,
    .settings-grid,
    .blog-grid,
    .compare-grid,
    .before-pair,
    .generator-form {
        grid-template-columns: 1fr;
    }

    .search-panel form {
        grid-template-columns: 1fr;
    }

    .negative-columns {
        columns: 1;
    }

    .footer-links {
        text-align: center;
        padding-top: 12px;
    }

    .footer-links a {
        margin: 0 9px 10px;
    }
}
