/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 20px;
    padding: 0 30px;
    min-height: 100vh;
}

/* Fonts and text */
h1 {
    font-size: clamp(3rem, 10vw, 11.5625rem); /* More aggressive scaling */
    line-height: normal;
    font-family: 'Inter', sans-serif;
    font-weight: 900; /* Black weight */
}

h2 {
    font-family: Arial, sans-serif;
    font-weight: 400; /* Regular */
    font-size: clamp(1.5rem, 2vw, 1.875rem); /* More responsive scaling */
    line-height: 1;
}

p {
    font-size: clamp(0.875rem, 1.5vw, 1rem); /* More responsive scaling */
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}

a {
    font-size: clamp(1.125rem, 2vw, 1.875rem); /* More responsive scaling */
    line-height: 1;
}

h1, p, a {
    transition: color 0.3s ease;
}

/* Background */
.background-boryspil {
    background-image: url('images/boryspil/background_img1.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Header Object */
.header-object {
    grid-column: 2 / 12; /* columns 2-11, width = 1386px in Figma */
    height: 58vh; /* 651px / 1117px = 58.3% */
    display: flex;
    align-items: flex-end; /* h1 at bottom of container */
    justify-content: center;
}

.name {
    line-height: 16.47vh; /* 184px / 1117px = 16.47vh */
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Subheader Object */
.subheader-object {
    grid-column: 2 / 12; /* aligns with columns 2-11 */
    height: 3.6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -0.985vh; /* -11px / 1117px = -0.985% */
}

.name-subtitle {
    margin: 0;
    padding: 0;
    text-align: center;
    font-style: italic;
}

/* Navigation */
.main-nav {
    grid-column: 2 / 12; /* aligns with columns 2-11 */
    height: clamp(45px, 3.49vh, 39px); /* Scales with viewport but has min/max bounds */
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(10px, 3.58vh, 40px); /* Scales with min 25px, max 40px */
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 100%;
    background-color: transparent;
    z-index: -1;
    transition: background-color 0.3s ease;
}

.main-nav.scrolled::before {
    background-color: #FFFFFF;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 0 clamp(2px, 0.2vw, 4px) 0;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav li {
    width: 19.9%;
}

.nav-links {
    text-decoration: none;
    color: #0a0a0a;
    width: 100%;
    display: block;
    font-family: Arial, sans-serif;
}

.nav-left {
    text-align: left;
}

.nav-center {
    text-align: center;
}

.nav-right {
    text-align: right;
}

/* Content Section */
.content-section {
    grid-column: 1 / -1; /* spans all 12 columns */
    grid-row: 4;
    background: #FFFFFF;
    min-height: calc(168 * min(5vh, 47px)); /* 168 rows × min(5vh, 47px) */
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: min(5vh, 47px); /* Max 47px */
    column-gap: 20px;
    margin-left: -30px; /* break out of parent padding */
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
}

.sidebar-rectangle {
    width: 3.82%; /* 66px / 1728px viewport */
    height: 6720px; /* matches last image end at row 168 */
    background: #D9D9D9;
    position: absolute;
    left: 0;
    top: 0;
}

/* Brand Assets Section */
.brand-assets-header {
    grid-column: 2 / span 4;
    grid-row: 2;
}

.brand-assets-text {
    grid-column: 2 / span 4;
    grid-row: 3;
}

.brand-assets-text ul {
    margin: 1em 0;
    padding-left: 1.5em;
}

.brand-assets-text li {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}

/* Merchandise Section */
.merchandise-header {
    grid-column: 2 / span 4;
    grid-row: 16;
}

.merchandise-text {
    grid-column: 2 / span 4;
    grid-row: 17;
}

/* Placeholder Image */
.placeholder-image {
    grid-column: 1 / -1; /* spans all 12 columns */
    grid-row: 30 / 52; /* includes row 51 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Administrative Collateral Section */
.admin-collateral-header {
    grid-column: 2 / span 4;
    grid-row: 53;
}

.admin-collateral-text {
    grid-column: 2 / span 4;
    grid-row: 54;
}

/* Placeholder Image 2 */
.placeholder-image-2 {
    grid-column: 1 / -1; /* spans all 12 columns */
    grid-row: 93 / 107; /* includes row 106 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Social Media Section */
.social-media-header {
    grid-column: 2 / span 4;
    grid-row: 108;
}

.social-media-text {
    grid-column: 2 / span 4;
    grid-row: 109;
}

/* Placeholder Image 3 */
.placeholder-image-3 {
    grid-column: 1 / -1; /* spans all 12 columns */
    grid-row: 141 / 169; /* includes row 168 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%; /* shows higher part of image (30% from top) */
}

/* Right-side Placeholder Images */
.placeholder-right-1 {
    grid-column: 6 / 13; /* columns 6-12 (span 7) */
    grid-row: 2 / 15; /* includes row 14 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-right-2 {
    grid-column: 6 / 13;
    grid-row: 16 / 29; /* includes row 28 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-right-3 {
    grid-column: 6 / 13;
    grid-row: 53 / 68; /* includes row 67 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-pair {
    grid-column: 6 / 13;
    grid-row: 69 / 77; /* includes row 76 */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.placeholder-half-left {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-half-right {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-right-6 {
    grid-column: 6 / 13;
    grid-row: 78 / 92; /* includes row 91 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-right-7 {
    grid-column: 6 / 13;
    grid-row: 108 / 123; /* includes row 122 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-right-8 {
    grid-column: 6 / 13;
    grid-row: 124 / 140; /* includes row 139 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Works section */
.works {
    width: 80.2%;
    margin: 0 auto;
    padding-top: clamp(1rem, 3vh, 2.375rem);
    display: flex;
    gap: 1.5%;
}

.works-text {
    width: 31.42%;
    flex-shrink: 0;
}

.works-list {
    width: 55.6%;
    padding-left: 13.50%;
}

.works-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 2.56%;
    text-decoration: none;
    color: #0a0a0a;
    cursor: pointer;
}

.work-image {
    width: 262px;
    height: 50px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 0.5px #0a0a0a;
    transition: box-shadow 0.3s ease;
}

.work-text {
    width: 424px;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    --underline-width: 0;
    --underline-color: transparent;
}

.work-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--underline-width);
    height: 0.5px;
    background-color: var(--underline-color);
    transition: width 0.3s ease;
}

@media (max-width: 1024px) {
    .work-text {
        display: none;
    }
}
