/* =========================
   BASE
========================= */

:root {
    --black: #171918;
    --dark: #222625;
    --text: #363b39;
    --muted: #747b78;
    --light: #f4f5f2;
    --white: #ffffff;
    --accent: #1f6675;
    --accent-light: #dcecef;
    --border: #dedfdb;

    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

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


/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
    color: var(--black);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(48px, 6vw, 78px);
    max-width: 850px;
}

h2 {
    font-size: clamp(36px, 4vw, 56px);
    max-width: 850px;
}

h3 {
    font-size: 22px;
}

p {
    color: var(--text);
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 22px;
}

.eyebrow-light {
    color: #8fc4cf;
}


/* =========================
   NAVIGATION
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 18px;
}

nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

nav a {
    font-size: 13px;
    color: var(--muted);
    transition: color .2s ease;
}

nav a:hover {
    color: var(--black);
}

.nav-cta {
    background: var(--black);
    color: var(--white);
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 21px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

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

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

.button-secondary {
    border: 1px solid var(--border);
    background: var(--white);
}

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


/* =========================
   HERO
========================= */

.hero {
    padding: 110px 0 45px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 70px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-lead {
    margin-top: 30px;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.hero-text {
    max-width: 650px;
    margin-top: 15px;
    font-size: 18px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

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

.project-flow {
    width: 100%;
    max-width: 290px;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid var(--border);
    background: var(--light);
}

.flow-item span {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
}

.flow-item strong {
    font-size: 15px;
}

.flow-item.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.flow-item.active span {
    color: var(--white);
}

.flow-line {
    height: 18px;
    width: 1px;
    background: var(--border);
    margin-left: 27px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 80px;
}

.hero-tags span {
    border: 1px solid var(--border);
    padding: 8px 12px;
    font-size: 11px;
    color: var(--muted);
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 120px 0;
}

.section-light {
    background: var(--light);
}

.section-dark {
    background: var(--black);
}

.section-intro {
    max-width: 900px;
    margin-bottom: 65px;
}

.section-intro.narrow {
    max-width: 720px;
}

.section-intro p {
    margin-top: 22px;
    font-size: 18px;
    color: var(--muted);
}

.section-dark h2 {
    color: var(--white);
}

.section-dark p {
    color: #c5cac7;
}


/* =========================
   PROBLEM
========================= */

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

.problem-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 35px;
    min-height: 200px;
}

.problem-number {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
}

.problem-card h3 {
    margin-top: 25px;
}

.problem-card p {
    margin-top: 10px;
    color: var(--muted);
    max-width: 450px;
}

.statement {
    margin-top: 55px;
    font-size: 21px;
    color: var(--muted);
}

.statement span {
    color: var(--black);
    font-weight: 700;
}


/* =========================
   PROCESS
========================= */

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

.process-item {
    border-top: 2px solid var(--black);
    padding-top: 20px;
}

.process-number {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
}

.process-item h3 {
    margin-bottom: 12px;
}

.process-item p {
    color: var(--muted);
    font-size: 14px;
}

.big-statement {
    margin-top: 80px;
    max-width: 850px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
}

.big-statement span {
    color: var(--accent);
}


/* =========================
   EXPERIENCE
========================= */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

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

.section-copy p {
    font-size: 18px;
    margin-bottom: 24px;
}

.highlight-text {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 22px !important;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 90px;
    border-top: 1px solid #454b49;
    padding-top: 30px;
}

.experience-grid p {
    margin-top: 10px;
    font-size: 14px;
}

.experience-label {
    color: #8fc4cf;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}


/* =========================
   SPECIALISTS
========================= */

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

.specialist {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 24px;
    font-weight: 700;
}

.network-statement {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-top: 55px;
    padding: 30px;
    background: var(--white);
    border-left: 3px solid var(--accent);
}

.network-arrow {
    color: var(--accent);
    font-size: 25px;
}

.network-statement strong {
    font-size: 18px;
}

.network-statement p {
    margin-top: 6px;
    color: var(--muted);
}


/* =========================
   PROJECTS
========================= */

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

.project-card {
    padding: 30px;
    border: 1px solid var(--border);
    min-height: 230px;
}

.project-card > span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.project-card h3 {
    margin-top: 45px;
}

.project-card p {
    color: var(--muted);
    margin-top: 10px;
}


/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.photo-placeholder {
    aspect-ratio: 4 / 5;
    background: #dedfdb;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo */
.photo-placeholder {
    background-image: url("Photo-Radim.jpeg");
    background-size: cover;
    background-position: center;
}

.photo-placeholder span {
    display: none;
}

.about-content h2 {
    max-width: 700px;
}

.about-content > p {
    margin-top: 22px;
    max-width: 700px;
    font-size: 17px;
}

.about-facts {
    display: flex;
    gap: 55px;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.about-facts div {
    display: flex;
    flex-direction: column;
}

.about-facts strong {
    font-size: 34px;
    line-height: 1;
    color: var(--accent);
}

.about-facts span {
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
}


/* =========================
   CASE STUDY CAROUSEL
========================= */

.case-carousel {
    position: relative;
}

.case-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 2px 12px;
}

.case-track::-webkit-scrollbar {
    display: none;
}

.case-card {
    flex: 0 0 calc((100% - 36px) / 3);
    width: calc((100% - 36px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    padding: 30px;
}

.case-meta {
    font-size: 9px;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--accent);
}

.case-card h3 {
    margin-top: 28px;
    font-size: 27px;
}

.case-card p {
    margin-top: 12px;
    color: var(--muted);
}

.case-result {
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.case-result span {
    display: block;
    font-size: 9px;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 7px;
}

.case-result strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: var(--accent);
}

.case-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 25px;
}

.case-carousel-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font-size: 18px;
}

.case-carousel-button:hover {
    background: var(--black);
    color: var(--white);
}


/* =========================
   CONTACT
========================= */

.contact-section {
    background: var(--accent);
    color: var(--white);
    padding: 120px 0;
}

.contact-inner {
    max-width: 900px;
}

.contact-section h2 {
    color: var(--white);
    max-width: 800px;
}

.contact-section p {
    color: #d7e6e8;
    margin-top: 20px;
    font-size: 17px;
    max-width: 650px;
}

.contact-highlight {
    color: var(--white) !important;
    font-size: 27px !important;
    font-weight: 700;
}

.contact-section .button {
    margin-top: 35px;
}


/* =========================
   CONTACT DETAILS
========================= */

.footer-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.25);
}

.footer-contact a {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: opacity .2s ease;
}

.footer-contact a:hover {
    opacity: .7;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: var(--black);
    color: #858c89;
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-size: 13px;
}

.footer-inner span {
    font-size: 13px;
    color: #858c89;
}

.footer-inner span:last-child {
    font-size: 15px;
    color: #aeb5b2;
    font-weight: 500;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .hero-grid,
    .split-section,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .process {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-card {
        flex-basis: calc((100% - 18px) / 2);
        width: calc((100% - 18px) / 2);
    }

    .about-photo {
        max-width: 350px;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(var(--max-width), calc(100% - 30px));
    }

    .nav-cta {
        padding: 9px 12px;
        font-size: 11px;
    }

    .hero {
        padding: 65px 0 35px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .section {
        padding: 80px 0;
    }

    .problem-grid,
    .specialist-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        flex-basis: 100%;
        width: 100%;
        min-height: 330px;
    }

    .case-carousel-controls {
        justify-content: flex-start;
    }

    .process {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

    .big-statement {
        font-size: 25px;
    }

    .about-facts {
        gap: 25px;
    }

    .contact-section {
        padding: 80px 0;
    }

    .footer-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 65px;
        padding-top: 28px;
    }

    .footer-contact a {
        font-size: 20px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-inner span {
        font-size: 12px;
    }

    .footer-inner span:last-child {
        font-size: 14px;
    }
}


/* =========================
   CONTACT MODAL
========================= */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.contact-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 25, 24, .65);
    backdrop-filter: blur(6px);
}

.contact-modal-box {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    padding: 45px;
    box-shadow: 0 25px 80px rgba(0,0,0,.18);
    transform: translateY(15px);
    transition: transform .25s ease;
}

.contact-modal.active .contact-modal-box {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.contact-modal-close:hover {
    color: var(--black);
}

.contact-modal-box h2 {
    font-size: clamp(32px, 4vw, 46px);
    max-width: 500px;
}

.contact-modal-intro {
    margin-top: 15px;
    color: var(--muted);
    font-size: 16px;
    max-width: 500px;
}

.contact-modal form {
    margin-top: 30px;
}

.form-group {
    margin-top: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
}

.form-group label span {
    color: var(--muted);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--light);
    padding: 13px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--white);
}

.form-submit {
    border: 0;
    margin-top: 25px;
    cursor: pointer;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 30px 10px;
}

.contact-success.active {
    display: block;
}

.success-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    font-size: 25px;
    font-weight: 700;
}

.contact-success h2 {
    margin: 0 auto;
}

.contact-success p {
    margin: 15px auto 0;
    color: var(--muted);
    max-width: 400px;
}

.contact-success .button {
    margin-top: 25px;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .contact-modal {
        padding: 15px;
    }

    .contact-modal-box {
        padding: 35px 25px;
    }

    .contact-modal-close {
        top: 14px;
        right: 17px;
    }
}