@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

:root {
    --color-blue: #01437c;
    --color-blue-light: #00aeef;
    --color-white: #ffffff;
    --color-gray: #f0f0f0;
    --color-muted: #6f7d89;
    --page-padding: clamp(15px, 8vw, 200px);
    --outline-offset: 15px;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    min-width: 320px;
    background: var(--color-white);
    color: var(--color-blue);
    font-family: "Ubuntu", Arial, sans-serif;
    line-height: 1.35;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-blue);
    border: 3px solid transparent;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue-light);
}

.site-header {
    position: relative;
    display: flex;
    min-height: 862px;
    flex-direction: column;
    gap: clamp(260px, 36vw, 480px);
    padding: 50px var(--page-padding);
    overflow: hidden;
    background: linear-gradient(rgba(1, 67, 124, 0.08), rgba(1, 67, 124, 0.08)), url("../assets/img/MainBackground1.webp") center / cover no-repeat;
}

.header-logo {
    position: absolute;
    top: 50px;
    left: clamp(15px, 4vw, 70px);
    width: min(355px, 76vw);
    height: min(730px, 148vw);
    background: url("../assets/img/smtuLogoMainHeader.svg") center / contain no-repeat;
    pointer-events: none;
}

.header-nav {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 2.6vw, 40px);
}

.header-nav a,
.header-nav button {
    border: 0;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav button:hover {
    color: var(--color-blue-light);
}

.icon-button {
    width: 25px;
    height: 25px;
    padding: 0;
}

.search-button {
    background: url("../assets/img/search.svg") center / cover no-repeat !important;
}

.menu-button {
    position: relative;
    z-index: 4;
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 3px;
    background: var(--color-white);
}

.hero-text {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 720px;
    flex-direction: column;
    gap: 20px;
    color: var(--color-white);
}

.hero-text h1 {
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 700;
}

.hero-text p {
    max-width: 340px;
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.12;
}

.scroll-arrow {
    position: absolute;
    right: var(--page-padding);
    bottom: 70px;
    width: 40px;
    height: 107px;
    background: url("../assets/img/arrowDown.svg") center / contain no-repeat;
    transition: background-image 0.2s;
}

.scroll-arrow:hover {
    background-image: url("../assets/img/arrowDownHover.svg");
}

.section {
    width: 100%;
    padding-right: var(--page-padding);
    padding-left: var(--page-padding);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 20px;
    padding-top: 120px;
    padding-bottom: 100px;
}

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

.square-link,
.square-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: clamp(28px, 4vw, 45px);
    overflow: hidden;
    background: var(--color-gray);
}

.square-link {
    aspect-ratio: 1;
    cursor: pointer;
}

.square-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s;
}

.square-link::after,
.square-text::after,
.entity-card::after,
.faculty-card::after {
    content: "";
    position: absolute;
    inset: var(--outline-offset);
    z-index: 2;
    border: 3px solid var(--color-blue);
    pointer-events: none;
    transition: border-color 0.2s;
}

.square-link:hover::before {
    opacity: 0;
}

.square-link:hover::after,
.entity-card:hover::after,
.faculty-card:hover::after {
    border-color: var(--color-blue-light);
}

.square-link span {
    position: relative;
    z-index: 3;
    color: var(--color-blue);
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    transition: color 0.2s;
}

.square-link:hover span {
    color: var(--color-blue-light);
}

.square-text {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    background: var(--color-gray);
}

.square-text p {
    position: relative;
    z-index: 3;
    color: var(--color-blue);
    font-size: clamp(17px, 1.4vw, 22px);
    font-weight: 300;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.square-text--large {
    min-height: 383px;
    padding: clamp(45px, 7vw, 100px);
}

.square-link--hero {
    background: url("../assets/img/hero.webp") center / cover no-repeat;
}

.square-link--faculty {
    background: url("../assets/img/faculc.webp") center / cover no-repeat;
}

.square-link--students {
    background: url("../assets/img/students.webp") center / cover no-repeat;
}

.square-link--graduates {
    background: url("../assets/img/vipusk.webp") center / cover no-repeat;
}

.wide-tile {
    padding-bottom: 120px;
}

.square-link--opab {
    width: 100%;
    min-height: 575px;
    aspect-ratio: auto;
    background: url("../assets/img/obaprebyata.webp") center / cover no-repeat;
}

.catalog-preview {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 120px;
}

.catalog-preview__side {
    display: grid;
    gap: 20px;
}

.square-link--catalog {
    min-height: 786px;
    aspect-ratio: auto;
    background: url("../assets/img/catalog.webp") center / cover no-repeat;
}

.square-link--teachers {
    min-height: 383px;
    aspect-ratio: auto;
    background: url("../assets/img/prepod.webp") center / cover no-repeat;
}

.module-section {
    padding-bottom: 120px;
}

.section-heading {
    display: flex;
    margin-bottom: 40px;
    flex-direction: column;
    gap: 8px;
}

.section-kicker {
    color: var(--color-blue-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    color: var(--color-blue);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
}

.section-heading h1 {
    color: var(--color-blue);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 20px;
}

.entity-card {
    position: relative;
    display: flex;
    min-height: 600px;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-white);
    transition: transform 0.2s;
}

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

.entity-card__media {
    display: block;
    min-height: 360px;
    background-color: #c0c0c0;
    background-position: center;
    background-size: cover;
}

.person-card .entity-card__media {
    min-height: 387px;
}

.entity-card__body {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 213px;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 35px 30px;
}

.entity-card h3 {
    color: var(--color-blue);
    font-size: clamp(20px, 1.7vw, 24px);
    font-weight: 700;
    line-height: 1.2;
}

.entity-card p {
    color: var(--color-blue);
    font-size: 16px;
    font-weight: 400;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.tag {
    color: var(--color-blue-light);
    font-size: 12px;
    font-weight: 300;
}

.faculty-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 20px;
}

.faculty-card {
    position: relative;
    display: grid;
    min-height: 383px;
    grid-template-columns: minmax(210px, 38%) minmax(0, 1fr);
    overflow: hidden;
    background: var(--color-gray);
}

.faculty-card__image {
    display: block;
    min-height: 100%;
    background-color: #d0d0d0;
    background-position: center;
    background-size: cover;
}

.faculty-card__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 44px;
}

.faculty-card__code {
    color: var(--color-blue-light);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.faculty-card h3 {
    color: var(--color-blue);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.faculty-card p {
    color: var(--color-blue);
    font-size: 16px;
    font-weight: 300;
}

.news-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--color-blue);
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-card__meta span {
    font-weight: 500;
}

.news-card__meta time {
    font-weight: 300;
    text-align: right;
}

.read-more {
    align-self: center;
    color: var(--color-blue-light);
    font-size: 15px;
    font-weight: 300;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 361px) minmax(0, 1fr);
    gap: 48px;
    min-height: 390px;
    padding: 48px var(--page-padding);
    background: url("../assets/img/plashka.webp") center / cover no-repeat;
    color: var(--color-white);
}

.footer-logo {
    display: block;
    width: min(361px, 100%);
    height: 136px;
    background: url("../assets/img/logofooter.svg") center / contain no-repeat;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 32px;
}

.footer-columns nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-columns h2 {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-columns a,
.footer-copy {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-copy {
    grid-column: 2;
    align-self: end;
    text-align: right;
}

@media (max-width: 1200px) {
    .cards-row,
    .faculty-layout {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 1000px) {
    .site-header {
        min-height: 820px;
    }

    .header-logo {
        left: 50%;
        transform: translateX(-50%);
    }

    .header-nav {
        position: absolute;
        top: 0;
        right: 0;
        display: none;
        width: min(340px, 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 96px 32px 32px;
        background: rgba(1, 67, 124, 0.95);
    }

    .site-header.is-menu-open .header-nav {
        display: flex;
    }

    .menu-button {
        display: flex;
    }

    .intro-grid,
    .catalog-preview {
        grid-template-columns: 1fr;
    }

    .catalog-preview {
        padding-bottom: 100px;
    }

    .square-link--catalog {
        min-height: 420px;
    }

    .faculty-card {
        grid-template-columns: 1fr;
    }

    .faculty-card__image {
        min-height: 260px;
    }
}

@media (max-width: 720px) {
    .site-header {
        min-height: 760px;
        gap: 280px;
    }

    .scroll-arrow {
        display: none;
    }

    .intro-links,
    .cards-row,
    .faculty-layout,
    .site-footer,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .square-link,
    .square-link--opab,
    .square-link--teachers,
    .square-link--catalog {
        min-height: 300px;
    }

    .wide-tile,
    .module-section {
        padding-bottom: 80px;
    }

    .intro-grid {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .footer-logo {
        width: 259px;
        height: 209px;
        background-image: url("../assets/img/footerlogomobile.svg");
    }

    .footer-copy {
        grid-column: 1;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .site-header {
        min-height: 720px;
        gap: 250px;
    }

    .header-logo {
        width: 290px;
        height: 596px;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .hero-text p {
        font-size: 30px;
    }

    .entity-card__body,
    .faculty-card__content {
        padding: 32px 26px;
    }
}

.inner-page {
    background: var(--color-white);
}

.inner-header {
    display: flex;
    min-height: 126px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px var(--page-padding);
    background: var(--color-blue);
    color: var(--color-white);
}

.inner-logo {
    max-width: 280px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.inner-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 30px;
}

.inner-nav a {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-shell {
    width: 100%;
    padding: 90px var(--page-padding) 120px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.side-nav {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-nav a,
.filter-bar a,
.text-button {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-blue);
    padding: 10px 18px;
    color: var(--color-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
}

.side-nav a:hover,
.filter-bar a:hover,
.text-button:hover {
    border-color: var(--color-blue-light);
    color: var(--color-blue-light);
}

.article-content {
    max-width: 980px;
}

.article-content h1,
.page-shell > h1 {
    margin-bottom: 42px;
    color: var(--color-blue);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.08;
}

.article-content h2 {
    margin: 54px 0 20px;
    color: var(--color-blue);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.15;
}

.article-content p,
.lead,
.contact-grid p,
.feedback-list p {
    color: var(--color-blue);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 300;
    line-height: 1.55;
}

.lead {
    margin-bottom: 24px;
    font-weight: 400;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.catalog-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 42px 20px;
}

.catalog-list section {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    gap: 12px;
}

.catalog-list h2 {
    color: var(--color-blue);
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
}

.catalog-list a {
    color: var(--color-blue);
    font-size: 20px;
    transition: color 0.2s;
}

.catalog-list a:hover {
    color: var(--color-blue-light);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 40px;
    align-items: stretch;
    margin-bottom: 70px;
}

.detail-hero h1 {
    margin-bottom: 18px;
    color: var(--color-blue);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.05;
}

.detail-hero p {
    margin-bottom: 18px;
    color: var(--color-blue);
    font-size: 20px;
    line-height: 1.45;
}

.detail-photo {
    position: relative;
    min-height: 520px;
    background: url("../assets/img/prdefault.webp") center / cover no-repeat, #d0d0d0;
}

.detail-photo--faculty {
    background-image: url("../assets/img/faculc.webp");
}

.detail-photo::after,
.article-photo::after,
.video-placeholder::after,
.feedback-list article::after {
    content: "";
    position: absolute;
    inset: var(--outline-offset);
    border: 3px solid var(--color-blue);
    pointer-events: none;
}

.tabs-template {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.tabs-template button,
.form-template button {
    min-height: 44px;
    border: 2px solid var(--color-blue);
    padding: 10px 18px;
    background: transparent;
    color: var(--color-blue);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 28px;
    max-width: 900px;
    list-style: none;
}

.timeline-list li {
    position: relative;
    border-left: 3px solid var(--color-blue);
    padding-left: 26px;
}

.timeline-list time {
    display: block;
    margin-bottom: 8px;
    color: var(--color-blue-light);
    font-size: 24px;
    font-weight: 700;
}

.timeline-list p {
    color: var(--color-blue);
    font-size: 20px;
    line-height: 1.45;
}

.video-grid,
.feedback-list,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 20px;
}

.video-grid article {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-grid h2 {
    color: var(--color-blue);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
}

.video-placeholder,
.article-photo {
    position: relative;
    min-height: 320px;
    background: var(--color-gray);
}

.article-photo {
    margin: 42px 0;
    background: url("../assets/img/obaprebyata.webp") center / cover no-repeat;
}

.feedback-list {
    margin-bottom: 50px;
}

.feedback-list article {
    position: relative;
    min-height: 240px;
    padding: 38px;
    background: var(--color-gray);
}

.feedback-list time,
.feedback-list strong {
    display: block;
    color: var(--color-blue);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feedback-call h2 {
    margin-bottom: 16px;
    color: var(--color-blue);
    font-size: 32px;
    font-weight: 700;
}

.form-template {
    display: grid;
    gap: 16px;
}

.form-template input,
.form-template textarea {
    width: 100%;
    border: 2px solid var(--color-blue);
    padding: 15px 18px;
    color: var(--color-blue);
    font: inherit;
}

.form-template textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-grid {
    align-items: start;
}

.contact-grid strong {
    color: var(--color-blue);
    font-weight: 700;
    text-transform: uppercase;
}

.not-found {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
}

.not-found h1 {
    margin-bottom: 30px;
    color: var(--color-blue);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
}

@media (max-width: 900px) {
    .inner-header,
    .article-layout,
    .detail-hero,
    .video-grid,
    .feedback-list,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .inner-header {
        display: grid;
    }

    .inner-nav {
        justify-content: flex-start;
    }

    .side-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .catalog-list {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding-top: 64px;
        padding-bottom: 80px;
    }

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

    .detail-photo {
        min-height: 360px;
    }
}

.inner-header {
    display: flex;
    min-height: 272px;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 50px var(--page-padding) 18px;
    background: url("../assets/img/MainBackground2.webp") center / cover no-repeat;
    color: var(--color-white);
}

.inner-header__top {
    display: flex;
    width: min(1200px, 100%);
    align-self: center;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.inner-brand {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.inner-brand__logo {
    display: block;
    width: 60px;
    height: 103px;
    flex: 0 0 auto;
    background: url("../assets/img/smtuLogoSecondHeader.svg") center / contain no-repeat;
}

.inner-brand__text {
    display: flex;
    max-width: 330px;
    flex-direction: column;
    gap: 10px;
    color: var(--color-white);
    text-transform: uppercase;
}

.inner-brand__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.inner-brand__subtitle {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.25;
}

.inner-brand__subtitle span {
    display: block;
    font-size: 18px;
    letter-spacing: 0.06em;
}

.inner-header .inner-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 15px;
}

.inner-header .inner-nav a,
.inner-header .inner-nav button {
    border: 0;
    background-color: transparent;
    color: var(--color-white);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.inner-subnav {
    display: flex;
    width: min(1200px, 100%);
    align-self: center;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.inner-subnav a {
    color: var(--color-white);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.inner-menu-button {
    display: none;
}

.calendar-timeline {
    --timeline-center: 50%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 120px 120px;
    margin-top: 120px;
    padding-bottom: 80px;
}

.calendar-timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 0;
    left: calc(var(--timeline-center) - 6px);
    width: 12px;
    border-radius: 12px;
    background: var(--color-blue);
}

.calendar-event {
    position: relative;
    min-height: 260px;
}

.calendar-event::before {
    content: "";
    position: absolute;
    top: 54px;
    height: 4px;
    background: var(--color-blue);
}

.calendar-event::after {
    content: "";
    position: absolute;
    top: 43px;
    width: 4px;
    height: 28px;
    background: var(--color-blue);
}

.calendar-event--left {
    grid-column: 1;
    padding-right: 42px;
    text-align: left;
}

.calendar-event--left::before {
    right: -120px;
    left: 0;
}

.calendar-event--left::after {
    left: 0;
}

.calendar-event--right {
    grid-column: 2;
    margin-top: 160px;
    padding-left: 42px;
}

.calendar-event--right::before {
    right: 0;
    left: -120px;
}

.calendar-event--right::after {
    right: 0;
}

.calendar-event time {
    display: block;
    margin: 0 0 34px;
    color: var(--color-blue-light);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    line-height: 1;
}

.calendar-event--right time {
    text-align: right;
}

.calendar-event h2 {
    max-width: 520px;
    margin-bottom: 24px;
    color: var(--color-blue);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-transform: uppercase;
}

.calendar-event p {
    max-width: 540px;
    color: var(--color-blue);
    font-size: clamp(18px, 1.6vw, 23px);
    font-weight: 300;
    line-height: 1.28;
}

.calendar-event--right p,
.calendar-event--right h2 {
    margin-left: auto;
}

.calendar-event figure {
    max-width: 420px;
    margin-top: 30px;
}

.calendar-photo {
    position: relative;
    min-height: 240px;
    background: url("../assets/img/obaprebyata.webp") center / cover no-repeat;
}

.calendar-photo::after {
    content: "";
    position: absolute;
    inset: var(--outline-offset);
    border: 3px solid var(--color-blue);
}

.calendar-event figcaption {
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.35;
}

@media (max-width: 1000px) {
    .inner-header {
        min-height: 230px;
        padding: 20px var(--page-padding);
    }

    .inner-header__top {
        justify-content: center;
    }

    .inner-header .inner-nav {
        position: absolute;
        top: 0;
        right: 0;
        display: none;
        width: min(340px, 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 82px 32px 32px;
        background: rgba(1, 67, 124, 0.96);
    }

    .inner-header.is-menu-open .inner-nav {
        display: flex;
    }

    .inner-menu-button {
        position: absolute;
        top: 20px;
        right: 20px;
        display: flex;
    }

    .inner-subnav {
        display: none;
    }

    .inner-brand {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center;
    }
}

@media (max-width: 820px) {
    .calendar-timeline {
        grid-template-columns: 1fr;
        gap: 70px;
        margin-top: 70px;
        padding-left: 28px;
    }

    .calendar-timeline::before {
        left: 0;
        width: 8px;
    }

    .calendar-event,
    .calendar-event--left,
    .calendar-event--right {
        grid-column: 1;
        margin-top: 0;
        padding-right: 0;
        padding-left: 30px;
    }

    .calendar-event::before,
    .calendar-event--left::before,
    .calendar-event--right::before {
        right: auto;
        left: -28px;
        width: 46px;
    }

    .calendar-event::after,
    .calendar-event--left::after,
    .calendar-event--right::after {
        right: auto;
        left: 18px;
    }

    .calendar-event--right time {
        text-align: left;
    }

    .calendar-event--right p,
    .calendar-event--right h2 {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .inner-brand__title,
    .inner-brand__subtitle {
        font-size: 18px;
    }

    .inner-brand__subtitle span {
        font-size: 15px;
    }

    .inner-brand__logo {
        width: 48px;
        height: 82px;
    }
}
