body.portfolio-layout {
    min-height: 100vh;
    color: #111111;
    background-image: url('../images/bg.webp') !important;
}

.portfolio-main {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
    padding: 150px 0 56px;
}

.portfolio-page-hero {
    margin: 0 0 clamp(18px, 2.8vw, 34px);
    text-align: center;
}

.portfolio-page-title {
    margin: 0;
    color: #111111;
    font-family: 'Anton', sans-serif;
    font-size: clamp(22px, 3.2vw, 50px);
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.portfolio-section {
    padding: 10px 0 0;
    text-align: center;
    text-transform: uppercase;
}

.portfolio-text {
    margin: 0;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(15px, 1.35vw, 22px);
    line-height: 1.45;
    letter-spacing: 0.4px;
}

.portfolio-text + .portfolio-text {
    margin-top: 16px;
}

.portfolio-text-lead {
    margin-top: 50px;
}

.portfolio-hero {
    display: inline-block;
    font-size: 1.45em;
    line-height: 0.95;
    margin-right: 6px;
    vertical-align: baseline;
    text-transform: uppercase;
}

.portfolio-form {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.portfolio-message {
    margin: 18px auto 0;
    max-width: 760px;
    padding: 10px 14px;
    border: 2px solid #ec0a3a;
    border-radius: 24px;
    font-size: clamp(13px, 1.2vw, 18px);
    line-height: 1.35;
    letter-spacing: 0.5px;
}

.portfolio-message-success {
    color: #111111;
}

.portfolio-message-error {
    color: #ec0a3a;
}

.portfolio-input {
    display: block;
    width: 100%;
    max-width: 760px;
    height: clamp(44px, 4vw, 54px);
    margin: 0 0 18px;
    padding: 0 14px;
    border: 2px solid #ec0a3a;
    border-radius: 999px;
    background: transparent;
    font-family: 'Anton', sans-serif;
    font-size: clamp(15px, 1.25vw, 20px);
    letter-spacing: 0.5px;
    color: #111111;
    text-transform: uppercase;
    text-align: center;
}

.portfolio-form .portfolio-input:last-of-type {
    margin-bottom: 40px;
}

.portfolio-input:focus {
    outline: none;
    border-color: #ec0a3a;
    box-shadow: 0 0 0 2px rgba(236, 10, 58, 0.14);
}

.portfolio-input::placeholder {
    color: rgba(17, 17, 17, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.portfolio-consent {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    max-width: 980px;
    margin: 6px auto 18px;
  font-size: clamp(11px, 0.95vw, 15px);
    line-height: 1.4;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-align: center;
}

.portfolio-consent input {
    appearance: none;
    -webkit-appearance: none;
    width: clamp(20px, 1.7vw, 26px);
    aspect-ratio: 1 / 1;
    height: auto;
    margin-top: 3px;
    flex: 0 0 clamp(20px, 1.7vw, 26px);
    border: 2px solid #ec0a3a;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    position: relative;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.portfolio-consent input:hover,
.portfolio-consent input:focus-visible {
    transform: translateY(-1px);
    box-shadow: none;
    outline: none;
}

.portfolio-consent input:checked {
    background: #ec0a3a;
}

.portfolio-consent input:checked::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34%;
    height: 58%;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: translate(-50%, -60%) rotate(45deg);
}

.portfolio-text-note {
    max-width: 1040px;
    margin-top: 6px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(11px, 0.95vw, 15px);
    line-height: 1.42;
}

.portfolio-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(170px, 21vw, 280px);
    height: clamp(42px, 4.2vw, 56px);
    margin-top: 20px;
    padding: 0 clamp(24px, 3.2vw, 40px);
    border: 2px solid #ec0a3a;
    border-radius: 999px;
    background: transparent;
    color: #ec0a3a;
    font-family: 'Anton', sans-serif;
    font-size: clamp(18px, 2.1vw, 30px);
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: none;
    box-shadow: none;
    transition: transform 180ms ease, background-color 180ms ease;
    cursor: pointer;
}

.portfolio-submit:hover,
.portfolio-submit:focus-visible {
    transform: translateY(-2px);
    background: rgba(236, 10, 58, 0.08);
}

@media (max-width: 767px) {
    .portfolio-main {
        width: calc(100% - 20px);
        padding-top: 116px;
        padding-bottom: 40px;
    }

    .portfolio-page-hero {
        margin-bottom: 14px;
    }

    .portfolio-page-title {
        font-size: clamp(17px, 6.3vw, 28px);
    }

    .portfolio-text {
        font-size: clamp(13px, 4vw, 16px);
        line-height: 1.42;
    }

    .portfolio-text + .portfolio-text {
        margin-top: 12px;
    }

    .portfolio-text-lead {
        margin-top: 16px;
    }

    .portfolio-hero {
        font-size: 1.4em;
        margin-right: 4px;
    }

    .portfolio-form {
        margin-top: 16px;
    }

    .portfolio-input {
        height: 42px;
        margin-bottom: 14px;
        font-size: clamp(13px, 4vw, 16px);
    }

    .portfolio-text-note {
        font-size: clamp(9px, 3vw, 12px);
        line-height: 1.38;
    }

    .portfolio-consent {
        font-size: clamp(12px, 3.7vw, 15px);
        margin-bottom: 14px;
        gap: 8px;
        width: 100%;
        max-width: 760px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        text-align: left;
    }

    .portfolio-consent .portfolio-hero {
        display: inline;
        margin-right: 0;
        font-family: inherit;
        font-size: 1em;
        line-height: inherit;
        text-transform: inherit;
        vertical-align: baseline;
    }

    .portfolio-consent span {
        flex: 1 1 auto;
        min-width: 0;
    }

    .portfolio-consent input {
        width: 20px;
        flex-basis: 20px;
        margin-top: 2px;
    }

    .portfolio-submit {
        min-width: clamp(148px, 46vw, 210px);
        height: clamp(36px, 10vw, 44px);
        font-size: clamp(15px, 4.5vw, 20px);
        padding: 0 clamp(18px, 6vw, 30px);
    }
}
