:root {
    --rw-white: #ffffff;
    --rw-black: #171717;
    --rw-gray: #626262;
    --rw-gray-light: #f6f6f6;
    --rw-border: #e7e7e7;
    --rw-burgundy: #800000;

    --rw-container: 1240px;

    --rw-radius: 0;

    --rw-transition: 0.2s ease;
}


/* =========================
   GLOBAL
========================= */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--rw-white);
    color: var(--rw-black);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;
}

body.home .site.grid-container {
    max-width: 100%;
}

body.home .site-content {
    display: block;
    padding: 0;
}

a {
    transition: var(--rw-transition);
}

.rw-container {
    width: min(
        calc(100% - 48px),
        var(--rw-container)
    );

    margin: 0 auto;
}


/* =========================
   GENERATEPRESS HEADER
========================= */

.site-header {
    background: var(--rw-white);
    border-bottom: 1px solid var(--rw-border);
}

.inside-header {
    max-width: var(--rw-container);
    margin: 0 auto;

    padding: 20px 24px;
}

.site-branding .main-title,
.site-logo {
    margin: 0;
}

.site-branding .main-title a {
    color: var(--rw-black);

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    text-decoration: none;
}


/* navigation */

.main-navigation {
    background: var(--rw-white);
}

.main-navigation .main-nav ul li a {
    color: var(--rw-black);

    font-size: 14px;
    font-weight: 500;

    padding-left: 16px;
    padding-right: 16px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--rw-burgundy);
}


/* CTA MENU ITEM */

.main-navigation .main-nav ul li.menu-cta > a {
    background: var(--rw-burgundy);
    color: var(--rw-white);

    border-radius: var(--rw-radius);

    padding-left: 20px;
    padding-right: 20px;

    margin-left: 10px;
}

.main-navigation .main-nav ul li.menu-cta > a:hover {
    background: #650000;
    color: var(--rw-white);
}


/* =========================
   TYPOGRAPHY
========================= */

.rw-home h1,
.rw-home h2,
.rw-home h3 {
    color: var(--rw-black);

    line-height: 1.12;

    margin-top: 0;
}

.rw-home h1 {
    font-size: clamp(42px, 6vw, 76px);

    font-weight: 650;

    letter-spacing: -0.045em;

    max-width: 900px;
}

.rw-home h2 {
    font-size: clamp(32px, 4vw, 50px);

    font-weight: 650;

    letter-spacing: -0.035em;
}

.rw-home h3 {
    font-size: 22px;

    font-weight: 600;

    letter-spacing: -0.02em;
}

.rw-kicker {
    display: block;

    margin-bottom: 18px;

    color: var(--rw-burgundy);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.rw-kicker--light {
    color: rgba(255,255,255,.7);
}


/* =========================
   BUTTONS
========================= */

.rw-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}

.rw-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 13px 24px;

    border-radius: var(--rw-radius);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.rw-button--primary {
    background: var(--rw-burgundy);
    color: var(--rw-white);
}

.rw-button--primary:hover {
    background: #650000;
    color: var(--rw-white);
}

.rw-button--secondary {
    border: 1px solid var(--rw-border);

    color: var(--rw-black);

    background: var(--rw-white);
}

.rw-button--secondary:hover {
    border-color: var(--rw-black);
    color: var(--rw-black);
}

.rw-button--white {
    background: var(--rw-white);
    color: var(--rw-black);
}

.rw-button--white:hover {
    background: #f1f1f1;
    color: var(--rw-black);
}


/* =========================
   HERO
========================= */

.rw-hero {
    min-height: 690px;

    display: flex;

    align-items: center;

    padding: 0px 0;
}

.rw-hero__content {
    max-width: 970px;
}

.rw-hero__title {
    margin-bottom: 24px;
}

.rw-hero__text {
    max-width: 700px;

    color: var(--rw-gray);

    font-size: 20px;
    line-height: 1.65;

    margin: 0;
}


/* =========================
   SECTIONS
========================= */

.rw-section {
    padding: 110px 0;
}

.rw-section--light {
    background: var(--rw-gray-light);
}

.rw-section-heading {
    margin-bottom: 56px;
}

.rw-section-heading h2 {
    margin-bottom: 0;
}

.rw-section-heading--row {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 32px;
}


/* =========================
   SERVICES
========================= */

.rw-service-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1px;

    background: var(--rw-border);

    border: 1px solid var(--rw-border);
}

.rw-service-card {
    background: var(--rw-white);

    padding: 36px;

    min-height: 260px;

    display: flex;

    flex-direction: column;
}

.rw-service-card h3 a {
    color: var(--rw-black);

    text-decoration: none;
}

.rw-service-card p {
    color: var(--rw-gray);

    margin-bottom: 30px;
}

.rw-service-card .rw-text-link {
    margin-top: auto;
}


/* =========================
   LINKS
========================= */

.rw-text-link {
    color: var(--rw-burgundy);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.rw-text-link:hover {
    color: var(--rw-black);
}


/* =========================
   CASES
========================= */

.rw-case-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}

.rw-case-card {
    background: var(--rw-white);
}

.rw-case-card__image {
    display: block;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--rw-gray-light);
}

.rw-case-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.rw-case-card:hover img {
    transform: scale(1.025);
}

.rw-image-placeholder {
    width: 100%;
    height: 100%;

    background: var(--rw-gray-light);
}

.rw-case-card__body {
    padding-top: 20px;
}

.rw-case-meta {
    display: block;

    margin-bottom: 8px;

    color: var(--rw-burgundy);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.rw-case-card h3 {
    margin-bottom: 10px;
}

.rw-case-card h3 a {
    color: var(--rw-black);

    text-decoration: none;
}

.rw-case-card p {
    color: var(--rw-gray);

    margin: 0;
}


/* =========================
   ABOUT
========================= */

.rw-about {
    border-top: 1px solid var(--rw-border);
}

.rw-about__grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}

.rw-about__text {
    color: var(--rw-gray);

    font-size: 20px;

    line-height: 1.7;

    margin-top: 0;

    margin-bottom: 24px;
}


/* =========================
   BLOG
========================= */

.rw-blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.rw-blog-card {
    background: var(--rw-white);

    border: 1px solid var(--rw-border);

    padding: 30px;
}

.rw-blog-card__date {
    color: var(--rw-gray);

    font-size: 12px;

    margin-bottom: 16px;
}

.rw-blog-card h3 a {
    color: var(--rw-black);

    text-decoration: none;
}

.rw-blog-card p {
    color: var(--rw-gray);
}


/* =========================
   CTA
========================= */

.rw-cta {
    background: var(--rw-burgundy);

    color: var(--rw-white);

    padding: 90px 0;
}

.rw-cta__inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.rw-cta h2 {
    color: var(--rw-white);

    margin-bottom: 15px;
}

.rw-cta p {
    max-width: 650px;

    margin: 0;

    color: rgba(255,255,255,.8);

    font-size: 18px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .rw-container {
        width: min(
            calc(100% - 36px),
            var(--rw-container)
        );
    }

    .rw-hero {
        min-height: auto;

        padding: 90px 0;
    }

    .rw-section {
        padding: 80px 0;
    }

    .rw-service-grid,
    .rw-case-grid,
    .rw-blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rw-about__grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

}


@media (max-width: 650px) {

    .rw-home h1 {
        font-size: 42px;
    }

    .rw-home h2 {
        font-size: 32px;
    }

    .rw-hero__text {
        font-size: 18px;
    }

    .rw-service-grid,
    .rw-case-grid,
    .rw-blog-grid {
        grid-template-columns: 1fr;
    }

    .rw-section-heading--row,
    .rw-cta__inner {
        align-items: flex-start;

        flex-direction: column;
    }

    .rw-cta {
        padding: 70px 0;
    }

}

/* Navigation colors */

.main-navigation .main-nav ul li a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-parent > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
    color: #171717;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a:hover {
    color: #800000;
}

.rw-button--primary,
.rw-button--primary:visited {
    background: #800000;
    color: #ffffff;
}

.rw-button--primary:hover,
.rw-button--primary:focus,
.rw-button--primary:active {
    background: #660000;
    color: #ffffff;
}
.main-navigation .main-nav ul li.menu-cta > a {
    background: #800000;
    color: #ffffff !important;
    margin-left: 18px;
    padding-left: 21px;
    padding-right: 21px;
    border-radius: 0;
}

.main-navigation .main-nav ul li.menu-cta > a:hover,
.main-navigation .main-nav ul li.menu-cta > a:focus {
    background: #660000;
    color: #ffffff !important;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    background: #ffffff;
    border-bottom: 0;
}

.inside-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 30px;
}

/* Пока логотип текстовый */
.site-branding .main-title a {
    font-family: "League Spartan", sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .14em;
    color: #171717;
    text-decoration: none;
}

/* Когда загрузим картинку логотипа */
.site-logo img {
    display: block;
    width: auto;
    max-height: 34px;
}


/* NAVIGATION */

.main-navigation,
.main-navigation .inside-navigation {
    background: transparent;
}

.main-navigation .main-nav ul li a {
    font-family: "League Spartan", sans-serif;

    color: #171717;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .08em;

    text-transform: uppercase;

    padding-left: 18px;
    padding-right: 18px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-item > a:hover {
    color: #800000;
    background: transparent;
}


/* HEADER CTA */

.main-navigation .main-nav ul li.menu-cta > a,
.main-navigation .main-nav ul li.menu-cta > a:visited {
    background: #800000;
    color: #ffffff !important;

    margin-left: 18px;

    padding-left: 22px;
    padding-right: 22px;

    border-radius: 0;
}

.main-navigation .main-nav ul li.menu-cta > a:hover,
.main-navigation .main-nav ul li.menu-cta > a:focus {
    background: #650000;
    color: #ffffff !important;
}



/* =========================================
   HERO
========================================= */

.rw-hero {
    position: relative;

    background: #ffffff;

    overflow: hidden;
}


.rw-hero__inner {
    position: relative;

    max-width: 1280px;
    margin: 0 auto;


    min-height: 620px;

    padding: 25px 30px 70px;
}


/* LEFT */

.rw-hero__content {
    position: relative;
    z-index: 5;

    width: 72%;
    max-width: 900px;

    padding: 70px 0 40px;
}


.rw-hero__title {
    position: relative;
    margin: 0;
    max-width: 900px;
    line-height: .9;
}


.rw-hero__line {
    display: block;

    font-family: "League Spartan", sans-serif;
    font-size: clamp(58px, 6.4vw, 92px);
    font-weight: 800;
    letter-spacing: -.055em;
    text-transform: uppercase;
    color: #171717;

    white-space: nowrap;
}


/* handwritten / script part */

.rw-hero__script {
    position: relative;
    z-index: 6;

    display: block;
    width: max-content;
    max-width: 100%;

    margin-top: 6px;
    margin-left: 220px;

    font-family: "Parisienne", cursive;
    font-size: clamp(52px, 4.8vw, 84px);
    font-weight: 400;
    line-height: 1;

    color: #800000;

    transform: rotate(-4deg);
}


.rw-hero__text {
    max-width: 610px;

    margin: 42px 0 0;

    color: #555555;

    font-size: 17px;

    line-height: 1.65;
}


/* ACTIONS */

.rw-hero__actions {
    display: flex;

    align-items: center;

    gap: 34px;

    margin-top: 32px;
}


.rw-hero__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 14px 25px;

    background: #800000;

    color: #ffffff;

    font-family: "League Spartan", sans-serif;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .07em;

    text-transform: uppercase;

    text-decoration: none;

    border-radius: 0;
}


.rw-hero__button:hover,
.rw-hero__button:focus {
    background: #650000;

    color: #ffffff;
}


.rw-hero__link {
    position: relative;

    color: #171717;

    font-family: "League Spartan", sans-serif;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .07em;

    text-transform: uppercase;

    text-decoration: none;
}


.rw-hero__link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -5px;

    height: 1px;

    background: #171717;

    transform-origin: right;

    transition: transform .25s ease;
}


.rw-hero__link:hover {
    color: #800000;
}


.rw-hero__link:hover::after {
    background: #800000;

    transform: scaleX(.55);
}



/* =========================================
   HERO VISUAL
========================================= */
.rw-hero__visual {
    position: absolute;
    right: 10px;
    bottom: 0;

    width: 44%;
    min-height: 560px;

    z-index: 2;
}


/* Burgundy geometry behind photo */

.rw-hero__accent {
    position: absolute;
    right: 0;
    bottom: 0;

    width: 78%;
    height: 72%;

    background: #800000;

    z-index: 1;
}

/* Future generated photo */

.rw-hero__image {
    position: absolute;
    z-index: 3;

    right: -4%;
    bottom: 0;

    width: 112%;
    height: 100%;

    object-fit: contain;
    object-position: bottom right;

    display: block;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .rw-hero__inner {
        grid-template-columns:
            1.15fr .85fr;
    }

    .rw-hero__script {
        margin-left: 12%;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 780px) {

    .inside-header {
        padding: 20px;
    }


    .rw-hero__inner {
        display: flex;

        flex-direction: column;

        min-height: auto;

        padding: 55px 20px 0;
    }


    .rw-hero__content {
        padding: 20px 0 25px;
    }


    .rw-hero__line {
        font-size: clamp(47px, 14vw, 72px);
    }


    .rw-hero__script {
        margin-left: 5%;

        font-size: clamp(45px, 14vw, 70px);
    }


    .rw-hero__text {
        margin-top: 30px;

        font-size: 16px;
    }


    .rw-hero__actions {
        gap: 24px;
    }


    .rw-hero__visual {
        width: 100%;

        min-height: 430px;

        margin-top: 10px;
    }


    .rw-hero__accent {
        right: -20px;

        width: 70%;
        height: 68%;
    }


    .rw-hero__image {
        right: -8%;

        width: 115%;
    }

}

.main-navigation .main-nav ul li.menu-script > a,
.main-navigation .main-nav ul li.menu-script > a:visited {
    position: relative;

    font-family: "Parisienne", cursive;
    font-size: 28px;
    font-weight: 400;

    letter-spacing: 0;
    text-transform: none;

    color: #800000 !important;

    margin-left: 18px;

    padding-left: 8px;
    padding-right: 8px;
    padding-top: 0;
    padding-bottom: 0;

    background: transparent !important;
}

.main-navigation .main-nav ul li.menu-script > a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 1px;
    background: #800000;
    opacity: .5;
}

.main-navigation .main-nav ul li.menu-script > a:hover,
.main-navigation .main-nav ul li.menu-script > a:focus {
    color: #5f0d17 !important;
    background: transparent !important;
}


/* =========================================
   HERO — FINAL DESKTOP COMPOSITION
========================================= */

@media (min-width: 781px) {

    .rw-hero {
        position: relative;
        overflow: hidden;
        background: #fff;
    }

    .rw-hero__inner {
        position: relative;

        width: 100%;
        max-width: none;

        min-height: 560px;

        margin: 0;

        /* контент значно ближче до лівого краю */
        padding: 35px 70px 20px;
    }


    /* TEXT */

    .rw-hero__content {
        position: relative;
        z-index: 3;

        width: 78%;
        max-width: 1050px;

        padding: 65px 0 35px;

        margin: 0;
    }

    .rw-hero__title {
        position: relative;

        max-width: none;

        margin: 0;

        line-height: .92;

        text-align: left;
    }

    .rw-hero__line {
        display: block;

        font-size: clamp(60px, 6vw, 96px);

        white-space: nowrap;
    }

    .rw-hero__script {
        position: relative;
        z-index: 3;

        width: max-content;

        margin-top: 8px;
        margin-left: 170px;

        font-size: clamp(52px, 5vw, 82px);
    }


    /* RIGHT VISUAL */

    .rw-hero__visual {
        position: absolute;

        /* ФОТО БОЛЬШЕ НЕ СИДИТЬ ВНИЗУ */
        top: 15px;
        right: 55px;
        bottom: auto;

        width: 48%;
        height: calc(100% - 15px);

        min-height: 0;

        /* контейнер не створює окремий stacking layer */
        z-index: auto;
    }


    /* бордова підкладка ПІД фото і ПІД текстом */
    .rw-hero__accent {
        position: absolute;

        z-index: 1;

        right: 0;
        bottom: 0;

        width: 72%;
        height: 62%;

        background: #800000;
    }


    /* ФОТО САМЕ ПОВЕРХ ТЕКСТУ */

    .rw-hero__image {
        position: absolute;

        z-index: 6;

        top: 0;
        right: -20px;
        bottom: auto;

        width: 110%;
        height: 100%;

        object-fit: contain;
        object-position: top right;

        display: block;
    }
}

@media (max-width: 780px) {

    .rw-hero__inner {
        position: relative;

        padding: 35px 20px 0;

        min-height: auto;
    }

    .rw-hero__content {
        width: 100%;
        max-width: none;

        padding: 35px 0 10px;
    }

    .rw-hero__line {
        white-space: normal;

        font-size: clamp(45px, 13vw, 68px);

        line-height: .95;
    }

    .rw-hero__script {
        margin-left: 10%;
        margin-top: 5px;

        font-size: clamp(44px, 13vw, 66px);
    }

    .rw-hero__visual {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;
        height: 420px;

        margin-top: -10px;
    }

    .rw-hero__image {
        top: 0;
        right: -10%;

        width: 115%;
        height: 100%;

        object-position: top right;
    }

    .rw-hero__accent {
        right: -20px;
        bottom: 0;

        width: 68%;
        height: 65%;
    }
}
.rw-hero__visual {
    position: absolute;

    top: 5px;
    right: 32px;
    bottom: auto;

    width: 60%;
    height: 100%;

    min-height: 0;
    z-index: auto;
}

.rw-hero__image {
    position: absolute;

    z-index: 6;

    top: -85px;
    right: 7%;

    width: 135%;
    height: 126%;

    object-fit: contain;
    object-position: top right;

    display: block;
}
