﻿:root {
    --white: #ffffff;
    --black: #111111;
    --grey-50: #f7f7f7;
    --grey-100: #ececec;
    --grey-200: #d4d4d4;
    --grey-400: #9a9a9a;
    --grey-600: #5c5c5c;
    --grey-800: #2a2a2a;
    --footer-bg: #1a1a1a;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --container: 1240px;
    --header-h: 72px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header.is-scrolled .logo,
.site-header.is-scrolled .main-nav a {
    color: var(--black);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}

.logo {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--white);
    transition: color var(--transition);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    transition: opacity var(--transition), color var(--transition);
}

.main-nav a:hover {
    opacity: 0.75;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.site-header .menu-toggle {
    color: var(--white);
}

.site-header.is-scrolled .menu-toggle {
    color: var(--black);
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: var(--header-h);
    padding-bottom: 64px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    min-height: 100vh;
    min-height: 100svh;
}

.hero-text {
    max-width: 640px;
    padding-top: 18vh;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-sub {
    margin: 0 0 32px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.92;
}

.hero-caption {
    margin: 0;
    align-self: flex-end;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
}

.btn:hover {
    opacity: 0.88;
}

.btn-white {
    background: var(--white);
    color: var(--black);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* Sections */
.section {
    padding: 88px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.section-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-title--center {
    text-align: center;
    margin-bottom: 48px;
}

.slider-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.slider-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--grey-200);
    border-radius: 50%;
    background: var(--white);
    color: var(--grey-600);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.slider-btn:hover {
    border-color: var(--grey-400);
    color: var(--black);
}

/* Portfolio */
.portfolio-section {
    background: var(--white);
}

.portfolio-track,
.services-track {
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    transition: transform 0.4s ease;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
}

.portfolio-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--grey-100);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.04);
}

.portfolio-body {
    padding-top: 18px;
}

.portfolio-body h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-body p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--grey-600);
}

.portfolio-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.portfolio-link:hover {
    opacity: 0.7;
}

/* Services */
.services-section {
    background: var(--white);
    padding-top: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: transform 0.4s ease;
}

.service-card {
    padding: 36px 32px 40px;
    background: var(--grey-50);
    min-height: 260px;
}

.service-icon {
    margin-bottom: 24px;
    color: var(--black);
}

.service-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.service-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--grey-600);
}

/* Awards */
.awards-section {
    background-color: var(--grey-100);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.04) 0%, transparent 45%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.02) 3px,
            rgba(0, 0, 0, 0.02) 6px
        );
    padding: 96px 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.award-card {
    text-align: center;
}

.award-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    color: var(--black);
}

.award-card h3 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.award-card p {
    margin: 0;
    font-size: 13px;
    color: var(--grey-600);
}

/* Team */
.team-section {
    background: var(--white);
}

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

.team-card {
    text-align: left;
}

.team-photo {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin-bottom: 16px;
    background: var(--grey-100);
    filter: grayscale(100%);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.team-card:hover .team-photo img {
    filter: grayscale(70%);
}

.team-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.team-card p {
    margin: 0;
    font-size: 12px;
    color: var(--grey-600);
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.88);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-col h4 {
    margin: 0 0 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
}

.footer-col p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-col a {
    transition: opacity var(--transition);
}

.footer-col a:hover {
    opacity: 0.75;
}

.footer-col .icon {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

.footer-hours {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px !important;
}

.footer-map {
    position: relative;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    background: #2d2d2d;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.social-row {
    display: flex;
    gap: 16px;
}

.social-row a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.social-row a:hover {
    color: var(--white);
}

.copyright {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal-dialog {
    position: relative;
    width: min(480px, 100%);
    padding: 36px 32px 32px;
    background: var(--white);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--grey-600);
    cursor: pointer;
}

.modal-dialog h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modal-lead {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--grey-600);
}

.contact-form label {
    display: block;
    margin-bottom: 16px;
}

.contact-form label span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey-600);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--grey-200);
    background: var(--white);
    color: var(--black);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--grey-400);
}

.contact-form textarea {
    resize: vertical;
    min-height: 88px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    max-width: 360px;
    padding: 14px 18px;
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        padding: 24px;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .main-nav a {
        color: var(--black);
        font-size: 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-caption {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }

    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}
