:root {
    --bg: #061f25;
    --bg-deep: #03171c;
    --text: #f4f8f5;
    --muted: #b8ccca;
    --turquoise: #36ded1;
    --line: rgba(130, 231, 222, 0.22);
    --coral: #ff766f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 35%, rgba(16, 176, 169, 0.18), transparent 27rem),
        linear-gradient(135deg, var(--bg-deep), var(--bg) 55%, #07323a);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.site-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.site-shell::before {
    position: absolute;
    top: 9rem;
    right: -8rem;
    width: 25rem;
    height: 25rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 0 90px rgba(54, 222, 209, 0.2);
    content: "";
    pointer-events: none;
}

.site-shell::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36%;
    height: 1px;
    background: linear-gradient(90deg, var(--turquoise), transparent);
    content: "";
}

.site-header,
.hero,
.portfolio,
.services {
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 80px));
    margin-inline: auto;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(24px, 4vw, 68px);
    min-height: 112px;
    border-bottom: 1px solid var(--line);
}

.brand { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.brand__name { color: var(--turquoise); font-size: 18px; font-weight: 750; letter-spacing: 0.16em; }
.brand__caption { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.2vw, 36px);
}

.nav-toggle { display: none; }

.main-nav a {
    position: relative;
    color: #dce8e6;
    font-size: 14px;
    transition: color 180ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    background: var(--turquoise);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] { color: var(--turquoise); }
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
    padding: 13px 21px;
    border-radius: 999px;
    color: #12282b;
    background: var(--coral);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(255, 118, 111, 0.18);
    transition: background 180ms ease, transform 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible { background: #ff8d86; transform: translateY(-2px); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: clamp(50px, 8vw, 130px);
    min-height: calc(100vh - 112px);
    padding: 62px 0 72px;
}

.hero__content { max-width: 800px; }

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--turquoise);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__eyebrow span {
    width: 42px;
    height: 1px;
    background: var(--turquoise);
    box-shadow: 0 0 12px var(--turquoise);
}

h1 {
    max-width: 820px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 5.4vw, 88px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

h1 em { color: var(--turquoise); font-weight: 400; }

.hero__description {
    max-width: 690px;
    margin: 30px 0 0;
    color: #e7f0ee;
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.55;
}

.hero__note {
    max-width: 650px;
    margin: 22px 0 0;
    padding-left: 18px;
    border-left: 1px solid var(--turquoise);
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }
.button--light { color: #06272c; background: var(--text); }
.button--light:hover,
.button--light:focus-visible { background: #dffaf5; }
.button--outline { border-color: rgba(244, 248, 245, 0.42); background: rgba(255, 255, 255, 0.03); }
.button--outline:hover,
.button--outline:focus-visible { border-color: var(--turquoise); background: rgba(54, 222, 209, 0.08); }

.hero__visual {
    position: relative;
    width: min(100%, 490px);
    justify-self: end;
    padding: 14px 14px 28px 0;
}

.hero__visual::before {
    position: absolute;
    top: -22px;
    right: -18px;
    width: 62%;
    height: 35%;
    border-top: 1px solid var(--turquoise);
    border-right: 1px solid var(--turquoise);
    content: "";
    opacity: 0.6;
}

.hero__visual::after {
    position: absolute;
    right: -22px;
    bottom: 65px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--turquoise);
    box-shadow: 0 0 18px var(--turquoise);
    content: "";
}

.portrait-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(119, 239, 229, 0.58);
    border-radius: 28px;
    background: #0a363c;
    box-shadow: 0 0 42px rgba(54, 222, 209, 0.13);
}

.portrait-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 52%;
}

.portrait-label {
    position: absolute;
    right: 38px;
    bottom: 0;
    padding: 7px 12px;
    color: var(--turquoise);
    background: var(--bg);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.portfolio {
    padding: clamp(90px, 11vw, 170px) 0 clamp(100px, 12vw, 180px);
    scroll-margin-top: 24px;
}

.portfolio__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 20px 60px;
    align-items: end;
    margin-bottom: clamp(48px, 7vw, 90px);
}

.section-kicker { grid-column: 1 / -1; margin: 0; color: var(--turquoise); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section-kicker span { display: inline-block; margin-right: 16px; padding-right: 16px; border-right: 1px solid var(--turquoise); }
.portfolio h2, .case-modal h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6.4vw, 92px); font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.portfolio h2 em { color: var(--turquoise); font-weight: 400; }
.portfolio__heading > p:last-child { margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(22px, 3vw, 42px); }
.project-card { position: relative; grid-column: span 5; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(7, 45, 51, .72); box-shadow: 0 24px 70px rgba(0, 0, 0, .16); }
.project-card--wide { grid-column: span 7; }
.project-card--avatar { display: grid; grid-column: 1 / -1; grid-template-columns: clamp(300px, 30vw, 340px) minmax(0, 1fr); width: min(100%, 1080px); height: clamp(520px, 40vw, 580px); justify-self: center; align-items: stretch; }
.project-card:nth-child(3) { margin-top: -56px; }
.project-card--reverse { margin-top: 56px; }
.project-card__image { aspect-ratio: 16 / 10; overflow: hidden; background: #0a363c; }
.project-card--tall .project-card__image { aspect-ratio: 4 / 5; }
.project-card__image img, .project-card__image video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.project-card--avatar .project-card__image { height: 100%; aspect-ratio: auto; }
.project-card--avatar .project-card__image video { object-fit: cover; background: #020b0d; }
.project-card--avatar .project-card__content { display: flex; flex-direction: column; justify-content: center; }
.project-card:hover .project-card__image img { transform: scale(1.035); }
.project-card__content { padding: clamp(24px, 3vw, 38px); }
.project-card__category, .case-modal__category { margin: 0 0 16px; color: var(--turquoise); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-card h3 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 44px); font-weight: 400; line-height: 1.08; }
.brand-name { display: inline-block; font-family: "Segoe UI", Arial, sans-serif; font-size: 1em; font-weight: 700; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; line-height: inherit; white-space: nowrap; }
.project-card__content > p:not(.project-card__category) { max-width: 650px; margin: 18px 0 26px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.case-button { display: inline-flex; align-items: center; gap: 18px; padding: 0; border: 0; color: var(--coral); background: transparent; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.case-button span { font-size: 20px; transition: transform 180ms ease; }
.case-button:hover span, .case-button:focus-visible span { transform: translate(3px, -3px); }

.case-modal { width: min(1180px, calc(100% - 40px)); max-height: calc(100vh - 40px); padding: 0; overflow: hidden; border: 1px solid rgba(54, 222, 209, .42); border-radius: 28px; color: var(--text); background: #06262c; box-shadow: 0 30px 120px rgba(0, 0, 0, .65); }
.case-modal::backdrop { background: rgba(1, 13, 16, .84); backdrop-filter: blur(8px); }
.case-modal__panel { max-height: calc(100vh - 42px); padding: clamp(30px, 5vw, 68px); overflow-y: auto; overscroll-behavior: contain; }
.case-modal__close { position: sticky; z-index: 2; top: 0; float: right; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: #0a343a; font-size: 29px; line-height: 1; cursor: pointer; }
.case-modal__intro { max-width: 900px; padding: 16px 64px 46px 0; }
.case-modal h2 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; }
.case-modal__description { margin: 28px 0 0; color: #dce9e7; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.7; }
.case-modal__result { margin: 24px 0 0; padding: 18px 22px; border-left: 2px solid var(--coral); color: var(--text); background: rgba(255, 118, 111, .08); font-weight: 700; line-height: 1.6; }
.case-modal__result:empty { display: none; }
.case-modal__summary { margin: 28px 0 0; padding: 20px 24px; border-left: 2px solid var(--coral); color: var(--text); background: rgba(255, 118, 111, .08); font-size: 17px; font-weight: 700; line-height: 1.6; }
.case-modal__summary:empty { display: none; }
.case-modal__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-modal__gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-deep); }
.case-modal__gallery img, .case-modal__gallery video { display: block; width: 100%; max-width: 100%; height: auto; }
.case-modal__gallery video { aspect-ratio: 9 / 16; max-height: 75vh; background: #000; object-fit: contain; }
.case-modal__gallery--three figure:first-child { grid-column: 1 / -1; }
.case-modal__gallery--five { grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; }
.case-modal__gallery--five figure { width: 100%; max-width: 480px; justify-self: center; }
.case-modal__gallery--five figure:last-child { grid-column: 1 / -1; width: min(100%, 480px); justify-self: center; }
.case-modal__gallery--five video { object-fit: contain; }
.case-modal__gallery figcaption { padding: 18px 20px 21px; border-top: 1px solid var(--line); }
.case-modal__gallery figcaption strong { display: block; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; line-height: 1.25; }
.case-modal__gallery figcaption span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
body.modal-open { overflow: hidden; }

.services {
    padding: 0 0 clamp(100px, 12vw, 180px);
    scroll-margin-top: 24px;
}

.services__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
    gap: 20px 60px;
    align-items: end;
    padding-top: clamp(62px, 7vw, 96px);
    margin-bottom: clamp(38px, 4.5vw, 58px);
    border-top: 1px solid var(--line);
}

.services__heading .section-kicker { grid-column: 1 / -1; }
.services h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 84px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.services h2 em { color: var(--turquoise); font-weight: 400; }
.services__heading > p:last-child { margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: clamp(18px, 2.4vw, 32px); }
.service-card { position: relative; min-width: 0; padding: clamp(28px, 3vw, 40px); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(9, 55, 62, .82), rgba(4, 30, 35, .9)); }
.service-card--wide { grid-column: 1 / -1; }
.service-card--wide h3,
.service-card--wide > p { max-width: 760px; }
.service-card::after { position: absolute; right: 0; bottom: 0; width: 34%; height: 1px; background: linear-gradient(90deg, transparent, var(--coral)); content: ""; }
.service-card__number { display: block; margin-bottom: clamp(24px, 2.5vw, 34px); color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 6vw, 82px); line-height: .8; letter-spacing: -.06em; opacity: .92; }
.service-card h3 { max-width: 560px; margin: 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3vw, 42px); font-weight: 400; line-height: 1.08; }
.service-card > p:not(.service-card__for) { margin: 18px 0 0; color: #dce9e7; font-size: 16px; line-height: 1.65; }
.service-card__for { margin: 22px 0 0; padding: 14px 0 0 18px; border-top: 1px solid var(--line); border-left: 2px solid var(--turquoise); color: var(--muted); font-size: 14px; line-height: 1.55; }
.services__note { max-width: 760px; margin: clamp(34px, 4vw, 50px) auto 0; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; text-align: center; text-wrap: balance; }
.services__note a { display: block; width: max-content; max-width: 100%; margin: 24px auto 0; padding-bottom: 5px; border-bottom: 1px solid var(--coral); color: var(--coral); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 750; }

.about {
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 80px));
    margin-inline: auto;
    padding: clamp(90px, 10vw, 150px) 0 clamp(110px, 12vw, 180px);
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.about__heading { max-width: 1120px; margin-bottom: clamp(58px, 7vw, 96px); }
.about__kicker { margin: 0 0 26px; color: var(--turquoise); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.about__kicker span { display: inline-block; margin-right: 16px; padding-right: 16px; border-right: 1px solid var(--turquoise); }
.about h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 84px); font-weight: 400; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.about h2 em { color: var(--turquoise); font-weight: 400; }
.about__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, .72fr); gap: clamp(60px, 9vw, 140px); align-items: start; }
.about__story { max-width: 720px; padding-left: clamp(20px, 3vw, 38px); border-left: 1px solid var(--turquoise); }
.about__story p { margin: 0; color: #dce9e7; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.75; }
.about__story p + p { margin-top: 22px; }
.about__story p:first-child { color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.35; }
.principles { margin: 0; padding: 0; list-style: none; }
.principle { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: clamp(18px, 2vw, 30px); padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.principle + .principle { padding-top: 28px; }
.principle__number { padding-top: 4px; color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1; }
.principle h3 { margin: 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; line-height: 1.15; }
.principle p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.process {
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 80px));
    margin-inline: auto;
    padding: clamp(90px, 10vw, 150px) 0 clamp(110px, 12vw, 180px);
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.process__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr);
    gap: 20px 60px;
    align-items: end;
    margin-bottom: clamp(52px, 6vw, 82px);
}

.process__kicker { grid-column: 1 / -1; margin: 0; color: var(--turquoise); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.process__kicker span { display: inline-block; margin-right: 16px; padding-right: 16px; border-right: 1px solid var(--turquoise); }
.process h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 84px); font-weight: 400; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.process h2 em { color: var(--turquoise); font-weight: 400; }
.process__heading > p:last-child { margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.process-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.process-step { position: relative; grid-column: span 2; min-width: 0; padding: clamp(28px, 3vw, 42px) clamp(20px, 2.5vw, 34px) 0 0; border-top: 1px solid var(--turquoise); }
.process-step::before { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 16px rgba(255, 118, 111, .45); content: ""; }
.process-step__number { display: block; margin-bottom: clamp(34px, 4vw, 54px); color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 4.5vw, 64px); line-height: .8; letter-spacing: -.05em; }
.process-step h3 { max-width: 430px; margin: 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.4vw, 34px); font-weight: 400; line-height: 1.12; }
.process-step p { max-width: 560px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.68; }

.contacts {
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 80px));
    margin-inline: auto;
    padding: clamp(90px, 10vw, 150px) 0 clamp(100px, 11vw, 160px);
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.contacts__heading { max-width: 1080px; margin-bottom: clamp(52px, 7vw, 92px); }
.contacts__kicker { margin: 0 0 26px; color: var(--turquoise); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.contacts__kicker span { display: inline-block; margin-right: 16px; padding-right: 16px; border-right: 1px solid var(--turquoise); }
.contacts h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 7vw, 96px); font-weight: 400; line-height: .95; letter-spacing: -.045em; text-wrap: balance; }
.contacts h2 em { color: var(--turquoise); font-weight: 400; }
.contacts__content { display: grid; grid-template-columns: minmax(0, .7fr) minmax(460px, 1fr); gap: clamp(58px, 9vw, 140px); align-items: start; }
.contacts__invitation > p { max-width: 600px; margin: 0; color: #dce9e7; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.72; }
.contacts__button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 60px; margin-top: 36px; padding: 0 30px; border-radius: 999px; color: #12282b; background: var(--coral); font-size: 16px; font-weight: 750; box-shadow: 0 14px 38px rgba(255, 118, 111, .2); transition: background 180ms ease, transform 180ms ease; }
.contacts__button span { font-size: 21px; }
.contacts__button:hover, .contacts__button:focus-visible { background: #ff8d86; transform: translateY(-2px); }
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.contact-link { min-width: 0; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.contact-link:nth-child(odd) { border-right: 1px solid var(--line); }
.contact-link:nth-child(even) { padding-left: 24px; }
.contact-link__name, .contact-link__value { display: block; overflow-wrap: anywhere; }
.contact-link__email { display: block; min-width: 0; }
.contact-link__name { color: var(--turquoise); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-link__value { margin-top: 11px; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2.2vw, 29px); line-height: 1.2; transition: color 180ms ease; }
.contact-link:hover .contact-link__value, .contact-link:focus-visible .contact-link__value { color: var(--coral); }
.copy-email { margin-top: 15px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--coral); color: var(--coral); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.copy-email:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 4px; }
.site-footer { position: relative; z-index: 1; padding: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); background: var(--bg-deep); text-align: center; }
.site-footer p { margin: 0; font-size: 12px; letter-spacing: .08em; }

@media (max-width: 1100px) {
    .site-header, .hero, .portfolio, .services { width: min(100% - 48px, 1000px); }
    .site-header { grid-template-columns: 1fr auto; gap: 18px 28px; padding: 20px 0 16px; }
    .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
    .hero { grid-template-columns: minmax(0, 1fr) minmax(310px, 0.7fr); min-height: auto; padding-top: 70px; }
    h1 { font-size: clamp(50px, 6.5vw, 72px); }
    .about { width: min(100% - 48px, 1000px); }
    .about__layout { gap: 54px; }
    .process { width: min(100% - 48px, 1000px); }
    .contacts { width: min(100% - 48px, 1000px); }
    .contacts__content { grid-template-columns: minmax(0, .65fr) minmax(420px, 1fr); gap: 54px; }
}

@media (max-width: 768px) {
    .site-header, .hero, .portfolio, .services { width: min(100% - 36px, 620px); }
    .site-header { grid-template-columns: minmax(0, 1fr) auto; min-height: auto; gap: 18px 16px; }
    .brand__name { font-size: 15px; }
    .brand__caption { font-size: 10px; }
    .header-cta { grid-row: 3; grid-column: 1 / -1; width: 100%; padding: 11px 15px; font-size: 12px; text-align: center; }
    .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, .03); font-size: 12px; font-weight: 700; cursor: pointer; }
    .nav-toggle__icon { display: grid; gap: 5px; width: 17px; }
    .nav-toggle__icon i { display: block; width: 100%; height: 1px; background: var(--turquoise); transition: transform 180ms ease; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child { transform: translateY(3px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
    .main-nav { display: none; grid-row: 2; grid-column: 1 / -1; width: 100%; align-items: stretch; gap: 0; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .main-nav.is-open { display: flex; flex-direction: column; }
    .main-nav a { width: 100%; padding: 12px 2px; font-size: 14px; }
    .main-nav a::after { bottom: 5px; transform-origin: left; }
    .hero { grid-template-columns: 1fr; gap: 56px; padding: 52px 0 64px; }
    h1 { font-size: clamp(42px, 12vw, 62px); line-height: 1.01; }
    .hero__description { margin-top: 24px; font-size: 18px; }
    .hero__visual { width: min(92%, 470px); justify-self: center; }
    .portrait-frame { aspect-ratio: 2 / 3; }
    .portfolio__heading { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card, .project-card--wide { grid-column: 1; margin-top: 0; }
    .project-card--avatar { display: block; grid-column: 1; height: auto; }
    .project-card--avatar .project-card__image { height: auto; aspect-ratio: 4 / 5; }
    .project-card--avatar .project-card__content { display: block; }
    .project-card__image, .project-card--tall .project-card__image { aspect-ratio: 4 / 3; }
    .project-card:nth-child(2) .project-card__image { aspect-ratio: 4 / 5; }
    .case-modal { width: calc(100% - 24px); max-height: calc(100vh - 24px); border-radius: 20px; }
    .case-modal__panel { max-height: calc(100vh - 26px); padding: 22px 16px 30px; }
    .case-modal__intro { padding: 8px 42px 30px 4px; }
    .case-modal__gallery { grid-template-columns: 1fr; }
    .case-modal__gallery--three figure:first-child { grid-column: auto; }
    .case-modal__gallery--five { grid-template-columns: 1fr; }
    .case-modal__gallery--five figure,
    .case-modal__gallery--five figure:last-child { grid-column: auto; width: 100%; max-width: 480px; }
    .services__heading { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card--wide { grid-column: auto; }
    .service-card__number { margin-bottom: 24px; }
    .about { width: min(100% - 36px, 620px); }
    .about__heading { margin-bottom: 48px; }
    .about__layout { grid-template-columns: 1fr; gap: 58px; }
    .about__story { padding-left: 20px; }
    .process { width: min(100% - 36px, 620px); }
    .process__heading { grid-template-columns: 1fr; margin-bottom: 48px; }
    .process-list { grid-template-columns: 1fr; gap: 42px; }
    .process-step { grid-column: 1; padding-right: 0; }
    .process-step__number { margin-bottom: 28px; }
    .contacts { width: min(100% - 36px, 620px); }
    .contacts__heading { margin-bottom: 46px; }
    .contacts__content { grid-template-columns: 1fr; gap: 54px; }
    .contact-links { grid-template-columns: 1fr; }
    .contact-link, .contact-link:nth-child(even) { padding: 22px 0; border-right: 0; }
}

@media (max-width: 480px) {
    .site-header, .hero, .portfolio, .services { width: calc(100% - 28px); }
    .site-header { grid-template-columns: minmax(0, 1fr) auto; }
    .hero { padding-top: 42px; }
    .hero__eyebrow { margin-bottom: 18px; font-size: 10px; }
    h1 { font-size: clamp(38px, 12.5vw, 54px); overflow-wrap: break-word; }
    .hero__note { font-size: 14px; }
    .hero__actions { flex-direction: column; }
    .button { width: 100%; }
    .hero__visual { width: calc(100% - 12px); padding-right: 8px; }
    .hero__visual::before { right: -8px; }
    .portrait-frame { border-radius: 24px; }
    .about { width: calc(100% - 28px); }
    .principle { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
    .process { width: calc(100% - 28px); }
    .contacts { width: calc(100% - 28px); }
    .contacts__button { width: 100%; padding-inline: 20px; }
    .site-footer { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
