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

/* fonts */
@font-face {
    font-family: "Sora";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../vendor/fonts/sora/sora-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Sora";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../vendor/fonts/sora/sora-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* variables */
:root {
    --main-color: #111111;
    --main-text-color: #ffffff;
    --second-color: #ffffff;
    --second-text-color: #111111;
    --third-color: #f3f3f3;
    --third-text-color: #111111;
    --accent-color: #d7263d;
    --accent-text-color: #ffffff;

    --muted-text-color: #5f5f5f;
    --soft-text-color: #a3a3a3;
    --placeholder-color: #e6e6e6;
    --light-text-color: color-mix(in srgb, var(--main-text-color) 75%, transparent);
    --light-border-color: color-mix(in srgb, var(--main-text-color) 25%, transparent);

    --body-font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --spec-font: Georgia, "Times New Roman", Times, serif;

    --radius: 16px;
    --radius-large: 20px;
    --radius-pill: 50px;

    /* dark CTA boxes: hero photo under a dark overlay */
    --photo-background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.62) 55%, rgba(0, 0, 0, 0.45) 100%),
        url("../images/hero/hero.jpg") center / cover no-repeat;
}

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

@media (min-width: 1200px) {
    .container {
        max-width: 1190px;
    }
}

/* typography */
body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    background: var(--second-color);
    color: var(--second-text-color);
}

h1, h2, h3, h4, h5, h6,
.heading {
    margin-bottom: 0.5em;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.875rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

.spec-font {
    font-family: var(--spec-font);
}

.label {
    margin-bottom: 16px;
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--accent-color);
}

/* buttons */
.t-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625em;
    padding: 0.875em 1.5em;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s ease;
}

.t-btn:has(> .icon) {
    padding-right: 3.5em;
}

.t-btn .icon {
    position: absolute;
    inset-block: 0;
    right: 0.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.125em;
    height: 2.125em;
    margin-block: auto;
    border-radius: 50%;
    overflow: hidden;
    transition: 0.3s ease;
}

.t-btn .icon svg {
    width: 1em;
    height: 1em;
}

.t-btn .icon-roll svg {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.t-btn .icon-roll .icon-copy {
    transform: translate(-2.125em, 2.125em);
}

.t-btn:is(:hover, :focus-visible) .icon-roll svg:first-child {
    transform: translate(2.125em, -2.125em);
}

.t-btn:is(:hover, :focus-visible) .icon-roll .icon-copy {
    transform: translate(0, 0);
}

@keyframes button-arrow-launch {
    0% { transform: translate(0, 0) rotate(0); }
    8% { transform: translate(-0.08em, 0.05em) rotate(-8deg); }
    16% { transform: translate(0.06em, -0.04em) rotate(6deg); }
    24% { transform: translate(-0.1em, 0.08em) rotate(-5deg); }
    32% {
        transform: translate(-0.18em, 0.18em) rotate(0);
        animation-timing-function: cubic-bezier(0.5, 0, 0.85, 0.35);
    }
    55%, 100% { transform: translate(2.125em, -2.125em) rotate(0); }
}

@keyframes button-arrow-return {
    0%, 45% { transform: translate(-2.125em, 2.125em); }
    82% { transform: translate(0.08em, -0.08em); }
    100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
    .t-btn:is(:hover, :focus-visible) .icon-roll svg:first-child {
        animation: button-arrow-launch 0.85s ease-in-out both;
    }

    .t-btn:is(:hover, :focus-visible) .icon-roll .icon-copy {
        animation: button-arrow-return 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t-btn .icon-roll svg {
        transition: none;
    }

    .t-btn .icon-roll .icon-copy {
        display: none;
    }

    .t-btn:is(:hover, :focus-visible) .icon-roll svg:first-child {
        transform: none;
    }
}

.t-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--second-color), 0 0 0 5px var(--accent-color);
}

.t-btn.theme .icon,
.t-btn.theme2 .icon,
.t-btn.theme3 .icon {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

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

.t-btn.theme:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

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

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

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

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

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

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

.t-btn.outline {
    background: transparent;
    color: inherit;
    border-color: var(--light-border-color);
}

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

/* section head */
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-end;
    gap: 20px 32px;
    margin-bottom: 60px;
}

.section-head-title {
    min-width: 0;
}

.section-head-title:only-child {
    grid-column: 1 / -1;
}

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

.section-head-title .text {
    margin: 0.875em 0 0;
    max-width: 36rem;
}

.section-head .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    justify-self: end;
    max-width: 100%;
}

@media (min-width: 768px) {
    .section-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* media placeholder */
.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--placeholder-color);
    color: var(--soft-text-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.media-placeholder > svg {
    width: 32px;
    height: 32px;
}

.media-placeholder {
    position: relative;
}

.media-placeholder .code {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 10px;
    background: var(--second-color);
    color: var(--muted-text-color);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* images */
.media {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.image-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
}

.image-link .media {
    height: 100%;
    transition: transform 0.6s ease;
}

.image-link:hover .media {
    transform: scale(1.04);
}

/* film grain overlay */
.grain {
    position: relative;
    isolation: isolate;
}

.grain::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.09;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* animations */
.js [data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.js [data-animate="zoom"] {
    transform: scale(0.96);
}

.js [data-animate].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .header {
        animation: none;
    }
}

/* check list */
.checks {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted-text-color);
}

.checks svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 4px;
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-radius: 50%;
    margin-top: 1px;
}

/* definition list */
.details {
    display: grid;
    gap: 4px;
    margin: 0;
}

.details dt {
    margin-top: 12px;
    color: var(--soft-text-color);
    font-size: 0.875rem;
    font-weight: 400;
}

.details dt:first-child {
    margin-top: 0;
}

.details dd {
    margin: 0;
}

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

.filters .filter {
    padding: 0.75em 1.375em;
    background: var(--third-color);
    color: var(--muted-text-color);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: 0.3s ease;
}

.filters .filter:hover {
    color: var(--second-text-color);
}

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


/* rating */
.stars {
    display: inline-flex;
    gap: 2px;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.avatars {
    display: flex;
}

.avatars .avatar {
    flex: 0 0 auto;
    object-fit: cover;
    width: 44px;
    height: 44px;
    margin-left: -12px;
    background: var(--placeholder-color);
    border: 2px solid var(--second-color);
    border-radius: 50%;
}

.avatars .avatar:first-child {
    margin-left: 0;
}

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

/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1041;
    padding-top: 16px;
    color: var(--main-text-color);
    animation: header-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

@keyframes header-in {
    from { opacity: 0; transform: translateY(-24px); }
}

.header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 10px 12px 10px 20px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)), rgba(17, 17, 17, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled .bar {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent), rgba(17, 17, 17, 0.74);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* logo */
.header .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.header .logo .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-radius: 10px;
}

.header .logo .icon svg {
    width: 20px;
    height: 20px;
}

.header .logo .image {
    width: auto;
    height: 60px;
}

@media (max-width: 575.98px) {
    .header .logo .image {
        height: 50px;
    }
}

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

.header .navigation .link {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header .navigation .link:hover,
.header .navigation .link:focus-visible,
.header .navigation .link[aria-current="page"] {
    color: var(--accent-color);
    text-decoration: none;
}

/* actions */
.header .actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .toggler,
.header .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    color: inherit;
    border: 1px solid var(--light-border-color);
    border-radius: 50%;
}

.header .toggler svg,
.header .close svg {
    width: 22px;
    height: 22px;
}

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

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

.header .offcanvas .title {
    margin: 0;
    font-size: 1.25rem;
}

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

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

.header .offcanvas .navigation .link {
    font-size: 1.125rem;
}

.header .offcanvas .phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text-color);
    text-decoration: none;
}

.header .offcanvas .phone svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

/***** SECTIONS *****/

:where(.page) section {
    padding: 70px 0;
}

/* hero */
.hero-section {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    padding: 180px 0 40px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 55%, var(--main-color) 100%),
        url("../images/hero/hero-home-film.jpg") center / cover no-repeat;
    color: var(--main-text-color);
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 80px;
}

.hero-section .content {
    max-width: 780px;
}

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

.hero-section .label {
    font-weight: 600;
}

.hero-section .heading {
    margin-bottom: 20px;
}

.hero-section .text {
    max-width: 540px;
    font-size: 1.125rem;
}

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

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

.hero-section .score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.hero-section .stars {
    color: var(--accent-color);
}

.hero-section .clients {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-section .clients .text {
    margin: 0;
    color: var(--main-text-color);
    line-height: 1.5;
}

.hero-section .avatars .avatar {
    background: var(--soft-text-color);
    border-color: var(--main-color);
}

.hero-section .gallery {
    display: flex;
    flex: 0 1 384px;
    gap: 12px;
}

.hero-section .gallery .frame {
    flex: 1 1 0;
    min-width: 0;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius);
    transition: flex-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, transform 0.8s ease;
}

.hero-section .gallery .frame:first-child {
    flex-grow: 2;
}

.hero-section .gallery .media {
    height: 100%;
    transition: transform 0.6s ease;
}

.hero-section .gallery:hover .frame,
.hero-section .gallery:focus-within .frame {
    flex-grow: 1;
}

.hero-section .gallery:hover .frame:hover,
.hero-section .gallery:focus-within .frame:focus-visible {
    flex-grow: 3.5;
}

.hero-section .gallery .frame:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.hero-section .gallery .frame:hover .media,
.hero-section .gallery .frame:focus-visible .media {
    transform: scale(1.06);
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 150px 0 32px;
    }

    .hero-section .container {
        gap: 32px;
    }

    .hero-section .heading {
        font-size: clamp(2.125rem, 9vw, 2.5rem);
    }

    .hero-section .actions {
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 24px;
    }

    .hero-section .gallery {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section .gallery .frame,
    .hero-section .gallery .media {
        transition: none;
    }
}

/* about */
.about-section .lead {
    margin-bottom: 32px;
    font-size: clamp(1.375rem, 2.4vw, 2rem);
    line-height: 1.3;
    color: var(--main-color);
}

.about-section .lead .muted {
    color: var(--soft-text-color);
}

.about-section .gallery {
    margin-top: 60px;
}

.about-section .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.about-section .stat .number {
    margin-bottom: 4px;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1;
}

.about-section .stat .title {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 0.9375rem;
}

@media (max-width: 575.98px) {
    .about-section .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .about-section .stat:last-child {
        grid-column: 1 / -1;
    }

    .about-section .stat .number {
        font-size: clamp(2.125rem, 7vw, 2.5rem);
    }

    .about-section .stat .title {
        font-size: 0.875rem;
    }
}

.about-section .wide {
    height: 240px;
}

.about-section .tall {
    height: 100%;
    min-height: 350px;
}

/* services */
.services-section .item {
    margin: 0 0 24px;
    padding: 14px;
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.services-section .image {
    height: 100%;
    min-height: 340px;
}

.services-section .content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 6px 6px;
}

.services-section .title {
    margin-bottom: 12px;
}

.services-section .text {
    color: var(--muted-text-color);
    font-size: 1.0625rem;
}

.services-section .tags,
.services-section .specs {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-section .tags {
    gap: 12px;
    margin-bottom: 32px;
}

.services-section .tag {
    padding: 10px 20px;
    background: var(--second-color);
    color: var(--muted-text-color);
    border-radius: var(--radius-pill);
}

.services-section .specs {
    gap: 12px 20px;
    margin-top: auto;
    padding: 12px;
    background: var(--second-color);
    border-radius: 12px;
}

.services-section .spec {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-text-color);
}

.services-section .spec .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--third-color);
    color: var(--accent-color);
    border-radius: 50%;
}

.services-section .spec svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 992px) {
    .services-section .content {
        padding: 10px 10px 0 24px;
    }
}

/* benefits */
.benefits-section .visual {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.benefits-section .visual .image {
    height: 320px;
}

.benefits-section .visual::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--main-color) 55%, transparent));
    pointer-events: none;
}

.benefits-section .marquee {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 1;
    overflow: hidden;
    color: var(--main-text-color);
    font-size: 1.75rem;
    font-weight: 500;
}

.benefits-section .track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: marquee 18s linear infinite;
}

.benefits-section .track svg {
    width: 22px;
    height: 22px;
    color: var(--accent-color);
    fill: currentColor;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .benefits-section .track {
        animation: none;
    }
}

.benefits-section .tall {
    height: 100%;
    min-height: 450px;
}

.benefits-section .box {
    margin-top: 20px;
    padding: 24px;
    background: var(--third-color);
    border-radius: var(--radius);
}

.benefits-section .clients {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

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

.benefits-section .avatars .avatar {
    border-color: var(--third-color);
}

.benefits-section .score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--muted-text-color);
}

.benefits-section .score .stars {
    color: var(--accent-color);
}

.benefits-section .stat {
    margin-top: 0;
    text-align: center;
}

.benefits-section .stat .title {
    margin-bottom: 4px;
    color: var(--muted-text-color);
}

.benefits-section .stat .number {
    margin: 0;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--accent-color);
}

.benefits-section .satisfaction .title {
    margin-bottom: 8px;
    font-size: 1.375rem;
}

.benefits-section .satisfaction .text {
    color: var(--muted-text-color);
    font-size: 0.9375rem;
}

.benefits-section .satisfaction .avatars {
    justify-content: center;
    margin-top: 32px;
}

.benefits-section .satisfaction .avatars .avatar {
    width: 52px;
    height: 52px;
    margin-left: 8px;
}

.benefits-section .caption {
    margin: 16px 0 0;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
}

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

.testimonials-section .media-placeholder {
    background: color-mix(in srgb, var(--main-text-color) 8%, transparent);
    color: var(--light-border-color);
}

.testimonials-section .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    color: var(--main-text-color);
    border: 1px solid var(--light-border-color);
    border-radius: 50%;
    transition: 0.3s ease;
}

.testimonials-section .arrow:hover {
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-color: var(--accent-color);
}

.testimonials-section .arrow svg {
    width: 18px;
    height: 18px;
}

.testimonials-section .quote {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 20px;
    background: var(--main-color);
    border: 1px solid var(--light-border-color);
    border-radius: var(--radius-large);
}

.testimonials-section .quote .image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.testimonials-section .quote .image-link {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
}

.testimonials-section .quote .image-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.testimonials-section .quote .content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.testimonials-section .quote .text {
    margin-bottom: 24px;
    color: var(--light-text-color);
    font-size: 1.0625rem;
}

.testimonials-section .quote figcaption {
    margin-top: auto;
    padding-right: 56px;
}

.testimonials-section .quote .name {
    display: block;
    font-size: 1.25rem;
}

.testimonials-section .quote .role {
    color: var(--soft-text-color);
    font-size: 0.9375rem;
}

.testimonials-section .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.75em;
    color: var(--main-text-color);
    text-decoration: none;
}

.testimonials-section .project-link:hover {
    color: var(--accent-color);
}

.testimonials-section .project-link svg {
    width: 1em;
    height: 1em;
}

.testimonials-section .quote .icon {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 44px;
    height: 44px;
    color: var(--accent-color);
}

.testimonials-section .side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.testimonials-section .counter {
    margin: 0;
    font-size: 2.25rem;
    line-height: 1;
}

.testimonials-section .counter .total {
    color: var(--soft-text-color);
    font-size: 1rem;
}

.testimonials-section .thumbs {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 516px;
}

.testimonials-section .thumb {
    flex: 1 1 0;
    max-width: 120px;
    aspect-ratio: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--light-border-color);
    border-radius: var(--radius);
    transition: 0.3s ease;
}

.testimonials-section .thumb.active,
.testimonials-section .thumb:hover {
    border-color: var(--accent-color);
}

.testimonials-section .thumb .media-placeholder,
.testimonials-section .thumb .media {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.testimonials-section .thumb .media-placeholder svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 992px) {
    .testimonials-section .side {
        align-items: flex-end;
    }
}

/* team */
.team-section .member {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-large);
}

.team-section .image {
    height: 430px;
    border-radius: 0;
}

.team-section .info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 80px 24px 24px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--main-color) 75%, transparent));
    color: var(--main-text-color);
}

.team-section .name {
    margin: 0 0 4px;
    font-size: 1.375rem;
}

.team-section .role {
    margin: 0;
    font-size: 0.9375rem;
}

.team-section .info .icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-radius: 50%;
}

/* faq */
.faq-section .intro {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faq-section .heading {
    max-width: 380px;
}

.faq-section .intro .t-btn {
    align-self: flex-start;
}

.faq-section .intro .image {
    width: 220px;
    height: 180px;
    margin-top: 40px;
}

.faq-section .intro .t-btn + .image {
    margin-top: 40px;
}

.faq-section .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-width: 0;
    --bs-accordion-btn-focus-box-shadow: none;
    border-top: 1px solid var(--placeholder-color);
}

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

.faq-section .accordion-header {
    margin: 0;
}

.faq-section .accordion-button {
    gap: 24px;
    padding: 20px 0;
    background: transparent;
    color: var(--muted-text-color);
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--main-color);
}

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

.faq-section .accordion-button::after {
    display: none;
}

.faq-section .accordion-button .icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    background: var(--third-color);
    color: var(--main-color);
    border-radius: 50%;
    transition: 0.3s ease;
}

.faq-section .accordion-button:not(.collapsed) .icon {
    background: var(--accent-color);
    color: var(--accent-text-color);
    transform: rotate(45deg);
}

.faq-section .accordion-button .icon svg {
    width: 18px;
    height: 18px;
}

.faq-section .accordion-body {
    padding: 0 60px 20px 0;
    color: var(--muted-text-color);
}

@media (min-width: 992px) {
    .faq-section .intro .image {
        margin-top: auto;
    }
}

/* blog */
.blog-section .post {
    height: 100%;
    padding: 24px;
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.blog-section .image {
    height: 300px;
    margin-bottom: 24px;
}

.blog-section .title {
    margin-bottom: 12px;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
}

.blog-section .link {
    color: var(--muted-text-color);
    text-decoration: none;
    transition: 0.3s ease;
}

.blog-section .link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Unified homepage assurance and contact */
.home-assurance-section {
    background: var(--third-color);
}

.home-assurance-section .assurance-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-assurance-section .assurance-content {
    padding: clamp(0px, 2vw, 24px);
}

.home-assurance-section .assurance-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
}

.home-assurance-section .assurance-contact .link {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    color: var(--main-color);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.home-assurance-section .assurance-contact .link:hover {
    color: var(--accent-color);
}

.home-assurance-section .assurance-contact svg {
    flex: 0 0 auto;
    width: 1.25em;
    height: 1.25em;
    color: var(--accent-color);
}

/* contact */
.contact-section .content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-section .text {
    color: var(--muted-text-color);
    font-size: 1.125rem;
}

.contact-section .person {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 12px 12px 12px 12px;
    background: var(--main-color);
    color: var(--main-text-color);
    border-radius: var(--radius);
}

.contact-section .person .avatar {
    width: 80px;
    height: 80px;
    background: color-mix(in srgb, var(--main-text-color) 12%, transparent);
    color: var(--light-text-color);
    border-radius: 10px;
}

.contact-section .person .name {
    margin: 0;
    font-size: 1.375rem;
}

.contact-section .person .role {
    margin: 0;
    color: var(--light-text-color);
}

.contact-section .person .t-btn {
    margin-left: auto;
}

.contact-section .box {
    margin-bottom: 16px;
    padding: 24px;
    background: var(--third-color);
    border-radius: var(--radius);
}

.contact-section .box .number {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
}

.contact-section .box .title {
    margin: 0;
    color: var(--muted-text-color);
}

.contact-section .image {
    height: 290px;
}

@media (min-width: 992px) {
    .contact-section .person {
        margin-top: auto;
    }
}

/***** PAGES *****/

/* services: links, more */
.services-section .title a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

.services-section .title a:hover {
    color: var(--accent-color);
}

.services-section .checks {
    margin-bottom: 32px;
}

.services-section .content > .actions {
    margin-top: auto;
}

.services-section .specs .more {
    margin-left: auto;
}

.services-section .specs .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--main-color);
    color: var(--main-text-color);
    border-radius: 50%;
    transition: 0.3s ease;
}

.services-section .specs .arrow:hover {
    background: var(--accent-color);
    transform: rotate(45deg);
}

.services-section .specs .arrow svg {
    width: 20px;
    height: 20px;
}

/* projects */
.project-card {
    display: block;
    height: 100%;
    padding: 12px;
    background: var(--third-color);
    color: inherit;
    border-radius: var(--radius-large);
    text-decoration: none;
}

.project-card .image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
}

.project-card .cover {
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.project-card:hover .cover {
    transform: scale(1.05);
}

.project-card .icon {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-radius: 50%;
    transition: 0.3s ease;
}

.project-card:hover .icon {
    transform: rotate(45deg);
}

.project-card .icon svg {
    width: 20px;
    height: 20px;
}

.project-card .info {
    display: grid;
    gap: 6px;
    padding: 20px 8px 8px;
}

.project-card .title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.3;
}

.project-card .meta {
    color: var(--muted-text-color);
    font-size: 0.9375rem;
}

.projects-page .filters {
    margin-bottom: 40px;
}

.projects-page .project-card .cover {
    aspect-ratio: 16 / 9;
}

/* page hero */
.page-hero {
    display: flex;
    align-items: flex-end;
    min-height: 560px;
    padding: 170px 0 70px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 50%, var(--main-color) 100%),
        var(--background, radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent-color) 35%, transparent), transparent 55%)) center / cover no-repeat,
        var(--main-color);
    color: var(--main-text-color);
}

.page-hero .container {
    width: 100%;
}

.page-hero .content {
    max-width: 820px;
}

.page-hero .label {
    font-weight: 600;
}

.page-hero .heading {
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 4.6vw, 3.75rem);
    font-weight: 600;
}

.page-hero .text {
    max-width: 620px;
    color: var(--light-text-color);
    font-size: 1.125rem;
}

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

.page-hero .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.page-hero .meta .item {
    padding: 8px 16px;
    border: 1px solid var(--light-border-color);
    border-radius: var(--radius-pill);
    color: var(--light-text-color);
    font-size: 0.9375rem;
}

.page-hero > .code {
    position: absolute;
    right: 25px;
    bottom: 24px;
    padding: 2px 10px;
    background: color-mix(in srgb, var(--main-text-color) 12%, transparent);
    color: var(--light-text-color);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.page-hero > .illustration-note {
    position: absolute;
    right: 25px;
    bottom: 24px;
    color: var(--light-text-color);
    font-size: 0.75rem;
}

/* cta */
.cta-section .box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(32px, 5vw, 64px);
    overflow: hidden;
    background: var(--photo-background);
    color: var(--main-text-color);
    border-radius: var(--radius-large);
}

.cta-section .content {
    max-width: 620px;
}

.cta-section .text {
    margin: 0;
    color: var(--light-text-color);
    font-size: 1.125rem;
}

.cta-section .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* feature boxes (values, benefits) */
.feature {
    position: relative;
    height: 100%;
    padding: 28px 24px;
    background: var(--third-color);
    border-radius: var(--radius-large);
    transition: 0.3s ease;
}

.feature:hover {
    background: var(--main-color);
    color: var(--main-text-color);
}

.feature .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 40px;
    background: var(--second-color);
    color: var(--accent-color);
    border-radius: 50%;
}

.feature .icon svg {
    width: 24px;
    height: 24px;
}

.feature .title {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature .text {
    margin: 0;
    color: var(--muted-text-color);
    transition: 0.3s ease;
}

.feature:hover .text {
    color: var(--light-text-color);
}

/* process */
.process-section {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.8) 100%),
        url("../images/hero/hero.jpg") center / cover no-repeat;
    color: var(--main-text-color);
}

@media (min-width: 992px) {
    .process-section {
        background-attachment: fixed;
    }
}

.process-section .steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-section .step {
    position: relative;
    padding: 24px;
    background: color-mix(in srgb, var(--main-text-color) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--main-text-color) 18%, transparent);
    border-radius: var(--radius-large);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--main-text-color) 20%, transparent), 0 20px 40px -24px rgb(0 0 0 / 0.6);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    transition: 0.3s ease;
}

.process-section .step:hover {
    background: color-mix(in srgb, var(--main-text-color) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent-color) 70%, transparent);
}

.process-section .step .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 32px;
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-radius: 50%;
}

.process-section .step .icon svg {
    width: 22px;
    height: 22px;
}

.process-section .step .title {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.process-section .step .text {
    margin: 0;
    color: var(--light-text-color);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .process-section .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .process-section .steps {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* about */
.story-section .image {
    aspect-ratio: 4 / 5;
    height: auto;
}

.story-section .lead,
.intro-section .lead,
.detail-section .lead {
    margin-bottom: 24px;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.4;
}

.story-section .text,
.intro-section .text,
.detail-section .text {
    color: var(--muted-text-color);
    font-size: 1.0625rem;
}

.story-section .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--placeholder-color);
}

.story-section .stat .number {
    margin-bottom: 4px;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 300;
    line-height: 1;
}

.story-section .stat .title {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 0.9375rem;
}

.values-section .banner {
    margin-top: 24px;
}

.values-section .banner .image {
    height: clamp(220px, 30vw, 360px);
}

.company-section .box {
    padding: clamp(24px, 4vw, 48px);
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.company-section .title {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

/* service detail */
.intro-section .includes {
    padding: 32px;
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.intro-section .includes .title {
    margin-bottom: 24px;
    font-size: 1.375rem;
}

.intro-section .includes .checks {
    margin-bottom: 32px;
}

.intro-section .gallery {
    margin-top: 40px;
}

.intro-section .gallery .image {
    aspect-ratio: 4 / 3;
    height: auto;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 12px 12px 24px;
    background: var(--third-color);
    color: inherit;
    border-radius: var(--radius-large);
    text-decoration: none;
}

.service-card .image {
    display: block;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: var(--radius);
}

.service-card .cover {
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.service-card:hover .cover {
    transform: scale(1.05);
}

.service-card .title,
.service-card .text {
    padding: 0 8px;
}

.service-card .title {
    font-size: 1.25rem;
    font-weight: 500;
}

.service-card .text {
    color: var(--muted-text-color);
    font-size: 0.9375rem;
}

.service-card .icon {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--main-color);
    color: var(--main-text-color);
    border-radius: 50%;
    transition: 0.3s ease;
}

.service-card:hover .icon {
    background: var(--accent-color);
    transform: rotate(45deg);
}

.service-card .icon svg {
    width: 18px;
    height: 18px;
}

.service-card .media-placeholder.cover {
    min-height: 180px;
}

.related-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--placeholder-color);
}

.related-posts .label {
    margin: 0;
}

.related-posts .list,
.sidebar .list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-posts .link,
.sidebar .list .link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--second-text-color);
    text-decoration: none;
    transition: 0.3s ease;
}

.related-posts .link:hover,
.sidebar .list .link:hover {
    color: var(--accent-color);
}

.related-posts .link svg,
.sidebar .list .link svg {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

/* project detail */
.detail-section .facts {
    padding: 32px;
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.detail-section .facts .details {
    margin-bottom: 28px;
}

.detail-section .facts .tag {
    display: inline-block;
    margin: 6px 6px 0 0;
    padding: 6px 14px;
    background: var(--second-color);
    color: var(--second-text-color);
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.detail-section .facts .tag:hover {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.detail-section .facts .title {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.gallery-section .photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    gap: 12px;
}

.gallery-section .photo {
    position: relative;
    display: block;
    grid-column: span 2;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-section .photo .media {
    aspect-ratio: 1169 / 540;
    height: auto;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.gallery-section .photo.square .media {
    aspect-ratio: 1;
}

.gallery-section .photo:hover .media {
    transform: scale(1.04);
}

.gallery-section .photo:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--second-color), 0 0 0 5px var(--accent-color);
}

.gallery-section .zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(6px);
    transition: 0.3s ease;
}

.gallery-section .zoom svg {
    width: 18px;
    height: 18px;
}

.gallery-section .photo:hover .zoom,
.gallery-section .photo:focus-visible .zoom {
    opacity: 1;
    transform: none;
}

@media (min-width: 768px) {
    .gallery-section .photos {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-section .photo:first-child {
        grid-column: span 4;
    }

    .gallery-section .photo.square {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--placeholder-color);
}

.pager .link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--second-text-color);
    text-decoration: none;
    font-size: 1.125rem;
    transition: 0.3s ease;
}

.pager .link.next {
    margin-left: auto;
    text-align: right;
}

.pager .link:hover {
    color: var(--accent-color);
}

.pager .hint {
    display: block;
    color: var(--soft-text-color);
    font-size: 0.875rem;
}

.pager .icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--third-color);
    border-radius: 50%;
    transition: 0.3s ease;
}

.pager .link:hover .icon {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.pager .icon svg {
    width: 20px;
    height: 20px;
}

/* lightbox */
.lightbox .modal-content {
    position: relative;
    background: transparent;
    border: 0;
}

.lightbox .image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: var(--radius);
}

.lightbox .caption {
    margin: 16px 0 0;
    color: var(--main-text-color);
    text-align: center;
    font-size: 0.9375rem;
}

.lightbox .close,
.lightbox .arrow {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: var(--second-color);
    color: var(--second-text-color);
    border: 0;
    border-radius: 50%;
    transition: 0.3s ease;
}

.lightbox .close {
    top: -60px;
    right: 0;
}

.lightbox .arrow {
    top: calc(50% - 40px);
}

.lightbox .prev {
    left: 12px;
}

.lightbox .next {
    right: 12px;
}

.lightbox .close:hover,
.lightbox .arrow:hover {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.lightbox .close svg,
.lightbox .arrow svg {
    width: 20px;
    height: 20px;
}

.modal-backdrop.show {
    opacity: 0.88;
}

/* blog */
.blog-section .post .meta,
.blog-section .featured .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-bottom: 12px;
    color: var(--muted-text-color);
    font-size: 0.875rem;
}

.blog-section .category {
    padding: 4px 12px;
    background: var(--main-color);
    color: var(--main-text-color);
    border-radius: var(--radius-pill);
}

.blog-section .post .image-link {
    height: auto;
    margin-bottom: 24px;
}

.blog-section .post .image-link .image {
    margin-bottom: 0;
}

.blog-section .title a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

.blog-section .title a:hover {
    color: var(--accent-color);
}

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

.blog-page .post .image,
.post-page .post .image {
    height: 220px;
}

.blog-section .featured {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
    padding: 14px;
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.blog-section .featured .image {
    height: 100%;
    min-height: 300px;
}

.blog-section .featured .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px 10px;
}

.blog-section .featured .title {
    margin-bottom: 16px;
    font-size: clamp(1.625rem, 3vw, 2.5rem);
}

.blog-section .featured .excerpt {
    margin-bottom: 32px;
    font-size: 1.0625rem;
}

@media (min-width: 992px) {
    .blog-section .featured {
        grid-template-columns: 1.2fr 1fr;
    }

    .blog-section .featured .content {
        justify-content: center;
        padding: 24px 24px 24px 16px;
    }
}

/* article */
.article-section .cover {
    margin-bottom: 40px;
}

.article-section .cover .image {
    aspect-ratio: 16 / 9;
    height: auto;
}

.article {
    color: var(--muted-text-color);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.article > p:first-child {
    color: var(--second-text-color);
    font-size: clamp(1.1875rem, 2vw, 1.375rem);
    line-height: 1.6;
}

.article h2 {
    margin: 48px 0 16px;
    color: var(--second-text-color);
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

.article p,
.article ul {
    margin-bottom: 20px;
}

.article ul {
    padding-left: 0;
    list-style: none;
}

.article li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 28px;
}

.article li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 4px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

.article strong {
    color: var(--second-text-color);
    font-weight: 600;
}

.article-section .share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--placeholder-color);
    color: var(--muted-text-color);
}

.article-section .share .link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    color: var(--second-text-color);
    border: 0;
    text-decoration: none;
    transition: 0.3s ease;
}

.article-section .share .link:hover {
    color: var(--accent-color);
}

.article-section .share svg {
    width: 18px;
    height: 18px;
}

.sidebar {
    display: grid;
    gap: 20px;
}

.sidebar .box {
    padding: 28px;
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.sidebar .box.dark {
    overflow: hidden;
    background: var(--photo-background);
    color: var(--main-text-color);
}

.sidebar .title {
    margin-bottom: 12px;
    font-size: 1.375rem;
}

.sidebar .box.dark .text {
    color: var(--light-text-color);
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 110px;
    }
}

/* faq page */
.faq-page .sticky {
    display: grid;
    gap: 20px;
}

.faq-page .topics {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.faq-page .topics .link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: var(--muted-text-color);
    border-radius: var(--radius);
    text-decoration: none;
    transition: 0.3s ease;
}

.faq-page .topics .link:hover {
    background: var(--second-color);
    color: var(--second-text-color);
}

.faq-page .help {
    padding: 28px;
    overflow: hidden;
    background: var(--photo-background);
    color: var(--main-text-color);
    border-radius: var(--radius-large);
}

.faq-page .help .title {
    font-size: 1.375rem;
}

.faq-page .help .text {
    color: var(--light-text-color);
}

.faq-page .group {
    scroll-margin-top: 120px;
}

.faq-page .group + .group {
    margin-top: 56px;
}

.faq-page .group-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

@media (min-width: 992px) {
    .faq-page .sticky {
        position: sticky;
        top: 110px;
    }
}

/* contact page */
.channels-section {
    padding-bottom: 0 !important;
}

.channel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 24px;
    background: var(--third-color);
    color: inherit;
    border-radius: var(--radius-large);
    text-decoration: none;
    transition: 0.3s ease;
}

.channel:hover {
    background: var(--main-color);
    color: var(--main-text-color);
}

.channel .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-radius: 50%;
}

.channel .icon svg {
    width: 22px;
    height: 22px;
}

.channel .title {
    color: var(--soft-text-color);
    font-size: 0.9375rem;
}

.channel .value {
    font-size: 1rem;
    font-weight: 500;
    word-break: break-word;
}

.form-section .text {
    color: var(--muted-text-color);
    font-size: 1.0625rem;
}

.form-section .person {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    padding: 12px;
    background: var(--main-color);
    color: var(--main-text-color);
    border-radius: var(--radius);
}

.form-section .person .avatar {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 10px;
}

.form-section .person .media-placeholder.avatar {
    background: color-mix(in srgb, var(--main-text-color) 12%, transparent);
}

.person .media-placeholder .code {
    display: none;
}

.form-section .person .name {
    margin: 0;
    font-size: 1.25rem;
}

.form-section .person .role {
    margin: 0;
    color: var(--light-text-color);
}

.form-section .box {
    padding: clamp(24px, 4vw, 40px);
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.form-section .form-label {
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

.form-section .input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    background: var(--second-color);
    color: var(--second-text-color);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.form-section textarea.input {
    resize: vertical;
}

.form-section .input:focus-visible {
    outline: none;
    border-color: var(--accent-color);
}

.form-section .input.is-invalid,
.form-section .consent.is-invalid {
    border-color: var(--accent-color);
}

.form-section .error {
    margin: 6px 0 0;
    color: var(--accent-color);
    font-size: 0.875rem;
}

.form-section .consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted-text-color);
    font-size: 0.9375rem;
    cursor: pointer;
}

.form-section .consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent-color);
}

.form-section .hint {
    margin: 12px 0 0;
    color: var(--soft-text-color);
    font-size: 0.875rem;
}

.notice {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: var(--radius);
}

.notice svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

.notice .title {
    margin: 0;
    font-weight: 600;
}

.notice .text {
    margin: 4px 0 0;
    font-size: 0.9375rem;
}

.notice.success {
    background: #e8f5ec;
    color: #1b5e33;
}

.notice.error {
    background: color-mix(in srgb, var(--accent-color) 12%, var(--second-color));
    color: #8f1426;
}

.map-section {
    padding-top: 0 !important;
}

.map-section .map {
    overflow: hidden;
    height: 420px;
    border-radius: var(--radius-large);
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.4s ease;
}

.map-section .map:hover {
    filter: none;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* quote wizard page */
.wizard-section {
    scroll-margin-top: 100px;
}

/* progress sidebar */
.wizard-aside {
    display: grid;
    gap: 20px;
}

@media (min-width: 992px) {
    .wizard-aside {
        position: sticky;
        top: 110px;
    }
}

.wizard-progress {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 12px;
    list-style: none;
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.wizard-progress .item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    color: var(--muted-text-color);
    border: 0;
    border-radius: var(--radius);
    text-align: left;
    transition: 0.3s ease;
}

.wizard-progress .item:not(:disabled):hover {
    background: var(--second-color);
    color: var(--second-text-color);
}

.wizard-progress .item:disabled {
    color: var(--soft-text-color);
    cursor: default;
}

.wizard-progress .item.is-current {
    background: var(--second-color);
    color: var(--second-text-color);
    font-weight: 500;
}

.wizard-progress .marker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1.5px solid color-mix(in srgb, var(--main-color) 15%, transparent);
    border-radius: 50%;
    font-size: 0.875rem;
    transition: 0.3s ease;
}

.wizard-progress .marker svg {
    display: none;
    width: 16px;
    height: 16px;
}

.wizard-progress .is-current .marker {
    background: var(--main-color);
    color: var(--main-text-color);
    border-color: var(--main-color);
}

.wizard-progress .is-done .marker {
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-color: var(--accent-color);
}

.wizard-progress .is-done .marker .number {
    display: none;
}

.wizard-progress .is-done .marker svg {
    display: block;
}

.wizard-aside .help {
    padding: 28px;
    overflow: hidden;
    background: var(--photo-background);
    color: var(--main-text-color);
    border-radius: var(--radius-large);
}

.wizard-aside .help .title {
    margin-bottom: 6px;
    font-size: 1.25rem;
    font-weight: 500;
}

.wizard-aside .help .text {
    color: var(--light-text-color);
}

/* compact progress (mobile) */
.wizard-bar {
    position: sticky;
    top: 92px;
    z-index: 5;
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--main-color);
    color: var(--main-text-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.wizard-bar .track {
    height: 4px;
    background: color-mix(in srgb, var(--main-text-color) 15%, transparent);
    border-radius: var(--radius-pill);
}

.wizard-bar .fill {
    display: block;
    height: 100%;
    background: var(--accent-color);
    border-radius: inherit;
    transition: width 0.4s ease;
}

@media (min-width: 992px) {
    .wizard-bar {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .wizard-section .col-lg-4 {
        display: none;
    }
}

/* form card */
.wizard {
    padding: clamp(22px, 4vw, 44px);
    background: var(--third-color);
    border-radius: var(--radius-large);
}

.wizard-step.is-entering {
    animation: wizard-in 0.45s ease both;
}

@keyframes wizard-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wizard-step.is-entering {
        animation: none;
    }
}

.wizard .step-head {
    margin-bottom: 8px;
}

.wizard .step-head .count {
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 0.9375rem;
}

.wizard .step-head .title {
    margin-bottom: 6px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    outline: none;
}

.wizard .step-head .text {
    margin: 0;
    color: var(--muted-text-color);
}

.wizard .question {
    margin-top: 28px;
}

.wizard .question[hidden],
.wizard [data-show][hidden] {
    display: none;
}

.wizard .q-label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.0625rem;
    font-weight: 500;
}

.wizard .sub-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

.wizard .optional {
    color: var(--soft-text-color);
    font-size: 0.875rem;
    font-weight: 400;
}

.wizard .sub {
    margin-top: 16px;
}

.wizard .hint {
    margin: 10px 0 0;
    color: var(--muted-text-color);
    font-size: 0.875rem;
}

.wizard .error {
    margin: 10px 0 0;
    color: var(--accent-color);
    font-size: 0.875rem;
}

/* inputs */
.wizard .input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    background: var(--second-color);
    color: var(--second-text-color);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.wizard textarea.input {
    resize: vertical;
}

.wizard .input:focus-visible {
    outline: none;
    border-color: var(--main-color);
}

.wizard .input.is-invalid,
.wizard .consent.is-invalid {
    border-color: var(--accent-color);
}

.wizard .unit-input {
    position: relative;
    display: block;
}

.wizard .unit-input .input {
    padding-right: 48px;
}

.wizard .unit-input .unit {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--soft-text-color);
    transform: translateY(-50%);
    pointer-events: none;
}

/* choice cards */
.wizard .choices {
    display: grid;
    gap: 10px;
}

@media (min-width: 576px) {
    .wizard .choices.two,
    .wizard .choices.three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .wizard .choices.three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wizard .choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.wizard .choice[hidden] {
    display: none;
}

.wizard .choice input,
.wizard .pill input,
.wizard .switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard .choice .box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 16px 18px;
    background: var(--second-color);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    transition: 0.25s ease;
}

.wizard .choice:hover .box {
    border-color: color-mix(in srgb, var(--main-color) 20%, transparent);
}

.wizard .choice input:checked + .box {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--accent-color) 80%, transparent);
}

.wizard .choice input:focus-visible + .box,
.wizard .pill input:focus-visible + span,
.wizard .switch input:focus-visible + .track {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.wizard .choice.is-disabled {
    cursor: not-allowed;
}

.wizard .choice.is-disabled .box {
    opacity: 0.45;
}

.wizard .choice .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wizard .choice .name {
    font-weight: 500;
    line-height: 1.3;
}

.wizard .choice .desc {
    color: var(--muted-text-color);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.wizard .choice .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    background: var(--third-color);
    border-radius: 50%;
    transition: 0.25s ease;
}

.wizard .choice .icon svg {
    width: 20px;
    height: 20px;
}

.wizard .choice input:checked + .box .icon {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.wizard .choice .badge-line {
    display: flex;
}

.wizard .choice .badge {
    padding: 3px 10px;
    background: var(--third-color);
    color: var(--main-color);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
}

.wizard .choice input:checked + .box .badge {
    background: color-mix(in srgb, var(--accent-color) 12%, transparent);
    color: var(--accent-color);
}

.wizard .tier {
    flex: 0 0 auto;
    color: color-mix(in srgb, var(--main-color) 22%, transparent);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
}

.wizard .tier b {
    color: var(--accent-color);
    font-weight: 600;
}

/* pills */
.wizard .pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wizard .pill {
    position: relative;
    cursor: pointer;
}

.wizard .pill span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--second-color);
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    transition: 0.25s ease;
}

.wizard .pill span svg {
    display: none;
    width: 15px;
    height: 15px;
}

.wizard .pill:hover span {
    border-color: color-mix(in srgb, var(--main-color) 20%, transparent);
}

.wizard .pill input:checked + span {
    background: var(--main-color);
    color: var(--main-text-color);
    border-color: var(--main-color);
}

.wizard .pill input:checked + span svg {
    display: block;
    color: var(--accent-color);
}

/* openings */
.wizard .openings {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .wizard .openings {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wizard .opening {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    background: var(--second-color);
    border-radius: var(--radius);
}

.wizard .opening .info {
    display: grid;
    min-width: 0;
}

.wizard .opening .name {
    font-weight: 500;
    line-height: 1.3;
}

.wizard .opening .size {
    color: var(--soft-text-color);
    font-size: 0.8125rem;
}

.wizard .stepper {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 4px;
    background: var(--third-color);
    border-radius: var(--radius-pill);
}

.wizard .stepper input {
    width: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    font-weight: 500;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wizard .stepper input::-webkit-outer-spin-button,
.wizard .stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.wizard .stepper input:focus-visible {
    outline: none;
    color: var(--accent-color);
}

.wizard .step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: var(--main-color);
    color: var(--main-text-color);
    border: 0;
    border-radius: 50%;
    transition: 0.25s ease;
}

.wizard .step-btn:hover {
    background: var(--accent-color);
}

.wizard .step-btn svg {
    width: 16px;
    height: 16px;
}

/* switch */
.wizard .switch {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.wizard .switch .track {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    background: color-mix(in srgb, var(--main-color) 20%, transparent);
    border-radius: var(--radius-pill);
    transition: 0.25s ease;
}

.wizard .switch .track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--second-color);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
    transition: 0.25s ease;
}

.wizard .switch input:checked + .track {
    background: var(--accent-color);
}

.wizard .switch input:checked + .track::after {
    transform: translateX(20px);
}

.wizard .switch .switch-text {
    display: grid;
    font-weight: 500;
    line-height: 1.4;
}

.wizard .switch small {
    color: var(--muted-text-color);
    font-size: 0.8125rem;
    font-weight: 400;
}

/* notes */
.wizard .note,
.wizard .readout {
    display: flex;
    gap: 10px;
    margin: 14px 0 0;
    padding: 14px 16px;
    background: var(--second-color);
    border-radius: 12px;
    font-size: 0.875rem;
}

.wizard .note svg,
.wizard .readout svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--accent-color);
}

.wizard .note.warning {
    background: color-mix(in srgb, var(--accent-color) 8%, var(--second-color));
}

.wizard .readout {
    margin-top: 28px;
    background: var(--main-color);
    color: var(--main-text-color);
}

/* summary */
.wizard .summary {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.wizard .summary-group {
    padding: 16px 20px;
    background: var(--second-color);
    border-radius: var(--radius);
}

.wizard .summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.wizard .summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.wizard .summary-title .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-radius: 50%;
    font-size: 0.75rem;
}

.wizard .summary .edit {
    padding: 4px 12px;
    background: var(--third-color);
    border: 0;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    transition: 0.25s ease;
}

.wizard .summary .edit:hover {
    background: var(--main-color);
    color: var(--main-text-color);
}

.wizard .summary dl {
    margin: 0;
}

.wizard .summary .row-item {
    display: grid;
    gap: 2px 16px;
    padding: 6px 0;
    font-size: 0.875rem;
}

@media (min-width: 576px) {
    .wizard .summary .row-item {
        grid-template-columns: 170px 1fr;
    }
}

.wizard .summary .row-item + .row-item {
    border-top: 1px solid color-mix(in srgb, var(--main-color) 7%, transparent);
}

.wizard .summary dt {
    color: var(--muted-text-color);
    font-weight: 400;
}

.wizard .summary dd {
    margin: 0;
    font-weight: 500;
}

.wizard .contact-fields {
    margin-top: 32px;
}

.wizard .consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px;
    color: var(--muted-text-color);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9375rem;
    cursor: pointer;
}

.wizard .consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent-color);
}

/* navigation */
.wizard-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, var(--main-color) 10%, transparent);
}

.wizard-nav [data-prev] svg {
    width: 18px;
    height: 18px;
}

.wizard-nav [data-next],
.wizard-nav [data-submit] {
    margin-left: auto;
}

.wizard-nav [hidden] {
    display: none;
}

/* thank you */
.wizard-done {
    padding: clamp(28px, 5vw, 56px);
    background: var(--photo-background);
    color: var(--main-text-color);
    border-radius: var(--radius-large);
    outline: none;
    animation: wizard-in 0.45s ease both;
}

.wizard-done > .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    background: var(--accent-color);
    border-radius: 50%;
}

.wizard-done > .icon svg {
    width: 30px;
    height: 30px;
}

.wizard-done .title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.wizard-done .text {
    max-width: 520px;
    margin-bottom: 28px;
    color: var(--light-text-color);
}

.wizard-done .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

/***** LEGAL PAGES *****/
.legal-page .legal-section {
    padding: clamp(132px, 15vw, 180px) 0 80px;
}

.legal-content {
    max-width: 52rem;
    margin-inline: auto;
    color: var(--muted-text-color);
}

.legal-content .heading {
    margin: 0 0 20px;
    color: var(--main-color);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
}

.legal-content .intro {
    font-size: 1.125rem;
}

.legal-content .updated {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--placeholder-color);
    color: var(--muted-text-color);
    font-size: 0.875rem;
}

.legal-content h2 {
    margin: 36px 0 12px;
    color: var(--main-color);
    font-size: clamp(1.1875rem, 2vw, 1.5rem);
    line-height: 1.35;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content a {
    color: var(--main-color);
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

.legal-content a:hover {
    color: var(--accent-color);
}

/***** FOOTER *****/
.footer {
    padding-top: 64px;
    background: var(--main-color);
    color: var(--main-text-color);
}

.footer .main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px 32px;
    align-items: start;
}

.footer .main > * {
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
    max-width: 100%;
    color: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: 208px;
    max-width: 100%;
    height: auto;
}

.footer .description {
    max-width: 30ch;
    margin: 20px 0 0;
    color: var(--light-text-color);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.footer .socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.footer .social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-border-color);
    border-radius: 50%;
    color: var(--main-text-color);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer .social:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.footer .social svg {
    width: 22px;
    height: 22px;
}

.footer .title {
    margin: 0 0 22px;
    color: var(--main-text-color);
    font-size: 1rem;
    font-weight: 600;
}

.footer .menu {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .link {
    color: var(--light-text-color);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .link:hover,
.footer .link:focus-visible {
    color: var(--accent-color);
}

.footer .social:focus-visible,
.footer-logo:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.footer address {
    display: grid;
    gap: 16px;
    margin: 0;
    font-style: normal;
}

.footer .contact-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--light-text-color);
    font-size: 0.9375rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.footer .contact-link svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--accent-color);
}

.footer .bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 14px 24px;
    margin-top: 56px;
    padding: 24px 0;
    border-top: 1px solid var(--light-border-color);
    color: var(--light-text-color);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.footer .bottom p {
    margin: 0;
}

.footer .bottom .link {
    font-size: inherit;
}

.footer .legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

@media (min-width: 576px) {
    .footer .main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .footer .bottom {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .footer .credit {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .footer .legal {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .footer .main {
        grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
    }
}

@media (min-width: 1200px) {
    .footer .bottom {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .footer .legal {
        grid-column: 2;
        grid-row: 1;
    }

    .footer .credit {
        grid-column: 3;
    }
}
