/*
Theme Name: Architect Digital
Refactored UI foundation
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */

@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
    /* Colors */
    --bg: #ffffff;
    --paper: #ffffff;
    --ink: #121212;
    --muted: #565656;
    --line: rgba(18, 18, 18, .16);

    --acid: #dfff39;
    --orange: #ff5b38;
    --blue: #3f67ff;
    --pink: #ff4fa3;
    --yellow: #ffd82e;
    --cyan: #5ee7f2;
    --green: #9bed63;

    /* Layout */
    --container-max: 1540px;
    --container-gutter: 24px;
    --section-space: clamp(78px, 7.5vw, 108px);
    --section-head-gap: clamp(28px, 4.5vw, 64px);
    --grid-gap: 16px;
    --card-padding: 24px;

    /* Spacing scale */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 80px;

    /* Radius */
    --radius-sm: 12px;
    --radius-card: 24px;
    --radius-lg: 28px;
    --radius-section: 44px;
    --radius-pill: 999px;

    /* Typography */
    --text-xs: 12px;
    --text-sm: 13px;
    --text-body-sm: 15px;
    --text-body: 17px;
    --text-lead: 18px;

    --title-section: clamp(44px, 6vw, 96px);
    --title-card: clamp(30px, 3vw, 48px);

    --leading-body: 1.55;
    --leading-tight: .95;

    /* Compatibility aliases */
    --radius: var(--radius-lg);
    --max: var(--container-max);
}

/* ==========================================================================
   3. Reset / base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--acid);
    outline-offset: 3px;
}

/* ==========================================================================
   4. Universal layout classes
   ========================================================================== */

/* Main page container. .wrap remains as a backward-compatible alias. */
.container,
.wrap {
    width: min(
        calc(100% - (var(--container-gutter) * 2)),
        var(--container-max)
    );
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

/* Generic two-column section header. */
.section-head,
.services__head,
.process__head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: var(--section-head-gap);
    align-items: end;
    margin-bottom: var(--space-6);
}

/* Generic split header for sections that use flex instead of a grid. */
.section-head--split,
.portfolio__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--section-head-gap);
    margin-bottom: var(--space-6);
}

/* Optional generic card foundation for new blocks. */
.card {
    border-radius: var(--radius-card);
    padding: var(--card-padding);
}

/* ==========================================================================
   5. Universal typography
   ========================================================================== */

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--orange);
}

h2,
.section-title,
.title-section {
    margin-top: 22px;
    font-size: var(--title-section);
    line-height: .93;
    letter-spacing: -.055em;
    font-weight: 850;
}

.title-card {
    font-size: var(--title-card);
    line-height: var(--leading-tight);
    letter-spacing: -.055em;
    font-weight: 900;
}

.text,
.text-body {
    font-size: var(--text-body-sm);
    line-height: var(--leading-body);
}

.text-lead {
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.text-small {
    font-size: var(--text-sm);
    line-height: 1.5;
}

.text-muted {
    color: var(--muted);
}

/* Shared descriptive copy in section headers. */
.section-head__text,
.services__head > p,
.process__head > p,
.portfolio__note {
    max-width: 510px;
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--muted);
}

/* ==========================================================================
   6. Universal buttons
   ========================================================================== */

.btn,
.nav__cta,
.hero__button,
.process__cta a,
.cookie-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 14px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 14px;
    line-height: 1.15;
    font-weight: 850;
    cursor: pointer;
    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.btn--primary,
.hero__button,
.process__cta a,
.cookie-accept {
    background: var(--yellow);
    color: var(--ink);
}

.btn--primary:hover,
.hero__button:hover,
.process__cta a:hover,
.cookie-accept:hover {
    background: var(--blue);
    color: #fff;
}

.btn--outline,
.nav__cta {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn--outline:hover,
.nav__cta:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn--sm,
.nav__cta {
    min-height: 44px;
    padding: 12px 17px;
    font-size: var(--text-sm);
}

/* ==========================================================================
   7. Navigation
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(23, 23, 23, .08);
    backdrop-filter: blur(18px);
}

.nav__in {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 900;
    letter-spacing: -.025em;
}

.logo__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 8px;
}

.logo__mark::after {
    content: "";
    width: 25px;
    height: 2px;
    position: absolute;
    background: var(--ink);
    transform: rotate(-45deg);
}

.nav__links {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 700;
}

/* ==========================================================================
   8. Hero
   ========================================================================== */

.hero {
    padding: 52px 0 0;
    overflow: hidden;
}

.hero__meta {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--section-head-gap);
    align-items: end;
    margin-bottom: var(--space-6);
}

.hero__intro {
    max-width: 530px;
    font-size: var(--text-lead);
    line-height: 1.45;
    color: #393834;
}

.hero__title {
    margin-left: -.06em;
    font-size: clamp(74px, 12.2vw, 205px);
    line-height: .76;
    letter-spacing: -.075em;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero__title span {
    display: block;
}

.hero__title .outline {
    padding-left: 14.6vw;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
}

.hero__visual {
    min-height: 430px;
    margin-top: 58px;
    padding: 34px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #fff;
}

.hero__visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to right, #000, transparent 88%);
}

.hero__orb {
    width: min(39vw, 560px);
    aspect-ratio: 1;
    position: absolute;
    right: -4%;
    top: 50%;
    border-radius: 50%;
    background: conic-gradient(
        from 210deg,
        var(--acid),
        var(--blue),
        var(--orange),
        var(--acid)
    );
    transform: translateY(-50%);
}

.hero__orb::before {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background: var(--ink);
}

.hero__orb::after {
    content: "DA";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: clamp(74px, 10vw, 150px);
    font-weight: 900;
    letter-spacing: -.08em;
}

.hero__visual-copy {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.hero__visual-copy p {
    font-size: clamp(28px, 3.6vw, 58px);
    line-height: 1.03;
    letter-spacing: -.045em;
    font-weight: 760;
}

.hero__visual-copy .small {
    display: block;
    max-width: 460px;
    margin-top: 28px;
    font-size: clamp(18px, 1.5vw, 23px);
    line-height: var(--leading-body);
    letter-spacing: 0;
    font-weight: 500;
    color: #fff;
}

.hero__button {
    position: absolute;
    left: 34px;
    bottom: 34px;
    z-index: 2;
}

.hero__button i {
    font-style: normal;
    font-size: 21px;
}

/* ==========================================================================
   9. Services
   ========================================================================== */

.services {
    background: #f7f7f7;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.service {
    min-height: 300px;
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-card);
    transition: transform .28s ease, box-shadow .28s ease;
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .10);
}

.service:nth-child(1) {
    background: var(--yellow);
}

.service:nth-child(2) {
    background: var(--pink);
    color: #fff;
}

.service:nth-child(3) {
    background: var(--blue);
    color: #fff;
}

.service:nth-child(4) {
    background: var(--cyan);
}

.service:nth-child(5) {
    background: var(--green);
}

.service:nth-child(6) {
    background: var(--orange);
}

.service__num {
    font-size: var(--text-xs);
    font-weight: 900;
    letter-spacing: .08em;
    opacity: .7;
}

.service__name {
    max-width: 90%;
    margin-top: 58px;
    font-size: var(--title-card);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: var(--leading-tight);
}

.service__desc {
    max-width: 410px;
    margin-top: auto;
    padding-top: 28px;
    font-size: var(--text-body-sm);
    line-height: 1.5;
    opacity: .76;
}

.service__arrow {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
}

/* ==========================================================================
   10. Portfolio
   ========================================================================== */

.portfolio {
    background: #fff;
    border-radius: var(--radius-section) var(--radius-section) 0 0;
}

.projects-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.project {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-card);
    background: #ddd;
}

.project__art {
    position: absolute;
    inset: 0;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.project:hover .project__art {
    transform: scale(1.03);
}

.project__info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    padding: 95px 22px 22px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}

.project__name {
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.project__kind {
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    line-height: 1.4;
    color: rgba(255, 255, 255, .72);
}

.projects-top .project {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    isolation: auto;
    border-radius: 0;
    background: transparent;
}

.projects-top .project__art {
    height: 500px;
    position: relative;
    inset: auto;
    overflow: hidden;
    border-radius: var(--radius-card);
}

.projects-top .project:hover .project__art {
    transform: none;
}

.projects-top .project__info {
    margin-top: var(--space-3);
    padding: 0 2px;
    position: static;
    z-index: auto;
    background: none !important;
    color: var(--ink) !important;
}

.projects-top .project__name {
    font-size: 24px;
    line-height: 1.05;
}

.projects-top .project__kind {
    color: var(--muted) !important;
}

.project__tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 6;
    padding: 8px 11px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.art-one,
.art-two {
    background-size: cover;
    background-position: center;
}

.art-one::before {
    content: "Eristov";
    width: 70%;
    position: absolute;
    top: 15%;
    left: 11%;
    color: #fff;
    font-size: clamp(45px, 5vw, 84px);
    line-height: .85;
    font-weight: 900;
    letter-spacing: -.07em;
}

.art-three {
    background: var(--yellow);
}

.art-three::before {
    content: "SEO\A NETWORK";
    white-space: pre;
    position: absolute;
    top: 11%;
    left: 9%;
    font-size: clamp(45px, 5vw, 82px);
    line-height: .82;
    font-weight: 900;
    letter-spacing: -.07em;
}

.art-three::after {
    content: "01  08  24  63";
    position: absolute;
    right: -7%;
    bottom: 19%;
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    transform: rotate(-90deg);
}

.project-wide {
    min-height: 570px;
    margin-top: var(--grid-gap);
    background: #141414;
}

.project-wide .project__info {
    max-width: 700px;
    padding: 30px;
    background: none;
}

.project-wide .project__name {
    font-size: clamp(35px, 5vw, 72px);
}

.project-wide .project__kind {
    max-width: 540px;
    font-size: var(--text-body-sm);
    line-height: 1.5;
}

.wide-art {
    background: #141414;
}

.wide-art::before {
    content: "NDA";
    position: absolute;
    top: 3%;
    right: 3%;
    color: #262626;
    font-size: clamp(120px, 25vw, 390px);
    line-height: .8;
    font-weight: 900;
    letter-spacing: -.09em;
}

.wide-art::after {
    content: "SYSTEM / SUPPORT / DEVELOPMENT";
    position: absolute;
    top: 45%;
    right: 5%;
    color: var(--acid);
    font-family: monospace;
    font-size: clamp(13px, 1.6vw, 24px);
    letter-spacing: .12em;
}


.cases-contain{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 60px;
    align-items: flex-start;
    justify-content: flex-start;
    align-content: flex-start;
    padding: 0px 0px 0px 0px;
    border-color: transparent;
    border-style: solid;
    box-sizing: border-box;
    border-radius: 0px 0px 0px 0px;
}

.case {
    width: 32%;
    max-width: 100%;
    flex-shrink: 0;
}

.case__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case__media {
    width: 100%;
    aspect-ratio: 4 / 4;
    overflow: hidden;
}
.case.case-wide{
    border-radius: 20px;
}

.case__media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.case__content{
    display: flex;
    flex-direction: column;
    color: #000000;
}

.case__link{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}


.case__image {
    border-radius: 20px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.case__bullet {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 6;
    padding: 8px 11px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.case__info{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    align-content: flex-start;
    padding: 30px 0 15px 0;
}
.case__name{
    vertical-align: middle;
    color:inherit;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -1px;
}


.case-wide .case__image{
    object-fit: contain;
}
@media (min-width: 1200px) {
  .case-wide.case--4 .case__content{
    color: #fff;
} 
.case.case-wide{
    border-radius: 20px;
    height: 570px;
    width: 100%;
} 
.case-wide .case__inner{
    padding: 20px 20px 0 60px;
    flex-direction: row-reverse;
}
.case-wide .case__bullet {
    top: 40px;
    left: 60px; 
}

.case-wide .case__media{
    width: auto;
    max-width: 50%;
}
.case-wide .case__name{
    font-size: 36px;
    line-height: 40px;
    margin-bottom: 20px;
}
.case-wide .case__content{

    margin-right: auto;
    max-width: 40%;
    justify-content: center;
}

.case-wide.case--4{
    background-color: #b50cf8;

}
.case-wide.case--8{
    background-color: #ffd82e;
}
}
@media (max-width: 1200px) {
.case {
    width: 49%;
    max-width: 100%;
    flex-shrink: 0;
}
.case-wide.case--4 .case__media{
    background-color: #b50cf8;
    border-radius: 20px;
    padding: 10px 10px 0;

}
.case-wide.case--8 .case__media{
    background-color: #ffd82e;
    border-radius: 20px;
    padding: 10px 10px 0;

}
}

@media (max-width: 768px) {
.case {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}
.case__media {
    width: 100%;
    height: 100%;
    aspect-ratio: 8 / 5;
    overflow: hidden;
}

.cases-contain {
    row-gap: 20px;
}
.case__info {
    row-gap: 5px;
    padding: 10px 0 5px 0;
}
}
/* ==========================================================================
   11. Process
   ========================================================================== */

.process {
    background: var(--blue);
    color: #fff;
}

.process__head .eyebrow::before {
    background: var(--yellow);
}

.process__head > p {
    color: rgba(255, 255, 255, .72);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .28);
}

.step {
    min-height: 350px;
    padding: var(--card-padding) var(--card-padding) 28px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, .28);
}

.step:not(:first-child) {
    padding-left: var(--card-padding);
}

.step:last-child {
    border-right: 0;
}

.step__num {
    font-size: var(--text-xs);
    font-weight: 800;
    color: rgba(255, 255, 255, .56);
}

.step__title {
    margin-top: 22px;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 850;
    letter-spacing: -.05em;
}

.step__text {
    max-width: 280px;
    margin-top: auto;
    font-size: 14px;
    line-height: var(--leading-body);
    color: rgba(255, 255, 255, .72);
}

.process__cta {
    margin-top: var(--space-6);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, .28);
}

.process__cta strong {
    font-size: clamp(28px, 4vw, 58px);
    letter-spacing: -.05em;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 64px 0 28px;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 80px;
    min-height: 250px;
    padding-bottom: 54px;
}


/* About */

.site-footer__about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__logo {
    display: inline-flex;
    max-width: 190px;
}

.site-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer__info {
    margin-top: 38px;
    max-width: 500px;
}

.site-footer__company {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.site-footer__info p {
    font-size: 14px;
    line-height: 1.65;
}

.site-footer__info p + p {
    margin-top: 16px;
}


/* Contacts */

.site-footer__contacts {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.site-footer__socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.site-footer__socials a:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
    transform: translateY(-2px);
}


/* Contact links */

.site-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer__contact {
    display: flex;
    align-items: center;
    gap: 13px;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 500;

    transition: color .2s ease;
}

.site-footer__contact:hover {
    color: var(--yellow);
}

.footer-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

}
.footer-icon.vk-icon {
    background-image: url(../img/icons/vk.svg);
}
.footer-icon.tg-icon {
    background-image: url(../img/icons/telegram.svg);
}
.footer-icon.youtube-icon {
    background-image: url(../img/icons/youtube.svg);
}
.footer-icon.phone-icon {
    background-image: url(../img/icons/phone.svg);
}
.footer-icon.email-icon {
    background-image: url(../img/icons/email.svg);
}
/* Bottom */

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding-top: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* WordPress menu */

.site-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 38px;
}

.site-footer__menu li {
    margin: 0;
    padding: 0;
}

.site-footer__menu a {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .52);

    transition: color .2s ease;
}

.site-footer__menu a:hover,
.site-footer__menu .current-menu-item > a {
    color: #fff;
}

.site-footer__copyright {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .4);
}


/* ==========================================================================
   Footer adaptive
   ========================================================================== */

@media (max-width: 1000px) {

    .site-footer {
        padding-top: 52px;
    }

    .site-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__menu {
        gap: 12px 28px;
    }
}


@media (max-width: 620px) {

    .site-footer {
        padding: 42px 0 24px;
    }

    .site-footer__top {
        display: flex;
        flex-direction: column;
        gap: 42px;

        min-height: 0;
        padding-bottom: 42px;
    }

    .site-footer__logo {
        max-width: 170px;
    }

    .site-footer__info {
        margin-top: 28px;
    }

    .site-footer__info p {
        font-size: 13px;
    }

    .site-footer__contacts {
        min-width: 0;
        width: 100%;
    }

    .site-footer__socials {
        margin-bottom: 24px;
    }

    .site-footer__contact {
        font-size: 15px;
    }

    .site-footer__bottom {
        padding-top: 24px;
        gap: 28px;
    }

    .site-footer__menu {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .site-footer__menu a {
        font-size: 13px;
    }

    .site-footer__copyright {
        font-size: 11px;
    }
}

/* ==========================================================================
   13. Cookie banner
   ========================================================================== */

.cookie-banner {
    max-width: 400px;
    margin-right: 20px;
    padding: var(--space-2);
    position: fixed;
    right: auto;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: none;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #555;
    box-shadow: 0 3px 20px -5px rgba(41, 44, 56, .2);
    font-size: var(--text-sm);
    transition: .3s;
}

.cookie-accept {
    border: 0;
    outline: 0;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1000px) {
    :root {
        --container-gutter: 15px;
    }

    .nav__links {
        display: none;
    }

    .hero__meta,
    .section-head,
    .services__head,
    .process__head {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero__title {
        font-size: clamp(64px, 16vw, 130px);
    }

    .hero__title .outline {
        padding-left: 0;
    }

    .hero__visual {
        min-height: 500px;
    }

    .hero__orb {
        width: 480px;
        right: -180px;
        top: 65%;
    }

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

    .service {
        min-height: 280px;
    }

    .projects-top {
        grid-template-columns: 1fr;
    }

    .project {
        min-height: 560px;
    }

    .projects-top .project {
        min-height: 0;
    }

    .projects-top .project__art {
        height: 560px;
    }

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

    .step {
        border-bottom: 1px solid rgba(255, 255, 255, .28);
    }
}

@media (max-width: 620px) {
    .nav__cta {
        display: none;
    }

    .hero {
        padding-top: 34px;
    }

    .hero__title {
        /* Fixed: clamp() must have min / preferred / max values. */
        font-size: clamp(40px, 13vw, 68px);
        line-height: .8;
    }

    .hero__visual {
        min-height: 520px;
        padding: var(--space-4);
    }

    .hero__visual-copy p {
        font-size: 32px;
    }

    .hero__visual-copy .small {
        font-size: 18px;
    }

    .hero__button {
        left: var(--space-4);
        bottom: var(--space-4);
    }

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

    .service {
        min-height: 260px;
    }

    .service__name {
        font-size: 34px;
    }

    .portfolio {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .section-head--split,
    .portfolio__head {
        display: block;
    }

    .portfolio__note {
        margin-top: var(--space-4);
    }

    .project {
        min-height: 430px;
    }

    .projects-top .project {
        min-height: 0;
    }

    .projects-top .project__art {
        height: 430px;
    }

    .project-wide {
        min-height: 520px;
    }

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

    .step {
        min-height: 240px;
        padding: var(--space-4) 0;
        border-right: 0;
    }

    .step:not(:first-child) {
        padding-left: 0;
    }

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

    .footer__in {
        flex-direction: column;
    }

    .cookie-banner {
        right: 15px;
        left: 15px;
        max-width: none;
        margin-right: 0;
    }
}


/* ==========================================================================
   Default page content
   ========================================================================== */

.page-content {
    background: var(--paper);
}

.content {
    width: 100%;
}

.content > * + * {
    margin-top: var(--space-1);
}

.content h1,
.content h2,
.content h3,
.content h4 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.04em;
}

.content h1 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: .95;
    margin-bottom: var(--space-5);
}

.content h2 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1;
    margin-top: var(--space-7);
}

.content h3 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
    margin-top: var(--space-6);
}

.content h4 {
    font-size: 20px;
    line-height: 1.25;
    margin-top: var(--space-5);
}

.content p,
.content li {
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--muted);
}


.content ul,
.content ol {
    margin: var(--space-4) 0 0;
    padding-left: 1.4em;
}

.content li + li {
    margin-top: 8px;
}

.content a:not(.btn) {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.content a:not(.btn):hover {
    text-decoration: none;
}

.content strong {
    color: var(--ink);
    font-weight: 700;
}

.content blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-5);
    border-left: 4px solid var(--yellow);
    font-size: var(--text-lead);
    line-height: 1.55;
}

.content img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-card);
}

.content figure {
    margin: var(--space-6) 0;
}

.content figcaption {
    margin-top: 10px;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--muted);
}

.content hr {
    margin: var(--space-7) 0;
    border: 0;
    border-top: 1px solid var(--line);
}
.content {
    min-width: 0;
    max-width: 100%;
}
.content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin-top: 24px;
    margin-bottom: 24px;
    border-collapse: collapse;
    font-size: var(--text-body-sm);
}
.content table ul,
.content table ol{
    padding-left: 0;
}
.content th,
.content td {
    vertical-align: baseline;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.content th {
    color: var(--ink);
    font-weight: 700;
}
@media (max-width: 768px) {
.content table {
    display: block
};
}
@media (max-width: 620px) {
    .content h1 {
        font-size: clamp(36px, 11vw, 52px);
    }

    .content h2 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .content h3 {
        font-size: 24px;
    }

    .content p,
    .content li {
        font-size: 16px;
    }
}