:root {
    /* Color variables */
    --color-bg: #e0e0e0;
    --color-bg-footer: #434343;
    --color-text: #1e1e1e;
    --color-text-light: #e0e0e0;

    /* Font size variables */
    --font-size-base: 16px;
    --font-size-h1: clamp(2.2rem, 5vw, 3.2rem);  
    --font-size-h2: 2rem;  /* 22px */
    --font-size-h3: 1.5rem;  /* 18px */
    --font-size-footer: 0.87rem; /* 14px */
    --font-size-vas: 4rem;
    --font-size-jva: 3rem;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

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

body {
    font-family: 'LibreFranklin', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    align-items: center;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem;
}

/* Header styles */
header {
    background-color: var(--color-bg);
}

.header {
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header nav {
    font-family: 'UnicaOne', 'Arial', sans-serif;
    text-transform: uppercase;
    font-size: var(--font-size-h3);
    display: flex;
    gap: 1.5rem;
}

/* Slider styles */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
    background: var(--color-bg);
    overflow: hidden;
}

.slider {
    width: 100vw;
    max-width: 100vw;
    height: 60vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0 auto;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ccc;
    color: #222;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    user-select: none;
    opacity: 0.85;
    padding: 0;
    padding-left: 5px;
    padding-top: 2px;
}

.slider-arrow .arrow-icon {
    
    height: 2.5rem;
    display: block;
}

.slider-arrow-left {
    left: 1rem;
}

.slider-arrow-right {
    right: 1rem;
}

.slider-arrow:hover {
    background: #f0f0f0;
    transform: scale(1.1) translateY(-50%);
}

/* Typography */
h1 {
    font-size: var(--font-size-h1);
    font-family: 'UnicaOne', 'Arial', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
}

h2 {
    font-size: var(--font-size-h2);
    font-family: 'UnicaOne', 'Arial', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
}

h3 {
    font-size: var(--font-size-h3);
    font-family: 'UnicaOne', 'Arial', sans-serif;
    text-transform: uppercase;
    transition: all 0.5s;
    font-weight: 500;
}

p, address {
    font-style: normal;
    line-height: 1.8;
}

/* Content layout */
.main-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
}

.architect-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.content-block {
    display: flex;
    flex-direction: column;
    justify-content: left;
    width: 100%;
    gap: 1rem;
}

.architect-section p {
    margin-top: -0.5rem;
}

/* Photo block */
.photo-block {
    margin-bottom: 2.5rem;
}

.photo-block img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.625rem;
    border-radius: 2rem;
}

.photo-block a {
    width: 100%;
}

/* Links */
a {
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.5s;
    display: inline-block;
}

a:hover {
    transform: scale(1.05);  
    cursor: pointer;
}

#phone {
    margin-top: 0.5rem;
}

/* Footer */
footer {
    color: var(--color-text);
    font-size: var(--font-size-base);
    border-top: solid 1px var(--color-bg-footer);
}

.vas-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 2.5rem;
}

.vas-logo {
    font-size: var(--font-size-vas);
    font-family: 'UnicaOne', 'Arial', sans-serif;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.jva-logo {
    max-height: var(--font-size-jva);
}

/* Images */
img {
    width: 100%;
    object-fit: contain;
}

/* Responsive styles */
@media (max-width: 48rem) { /* 768px */
    .architect-section, .footer-content, .vas-block {
        flex-direction: column;
        gap: 1.875rem;
        align-items: start;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 0;
        width: 100%;
    }

    .slider {
        height: 40vh;
    }
    
    .slide img {
        height: 100%;
    }

    .header {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .jva-logo {
        object-position: 0;
    }

    .vas-block {
        margin-top: 0.5rem;
    }

    .slider-wrapper {
        margin-bottom: 2rem;
    }
}

@media (max-width: 64rem) { /* 1024px */
    .main-content {
        grid-template-columns: 1fr;
    }
}