html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    background: #f7f7f5;
    color: #1f1f1f;
    font-family: "Segoe UI", Arial, sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-brand {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.container-custom {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-custom.narrow {
    max-width: 820px;
}

.hero-section {
    padding: 70px 0 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 42px;
    align-items: center;
}

.hero-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6a6a6a;
    margin-bottom: 12px;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 18px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: #444;
    max-width: 720px;
}

.hero-description,
.section-text {
    font-size: 18px;
    line-height: 1.8;
    color: #4a4a4a;
    margin-top: 18px;
    max-width: 760px;
}

.hero-buttons {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-main,
.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s ease;
    font-weight: 600;
}

.btn-main {
    background: #222;
    color: white;
}

.btn-main:hover {
    background: #000;
    color: white;
}

.btn-secondary {
    background: white;
    color: #222;
    border: 1px solid #d5d5d5;
}

.btn-secondary:hover {
    background: #efefef;
    color: #111;
}

.hero-photo-block {
    display: flex;
    justify-content: center;
}

.hero-photo {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.info-section,
.page-section {
    padding: 36px 0 64px;
}

.compact-section {
    padding-top: 10px;
}

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

.projects-grid {
    margin-top: 24px;
}

.projects-intro {
    margin-bottom: 10px;
}

.info-card,
.soft-box {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.info-card h2,
.soft-box h2 {
    font-size: 22px;
    margin-bottom: 14px;
}

.info-card p,
.soft-box p {
    margin: 0;
    line-height: 1.75;
    color: #444;
}

.soft-box {
    margin: 28px 0;
}

.page-section h1 {
    font-size: 40px;
    margin-bottom: 24px;
}

.page-section h2,
.section-title {
    margin-top: 28px;
    margin-bottom: 14px;
    font-size: 30px;
}

.page-section p,
.nice-list li,
.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: #3d3d3d;
}

.lead-text {
    font-size: 20px;
    color: #2e2e2e;
}

.nice-list {
    padding-left: 22px;
}

.soft-note {
    color: #6b6b6b;
    font-style: italic;
    margin-top: 24px;
}

.text-link {
    color: #1f1f1f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gallery-section {
    padding: 20px 0 76px;
}

.gallery-note {
    font-size: 17px;
    color: #666;
    margin-bottom: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.gallery-item {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.site-footer {
    padding: 28px 0;
    color: #777;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 48px;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 250px;
    }

    .section-title,
    .page-section h2 {
        font-size: 28px;
    }

    .page-section h1 {
        font-size: 34px;
    }
}

@media (max-width: 520px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 360px;
    }

    .hero-photo {
        max-width: 320px;
    }
}
