/* общий контейнер */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'EB Garamond', serif;
    background-color: #F3EBDD;
    background-image:
        radial-gradient(circle at 20% 20%,
            rgba(180, 150, 110, 0.08),
            transparent 35%),
        radial-gradient(circle at 80% 70%,
            rgba(180, 150, 110, 0.06),
            transparent 40%);
    color: #3D2C20;
}

.twin-cities-page {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    color: #F3EBDD;

    isolation: isolate;
}


/* общий фон */

.cities-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.city-background {
    position: relative;
    width: 50%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.city-background-petrozavodsk {
    background-image:
        linear-gradient(to bottom,
            rgba(16, 30, 48, 0.36),
            rgba(16, 30, 48, 0.58)),
        url("../img/main-page/1.jpg");

    background-position: center;
}

.city-background-brest {
    background-image:
        linear-gradient(to bottom,
            rgba(16, 30, 48, 0.36),
            rgba(16, 30, 48, 0.58)),
        url("../img/main-page/2.jpg");

    background-position: center;
}

.cities-background::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30%;
    right: 30%;
    background: linear-gradient(to right,
            rgba(16, 30, 48, 0),
            rgba(16, 30, 48, 0.12) 20%,
            rgba(16, 30, 48, 0.28) 50%,
            rgba(16, 30, 48, 0.12) 80%,
            rgba(16, 30, 48, 0));
    pointer-events: none;
}

/* header */

.city-header {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 30px 30px 20px;
    text-align: center;
    background: transparent;
}

.city-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.city-header p {
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 4px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.city-header p+p {
    margin-top: 8px;
}


/* общий блок */

.cities-content {
    position: relative;
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 700px;
}


/* половинки страницы */

.city-side {
    position: relative;
    display: flex;
    width: 50%;
    min-height: 700px;
    color: #F3EBDD;
}


/* блок  города */

.city-main {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* название выставки */

.city-exhibition {
    margin-top: -460px;
    padding: 0 30px;
}


.city-link {
    display: block;
    color: inherit;
    text-decoration: none;
}


.city-exhibition h1 {
    margin: 0;

    font-family: 'Cormorant Garamond', serif;

    font-size: 68px;
    font-weight: 400;

    line-height: 1;

    letter-spacing: 3px;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.45);
}


.city-theme {
    min-height: 42px;

    margin: 30px 20px 0;

    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 4px;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.45);
}

.start-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin-top: 35px;
    padding: 11px 34px;

    font-family: 'EB Garamond', serif;
    font-size: 16px;
    letter-spacing: 3px;
    font-weight: 500;

    color: #F3EBDD;

    background: rgba(61, 44, 32, 0.42);

    border: 1px solid rgba(243, 235, 221, 0.65);
    border-radius: 4px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.25);

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.4);
}

.city-link:hover .start-button {
    background: rgba(61, 44, 32, 0.65);
    border-color: rgba(243, 235, 221, 0.85);
}

.city-link:hover .start-button {
    background: linear-gradient(135deg,
            rgba(243, 235, 221, 0.82),
            rgba(232, 220, 200, 0.70));

    color: #583417;
}


/* hover */

.city-link:hover h1,
.city-link:hover .city-theme {
    color: #F8EBD8;
}


/* центральный  блок*/

.twin-info {
    position: absolute;

    top: 68%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 600px;

    padding: 28px 42px;

    z-index: 3;

    text-align: center;

    color: #3D2C20;

    background: linear-gradient(135deg,
            rgba(243, 235, 221, 0.68),
            rgba(232, 220, 200, 0.56));

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(30, 25, 20, 0.20);
}


.twin-info h2 {
    margin: 0 0 20px;

    font-family: 'Cormorant Garamond', serif;

    font-size: 42px;
    font-weight: 400;

    line-height: 0.95;

    letter-spacing: 3px;

    color: #583417;
}


.info-line {
    width: 80px;
    height: 1px;

    margin: 0 auto 22px;

    background-color: #8A5F32;
}


.info-text {
    margin: 0;

    font-size: 17px;
    line-height: 1.5;

    text-align: justify;

    hyphens: none;
}


/* footer */

.city-footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    padding: 25px 30px;

    text-align: center;
    background: transparent;
}

.city-footer-columns {
    display: flex;
    justify-content: center;
    width: 100%;
}

.city-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 50%;
    text-align: center;
}

.city-footer p {
    width: 100%;
    margin: 4px 0;

    text-align: center;
    font-size: 13px;
    line-height: 1.4;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.city-footer .archive-name {
    margin-bottom: 6px;

    font-size: 14px;
    letter-spacing: 3px;
}

/* Общая строка */

.city-footer .footer-design {
    width: 100%;
    margin: 14px 0 0;

    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}


/* адаптив */
@media (min-width: 2200px) {

    .city-header p {
        font-size: 16px;
    }

    .city-footer p {
        font-size: 15px;
    }

    .city-footer .archive-name {
        font-size: 17px;
    }

    .city-footer .footer-design {
        font-size: 15px;
    }
}

@media (max-width: 1200px) {

    .twin-cities-page {
        min-height: 100vh;
        overflow: visible;
    }

    /* общий фон отключаем */
    .cities-background {
        display: none;
    }

    /* города располагаются друг под другом */
    .cities-content {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .city-side {
        width: 100%;
        min-height: 560px;

        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;

        color: #F3EBDD;
    }

    /* фон Петр03аводска */
    .city-side-petrozavodsk {
        background-image:
            linear-gradient(to bottom,
                rgba(16, 30, 48, 0.36),
                rgba(16, 30, 48, 0.58)),
            url("../img/main-page/1.jpg");
    }

    /* фон Бреста */
    .city-side-brest {
        background-image:
            linear-gradient(to bottom,
                rgba(16, 30, 48, 0.36),
                rgba(16, 30, 48, 0.58)),
            url("../img/main-page/2.jpg");
    }


    /* header */

    .city-header {
        padding: 25px 25px 18px;
    }

    .city-header,
    .city-footer {
        color: #583417;
    }

    .city-header p {
        font-size: 11px;
        line-height: 1.35;
        letter-spacing: 3px;
    }


    /* название выставки */

    .city-main {
        width: 100%;
    }

    .city-exhibition {
        margin-top: -60px;
        padding: 0 25px;
    }

    .city-exhibition h1 {
        font-size: 54px;
        line-height: 1;
        letter-spacing: 2px;
    }

    .city-theme {
        min-height: 42px;

        margin: 25px 15px 0;

        font-size: 13px;
        line-height: 1.4;
        letter-spacing: 2px;
    }

    .start-button {
        margin-top: 30px;
        padding: 10px 30px;

        font-size: 15px;
        letter-spacing: 2px;
    }


    /* центральный блок */

    .twin-info {
        position: relative;

        top: auto;
        left: auto;

        transform: none;

        width: 70%;

        margin: 35px auto;

        padding: 28px 30px;

        order: 3;
    }

    .twin-info h2 {
        font-size: 38px;
        line-height: 0.95;
    }

    .info-text {
        font-size: 16px;
        line-height: 1.5;
    }


    /* footer */

    .city-footer {
        padding: 22px 25px;
    }

    .city-footer p {
        font-size: 11px;
    }

    .city-footer .archive-name {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

@media (max-width: 900px) {

    .city-header {
        padding: 22px 20px 15px;
    }

    .city-header,
    .city-footer {
        color: #583417;
    }

    .city-header p {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .city-side {
        min-height: 500px;
    }

    .city-exhibition {
        margin-top: -50px;
        padding: 0 20px;
    }

    .city-exhibition h1 {
        font-size: 46px;
        letter-spacing: 2px;
    }

    .city-theme {
        margin-top: 22px;

        font-size: 12px;
        line-height: 1.4;
        letter-spacing: 2px;
    }

    .start-button {
        margin-top: 28px;
        padding: 10px 30px;

        font-size: 15px;
        letter-spacing: 2px;
    }

    .twin-info {
        width: 75%;

        margin: 30px auto;

        padding: 25px 26px;
    }

    .twin-info h2 {
        font-size: 34px;
    }

    .info-text {
        font-size: 15px;
        line-height: 1.45;
    }

    .city-footer {
        padding: 20px;
    }

    .city-footer p {
        font-size: 11px;
    }

    .city-footer .archive-name {
        font-size: 10px;
        letter-spacing: 2px;
    }
}




/* телефоны */

@media (max-width: 700px) {

    .twin-cities-page {
        min-height: 100vh;
        overflow: visible;
    }


    /* на телефоне избр фоном своих блоков */

    .cities-background {
        display: none;
    }

    .cities-content {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }

    .city-side {
        width: 100%;
        min-height: 430px;

        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;

        color: #F3EBDD;
    }

    .city-side-petrozavodsk {
        background-image:
            linear-gradient(to bottom,
                rgba(16, 30, 48, 0.42),
                rgba(16, 30, 48, 0.68)),
            url("../img/main-page/1.jpg");
    }

    .city-side-brest {
        background-image:
            linear-gradient(to bottom,
                rgba(16, 30, 48, 0.42),
                rgba(16, 30, 48, 0.68)),
            url("../img/main-page/2.jpg");
    }


    /* header */

    .city-header {
        padding: 20px 15px 15px;
    }

    .city-header-content {
        width: 100%;
    }

    .city-header,
    .city-footer {
        color: #583417;
    }

    .city-header p,
    .city-footer p {
        text-shadow:
            0 1px 4px rgba(243, 235, 221, 0.5);
    }

    .city-header p {
        font-size: 9px;
        line-height: 1.35;
        letter-spacing: 2px;
    }

    .city-header p+p {
        margin-top: 7px;
    }


    /* названия городов */

    .city-main {
        width: 100%;
    }

    .city-exhibition {
        margin-top: -30px;
        padding: 0 15px;
    }

    .city-exhibition h1 {
        font-size: 42px;
        line-height: 1;
        letter-spacing: 2px;
    }

    .city-theme {
        min-height: 42px;

        margin: 20px 10px 0;

        font-size: 11px;
        line-height: 1.4;
        letter-spacing: 1.5px;
    }

    .start-button {
        margin-top: 25px;
        padding: 10px 30px;

        font-size: 15px;
        letter-spacing: 2px;
    }


    /* центральный блок */

    .twin-info {
        position: relative;

        top: auto;
        left: auto;

        transform: none;

        width: 90%;

        margin: 30px auto;

        padding: 25px 22px;

        order: 3;
    }

    .twin-info h2 {
        font-size: 32px;
        line-height: 0.95;
    }

    .info-text {
        font-size: 14px;
        line-height: 1.5;
    }


    /* footer */

    .city-footer {
        padding: 20px 15px;
    }

    .city-footer-content {
        width: 100%;
    }

    .city-footer p {
        font-size: 11px;
        line-height: 1.4;
    }

    .city-footer .archive-name {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .city-footer .footer-design {
        margin-top: 12px;
        font-size: 10px;
    }
}


/* маленькие телефоны */

@media (max-width: 450px) {

    .city-header {
        padding: 16px 10px 12px;
    }

    .city-header p {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .city-side {
        min-height: 400px;
    }

    .city-exhibition {
        margin-top: -20px;
        padding: 0 10px;
    }

    .city-exhibition h1 {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .city-theme {
        margin-top: 18px;

        font-size: 10px;
        letter-spacing: 1px;
    }

    .start-button {
        margin-top: 22px;
        padding: 9px 26px;

        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .twin-info {
        width: 92%;

        margin: 25px auto;

        padding: 22px 18px;
    }

    .twin-info h2 {
        font-size: 29px;
    }

    .info-text {
        font-size: 13px;
        line-height: 1.45;
    }

    .city-footer {
        padding: 18px 10px;
    }

    .city-footer p {
        font-size: 10px;
    }

    .city-footer .archive-name {
        font-size: 8px;
        letter-spacing: 1px;
    }
}


/* hover только для устройств, где он есть */

@media (hover: hover) {

    .city-link:hover .start-button {
        background: linear-gradient(135deg,
                rgba(243, 235, 221, 0.82),
                rgba(232, 220, 200, 0.70));

        color: #583417;

        border-color: rgba(243, 235, 221, 0.85);
    }

    .city-link:hover h1,
    .city-link:hover .city-theme {
        color: #F8EBD8;
    }
}