/***** GLOBAL *****/

:root {
    --main-color: #171715;
    --main-text-color: #f7f6f2;
    --second-color: #f2ede4;
    --second-text-color: #171715;
    --third-color: #f7f6f2;
    --third-text-color: #171715;
    --border-color: #ddd5c8;
    --muted-text-color: #7a756b;
    --focus-color: #171715;
    --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --transition: 0.3s ease;
    --section-space: 120px;
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.3;
    color: var(--second-text-color);
    background: var(--second-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.heading {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

main section {
    padding: var(--section-space) 0;
}

.container {
    padding-left: 25px;
    padding-right: 25px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1426px;
    }
}

/* buttons */
.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.t-btn svg {
    width: 9px;
    height: 9px;
    stroke-width: 3;
}

.t-btn:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
}

.t-btn.theme {
    background: var(--main-color);
    color: var(--main-text-color);
    border-color: var(--main-color);
}

.t-btn.theme:hover {
    background: transparent;
    color: var(--second-text-color);
}

.t-btn.theme2 {
    background: var(--second-color);
    color: var(--second-text-color);
    border-color: var(--second-color);
}

.t-btn.theme2:hover {
    background: var(--main-color);
    color: var(--main-text-color);
    border-color: var(--main-color);
}

.t-btn.theme3 {
    background: var(--third-color);
    color: var(--third-text-color);
    border-color: var(--third-color);
}

.t-btn.theme3:hover {
    background: transparent;
    color: var(--third-color);
}

/* link */
.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity var(--transition);
}

.link:hover {
    opacity: 0.6;
}

.link svg {
    width: 9px;
    height: 9px;
    stroke-width: 3;
}

/* section head */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 80px;
}

.section-head .heading {
    position: relative;
    margin: 0;
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.section-head .number,
.cta-section .number {
    position: relative;
    top: -0.35em;
    margin-left: 4px;
    font-family: var(--font-base);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    vertical-align: top;
}

.section-head .side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    max-width: 560px;
    margin-top: 80px;
    margin-left: auto;
    text-align: right;
}

.section-head .side .text {
    margin: 0;
    color: var(--muted-text-color);
}

/* background image */
.background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* dot label */
.intro-section .label::before,
.post .category::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

/* intro */
main .intro-section {
    padding: 40px 0 0;
}

.intro-section .label {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--muted-text-color);
}

.intro-section .content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.intro-section .heading {
    max-width: 760px;
    margin: 0;
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.intro-section .text {
    max-width: 440px;
    margin: 0 0 0 auto;
    text-align: right;
}

.intro-section .image {
    margin-top: 32px;
    overflow: hidden;
}

.intro-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* filter */
.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter button {
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--second-text-color);
    font-size: 14px;
    line-height: 1;
    transition: var(--transition);
}

.filter button:hover {
    background: var(--third-color);
}

.filter button.active {
    background: var(--main-color);
    color: var(--main-text-color);
}

.filter button:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* project grid */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.project-grid .group {
    display: flex;
    gap: 24px;
}

.project-grid .group.end {
    justify-content: flex-end;
}

.project-grid .item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 24.7%;
    text-decoration: none;
}

.project-grid .item.wide {
    width: 60%;
}

.project-grid .image {
    display: block;
    aspect-ratio: 340 / 409;
    overflow: hidden;
}

.project-grid .wide .image {
    aspect-ratio: 826 / 409;
}

.project-grid .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-grid .item:hover img {
    transform: scale(1.04);
}

.project-grid .title {
    display: flex;
    gap: 8px;
}

.project-grid .category {
    margin-top: -4px;
    font-size: 14px;
    color: var(--muted-text-color);
}

.project-grid .item:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 4px;
}

.project-grid.filtered {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 24px;
}

.project-grid.filtered .group {
    display: contents;
}

.project-grid.filtered .item,
.project-grid.filtered .item.wide {
    width: auto;
}

.project-grid.filtered .wide .image {
    aspect-ratio: 340 / 409;
}

/* post */
.post {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 538 / 504;
    padding: 16px;
    color: var(--main-text-color);
    text-decoration: none;
    overflow: hidden;
}

.post::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 23, 21, 0.2) 0%, rgba(23, 23, 21, 0) 35%, rgba(23, 23, 21, 0.45) 100%);
}

.post .background {
    transition: transform 0.6s ease;
}

.post:hover .background {
    transform: scale(1.04);
}

.post:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 4px;
}

.post .meta,
.post .title {
    position: relative;
    z-index: 1;
}

.post .meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.post .title {
    max-width: 320px;
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.3;
}

/* process */
.process-section .list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-section .item {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.process-section .item .number {
    display: block;
    margin-bottom: 48px;
    font-size: 14px;
    color: var(--muted-text-color);
}

.process-section .title {
    margin-bottom: 12px;
    font-size: 24px;
}

.process-section .text {
    margin: 0;
    color: var(--muted-text-color);
}

/* faq */
.faq-section .section-head {
    margin-bottom: 0;
}

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

.faq-section .question {
    display: grid;
    grid-template-columns: 56px 1fr 16px;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
}

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

.faq-section .question:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.faq-section .number {
    font-size: 14px;
}

.faq-section .title {
    font-size: 18px;
}

.faq-section .icon {
    width: 9px;
    height: 9px;
    justify-self: end;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transition: var(--transition);
}

.faq-section .item[open] .icon {
    background: currentColor;
}

.faq-section .answer {
    max-width: 520px;
    margin: -8px 0 0;
    padding: 0 0 20px 56px;
    color: var(--muted-text-color);
}

/* cta */
.cta-section .content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.cta-section .heading {
    margin: 0;
    font-size: 120px;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.cta-section .line {
    display: block;
}

.cta-section .shift {
    padding-left: 340px;
}

.cta-section .number {
    top: -0.2em;
}

.cta-section .side {
    display: flex;
    margin-left: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 320px;
}

.cta-section .side .text {
    margin: 0;
    color: var(--muted-text-color);
}

@media (max-width: 1199.98px) {
    :root {
        --section-space: 96px;
    }

    .section-head .heading,
    .intro-section .heading {
        font-size: 64px;
    }

    .cta-section .heading {
        font-size: 96px;
    }

    .cta-section .shift {
        padding-left: 200px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-space: 80px;
    }

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

    .section-head .side {
        align-items: flex-start;
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .intro-section .text {
        margin-left: 0;
        text-align: left;
    }

    .project-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }

    .project-grid .group {
        display: contents;
    }

    .project-grid .item,
    .project-grid .item.wide {
        width: auto;
    }

    .project-grid .item.wide {
        grid-column: 1 / -1;
    }

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

    .project-grid.filtered .item.wide {
        grid-column: auto;
    }

    .process-section .list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }

    .process-section .item .number {
        margin-bottom: 24px;
    }

    .cta-section .heading {
        font-size: 72px;
    }

    .cta-section .shift {
        padding-left: 120px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-space: 64px;
    }

    .section-head .heading,
    .intro-section .heading {
        font-size: 40px;
    }

    .project-grid,
    .project-grid.filtered {
        grid-template-columns: 1fr;
    }

    .project-grid .wide .image {
        aspect-ratio: 340 / 409;
    }

    .process-section .list {
        grid-template-columns: 1fr;
    }

    .post .title {
        font-size: 20px;
    }

    .faq-section .question {
        grid-template-columns: 40px 1fr 16px;
    }

    .faq-section .answer {
        padding-left: 40px;
    }

    .cta-section .heading {
        font-size: 34px;
    }

    .cta-section .shift {
        padding-left: 24px;
    }
}

/***** HEADER *****/

.header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--second-color);
    color: var(--second-text-color);
    transition: background var(--transition), color var(--transition);
}

.header.transparent {
    position: fixed;
    left: 0;
    right: 0;
    background: transparent;
    color: var(--main-text-color);
    --focus-color: var(--main-text-color);
}

.header.transparent.scrolled {
    background: var(--second-color);
    color: var(--second-text-color);
    --focus-color: var(--second-text-color);
}

.header .content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    min-height: 64px;
}

/* logo */
.header .logo {
    justify-self: start;
}

.header .logo img {
    display: block;
    width: auto;
    height: 30px;
    transition: filter var(--transition);
}

.header.transparent:not(.scrolled) .content .logo img {
    filter: invert(1);
}

/* navigation */
.header .navigation .links {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header .navigation a {
    letter-spacing: -0.02em;
    text-decoration: none;
    text-underline-offset: 6px;
    transition: opacity var(--transition);
}

.header .navigation a:hover {
    opacity: 0.6;
}

.header .navigation a.active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.header .navigation a:focus-visible,
.header .logo:focus-visible,
.header .link:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 4px;
}

/* actions */
.header .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    gap: 12px;
}

.header .toggle,
.header .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-right: -8px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.header .toggle:focus-visible,
.header .close:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.header .toggle svg,
.header .close svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 991.98px) {
    .header .content {
        grid-template-columns: 1fr auto;
    }

    .header .actions {
        grid-column: auto;
    }
}

/* offcanvas */
.header .offcanvas {
    background: var(--second-color);
    color: var(--second-text-color);
    --focus-color: var(--second-text-color);
}

.header .offcanvas .offcanvas-header {
    justify-content: space-between;
    padding: 14px 25px;
    border-bottom: 1px solid var(--border-color);
}

.header .offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 25px;
}

.header .offcanvas .navigation .links {
    flex-direction: column;
    gap: 16px;
}

.header .offcanvas .navigation a {
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: -0.03em;
}

.header .offcanvas .t-btn {
    align-self: flex-start;
}

/***** HOME *****/

/* hero */
.home-page .hero-section {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: 140px 0 80px;
    color: var(--main-text-color);
    overflow: hidden;
    --focus-color: var(--main-text-color);
}

.home-page .hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 23, 21, 0.35) 0%, rgba(23, 23, 21, 0.1) 35%, rgba(23, 23, 21, 0.6) 100%);
}

.home-page .hero-section .container {
    position: relative;
    z-index: 1;
}

.home-page .hero-section .label {
    margin-bottom: 14px;
    font-size: 14px;
    opacity: 0.8;
}

.home-page .hero-section .label::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

.home-page .hero-section .heading {
    max-width: 1100px;
    margin: 0 0 64px;
    font-size: 72px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.home-page .hero-section .bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.home-page .hero-section .text {
    max-width: 420px;
    margin: 0;
    font-size: 20px;
    opacity: 0.85;
}

.home-page .hero-section .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.home-page .hero-section .t-btn:focus-visible {
    outline-color: var(--main-text-color);
}

/* situation */
.home-page .situation-section .section-head .heading {
    max-width: 900px;
}

.home-page .situation-section .item {
    height: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.home-page .situation-section .item .number {
    display: block;
    margin-bottom: 48px;
    font-size: 14px;
    color: var(--muted-text-color);
}

.home-page .situation-section .title {
    margin-bottom: 12px;
    font-size: 32px;
}

.home-page .situation-section .text {
    max-width: 380px;
    margin: 0;
    color: var(--muted-text-color);
}

/* services */
.home-page .services-section .item {
    display: grid;
    grid-template-columns: 320px 1fr 260px;
    gap: 24px 48px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.home-page .services-section .image {
    aspect-ratio: 320 / 200;
    overflow: hidden;
}

.home-page .services-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .services-section .content {
    padding-top: 12px;
}

.home-page .services-section .label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 8px;
    background: var(--main-color);
    color: var(--main-text-color);
    font-size: 12px;
}

.home-page .services-section .title {
    margin: 0 0 16px;
    font-size: 32px;
}

.home-page .services-section .text {
    max-width: 480px;
    margin: 0;
    color: var(--muted-text-color);
}

.home-page .services-section .actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 12px;
}

.home-page .services-section .price {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: -0.03em;
}

/* inside */
.home-page .inside-section {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--main-text-color);
    overflow: hidden;
    --focus-color: var(--main-text-color);
}

.home-page .inside-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 21, 0.35);
}

.home-page .inside-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-page .inside-section .bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.home-page .inside-section .text {
    max-width: 420px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.3;
}

/* partners */
.home-page .partners-section {
    padding-top: 0;
}

.home-page .partners-section .list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    margin: 0;
    padding: 0;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    list-style: none;
}

.home-page .partners-section .item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    padding: 24px;
    background: var(--third-color);
}

.home-page .partners-section img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: var(--transition);
}

.home-page .partners-section .item:hover img {
    filter: none;
    opacity: 1;
}

@media (max-width: 1199.98px) {
    .home-page .hero-section .heading {
        font-size: 60px;
    }

    .home-page .services-section .item {
        grid-template-columns: 260px 1fr;
    }

    .home-page .services-section .actions {
        grid-column: 2;
        padding-top: 0;
    }
}

@media (max-width: 991.98px) {
    .home-page .hero-section .heading {
        font-size: 48px;
    }

    .home-page .hero-section .text {
        font-size: 18px;
    }

    .home-page .situation-section .item .number {
        margin-bottom: 24px;
    }

    .home-page .partners-section .list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .home-page .services-section .item {
        grid-template-columns: minmax(0, 1fr);
        padding: 32px 0;
    }

    .home-page .services-section .actions {
        grid-column: auto;
    }

    .home-page .services-section .title,
    .home-page .situation-section .title {
        font-size: 28px;
    }
}

@media (max-width: 575.98px) {
    .home-page .hero-section {
        padding-bottom: 48px;
    }

    .home-page .hero-section .heading {
        margin-bottom: 40px;
        font-size: 36px;
    }

    .home-page .inside-section .text {
        font-size: 20px;
    }

    .home-page .partners-section .list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/***** ABOUT *****/

/* gallery */
.about-page .gallery-section {
    padding: 32px 0 0;
    overflow: hidden;
}

.about-page .gallery-section .track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: gallery-scroll 60s linear infinite;
}

.about-page .gallery-section .image {
    width: 296px;
    aspect-ratio: 296 / 392;
    overflow: hidden;
}

.about-page .gallery-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes gallery-scroll {
    to {
        transform: translateX(calc(-50% - 6px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page .gallery-section {
        overflow-x: auto;
    }

    .about-page .gallery-section .track {
        animation: none;
    }
}

/* story */
.about-page .story-section .image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.about-page .story-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-page .story-section .text {
    margin-bottom: 48px;
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.3;
}

.about-page .story-section .text p:last-child {
    margin-bottom: 0;
}

.about-page .story-section .facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    margin: 0;
}

.about-page .story-section .fact {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.about-page .story-section dt {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-text-color);
}

.about-page .story-section dd {
    margin: 0;
}

/* values */
.about-page .values-section .item {
    height: 100%;
    padding: 24px;
    background: var(--third-color);
}

.about-page .values-section .icon {
    display: block;
    width: auto;
    height: 64px;
    margin-bottom: 48px;
}

.about-page .values-section .title {
    margin-bottom: 8px;
    font-size: 24px;
}

.about-page .values-section .text {
    margin: 0;
    color: var(--muted-text-color);
}

/* quote */
.about-page .quote-section {
    background: var(--main-color);
    color: var(--main-text-color);
}

.about-page .quote-section .content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-page .quote-section .quote {
    margin-bottom: 32px;
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.about-page .quote-section .author {
    font-family: var(--font-heading);
    font-size: 20px;
}

.about-page .quote-section .author span {
    display: block;
    margin-top: 4px;
    font-family: var(--font-base);
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    .about-page .quote-section .quote {
        font-size: 36px;
    }
}

@media (max-width: 575.98px) {
    .about-page .gallery-section .image {
        width: 220px;
    }

    .about-page .story-section .text {
        font-size: 20px;
    }

    .about-page .story-section .facts {
        grid-template-columns: 1fr;
    }

    .about-page .values-section .item {
        padding: 16px;
    }

    .about-page .values-section .icon {
        height: 48px;
        margin-bottom: 24px;
    }

    .about-page .values-section .title {
        font-size: 20px;
    }

    .about-page .quote-section .quote {
        font-size: 28px;
    }
}

/***** CASE STUDIES *****/

/* featured */
.case-studies-page .featured-section {
    padding: 32px 0 0;
}

.case-studies-page .featured-section .item {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    aspect-ratio: 1376 / 680;
    padding: 24px;
    color: var(--main-text-color);
    text-decoration: none;
    overflow: hidden;
    --focus-color: var(--main-text-color);
}

.case-studies-page .featured-section .item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 23, 21, 0) 50%, rgba(23, 23, 21, 0.45) 100%);
}

.case-studies-page .featured-section .background {
    transition: transform 0.8s ease;
}

.case-studies-page .featured-section .item:hover .background {
    transform: scale(1.03);
}

.case-studies-page .featured-section .item:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 4px;
}

.case-studies-page .featured-section .content,
.case-studies-page .featured-section .link {
    position: relative;
    z-index: 1;
}

.case-studies-page .featured-section .category::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

.case-studies-page .featured-section .category {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.case-studies-page .featured-section .title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* work */
.case-studies-page .work-section .filter {
    justify-content: flex-end;
    margin-bottom: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 767.98px) {
    .case-studies-page .featured-section .item {
        flex-direction: column;
        align-items: flex-start;
        aspect-ratio: 4 / 5;
    }

    .case-studies-page .featured-section .title {
        font-size: 36px;
    }

    .case-studies-page .work-section .filter {
        justify-content: flex-start;
    }
}

/***** CASE STUDY *****/

/* cover */
.case-study-page .cover-section {
    padding: 32px 0 0;
}

.case-study-page .images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.case-study-page .image {
    display: block;
    overflow: hidden;
}

.case-study-page .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-study-page a.image:hover img {
    transform: scale(1.03);
}

.case-study-page a.image:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 4px;
}

.case-study-page .cover-section .image {
    width: 100%;
    aspect-ratio: 1376 / 760;
}

.case-study-page .cover-section .split .image {
    width: calc(50% - 6px);
    aspect-ratio: 1;
}

.case-study-page .cover-section .details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin: 48px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.case-study-page .cover-section dt {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-text-color);
}

.case-study-page .cover-section dd {
    margin: 0;
}

/* story */
.case-study-page .story-section .block {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 24px;
    margin: 96px 0 48px;
}

.case-study-page .story-section .block:first-child {
    margin-top: 0;
}

.case-study-page .story-section .heading {
    margin: 0;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.case-study-page .story-section .number {
    position: relative;
    top: -0.35em;
    margin-left: 4px;
    font-family: var(--font-base);
    font-size: 14px;
    letter-spacing: 0;
    vertical-align: top;
}

.case-study-page .story-section .text {
    max-width: 680px;
    font-size: 18px;
}

.case-study-page .story-section .text p:last-child {
    margin-bottom: 0;
}

.case-study-page .story-section .text a {
    text-underline-offset: 4px;
}

.case-study-page .story-section .list {
    margin: 0 0 1rem;
    padding-left: 20px;
    color: var(--muted-text-color);
}

.case-study-page .story-section .list li + li {
    margin-top: 4px;
}

.case-study-page .story-section .image.full {
    width: 100%;
    aspect-ratio: 3 / 2;
}

.case-study-page .story-section .image.half {
    width: calc(50% - 6px);
    aspect-ratio: 4 / 5;
}

.case-study-page .story-section .image.half:only-child {
    margin-left: auto;
}

.case-study-page .story-section .image.third {
    width: calc((100% - 24px) / 3);
    aspect-ratio: 4 / 5;
}

/* next */
.case-study-page .next-section .item {
    display: block;
    text-decoration: none;
}

.case-study-page .next-section .image {
    display: block;
    aspect-ratio: 1376 / 600;
    margin-bottom: 12px;
    overflow: hidden;
}

.case-study-page .next-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.case-study-page .next-section .item:hover img {
    transform: scale(1.03);
}

.case-study-page .next-section .item:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 4px;
}

.case-study-page .next-section .category {
    margin-right: 12px;
    color: var(--muted-text-color);
}

@media (max-width: 991.98px) {
    .case-study-page .story-section .block {
        grid-template-columns: 1fr;
        margin-top: 80px;
    }

    .case-study-page .story-section .heading {
        font-size: 40px;
    }
}

@media (max-width: 767.98px) {
    .case-study-page .story-section .image.third {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .case-study-page .cover-section .split .image,
    .case-study-page .story-section .image.half {
        width: 100%;
    }

    .case-study-page .cover-section .details {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-page .story-section .heading {
        font-size: 32px;
    }
}

/***** PRICING *****/

/* intro */
.pricing-page .intro-section .images {
    margin-top: 32px;
}

.pricing-page .intro-section .image {
    height: 480px;
    margin-top: 0;
}

/* packages */
.pricing-page .packages-section .filter {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-page .packages-section .item {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-page .packages-section .label {
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--muted-text-color);
}

.pricing-page .packages-section .title {
    margin-bottom: 16px;
    font-size: 40px;
    letter-spacing: -0.03em;
}

.pricing-page .packages-section .text {
    max-width: 480px;
    color: var(--muted-text-color);
}

.pricing-page .packages-section .price {
    margin: 24px 0;
    font-family: var(--font-heading);
    font-size: 32px;
    letter-spacing: -0.03em;
}

.pricing-page .packages-section .features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-page .packages-section .features li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-page .packages-section .features li:first-child {
    padding-top: 0;
}

.pricing-page .packages-section .features svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.pricing-page .packages-section .features .x {
    color: var(--muted-text-color);
}

.pricing-page .packages-section .features .x span:last-child {
    text-decoration: line-through;
    text-decoration-color: var(--border-color);
}

/* notes */
.pricing-page .packages-section .notes {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 24px;
    margin-top: 64px;
}

.pricing-page .packages-section .notes .title {
    margin: 0;
    font-size: 32px;
}

.pricing-page .packages-section .notes dl {
    margin: 0;
}

.pricing-page .packages-section .note {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-page .packages-section .note dt {
    font-weight: 400;
}

.pricing-page .packages-section .note dd {
    margin: 0;
    text-align: right;
    color: var(--muted-text-color);
}

@media (max-width: 991.98px) {
    .pricing-page .intro-section .image {
        height: 320px;
    }

    .pricing-page .packages-section .notes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .pricing-page .intro-section .image {
        height: 240px;
    }

    .pricing-page .packages-section .title {
        font-size: 32px;
    }

    .pricing-page .packages-section .note {
        flex-direction: column;
        gap: 2px;
    }

    .pricing-page .packages-section .note dd {
        text-align: left;
    }
}

/***** BLOG *****/

/* posts */
.blog-page .posts-section {
    padding-top: 64px;
}

.blog-page .posts-section .toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.blog-page .posts-section .search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 300px;
    max-width: 100%;
    padding: 0 12px;
    background: var(--third-color);
    color: var(--muted-text-color);
}

.blog-page .posts-section .search:focus-within {
    outline: 2px solid var(--focus-color);
}

.blog-page .posts-section .search svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.blog-page .posts-section .search input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--second-text-color);
    font-size: 14px;
    outline: none;
}

.blog-page .posts-section .empty {
    margin: 32px 0 0;
    color: var(--muted-text-color);
}

/***** ARTICLE *****/

/* intro */
.article-page .intro-section .image {
    aspect-ratio: 1376 / 640;
}

/* body */
.article-page .body-section .content {
    font-size: 18px;
    line-height: 1.6;
}

.article-page .body-section .content h2 {
    margin: 48px 0 16px;
    font-size: 32px;
}

.article-page .body-section .content .image {
    margin: 32px 0;
    overflow: hidden;
}

.article-page .body-section .content .image img {
    width: 100%;
}

.article-page .body-section .back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    text-decoration: none;
}

.article-page .body-section .back:hover {
    text-decoration: underline;
}

.article-page .body-section .back svg {
    width: 16px;
    height: 16px;
}

.article-page .news-section {
    padding-top: 0;
}

@media (max-width: 767.98px) {
    .article-page .intro-section .image {
        aspect-ratio: 4 / 3;
    }

    .article-page .body-section .content {
        font-size: 16px;
    }

    .article-page .body-section .content h2 {
        font-size: 26px;
    }
}

/***** CONTACT *****/

/* intro */
.contact-page .intro-section .image {
    aspect-ratio: 1376 / 480;
}

/* form */
.contact-page .form-section .info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));
    gap: 24px;
    margin: 0;
}

.contact-page .form-section dt,
.contact-page .form-section label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-text-color);
}

.contact-page .form-section dd {
    margin: 0;
}

.contact-page .form-section dd a {
    text-decoration: none;
}

.contact-page .form-section dd a:hover {
    text-decoration: underline;
}

.contact-page .form-section input,
.contact-page .form-section select,
.contact-page .form-section textarea {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    color: var(--second-text-color);
    transition: border-color var(--transition);
}

.contact-page .form-section select {
    appearance: none;
    padding-right: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23171715' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;
}

.contact-page .form-section textarea {
    resize: vertical;
}

.contact-page .form-section input::placeholder,
.contact-page .form-section textarea::placeholder {
    color: var(--muted-text-color);
}

.contact-page .form-section input:focus,
.contact-page .form-section select:focus,
.contact-page .form-section textarea:focus {
    border-color: var(--second-text-color);
    outline: none;
}

.contact-page .form-section .t-btn {
    width: 100%;
}

@media (max-width: 767.98px) {
    .contact-page .intro-section .image {
        aspect-ratio: 4 / 3;
    }
}

/***** FOOTER *****/

.footer {
    position: relative;
    min-height: 100vh;
    padding: 104px 0 40px;
    overflow: hidden;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer a {
    text-decoration: none;
    transition: opacity var(--transition);
}

.footer a:hover {
    opacity: 0.6;
}

.footer a:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
}

/* main */
.footer .main {
    padding: 24px 24px 20px;
    background: var(--second-color);
}

.footer .logo {
    display: inline-block;
    margin-bottom: 24px;
}

.footer .logo img {
    display: block;
    width: auto;
    height: 32px;
}

.footer .heading {
    max-width: 420px;
    margin-bottom: 32px;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* links */
.footer .links .label {
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--muted-text-color);
}

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

.footer .links li + li {
    margin-top: 6px;
}

/* bottom */
.footer .bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 64px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.footer .bottom p {
    margin: 0;
}

@media (max-width: 575.98px) {
    .footer {
        min-height: 0;
        padding: 25px 0 160px;
    }

    .footer .heading {
        font-size: 36px;
    }
}
