:root {
    --primary-color: #1831BA;
    --primary-color-light: #0198FA;
    --primary-color-alt: #FF7700;

    --block-color: #ececec;

    --black: #000000;
    --white: #FFFFFF;

    --text-color: #3d3d67;

    --base-font-size: 16px;
    --base-vertical-indent: 130px;
    --medium-vertical-indent: calc(var(--base-vertical-indent) * 0.5);
    --small-vertical-indent: calc(var(--base-vertical-indent) * 0.1);
    --base-horizontal-indent: 100px;
    --base-text-weight: 500;
    --base-padding: 35px;
    --base-gap: 20px;
    --base-box-shadow: 0 18px 40px rgba(7, 15, 43, 0.12);
    --layout-width: 1300px;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color-scheme: light;
}

body > div,
.main-wrapper,
.main,
.about__wrapper,
.services-wrapper,
.projects-wrapper,
.blog-wrapper,
footer {
    background-color: var(--white);
}

* {
    font-family: Manrope, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 22px;
    line-height: 28px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

a > svg * {
    fill: var(--primary-color);
}

a:hover {
    color: var(--primary-color-alt);
}

a:hover > svg * {
    fill: var(--primary-color-alt);
}

a.passive {
    color: var(--black);
}

a.passive:hover {
    color: var(--primary-color);
}

.layout {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: var(--layout-width);
    height: 100%;
    z-index: 42;
}

.layout.relative {
    position: relative;
    height: fit-content;
}

button {
    padding: 18px 25px;
    font-family: Manrope, sans-serif;
    font-size: var(--base-font-size);
    font-weight: 600;
    border: none;
    background-color: var(--white);
    cursor: pointer;
    color: var(--primary-color);
}

button:hover {
    color: var(--primary-color-alt);
}

button.primary {
    background: linear-gradient(90deg, var(--primary-color-light) 10%, var(--primary-color) 100%);
    color: var(--white);
}

button.primary:hover {
    background: linear-gradient(90deg, var(--primary-color-light) 42%, var(--primary-color) 100%);
}

.light-text {
    color: var(--white);
}

.row {
    display: flex;
    flex-direction: row;
    gap: calc(var(--base-horizontal-indent) * 0.5);
}

p {
    margin: 10px 0;
    color: var(--text-color);
    font-size: var(--base-font-size);
    font-weight: var(--base-text-weight);
}

header {
    position: sticky;
    top: 0;
    height: 80px;
    background-color: var(--white);
    box-shadow: 0 10px 26px rgba(7, 15, 43, 0.08);
}

.header__content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__content__logo-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

footer {
    margin-top: var(--base-vertical-indent);
    box-shadow: var(--base-box-shadow);
    background: #fff;
}

.footer {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 108px);
    align-items: start;
    width: 100%;
    padding: 72px 0 78px;
}

.footer__postvik-about__brand__logo {
    display: flex;
    flex-direction: column;
    gap: var(--base-gap);
    flex: 1;
}

.footer__postvik-about__contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.footer__postvik-about__contacts__item {
    display: flex;
    flex-direction: row;
    gap: var(--base-gap);
    align-items: center;
}

.footer__postvik-about__contacts__item__info {
    display: flex;
    flex-direction: column;
}

.footer__postvik-about__contacts__item__title {
    display: block;
    font-weight: 600;
    font-size: var(--base-font-size);
    color: var(--text-color);
}

.footer__postvik-about__contacts__item__value {
    display: block;
    font-weight: 600;
    font-size: calc(var(--base-font-size) * 1.4);
    color: var(--primary-color);
}

.footer__postvik-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    height: 100%;
}

.footer__postvik-links__list {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) minmax(120px, 0.8fr) minmax(190px, 1.15fr) minmax(170px, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.footer__postvik-links__list__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.footer__postvik-links__social {
    display: flex;
    flex-direction: row;
    gap: var(--base-gap);
    margin-left: auto;
    margin-top: 42px;
}

.navigation {
    display: flex;
    flex-direction: row;
    gap: var(--base-gap);
    margin: 0 100px;
}

.navigation__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.navigation__item__link {
    font-weight: 700;
    font-size: var(--base-font-size);
    color: var(--black);
}

.phone {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background-color: var(--primary-color);
    height: 100%;
    padding: 0 20px;
}

.phone__icon {
    width: 30px;
    height: 30px;
    stroke: var(--white);
    background-color: var(--primary-color-alt);
    padding: 5px;
    border-radius: 5px;
}

.phone__info {
    display: flex;
    flex-direction: column;
}

.phone__info__title {
    display: block;
    font-weight: 600;
    font-size: var(--base-font-size);
    color: var(--white);
}

.phone__info__number {
    display: block;
    font-weight: 400;
    font-size: var(--base-font-size);
    color: var(--white);
}

.main-wrapper {
    position: relative;
    width: 100%;
    height: max-content;
}

.main {
    position: relative;
    height: 865px;
}

.main__background {
    position: absolute;
    width: 100%;
    overflow: hidden;
    height: 800px;
    user-select: none;
}

.main__background__carousel {
    display: flex;
    flex-direction: row;
    width: max-content;
    height: 100%;
}

.main__background__image {
    display: block;
    width: 100vw;
    height: 100%;
    object-fit: cover;
}

.main__background__image--mirrored {
    transform: scaleX(-1);
}

.main__foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 16, 23, 0.5);
    z-index: 1;
}

.main__content {
    position: relative;
    width: 700px;
    display: flex;
    flex-direction: column;
    gap: var(--base-gap);
    top: 200px;
    left: 45%;
    z-index: 2;
}

.main__content__buttons {
    display: flex;
    flex-direction: row;
    gap: var(--base-gap);
    margin-top: 20px;
}

.main__content__description {
    font-weight: 500;
    font-size: var(--base-font-size);
    color: var(--white);
}

.short-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.short-title__text {
    font-weight: 600;
    font-size: calc(var(--base-font-size) * 1.1);
    color: var(--primary-color);
}

.short-title.light .short-title__text {
    color: var(--white);
}

.features {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: row;
    background-color: var(--white);
    z-index: 2;
    box-shadow: var(--base-box-shadow);
}

.features__item {
    display: flex;
    flex-direction: row;
    gap: var(--base-gap);
    flex: 1;
    padding: var(--base-padding);
    transition: background-color 0.3s ease;
    cursor: pointer;

}

.features__item.highlight,
.features__item:hover {
    background-color: var(--primary-color);
}

.features__item.highlight .features__item__info__title,
.features__item:hover .features__item__info__title {
    color: var(--white);
}

.features__item.highlight .features__item__info__description,
.features__item:hover .features__item__info__description {
    color: var(--white);
}

.features__item__icon {
    flex-shrink: 0;
}

.features__item__info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.features__item__info__title {
    transition: color 0.3s ease;
}

.features__item__info__description {
    font-weight: 500;
    font-size: var(--base-font-size);
    color: var(--text-color);
    transition: color 0.3s ease;
}

.about {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 82px);
    align-items: center;
    margin-top: var(--base-vertical-indent);
}

.about__media {
    position: relative;
    min-width: 0;
}

.about__media::before,
.about__media::after {
    content: none;
}

.about__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__media-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 520px;
    overflow: hidden;
    background: #f3f5f9;
    border: 1px solid rgba(24, 49, 186, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(7, 15, 43, 0.1);
    z-index: 1;
}

.about__media-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 15, 43, 0) 48%, rgba(7, 15, 43, 0.36) 100%);
}

.about__media-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.about__media-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.about__media-card {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(7, 15, 43, 0.08);
    border-radius: 6px;
    box-shadow: 0 16px 34px rgba(7, 15, 43, 0.14);
    backdrop-filter: blur(12px);
}

.about__media-card__label {
    display: block;
    margin-bottom: 5px;
    color: #6d7284;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.about__media-card__title {
    display: block;
    color: #101525;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.24;
}

.about__media-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.about__media-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: rgba(16, 21, 37, 0.18);
    transition: width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.about__media-dot.is-active {
    width: 28px;
    background-color: var(--primary-color-alt);
    border-color: rgba(255, 119, 0, 0.16);
}

.about__media-dot:focus-visible {
    outline: 3px solid rgba(255, 119, 0, 0.78);
    outline-offset: 4px;
}

.about__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(30px, 4vw, 52px);
    background: var(--white);
    border: 1px solid rgba(24, 49, 186, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(7, 15, 43, 0.06);
}

.about__info__description {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--base-gap);
}

.about__info__description__experience {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    width: 230px;
    padding: 22px;
    background: #f7f8fb;
    border: 1px solid rgba(24, 49, 186, 0.1);
    border-left: 3px solid var(--primary-color-alt);
    border-radius: 6px;
    box-shadow: none;
}

.about__info__description__experience__icon {
    display: none;
}

.about__info__description__experience__info__years {
    color: #101525;
}

.about__info__description__experience__info__text {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.45;
    color: #4f5567;
}

.about__info__description > p:first-child {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.7;
}

.about__info__description .row > p {
    position: relative;
    margin: 0;
    padding-left: 18px;
    border-left: 2px solid rgba(24, 49, 186, 0.14);
    line-height: 1.65;
}

.about__info__description .row > p a {
    font-weight: 800;
}

.about__info > a.primary {
    margin-top: 28px;
}

.about--service .about__info {
    overflow: hidden;
}

.about-service__summary {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
    gap: 18px;
    align-items: stretch;
}

.about-service__summary-text {
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 22px 24px;
    background: #f7f8fb;
    border: 1px solid rgba(24, 49, 186, 0.1);
    border-left: 3px solid var(--primary-color-alt);
    border-radius: 6px;
    color: #30364a;
    font-weight: 500;
    line-height: 1.65;
    box-shadow: none;
}

.about-service__summary-text::before {
    content: none;
}

.about--service .about__info__description .about-service__summary-text {
    padding-left: 24px;
}

.about-service__summary-card {
    width: auto;
    height: 100%;
    padding: 22px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.about-service__summary-card .about__info__description__experience__info__years {
    margin-bottom: 8px;
    font-size: 48px;
    line-height: 0.9;
}

.about-service__summary-card .about__info__description__experience__info__text {
    display: block;
    line-height: 1.42;
}

.feedback--service-form {
    overflow: hidden;
    padding: clamp(78px, 7vw, 110px) 0;
    background:
        linear-gradient(rgba(13, 28, 84, 0.74), rgba(13, 28, 84, 0.74)),
        url("/assets/home/postvik-home-delivery.webp") center / cover no-repeat;
    scroll-margin-top: 100px;
}

.feedback--service-form .feedback__content {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    width: min(var(--layout-width), calc(100vw - 32px));
    margin: 0 auto;
    min-height: auto;
    scroll-margin-top: 100px;
}

.feedback--service-form .feedback__background {
    display: none;
}

.feedback--service-form .feedback__content__info-wrapper,
.feedback--service-form .feedback__form-wrapper {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    transform: none;
}

.feedback--service-form .feedback__content__info-wrapper .layout,
.feedback--service-form .feedback__form-wrapper .layout {
    position: relative;
    left: auto;
    width: 100%;
    height: auto;
    margin: 0;
    transform: none;
}

.feedback--service-form .feedback__content__info {
    width: 100%;
    max-width: 560px;
    padding-top: 8px;
}

.feedback--service-form .feedback__form-wrapper {
    z-index: 3;
    pointer-events: none;
}

.feedback--service-form .feedback__form {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    padding: clamp(26px, 3vw, 34px);
    border-radius: 8px;
    pointer-events: auto;
    transform: none;
}

.feedback--service-form .lead-form {
    align-items: stretch;
    gap: 12px;
    scroll-margin-top: 110px;
}

.feedback--service-form .lead-form .section-heading {
    font-size: clamp(30px, 2.7vw, 38px);
    line-height: 1.12;
}

.feedback--service-form .form__intro {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.5;
}

.feedback--service-form .calculator-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.feedback--service-form .service-lead-form__quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-lead-form__quick-grid .text-field,
.feedback--service-form .calculator-grid .text-field {
    min-width: 0;
}

.feedback--service-form .text-field__input {
    min-height: 48px;
    padding: 11px 14px;
    font-size: 15px;
}

.feedback--service-form textarea.text-field__input {
    min-height: 86px;
}

.feedback--service-form .calculator-result {
    padding: 14px 16px;
}

.feedback--service-form .calculator-result__amount {
    font-size: 26px;
}

.feedback--service-form + .projects-wrapper {
    margin-top: clamp(52px, 5vw, 86px);
}

@media (max-width: 1180px) {
    .feedback--service-form {
        overflow: hidden;
    }

    .feedback--service-form .feedback__content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 34px;
        align-items: start;
        width: min(760px, calc(100vw - 32px));
        min-height: auto;
        margin: 0 auto;
        padding: 0;
    }

    .feedback--service-form .feedback__background {
        display: none;
    }

    .feedback--service-form .feedback__content__info-wrapper,
    .feedback--service-form .feedback__form-wrapper {
        position: relative;
        inset: auto;
        width: auto;
        height: auto;
        transform: none;
    }

    .feedback--service-form .feedback__content__info {
        width: min(720px, 100%);
    }

    .feedback--service-form .feedback__form-wrapper {
        margin-top: 0;
        padding-bottom: 0;
        pointer-events: none;
    }

    .feedback--service-form .feedback__content__info-wrapper .layout,
    .feedback--service-form .feedback__form-wrapper .layout {
        position: relative;
        left: auto;
        height: auto;
        margin: 0 auto;
        transform: none;
    }

    .feedback--service-form .feedback__form {
        position: relative;
        width: 100%;
        margin-left: 0;
        pointer-events: auto;
        transform: none;
    }
}

.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--base-vertical-indent);
}

.centered-medium-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 700px;
    text-align: center;
}

.services__list {
    margin-top: var(--medium-vertical-indent);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-direction: row;
    gap: 18px;
}

.services__list__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 235px;
    padding: 32px;
    overflow: hidden;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, rgba(24, 49, 186, 0.2), rgba(255, 119, 0, 0.18)) border-box;
    border: 1px solid transparent;
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.services__list__item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color-light), var(--primary-color-alt));
}

.services__list__item::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(24, 49, 186, 0.08);
    border-radius: 50%;
    background: rgba(1, 152, 250, 0.05);
    transform: translate(18px, 18px) scale(0.92);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.services__list__item:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%) padding-box,
        linear-gradient(135deg, rgba(24, 49, 186, 0.34), rgba(255, 119, 0, 0.3)) border-box;
}

.services__list__item:hover::after {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.services__list__item__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 44px;
    height: 30px;
    filter: drop-shadow(0 6px 12px rgba(255, 119, 0, 0.14));
}

.services__list__item__info {
    position: relative;
    z-index: 1;
}

.services__list__item__info::after {
    content: "";
    position: absolute;
    top: -54px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 119, 0, 0.78);
    box-shadow:
        -22px 12px 0 rgba(1, 152, 250, 0.48),
        12px 26px 0 rgba(255, 119, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translate(18px, 18px) scale(0.65);
    transition: opacity 0.22s ease, transform 0.24s ease;
}

.services__list__item:hover .services__list__item__info::after {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.services__list__item__info h2 {
    margin-bottom: 10px;
    color: var(--black);
}

.services__list__item__info p {
    margin: 0;
    line-height: 1.55;
}

.feedback {
    position: relative;
    box-sizing: content-box;
    overflow: hidden;
    margin-top: var(--base-vertical-indent);
}

.feedback__content {
    position: relative;
    margin-top: 90px;
}

.feedback__background {
    height: 1080px;
}

.feedback__background__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback__background__foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1847e3;
    opacity: 0.67;
    z-index: 1;
}

.feedback__content__info-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    z-index: 1;
}

.feedback__content__info {
    width: 550px;
}

.feedback__form-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.feedback__form {
    position: absolute;
    top: 50%;
    right: 0;
    width: 560px;
    padding: 42px;
    background-color: var(--white);
    box-shadow: var(--base-box-shadow);
    pointer-events: auto;
    transform: translateY(-50%);
}

.feedback__content__info__features__item {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: var(--base-gap);
}

.feedback__content__info__features__item__icon {
    flex-shrink: 0;
}

.feedback__content__info__features__item__info {

}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--base-gap);
}

.lead-form {
    scroll-margin-top: 120px;
}

.form__intro {
    margin: -8px 0 4px;
    color: var(--text-color);
    font-size: calc(var(--base-font-size) * 0.95);
    line-height: 1.45;
}

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

.text-field {
    display: flex;
    flex-direction: column;
}

.text-field__title {
    display: block;
    margin-bottom: 3px;
    font-weight: var(--base-text-weight);
    font-size: var(--base-font-size);
}

.text-field__input {
    display: block;
    min-height: 56px;
    padding: 14px 16px;
    border: none;
    font-weight: var(--base-text-weight);
    font-size: var(--base-font-size);
    background-color: var(--block-color);
    width: 100%;
    box-sizing: border-box;
    outline: none;
}

.text-field__input:focus-visible {
    outline: var(--primary-color) solid 2px;
}

textarea.text-field__input {
    min-height: 118px;
    resize: vertical;
}

.text-field__input::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

.calculator-result {
    display: grid;
    gap: 6px;
    padding: 18px;
    background: linear-gradient(90deg, rgba(1, 152, 250, 0.12), rgba(24, 49, 186, 0.14));
    border-left: 4px solid var(--primary-color-alt);
}

.calculator-result__label {
    color: var(--text-color);
    font-size: calc(var(--base-font-size) * 0.85);
    font-weight: 600;
}

.calculator-result__amount {
    color: var(--primary-color);
    font-size: 30px;
    line-height: 1.1;
}

.calculator-result__note,
.form-status {
    color: var(--text-color);
    font-size: calc(var(--base-font-size) * 0.85);
    line-height: 1.4;
}

.lead-form button.primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.agreement-notice {
    color: var(--text-color);
    font-size: calc(var(--base-font-size) * 0.9);
}

.feedback__content__info__features {
    display: flex;
    flex-direction: column;
    gap: var(--base-gap);
    margin-top: calc(var(--base-vertical-indent) * 0.3);
}

.projects-wrapper {
    margin-top: var(--base-vertical-indent);
}

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects__list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--base-gap);
    margin-top: var(--medium-vertical-indent);
    flex: 1;
}

.projects__list__item {
    max-width: 400px;
}

.projects__list__item__image {
    position: relative;
    width: 100%;
    height: auto;
}

.projects__list__item__image__number {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--base-font-size) * 2);
    background-color: var(--primary-color-alt);
    color: var(--white);
    font-weight: 700;
    z-index: 2;
}

.projects__list__item__image__object {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.reviews {
    position: relative;
    margin-top: var(--base-vertical-indent);
    padding-bottom: 95px;
    overflow: hidden;
}

.reviews__background {
    position: absolute;
    width: 100%;
    height: 430px;
}

.reviews__background__image {
    width: 100%;
    height: 100%;
    background: linear-gradient(50deg, var(--primary-color) 30%, var(--primary-color-light));
}

.reviews__content {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    z-index: 1;
    margin-top: 100px;
}

.reviews__slider {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: var(--medium-vertical-indent) auto 0;
}

.reviews__slider__viewport {
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--base-box-shadow);
    box-sizing: border-box;
}

.reviews__slider__track {
    display: flex;
    transition: transform 0.42s ease;
}

.reviews__slider__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    flex: 0 0 100%;
    background-color: var(--white);
    padding: 42px;
    box-sizing: border-box;
}

.reviews__slider__item__quote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--base-gap);
}

.reviews__slider__item__eyebrow {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--primary-color-alt);
}

.reviews__slider__item__text {
    margin: 0;
    color: var(--black);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

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

.reviews__slider__item__result span {
    display: block;
    padding: 14px;
    background-color: var(--block-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
}

.reviews__slider__item__author {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.reviews__slider__item__meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--base-gap);
    min-width: 0;
    padding: 28px;
    background-color: var(--primary-color);
    color: var(--white);
}

.reviews__slider__item__meta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.5;
}

.reviews__slider__item__author__image {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    outline: 2px solid var(--primary-color-alt);
    outline-offset: 2px;
}

.reviews__slider__item__author__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reviews__slider__item__author__info__name {
    color: inherit;
    font-size: 21px;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.reviews__slider__item__author__info__position {
    font-size: var(--base-font-size);
    color: inherit;
    opacity: 0.78;
}

.reviews__slider__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--base-gap);
    margin-top: var(--base-gap);
}

.reviews__slider__control-group,
.reviews__slider__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews__slider__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--base-box-shadow);
}

.reviews__slider__control:hover {
    color: var(--primary-color-alt);
}

.reviews__slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(24, 49, 186, 0.24);
}

.reviews__slider__dot.is-active {
    background-color: var(--primary-color-alt);
}

.reviews__slider__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background-color: var(--primary-color-alt);
    color: var(--white);
    font-weight: 700;
}

.reviews__slider__action:hover {
    color: var(--white);
    background-color: var(--primary-color);
}

.blog-wrapper {
    margin-top: var(--base-vertical-indent);
}

.blog {
    display: flex;
    flex-direction: row;
    gap: var(--base-horizontal-indent);
}

.blog__interest {
    position: relative;
    flex: 2;
    overflow: hidden;
}

.blog__interest__background {
    position: absolute;
    width: 100%;
    height: 100%;
}

.blog__interest__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog__interest__background__foreground {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-color) 35%, transparent 80%);
    z-index: 1;
}

.blog__interest__content {
    position: absolute;
    padding: 50px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.blog__interest__content__info {
    margin-top: var(--base-gap);
}

.blog__interest__content__action-button {
    margin-top: var(--medium-vertical-indent);
}

.blog__article-list {
    display: flex;
    flex: 3;
    flex-direction: column;
    gap: var(--base-gap);
}

.blog__article-list__item__info__title {
    /*color: var(--primary-color);*/
}

.blog__article-list__item__date {
    color: var(--text-color);
    margin-bottom: var(--small-vertical-indent);
}

@font-face {
    font-family: Manrope;
    src: url("/fonts/Manrope.ttf");
}

/* Homepage polish */
.section-heading {
    font-size: 42px;
    line-height: 1.15;
}

.main__content__buttons a,
.about__info a.primary,
.feedback__form a.primary,
.feedback__form button.primary,
.blog__interest__content__action-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    padding: 18px 25px;
    font-size: var(--base-font-size);
    font-weight: 600;
    background-color: var(--white);
    color: var(--primary-color);
    --button-glint-color: rgba(1, 152, 250, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.main__content__buttons a.primary,
.about__info a.primary,
.feedback__form a.primary,
.feedback__form button.primary {
    background: linear-gradient(90deg, var(--primary-color-light) 10%, var(--primary-color) 100%);
    color: var(--white);
    --button-glint-color: rgba(255, 255, 255, 0.68);
}

.main__content__buttons a::before,
.about__info a.primary::before,
.feedback__form a.primary::before,
.feedback__form button.primary::before,
.blog__interest__content__action-button::before {
    content: "";
    position: absolute;
    inset: -55% -45%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 34%, var(--button-glint-color) 50%, transparent 66%);
    transform: translateX(-135%);
    transition: transform 0.65s ease;
}

.main__content__buttons a:hover,
.about__info a.primary:hover,
.feedback__form a.primary:hover,
.feedback__form button.primary:hover,
.blog__interest__content__action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(1, 16, 23, 0.18);
    color: var(--primary-color);
}

.main__content__buttons a.primary:hover,
.about__info a.primary:hover,
.feedback__form a.primary:hover,
.feedback__form button.primary:hover {
    color: var(--white);
}

.main__content__buttons a:hover::before,
.about__info a.primary:hover::before,
.feedback__form a.primary:hover::before,
.feedback__form button.primary:hover::before,
.blog__interest__content__action-button:hover::before {
    transform: translateX(135%);
}

.main__content__buttons a:active,
.about__info a.primary:active,
.feedback__form a.primary:active,
.feedback__form button.primary:active,
.blog__interest__content__action-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(1, 16, 23, 0.14);
}

.navigation__item,
.features__item,
.services__list__item {
    cursor: default;
}

.navigation__dropdown-toggle {
    cursor: pointer;
}

.header__menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(24, 49, 186, 0.18);
    background: var(--white);
    color: var(--primary-color);
}

.header__content__logo-link,
.header__content__logo-link:focus-visible {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.features {
    bottom: 65px;
    transform: translateY(50%);
}

.features__item,
.services__list__item,
.reviews__slider__viewport,
.feedback__form {
    box-shadow: var(--base-box-shadow);
}

.services__list__item {
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.services__list__item:hover {
    transform: translateY(-2px);
}

.about__info__description__experience__info__years {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.blog__interest__background__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__postvik-about__brand {
    max-width: 420px;
    min-width: 0;
}

.footer > .footer__postvik-about__brand,
.footer__postvik-about__brand .footer__postvik-about__brand {
    max-width: none;
}

.footer__postvik-about__brand p {
    max-width: 360px;
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.footer__postvik-about__brand__logo {
    display: block;
    flex: none;
    width: 244px;
    max-width: 100%;
    height: auto;
}

.footer__postvik-links__list {
    gap: 56px;
    align-items: flex-start;
}

.footer__postvik-links__list__item h2 {
    margin: 0 0 4px;
}

.footer__postvik-links__list__item a {
    line-height: 1.35;
}

.main__content__buttons a:focus-visible,
.about__info a.primary:focus-visible,
.feedback__form button.primary:focus-visible,
.blog__interest__content__action-button:focus-visible,
.navigation__item__link:focus-visible,
.navigation__dropdown-toggle:focus-visible,
.navigation__dropdown__link:focus-visible,
.reviews__slider__control:focus-visible,
.reviews__slider__dot:focus-visible,
.reviews__slider__action:focus-visible,
.blog__article-list__item__info:focus-visible,
.phone__info__number:focus-visible,
.footer__postvik-about__contacts__item__value:focus-visible,
.header__content__logo-link:focus-visible {
    outline: 3px solid rgba(255, 119, 0, 0.78);
    outline-offset: 4px;
}

.text-field__input:focus-visible {
    outline: 3px solid rgba(24, 49, 186, 0.7);
    outline-offset: 2px;
}

@media (max-width: 1180px) {
    .footer {
        grid-template-columns: 1fr;
        gap: 42px;
    }

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

/* Astro service landing */
.astro-service-site .inner-layout {
    width: min(var(--layout-width), calc(100% - 40px));
    max-width: min(var(--layout-width), calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.service-hero {
    position: relative;
    min-height: 865px;
    overflow: hidden;
    color: var(--white);
}

.service-hero__background,
.service-hero__background img,
.service-hero__foreground {
    position: absolute;
    inset: 0;
}

.service-hero__background img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    transform: scaleX(-1);
}

.service-hero__foreground {
    background:
        linear-gradient(90deg, rgba(1, 16, 23, 0.7) 0%, rgba(24, 49, 186, 0.76) 58%, rgba(1, 16, 23, 0.42) 100%),
        linear-gradient(180deg, rgba(1, 16, 23, 0.1), rgba(1, 16, 23, 0.68));
}

.service-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 800px;
    padding: 120px 0 190px;
}

.service-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 600;
}

.service-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
}

.service-breadcrumbs a:hover {
    color: var(--primary-color-alt);
}

.service-hero h1 {
    max-width: 760px;
    margin-top: 20px;
    font-size: 42px;
    line-height: 1.12;
}

.service-hero__lead {
    max-width: 700px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--base-font-size);
    line-height: 1.65;
}

.service-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 760px;
    margin-top: 26px;
}

.service-hero__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.service-hero__actions,
.service-price-panel .primary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--base-gap);
    margin-top: 34px;
}

.service-hero__actions a,
.service-price-panel .primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 18px 25px;
    overflow: hidden;
    color: var(--primary-color);
    background-color: var(--white);
    font-size: var(--base-font-size);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.service-hero__actions a.primary,
.service-price-panel .primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-color-light) 10%, var(--primary-color) 100%);
}

.service-hero__actions a:hover,
.service-price-panel .primary:hover {
    transform: translateY(-2px);
    color: var(--primary-color-alt);
    box-shadow: 0 14px 28px rgba(1, 16, 23, 0.18);
}

.service-hero__actions a.primary:hover,
.service-price-panel .primary:hover {
    color: var(--white);
}

.service-feature-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -130px;
    box-shadow: var(--base-box-shadow);
}

.service-feature-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: var(--base-gap);
    min-height: 220px;
    padding: var(--base-padding);
    background: var(--white);
    border-right: 1px solid rgba(24, 49, 186, 0.1);
}

.service-feature-card--highlight {
    background: var(--primary-color);
}

.service-feature-card--highlight h2,
.service-feature-card--highlight p,
.service-feature-card--highlight .service-feature-card__number {
    color: var(--white);
}

.service-feature-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255, 119, 0, 0.12);
    color: var(--primary-color-alt);
    font-size: 20px;
    font-weight: 900;
}

.service-feature-card h2,
.service-info-card h3,
.service-process__item h3,
.service-price-panel h3 {
    color: var(--black);
}

.service-feature-card h2 {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 28px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.service-section {
    padding: var(--base-vertical-indent) 0 0;
}

.service-section--split {
    display: grid;
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
    gap: clamp(42px, 7vw, 90px);
    align-items: center;
}

.service-section__media {
    position: relative;
    min-height: 620px;
}

.service-section__media img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    box-shadow: var(--base-box-shadow);
}

.service-section__media::before {
    content: "";
    position: absolute;
    inset: 34px -28px -28px 48px;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(24, 49, 186, 0.14), rgba(255, 119, 0, 0.16)),
        repeating-linear-gradient(135deg, rgba(24, 49, 186, 0.1) 0 1px, transparent 1px 12px);
}

.service-section__media-note {
    position: absolute;
    right: -24px;
    bottom: 34px;
    display: grid;
    gap: 8px;
    width: min(330px, calc(100% - 36px));
    padding: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--base-box-shadow);
}

.service-section__media-note strong {
    color: var(--primary-color);
    font-size: 20px;
}

.service-section__media-note span {
    color: var(--text-color);
    font-weight: 600;
}

.service-section__content > p,
.service-section__head > p {
    font-size: 17px;
    line-height: 1.65;
}

.service-check-list {
    display: grid;
    gap: 15px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.service-check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
}

.service-check-list li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 11px;
    height: 11px;
    background: var(--primary-color-alt);
}

.service-section--soft {
    margin-top: var(--base-vertical-indent);
    padding: var(--base-vertical-indent) 0;
    background: #f7f8fb;
}

.service-section__head {
    margin-bottom: 54px;
}

.service-card-grid {
    display: grid;
    gap: 22px;
}

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

.service-info-card,
.service-price-panel,
.service-faq details {
    background: var(--white);
    box-shadow: var(--base-box-shadow);
}

.service-info-card {
    min-height: 230px;
    padding: 30px;
    border-left: 4px solid var(--primary-color-alt);
}

.service-info-card h3 {
    font-size: 24px;
}

.service-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-process__item {
    position: relative;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, rgba(24, 49, 186, 0.2), rgba(255, 119, 0, 0.22)) border-box;
    border: 1px solid transparent;
}

.service-process__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.service-section--contrast {
    margin-top: var(--base-vertical-indent);
    padding: 100px 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
}

.service-contrast-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.65fr);
    gap: 58px;
    align-items: center;
}

.service-contrast-grid p {
    color: rgba(255, 255, 255, 0.88);
}

.service-contrast-list {
    display: grid;
    gap: 18px;
}

.service-contrast-list div {
    padding: 26px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    backdrop-filter: blur(12px);
}

.service-contrast-list strong {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
    font-size: 22px;
}

.service-price-panel {
    padding: 36px;
    border-top: 5px solid var(--primary-color-alt);
}

.service-price-panel .primary {
    width: fit-content;
}

.service-faq {
    display: grid;
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.service-faq details {
    overflow: hidden;
    padding: 0 28px;
}

.service-faq summary {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 20px 0;
    color: var(--black);
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    list-style: none;
}

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

.service-faq summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid var(--primary-color-alt);
    border-bottom: 2px solid var(--primary-color-alt);
    transform: rotate(45deg);
    transition: transform 0.24s ease;
    flex: 0 0 auto;
}

.service-faq details[open] summary::after {
    transform: translateY(3px) rotate(225deg);
}

.service-faq details > p {
    overflow: hidden;
    max-height: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.28s ease, padding-bottom 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}

.service-faq details.is-open > p,
.service-faq details[open]:not(.is-animating) > p {
    max-height: var(--faq-panel-height, 240px);
    padding-bottom: 24px;
    opacity: 1;
    transform: translateY(0);
}

.service-faq p {
    margin: 0;
    line-height: 1.6;
}

.service-final-cta {
    position: relative;
    margin-top: 0;
    overflow: hidden;
    color: var(--white);
}

.service-final-cta__background,
.service-final-cta__background img,
.service-final-cta__background div {
    position: absolute;
    inset: 0;
}

.service-final-cta__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-final-cta__background div {
    background: rgba(24, 71, 227, 0.72);
}

.service-final-cta__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) 560px;
    gap: clamp(42px, 7vw, 90px);
    align-items: center;
    min-height: 760px;
    padding: 90px 0;
}

.service-final-cta__content p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.7;
}

.service-final-cta__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.service-final-cta__contacts a {
    display: inline-flex;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-weight: 800;
}

.service-final-cta__form {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
}

.service-lead-form__textarea {
    min-height: 116px;
    resize: vertical;
}

.service-lead-form .agreement-notice {
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .service-card-grid--four,
    .service-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-final-cta__grid {
        grid-template-columns: 1fr;
    }

    .service-final-cta__form {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .astro-service-site .inner-layout {
        width: min(100% - 32px, 760px) !important;
        max-width: min(100% - 32px, 760px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .service-hero,
    .service-hero__content {
        min-height: 680px;
    }

    .service-hero__content {
        padding: 86px 0 140px;
    }

    .service-hero h1 {
        font-size: 32px;
        line-height: 1.16;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .service-feature-strip,
    .service-section--split,
    .service-contrast-grid {
        grid-template-columns: 1fr;
    }

    .service-feature-card {
        grid-template-columns: 46px minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .service-feature-card {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(24, 49, 186, 0.1);
    }

    .service-section__media {
        min-height: auto;
    }

    .service-section__media img {
        height: 420px;
    }

    .service-section__media-note {
        right: 18px;
        bottom: 18px;
    }

    .service-card-grid--four,
    .service-process {
        grid-template-columns: 1fr;
    }

    .service-process__item {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .astro-service-site .inner-layout {
        width: calc(100% - 28px) !important;
        max-width: calc(100% - 28px) !important;
    }

    .service-hero,
    .service-hero__content {
        min-height: 720px;
    }

    .service-hero h1 {
        font-size: 27px;
        line-height: 1.14;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .service-hero__lead {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .service-hero__actions,
    .service-final-cta__contacts {
        display: grid;
        grid-template-columns: 1fr;
    }

    .service-hero__actions a,
    .service-price-panel .primary,
    .service-final-cta__contacts a {
        width: 100%;
        text-align: center;
    }

    .service-feature-strip {
        margin-top: -70px;
    }

    .service-feature-card,
    .service-info-card,
    .service-process__item,
    .service-price-panel,
    .service-faq details {
        padding: 24px 20px;
    }

    .service-faq details {
        padding: 0 20px;
    }

    .service-feature-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
    }

    .service-feature-card h2 {
        font-size: 21px;
        line-height: 1.25;
    }

    .service-section__media img {
        height: 320px;
    }

    .service-section__media-note {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: -34px;
    }

    .service-final-cta__grid {
        min-height: auto;
        padding: 72px 0;
    }
}

@media (max-width: 900px) {
    .layout {
        width: min(var(--layout-width), calc(100vw - 32px));
    }

    .footer__postvik-about__brand__logo {
        width: 220px;
    }

    .main {
        height: auto;
        min-height: 0;
    }

    .main__background {
        height: 100%;
        min-height: 640px;
    }

    .main > .layout {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 640px;
        padding: 110px 0 0;
    }

    .main__content {
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
    }

    .main__content h1 {
        font-size: 28px;
        line-height: 1.18;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .main__content__description {
        display: block;
        max-width: min(100%, 340px);
        font-size: 15px;
        line-height: 1.45;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: none;
    }

    .features__item__info,
    .services__list__item__info,
    .feedback__content__info__features__item__info,
    .projects__list__item a,
    .reviews__slider__item,
    .blog__article-list__item__info {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .main__content__buttons {
        flex-wrap: wrap;
    }

    .main__content__buttons a {
        width: 100%;
        min-height: 58px;
        text-align: center;
    }

    .features {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 56px;
        transform: none;
        flex-direction: column;
    }

    .features__item {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
        width: 100%;
        padding: 22px 16px;
        gap: 14px;
    }

    .features__item__icon,
    .services__list__item__icon,
    .feedback__content__info__features__item__icon {
        width: 42px;
        max-width: 42px;
    }

    .features__item__info__title,
    .services__list__item__info h2 {
        font-size: 21px;
        line-height: 1.25;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .features__item__info__description,
    .services__list__item__info p {
        display: block;
        font-size: 15px;
        line-height: 1.45;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog,
    .projects__list {
        flex-direction: column;
    }

    .footer,
    .footer__postvik-links__list {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer {
        padding: 48px 0;
    }

    .footer__postvik-links__social {
        margin-left: 0;
        margin-top: 28px;
    }

    .about__image,
    .about__media,
    .centered-medium-content,
    .feedback__content__info,
    .feedback__form,
    .blog__interest,
    .reviews__slider,
    .projects__list__item {
        width: 100%;
        max-width: 100%;
    }

    .about__image {
        width: 100%;
        height: 390px;
    }

    .about__media-slider {
        width: 100%;
        height: 390px;
        min-height: 390px;
        aspect-ratio: auto;
    }

    .about__media {
        min-height: 390px;
    }

    .about__media-card {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 16px;
    }

    .about__info {
        padding: 30px 24px;
    }

    .about__info__description > p:first-child {
        font-size: 16px;
    }

    .about__info__description__experience {
        width: 100%;
        justify-content: flex-start;
    }

    .about-service__summary {
        grid-template-columns: 1fr;
    }

    .about-service__summary-text {
        padding: 22px;
    }

    .about-service__summary-card {
        min-height: auto;
        flex-direction: row;
    }

    .about-service__summary-card .about__info__description__experience__info__years {
        font-size: 40px;
    }

    .row {
        flex-direction: column;
        gap: var(--base-gap);
    }

    .services__list {
        grid-template-columns: 1fr;
    }

    .feedback {
        overflow: visible;
        background:
            linear-gradient(rgba(24, 71, 227, 0.67), rgba(24, 71, 227, 0.67)),
            url("/images/pochta.jpg") center / cover no-repeat;
    }

    .feedback__content {
        display: grid;
        min-height: auto;
        margin-top: var(--base-vertical-indent);
        padding: 70px 0 0;
    }

    .feedback__background {
        display: none;
    }

    .feedback__content__info-wrapper,
    .feedback__form-wrapper {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        transform: none;
    }

    .feedback__content__info-wrapper {
        z-index: 2;
    }

    .feedback__form-wrapper {
        z-index: 3;
        margin-top: 34px;
        padding-bottom: 70px;
        pointer-events: none;
    }

    .feedback__content__info-wrapper .layout,
    .feedback__form-wrapper .layout {
        position: relative;
        left: auto;
        height: auto;
        margin: 0 auto;
        transform: none;
    }

    .feedback__form {
        position: relative;
        top: auto;
        right: auto;
        padding: 28px;
        pointer-events: auto;
        transform: none;
    }

    .feedback--service-form .feedback__content {
        grid-template-columns: 1fr;
        gap: 30px;
        width: min(760px, calc(100vw - 32px));
        margin: 0 auto;
        padding: 0;
        min-height: auto;
    }

    .feedback--service-form {
        background:
            linear-gradient(rgba(13, 28, 84, 0.74), rgba(13, 28, 84, 0.74)),
            url("/assets/home/postvik-home-delivery.webp") center / cover no-repeat;
    }

    .feedback--service-form .feedback__background {
        min-height: 0;
    }

    .feedback--service-form .feedback__content__info-wrapper,
    .feedback--service-form .feedback__form-wrapper,
    .feedback--service-form .feedback__form {
        top: auto;
        left: auto;
        right: auto;
        transform: none;
    }

    .feedback--service-form .lead-form .section-heading {
        font-size: 30px;
        line-height: 1.12;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .projects__list__item__image__object {
        height: 220px;
    }

    .reviews {
        padding-bottom: var(--base-vertical-indent);
    }

    .reviews__background {
        height: 520px;
    }

    .reviews__content {
        height: auto;
        margin-top: 60px;
    }

    .reviews__slider__item {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 24px;
    }

    .reviews__slider__item__text {
        font-size: 19px;
    }

    .reviews__slider__item__meta {
        padding: 22px;
        gap: 18px;
    }

    .reviews__slider__item__author {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
    }

    .reviews__slider__item__author__image {
        width: 56px;
        height: 56px;
    }

    .reviews__slider__item__author__info__name {
        font-size: 19px;
    }

    .reviews__slider__item__author__info__position,
    .reviews__slider__item__meta p {
        font-size: 14px;
    }

    .reviews__slider__item__result {
        grid-template-columns: 1fr;
    }

    .reviews__slider__controls {
        align-items: stretch;
        flex-direction: column;
    }

    .blog__interest {
        min-height: 420px;
    }

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

@media (max-width: 480px) {
    :root {
        --layout-width: calc(100vw - 18px);
        --base-gap: 16px;
    }

    .layout {
        width: min(var(--layout-width), calc(100vw - 18px));
    }

    .header__content__logo {
        width: min(220px, 100%);
    }

    .phone {
        width: 100%;
    }

    .navigation {
        gap: 16px;
    }

    .main__background,
    .main > .layout {
        min-height: 690px;
    }

    .main > .layout {
        padding-top: 90px;
    }

    .main__content h1 {
        font-size: 27px;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .main__content__description {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .features {
        margin-top: 44px;
        max-width: 100%;
    }

    .features__item {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 20px 14px;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .features__item__icon,
    .services__list__item__icon,
    .feedback__content__info__features__item__icon {
        width: 38px;
        max-width: 38px;
    }

    .features__item__info__title,
    .services__list__item__info h2 {
        font-size: 19px;
        overflow-wrap: anywhere;
    }

    .features__item__info__description,
    .services__list__item__info p {
        display: block;
        overflow-wrap: anywhere;
    }

    .section-heading {
        font-size: 29px;
    }

    .about__media-card {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        margin: 0;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about__info {
        padding: 26px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .main__content__buttons a::before,
    .about__info a.primary::before,
    .feedback__form a.primary::before,
    .feedback__form button.primary::before,
    .blog__interest__content__action-button::before {
        display: none;
    }

    .main__background__carousel,
    .reviews__slider__track,
    .about__media-slide,
    .about__media-dot {
        transition: none !important;
    }
}


/* Inner pages based on homepage */
.inner-site {
    background: var(--white);
    color: var(--text-color);
}

.inner-site footer {
    margin-top: 0;
}

.inner-main {
    background: var(--white);
    overflow: hidden;
}

.inner-layout {
    width: min(var(--layout-width), calc(100% - 40px));
    margin: 0 auto;
}

.inner-hero {
    position: relative;
    min-height: 620px;
    padding: 120px 0 170px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(7, 15, 43, 0.92) 0%, rgba(24, 49, 186, 0.83) 100%), url('/images/day.jpg') center / cover no-repeat;
    color: var(--white);
}

.inner-hero::after {
    content: "";
    position: absolute;
    right: 7vw;
    bottom: -170px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: rotate(12deg);
}

.inner-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 70px;
    align-items: center;
}

.inner-hero__media {
    min-height: 340px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), url('/images/pochta.jpg') center / cover no-repeat;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.inner-kicker,
.inner-section__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--primary-color-alt);
    font-weight: 800;
    font-size: 14px;
}

.inner-kicker::before,
.inner-section__kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--primary-color-alt);
}

.inner-breadcrumbs {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    font-size: 14px;
}

.inner-breadcrumbs a {
    color: rgba(255, 255, 255, 0.88);
}

.inner-breadcrumbs a:hover {
    color: var(--primary-color-alt);
}

.inner-hero h1 {
    max-width: 720px;
    margin-bottom: 26px;
    color: var(--white);
    font-size: clamp(42px, 4.6vw, 68px);
    line-height: 1.08;
}

.inner-hero__text {
    max-width: 680px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.7;
}

.inner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.inner-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 18px 30px;
    overflow: hidden;
    border: 0;
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.inner-button--primary {
    background: linear-gradient(90deg, var(--primary-color-light) 0%, var(--primary-color) 100%);
    box-shadow: 0 18px 42px rgba(24, 49, 186, 0.28);
}

.inner-button--primary::before {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -80%;
    width: 56%;
    transform: skewX(-24deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.7s ease;
}

.inner-button--primary:hover::before {
    left: 125%;
}

.inner-button--secondary {
    background: var(--white);
    color: var(--primary-color);
}

.inner-button--orange {
    background: var(--primary-color-alt);
    color: var(--white);
}

.inner-button:hover {
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 22px 46px rgba(7, 15, 43, 0.24);
}

.inner-button--secondary:hover {
    color: var(--primary-color-alt);
}

.inner-overlap {
    position: relative;
    z-index: 2;
    margin-top: -92px;
    margin-bottom: 105px;
}

.inner-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-shadow: 0 24px 70px rgba(7, 15, 43, 0.14);
}

.inner-card {
    min-height: 260px;
    padding: 42px 38px;
    background: var(--white);
    border-right: 1px solid var(--line);
}

.inner-card:first-child,
.inner-card--accent {
    background: linear-gradient(120deg, var(--primary-color-light), var(--primary-color));
    color: var(--white);
}

.inner-card:first-child h2,
.inner-card:first-child h3,
.inner-card:first-child p,
.inner-card--accent h2,
.inner-card--accent h3,
.inner-card--accent p {
    color: var(--white);
}

.inner-card__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 28px;
    background: rgba(255, 119, 0, 0.12);
    color: var(--primary-color-alt);
    font-weight: 900;
}

.inner-card:first-child .inner-card__mark,
.inner-card--accent .inner-card__mark {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.inner-section {
    padding: 0 0 110px;
}

.inner-section--soft {
    padding: 105px 0;
    background: #f7f8fb;
}

.inner-section__head {
    max-width: 760px;
    margin-bottom: 48px;
}

.inner-section__head--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.inner-section__head--center .inner-section__kicker {
    justify-content: center;
}

.inner-section h2 {
    font-size: clamp(34px, 3.8vw, 48px);
    line-height: 1.2;
}

.inner-section p,
.inner-card p,
.inner-panel p,
.inner-text-list li {
    color: var(--text-color);
}

.inner-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.inner-feature,
.inner-panel,
.inner-form,
.inner-faq details,
.inner-link-card {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(7, 15, 43, 0.08);
}

.inner-feature,
.inner-panel,
.inner-link-card {
    padding: 34px;
}

.inner-feature:hover,
.inner-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 52px rgba(7, 15, 43, 0.14);
}

.inner-feature,
.inner-link-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.inner-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 36px;
    align-items: start;
}

.inner-panel + .inner-panel {
    margin-top: 24px;
}

.inner-text-list {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.inner-text-list li {
    position: relative;
    padding-left: 28px;
    font-weight: 600;
}

.inner-text-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--primary-color-alt);
}

.inner-form {
    padding: 34px;
}

.inner-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 800;
}

.inner-form input,
.inner-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid transparent;
    background: #f7f8fb;
    color: var(--ink-strong);
    font: inherit;
    outline: none;
}

.inner-form input:focus,
.inner-form textarea:focus {
    border-color: var(--primary-color-light);
    box-shadow: 0 0 0 3px rgba(1, 152, 250, 0.14);
}

.inner-form textarea {
    min-height: 125px;
    resize: vertical;
}

.inner-form .inner-button {
    width: 100%;
}

.inner-faq {
    display: grid;
    gap: 14px;
}

.inner-faq details {
    padding: 24px 28px;
}

.inner-faq summary {
    color: var(--ink-strong);
    cursor: pointer;
    font-weight: 900;
}

.inner-faq p {
    margin-top: 16px;
}

.inner-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.inner-link-card {
    display: block;
    color: inherit;
}

.inner-link-card span {
    display: block;
    margin-top: 16px;
    color: var(--primary-color);
    font-weight: 900;
}

.inner-cta {
    padding: 100px 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
    color: var(--white);
}

.inner-cta h2,
.inner-cta p {
    color: var(--white);
}

.inner-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
    gap: 46px;
    align-items: center;
}

.inner-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .inner-hero__grid,
    .inner-content-grid,
    .inner-cta__grid {
        grid-template-columns: 1fr;
    }

    .inner-hero__media {
        min-height: 260px;
    }
}

@media (max-width: 860px) {
    .inner-card-grid,
    .inner-feature-grid,
    .inner-link-grid {
        grid-template-columns: 1fr;
    }

    .inner-card {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 700px) {
    .inner-layout {
        width: calc(100% - 32px);
    }

    .inner-hero {
        min-height: auto;
        padding: 66px 0 120px;
    }

    .inner-hero h1 {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.15;
        word-break: normal;
    }

    .inner-hero__text {
        font-size: 15px;
    }

    .inner-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .inner-button {
        width: 100%;
        min-height: 54px;
        padding: 16px 18px;
    }

    .inner-overlap {
        margin-top: -74px;
        margin-bottom: 72px;
    }

    .inner-card,
    .inner-feature,
    .inner-panel,
    .inner-form,
    .inner-link-card {
        padding: 28px 24px;
    }

    .inner-section,
    .inner-section--soft,
    .inner-cta {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}


/* Shared homepage navigation for generated inner pages */
.header {
    z-index: 1000;
}

.header .layout {
    z-index: 1001;
}

.navigation {
    position: relative;
    z-index: 1002;
}

.header__menu-toggle__icon,
.header__menu-toggle__icon::before,
.header__menu-toggle__icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__menu-toggle__icon {
    position: relative;
}

.header__menu-toggle__icon::before,
.header__menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.header__menu-toggle__icon::before {
    top: -7px;
}

.header__menu-toggle__icon::after {
    top: 7px;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle__icon {
    background: transparent;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle__icon::before {
    transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle__icon::after {
    transform: translateY(-7px) rotate(-45deg);
}

.navigation__item {
    position: relative;
}

.navigation__item__link,
.navigation__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.navigation__dropdown-toggle {
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-size: var(--base-font-size);
    font-weight: 700;
}

.navigation__dropdown-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.navigation__item.is-open .navigation__dropdown-toggle::after,
.navigation__item--dropdown:hover .navigation__dropdown-toggle::after {
    transform: translateY(2px) rotate(225deg);
}

.navigation__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    z-index: 10000;
    display: grid;
    min-width: 310px;
    padding: 14px;
    background: var(--white);
    box-shadow: var(--base-box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.navigation__dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.navigation__item.is-open .navigation__dropdown,
.navigation__item--dropdown:hover .navigation__dropdown,
.navigation__item--dropdown:focus-within .navigation__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navigation__dropdown__link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px;
    color: var(--black);
    font-weight: 700;
}

.navigation__dropdown__link:hover {
    background: var(--block-color);
    color: var(--primary-color);
}

.navigation__dropdown__link span {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

@media (max-width: 900px) {
    :root {
        --layout-width: calc(100vw - 32px);
    }

    html,
    body {
        overflow-x: hidden;
    }

    .layout {
        width: min(var(--layout-width), calc(100vw - 32px));
    }

    header {
        height: auto;
    }

    header .layout {
        position: relative;
        height: auto;
        padding: 12px 0;
    }

    .header__content {
        flex-wrap: wrap;
        gap: 14px;
    }

    .header__menu-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .header__content__logo {
        width: 210px;
        height: auto;
    }

    .navigation {
        display: none;
        order: 3;
        width: 100%;
        margin: 0;
        overflow: visible;
        gap: 0;
        padding: 8px 0 0;
        flex-direction: column;
        border-top: 1px solid rgba(24, 49, 186, 0.12);
    }

    .navigation.is-open {
        display: flex;
    }

    .navigation__item {
        flex: none;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .navigation__item__link,
    .navigation__dropdown-toggle {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        padding: 12px 0;
    }

    .navigation__dropdown {
        position: static;
        min-width: 0;
        padding: 0 0 8px 12px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-left: 2px solid rgba(24, 49, 186, 0.16);
    }

    .navigation__dropdown::before {
        display: none;
    }

    .navigation__item.is-open .navigation__dropdown {
        display: grid;
    }

    .navigation__dropdown__link {
        padding: 10px 0 10px 12px;
    }

    .phone {
        order: 4;
        width: 100%;
        height: auto;
        margin-left: 0;
        padding: 10px 12px;
        box-sizing: border-box;
        justify-content: flex-start;
    }
}

/* Inner generated page refinements */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.header__menu-toggle {
    display: none;
}

.inner-site .header__menu-toggle {
    display: none;
}

.inner-site .inner-main,
.inner-site .inner-hero,
.inner-site .inner-section,
.inner-site .inner-cta {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .inner-site .header__menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 700px) {
    .inner-site .inner-hero__media {
        display: none;
    }

    .inner-site .inner-hero__grid {
        display: block;
    }

    .inner-site .inner-hero h1 {
        max-width: calc(100vw - 32px);
        font-size: clamp(30px, 8.2vw, 34px);
        line-height: 1.16;
        overflow-wrap: break-word;
    }

    .inner-site .inner-hero__text {
        max-width: calc(100vw - 32px);
        overflow-wrap: break-word;
    }

    .inner-site .phone {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .inner-site header .layout {
        left: auto;
        transform: none;
        margin: 0 auto;
    }

    .inner-site .header__content__logo {
        flex: 0 1 190px;
        width: 190px;
        max-width: calc(100vw - 96px);
    }

    .inner-site .phone {
        width: 100%;
    }
}

@media (max-width: 900px) {
    :root {
        --layout-width: calc(100vw - 32px);
        --base-horizontal-indent: 24px;
        --base-vertical-indent: 70px;
    }
}

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

@media (max-width: 700px) {
    .inner-site .inner-layout {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        margin-right: auto;
        margin-left: auto;
    }

    .inner-site .inner-card-grid,
    .inner-site .inner-feature-grid,
    .inner-site .inner-link-grid,
    .inner-site .inner-content-grid,
    .inner-site .inner-cta__grid {
        width: 100%;
        max-width: 100%;
    }

    .inner-site p,
    .inner-site li,
    .inner-site h1,
    .inner-site h2,
    .inner-site h3 {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

@media (max-width: 700px) {
    .inner-site .inner-layout {
        width: calc(100vw - 48px) !important;
        max-width: calc(100vw - 48px) !important;
    }

    .inner-site .inner-hero__grid > div,
    .inner-site .inner-card,
    .inner-site .inner-feature,
    .inner-site .inner-panel,
    .inner-site .inner-form,
    .inner-site .inner-link-card {
        max-width: calc(100vw - 48px) !important;
    }
}

@media (max-width: 700px) {
    .inner-site .inner-hero h1 {
        font-size: 30px !important;
    }

    .inner-site .inner-hero__text,
    .inner-site .inner-card p,
    .inner-site .inner-feature p,
    .inner-site .inner-panel p,
    .inner-site .inner-link-card p {
        font-size: 14px;
        line-height: 1.55;
    }

    .inner-site .inner-card h2,
    .inner-site .inner-card h3,
    .inner-site .inner-feature h3 {
        font-size: 23px;
        line-height: 1.25;
    }
}

@media (max-width: 700px) {
    .inner-site .inner-layout {
        width: min(320px, calc(100vw - 48px)) !important;
        max-width: min(320px, calc(100vw - 48px)) !important;
    }

    .inner-site .inner-hero__grid > div,
    .inner-site .inner-card,
    .inner-site .inner-feature,
    .inner-site .inner-panel,
    .inner-site .inner-form,
    .inner-site .inner-link-card {
        max-width: min(320px, calc(100vw - 48px)) !important;
    }
}

.inner-site,
.inner-site > div {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 700px) {
    .inner-site .inner-layout {
        margin-left: 24px !important;
        margin-right: 24px !important;
    }
}

@media (max-width: 900px) {
    .main > .layout,
    .main__content,
    .features,
    .features__item {
        width: min(320px, calc(100vw - 18px)) !important;
        max-width: min(320px, calc(100vw - 18px)) !important;
    }

    .main__content,
    .features {
        left: 0 !important;
    }

    .features__item {
        grid-template-columns: 38px minmax(0, 1fr) !important;
    }

    .main__content h1,
    .main__content__description,
    .features__item__info,
    .features__item__info__title,
    .features__item__info__description {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

/* Keep new Astro service pages wider than legacy generated-page mobile constraints. */
@media (max-width: 900px) {
    .astro-service-site .inner-layout {
        width: min(760px, calc(100vw - 32px)) !important;
        max-width: min(760px, calc(100vw - 32px)) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

@media (max-width: 560px) {
    .astro-service-site .inner-layout {
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}
