/*
Theme Name: CTG
Theme URI: https://optima-design.pro/
Author: Optima Design
Author URI: https://optima-design.pro/
Description: Custom WordPress theme for Capital Tax Group.
Version: 1.0.0
Text Domain: ctg
*/


/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --color-text: #181818;
    --color-text-muted: #656565;
    --background: #efefef;
    --background-light: #f5f5f3;
    --background-dark: #002147;
    --color-border: #ddddda;
    --color-accent:#deb465;

    --container-width: 1280px;
    --container-narrow-width: 860px;
    --container-wide-width: 1480px;

    --container-padding: 20px;

    --section-spacing-xs: 32px;
    --section-spacing-sm: 48px;
    --section-spacing-md: 64px;
    --section-spacing-lg: 80px;
    --section-spacing-xl: 104px;

    --grid-gap-sm: 16px;
    --grid-gap-md: 24px;
    --grid-gap-lg: 32px;

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    --transition: 0.25s ease;
}


/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-width: 320px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
font-family: "Manrope", sans-serif;
    color: var(--color-text);
    background-color: var(--background);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
a:hover {text-decoration: underline;
color: var(--color-accent);}
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
blockquote,
figure {
    margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 9vw, 4rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.875rem, 7vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
   /* letter-spacing: -0.025em;*/
}

h4 {
    font-size: clamp(1.25rem, 4vw, 1.625rem);
}

p {
    margin-bottom: 20px;
}

.text-large {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    line-height: 1.55;
}

.text-small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}


/* ==========================================================================
   Site structure
   ========================================================================== */

.site-wrapper {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
}

.site-main {
    min-width: 0;
}


/* ==========================================================================
   Containers
   ========================================================================== */

.container,
.container-narrow,
.container-wide,
.container-fluid {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container {
    max-width: calc(
        var(--container-width) + var(--container-padding) * 2
    );
}

.container-narrow {
    max-width: calc(
        var(--container-narrow-width) + var(--container-padding) * 2
    );
}

.container-wide {
    max-width: calc(
        var(--container-wide-width) + var(--container-padding) * 2
    );
}

.container-fluid {
    max-width: none;
}


/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding-block: var(--section-spacing-md);
}

.section-xs {
    padding-block: var(--section-spacing-xs);
}

.section-sm {
    padding-block: var(--section-spacing-sm);
}

.section-md {
    padding-block: var(--section-spacing-md);
}

.section-lg {
    padding-block: var(--section-spacing-lg);
}

.section-xl {
    padding-block: var(--section-spacing-xl);
}

/* Только верхний отступ */

.section-top-xs {
    padding-top: var(--section-spacing-xs);
}

.section-top-sm {
    padding-top: var(--section-spacing-sm);
}

.section-top-md {
    padding-top: var(--section-spacing-md);
}

.section-top-lg {
    padding-top: var(--section-spacing-lg);
}

.section-top-xl {
    padding-top: var(--section-spacing-xl);
}

/* Только нижний отступ */

.section-bottom-xs {
    padding-bottom: var(--section-spacing-xs);
}

.section-bottom-sm {
    padding-bottom: var(--section-spacing-sm);
}

.section-bottom-md {
    padding-bottom: var(--section-spacing-md);
}

.section-bottom-lg {
    padding-bottom: var(--section-spacing-lg);
}

.section-bottom-xl {
    padding-bottom: var(--section-spacing-xl);
}

/* Без отступов */

.section-no-top {
    padding-top: 0;
}

.section-no-bottom {
    padding-bottom: 0;
}

.section-no-spacing {
    padding-block: 0;
}

/* Фоны секций */

.section-light {
    background-color: var(--background-light);
}

.section-dark {
    color: #ffffff;
    background-color: var(--background-dark);
}


/* ==========================================================================
   Section headings
   ========================================================================== */

.section-heading {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.section-heading-label {
    margin: 0;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--color-accent);
}

.section-heading-title {
    margin: 0;
}

.section-heading-text {
    max-width: 720px;
    margin: 0;
    color: var(--color-text-muted);
}

.section-heading-center {
    justify-items: center;
    text-align: center;
}

.section-heading-center .section-heading-text {
    margin-inline: auto;
}


/* ==========================================================================
   Grid system
   ========================================================================== */

.grid {
    display: grid;
    gap: var(--grid-gap-md);
}

.grid-sm {
    gap: var(--grid-gap-sm);
}

.grid-lg {
    gap: var(--grid-gap-lg);
}

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

.grid-auto {
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 260px), 1fr)
    );
}

.grid-auto-small {
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 200px), 1fr)
    );
}

.grid-auto-large {
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 320px), 1fr)
    );
}

.grid-align-center {
    align-items: center;
}

.grid-align-start {
    align-items: start;
}

.grid-align-end {
    align-items: end;
}


/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: relative;
    z-index: 100;
    background-color: var(--background-dark);
    color: var(--background-light);
}

.site-header-inner {
    display: flex;align-items: center;
    justify-content: space-between;
    gap: 24px;    min-height: 60px;
}
.headr-inner-left a span {display: none;}
.headr-inner-left,.headr-inner-right {display: flex;gap: 16px;font-size: 14px;}
.headr-inner-left a {display: flex;align-items: center;gap: 9px;}
.social-links {display: flex;}
.social-links__item {
    display: grid;
    place-items: center;    filter: invert(1);
    width: 40px;
    height: 40px;
}

.social-links__icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.site-logo {
    position: relative;
    z-index: 102;
}

.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    width: auto;
    max-height: 48px;
}

.site-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.header-navigation {
    display: none;
}

.header-menu-toggle {
    position: relative;
    z-index: 102;

    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
}

.header-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition:
        transform var(--transition),
        opacity var(--transition);
}


.main-navigation {    display: grid;
    grid-template-columns: 1fr 5fr 1fr;}
.main-menu {    display: flex;
    align-items: center;}


/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
    display: inline-grid;
    min-height: 52px;
    padding: 12px 24px;
    place-items: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: var(--color-text);
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius-sm);
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}

.button-outline {
    color: var(--color-text);
    background-color: transparent;
    border-color: var(--color-border);
}

.button-full {
    width: 100%;
}

.button:hover {text-decoration: none;}
/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;

    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 16px;

    clip: auto;
    color: #ffffff;
    background-color: var(--color-text);
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {

    :root {
        --container-padding: 32px;

        --section-spacing-xs: 40px;
        --section-spacing-sm: 56px;
        --section-spacing-md: 80px;
        --section-spacing-lg: 104px;
        --section-spacing-xl: 136px;

        --grid-gap-md: 28px;
        --grid-gap-lg: 40px;
    }

    .section-heading {
        margin-bottom: 48px;
    }

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

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

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

    .button-full {
        width: auto;
    }
    .headr-inner-left a span {display: block;}
}


/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1024px) {

    :root {
        --container-padding: 40px;
    }


    .header-navigation {
        display: block;
        justify-self: end;
    }

    .header-menu {
        display: grid;
        grid-auto-flow: column;
        align-items: center;
        gap: 32px;

        margin: 0;
        padding: 0;

        list-style: none;
    }

    .header-menu a {
        display: block;
        padding-block: 12px;

        font-size: 0.9375rem;
        font-weight: 500;

        transition: color var(--transition);
    }

    .header-menu a:hover,
    .header-menu .current-menu-item > a {
        color: var(--color-accent);
    }

    .header-menu-toggle {
        display: none;
    }

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

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


/* ==========================================================================
   Large desktop
   ========================================================================== */

@media (min-width: 1440px) {

    :root {
        --container-padding: 48px;

        --section-spacing-md: 96px;
        --section-spacing-lg: 128px;
        --section-spacing-xl: 160px;
    }
}


/* ==========================================================================
   Hover devices
   ========================================================================== */

@media (hover: hover) {

    .button:hover {
        color: var(--color-accent);
        background-color: transparent;
    }

    .button-outline:hover {
        color: #ffffff;
        background-color: var(--color-accent);
        border-color: var(--color-accent);
    }
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding-block: 24px;background: var(--background-dark); color: var(--background-light);
}
.footer-logo {display: flex;
    flex-direction: column;
    gap: 10px;}
    .footer-logo span {    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .75px;
    color: #deb465;}
    .site-footer address {    font-style: normal;
    font-size: 14px;}
.site-footer-bottom {
    display: grid;
    gap: 12px;
    font-size: 15px;
    opacity: .85;
    padding-top: 18px;
    border-top: 1px solid #2e385c;
}
.footer__menu ul {list-style: none; padding: 0;}
.footer__menu ul li {margin-bottom: 8px;}
.site-copyright,
.site-credit {
    margin: 0;font-weight: 300
}

.site-credit a {
    transition: color var(--transition);
}
.site-credit a:hover {
    opacity: 1;
}

@media (min-width: 768px) {

    .site-footer {
        padding-block: 98px;
    }

    .site-footer-bottom {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 32px;margin-top: 98px;
    }

    .site-credit {
        text-align: right;
    }
}

@media (hover: hover) {

    .site-credit a:hover {
        color: var(--color-accent);
    }
}

/* ==========================================================================
   Floating Consultation CTA
   ========================================================================== */

.consultation-float {
    position: fixed;
    right: 84px;
    bottom: 23px;
    z-index: 99;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    min-height: 48px;
    padding: 12px 18px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;

    color: var(--background-dark);
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius-sm);

    box-shadow:
        0 8px 24px rgba(0, 33, 71, 0.12),
        0 2px 6px rgba(0, 33, 71, 0.08);

    opacity: 0;
    visibility: hidden;

    transform: translateY(14px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.consultation-float.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.consultation-float-icon {
    flex: 0 0 auto;
    transition: transform var(--transition);
}


/* ==========================================================================
   Floating Consultation CTA: mobile
   ========================================================================== */

@media (max-width: 767px) {

    .consultation-float {
        right: 80px;
        bottom: 20px;

        max-width: calc(100vw - 104px);
        min-height: 44px;

        padding: 10px 14px;

        font-size: 13px;
    }

    .scroll-up {
        right: 20px;
        bottom: 20px;
    }
}


/* ==========================================================================
   Floating Consultation CTA: hover
   ========================================================================== */

@media (hover: hover) {

    .consultation-float:hover {
        color: #ffffff;
        text-decoration: none;

        background-color: var(--background-dark);
        border-color: var(--background-dark);

        box-shadow:
            0 12px 30px rgba(0, 33, 71, 0.18),
            0 3px 8px rgba(0, 33, 71, 0.10);
    }

    .consultation-float:hover .consultation-float-icon {
        transform: translateX(3px);
    }
}

/* ==========================================================================
   Scroll Up
   ========================================================================== */

.scroll-up {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: var(--color-accent);
    color: #fff;

    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease;
}

.scroll-up:hover {
    background: var(--background-dark);
    color: #fff;
}

.scroll-up.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*

/* ==========================================================================
   Shared section components
   ========================================================================== */

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.section-footer {
    margin-top: 40px;
    text-align: center;
}

.card {
    height: 100%;
    padding: 28px;
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
}

.section-dark .button-outline,
.hero .button-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero-inner {
    display: grid;
    overflow: hidden;
    color: #ffffff;
    background-color: var(--background-dark);
    border-radius: var(--border-radius-md);
}

.hero-content {
    display: grid;
    align-content: center;
    padding: clamp(32px, 7vw, 72px);
}

.hero-title {
    max-width: 12ch;
}

.hero-text {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-media {
    min-height: 360px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home .hero {padding-bottom: 0;}

/* ==========================================================================
   Trust
   ========================================================================== */

.trust-content {
    max-width: 560px;
}

.trust-title {
    max-width: 500px;
}

.trust-text {
    color: rgba(255, 255, 255, 0.74);
}

.trust-stat {
    min-height: 180px;
    padding: 28px;
    color: var(--color-text);
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
}

.trust-stat-value {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--color-accent);
}

.trust-stat-label {
    margin: 0;
    font-weight: 600;
    line-height: 1.35;
}


/* ==========================================================================
   Process
   ========================================================================== */

.process-item {
    padding: 30px 24px;background-color: #fff;
    border-radius: var(--border-radius-md);
}

.process-number {
    display: block;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 500;
    color: var(--color-accent);
}

.process-item-title {    font-size: 24px;
    font-weight: 500;
}

.process-item-text {
    color: var(--color-text-muted);
}


/* ==========================================================================
   Statistics
   ========================================================================== */


.statistics-item {
    padding: 30px 24px;
    background-color: #fff;
    border-radius: var(--border-radius-md);
}

.statistics-icon {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 14px;
}

.statistics-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.statistics-value {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.statistics-label {
    margin: 0;
    color: var(--color-text-muted);
}

/* ==========================================================================
   CTA and Footer CTA
   ========================================================================== */

.cta-inner {
    display: grid;
    gap: 32px;
    padding: clamp(32px, 7vw, 72px);
    border-radius: var(--border-radius-md);
}

.cta-title {
    max-width: 15ch;
}

.cta-text {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.74);
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    position: relative;
    padding: 24px 44px 24px 0;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    position: absolute;
    top: 50%;
    right: 0;
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.faq-item[open] .faq-question::after {
    content: "−";
}

.faq-answer {
    padding-bottom: 24px;
    color: var(--color-text-muted);
}


.faq.section-dark .section-heading-text,
.faq.section-dark .faq-answer {color: rgba(255, 255, 255, 0.74);}

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-card {
    margin: 0;
}

.review-quote {
    margin-bottom: 28px;
    font-size: 1.125rem;
}

.review-author {
    display: grid;
    gap: 2px;
}

.review-author span {
    color: var(--color-text-muted);
}


/* ==========================================================================
   Team and Latest Posts
   ========================================================================== */

.team-card,
.post-card {
    overflow: hidden;
    background-color: #fff;
    border-radius: var(--border-radius-md);
}
.team-photo,
.post-card-image {
    display: block;    margin-bottom: 16px;
    overflow: hidden;   
}
.team-photo img,
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; filter: saturate(0.5);
    opacity: .9;
    transition: filter .3s, transform .3s;
}
a.post-card-image:hover {text-decoration: none; }
a.post-card-image:hover img {filter: saturate(0.7);transform: scale(1.05);}
.team-card-content,
.post-card-content {
    padding: 24px;
}

.team-name,
.post-card-title {
    margin-bottom: 8px;
    font-size: 1.375rem;
}

.team-position,
.post-card-date {
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--color-accent);
}

.team-bio,
.post-card-excerpt {
    color: var(--color-text-muted);
}

.post-card-excerpt {
    margin: 0;
}

.single-post-breadcrumbs {
    margin-top: 16px;
}

.single-post-breadcrumbs-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.single-post-breadcrumbs a {
    transition: color var(--transition);
}

.single-post-breadcrumbs .breadcrumb_last {
    color: var(--color-text-muted);
}

@media (hover: hover) {

    .single-post-breadcrumbs a:hover {
        color: var(--color-accent);
    }
}


/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-card {
    display: grid;
    align-content: start;
    height: 100%;
    padding: 32px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
}

.pricing-card.is-featured {
    color: #ffffff;
    background-color: var(--background-dark);
    border-color: var(--background-dark);
}

.pricing-name {
    font-size: 1.375rem;
}

.pricing-price {
    margin-bottom: 24px;
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}

.pricing-price span {
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0;
}

.pricing-description,
.pricing-features {
    color: var(--color-text-muted);
}

.pricing-features ul {
    padding-left: 20px;
}

.pricing-card .button {
    margin-top: 24px;
}

.pricing-card.is-featured .pricing-description,
.pricing-card.is-featured .pricing-features {
    color: rgba(255, 255, 255, 0.72);
}


/* ==========================================================================
   Section components: tablet
   ========================================================================== */

@media (min-width: 768px) {

    .card,
    .pricing-card {
        padding: 32px;
    }

    .trust-stat {
        padding: 42px;
    }
}


/* ==========================================================================
   Section components: desktop
   ========================================================================== */

@media (min-width: 1024px) {

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
        min-height: 620px;
    }

    .hero-media {
        min-height: 100%;
    }

    .trust-inner {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }

    .cta-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}


/* ==========================================================================
   Section component hover states
   ========================================================================== */

@media (hover: hover) {

    .section-dark .button-outline:hover,
    .hero .button-outline:hover {
        color: var(--background-dark);
        background-color: #ffffff;
        border-color: #ffffff;
    }

    .post-card-title a:hover {
        color: var(--color-accent);
    }
}


/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post-featured {
    margin: 0 0 32px;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.single-post-featured-image {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.single-post-heading {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin-bottom: 48px;
}

.single-post-title {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.75rem);
}

.single-post-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.single-post-breadcrumbs a {
    transition: color var(--transition);
}

.single-post-layout {
    gap: var(--grid-gap-lg);
}

.single-post-main {
    min-width: 0;
}

.single-post-content {
    max-width: 860px;
}

.single-post-content > * {
    max-width: 100%;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 40px;
}

.single-post-content h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.single-post-content h3 {
    font-size: clamp(1.375rem, 4vw, 1.875rem);
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 24px;
}

.single-post-content img {
    margin-block: 32px;
    border-radius: var(--border-radius-md);
}

.single-post-content figure {
    margin: 32px 0;
}

.single-post-content figure img {
    margin: 0;
}

.single-post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--color-accent);
    background-color: #fff;
}

.single-post-content a {
    color: var(--background-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post-sidebar {
    min-width: 0;
}

.single-post-cta-title {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.single-post-pages {
    margin-top: 32px;
}


/* ==========================================================================
   Single Post: tablet
   ========================================================================== */

@media (min-width: 768px) {

    .single-post-heading {
        margin-bottom: 56px;
    }
}


/* ==========================================================================
   Single Post: desktop
   ========================================================================== */

@media (min-width: 1024px) {

    .single-post-layout {
        grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
        gap: 56px;
    }

    .single-post-sidebar {
        position: sticky;
        top: 120px;
    }
}


/* ==========================================================================
   Single Post: hover states
   ========================================================================== */

@media (hover: hover) {

    .single-post-breadcrumbs a:hover,
    .single-post-content a:hover {
        color: var(--color-accent);
    }
}

/* ==========================================================================
   Category Archive
   ========================================================================== */

.category-heading {
    display: grid;
    gap: 16px;
    max-width: 820px;
    margin-bottom: 40px;
}

.category-title {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.75rem);
}

.category-intro {
    margin: 0;
}

.category-intro p {
    margin: 0;
}

.category-intro p + p {
    margin-top: 16px;
}

.category-posts {
    align-items: stretch;
}

.category-posts .post-card {
    display: grid;
    grid-template-rows: auto 1fr;
}

.category-posts .post-card-content {
    display: grid;
    align-content: start;
}

.category-posts .post-card-excerpt {
    margin-bottom: 0;
}

.category-posts .section-actions {
    margin-top: 24px;
}

.category-pagination {
    margin-top: 48px;
}

.category-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-pagination .page-numbers {
    display: inline-grid;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background-color: #fff;
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}

.category-pagination .page-numbers.current {
    color: var(--background-dark);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.category-description {
    color: var(--color-text-muted);
}

.category-description h2,
.category-description h3,
.category-description h4 {
    margin-top: 36px;
    color: var(--color-text);
}

.category-description h2:first-child,
.category-description h3:first-child,
.category-description h4:first-child {
    margin-top: 0;
}

.category-description ul,
.category-description ol {
    padding-left: 24px;
}


/* ==========================================================================
   Category Archive: tablet
   ========================================================================== */

@media (min-width: 768px) {

    .category-heading {
        margin-bottom: 56px;
    }

    .category-pagination {
        margin-top: 56px;
    }
}


/* ==========================================================================
   Category Archive: hover states
   ========================================================================== */

@media (hover: hover) {

    .category-pagination a.page-numbers:hover {
        color: #fff;
        background-color: var(--background-dark);
        border-color: var(--background-dark);
    }
}

