.contact-section {
    position: relative;
    width: calc(100vw - 172px);
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 90px 520px 420px 100px;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 156px 20px;
}

.contact-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 54px;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 2px var(--highlight-main);
    margin: 0 1px;
    align-self: start;
    margin-top: 82px;
}

.contact-content {
    display: contents;
    font-size: 18px;
    font-weight: 400;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--highlight-main);
    border-radius: 999px;
    color: var(--text-light);
    font-family: inherit;
    padding: 18px 28px;
    box-sizing: border-box;
    font-size: 18px;
}

.contact-form textarea {
    height: 220px;
    border-radius: 28px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--highlight-main);
    opacity: 0.4;
}

.contact-form label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--highlight-main);
    line-height: 1.4;
    white-space: normal;
}

.contact-form label span {
    flex: 1;
    max-width: 484px;
}

.contact-form label a {
    color: var(--text-light);
    text-decoration: underline;
    text-decoration-color: #1a1a1a;
}

.contact-form label input {
    width: 18px;
    height: 18px;
    padding: 0;
    appearance: none;
    background: transparent;
    border: 1px solid var(--text-light);
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.contact-form label a:hover {
    text-decoration: underline;
}

.contact-form label input:checked::after {
    content: "✓";
    position: absolute;
    left: 2px;
    top: -5px;
    color: var(--highlight-main);
    font-size: 18px;
}

.contact-form button.active {
    background-color: var(--highlight-main);
    color: var(--text-dark);
    cursor: pointer;
}

.contact-form button {
    align-self: flex-end;
    width: 110px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background-color: #b8b8b8;
    color: #1a1a1a;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(181, 233, 59, 0.35);
}

.contact-form button:not(.active):hover {
    cursor: not-allowed;
}

.contact-info {
    width: 417px;
    text-align: end;
    color: var(--text-light);
    line-height: 1.4;
    align-self: start;
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 145px;
    top: 156px;
}

.contact-info p:first-child {
    color: var(--highlight-light);
    font-weight: 700;
    margin-bottom: 24px;
    opacity: 0.89;
}

.contact-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.contact-item a {
    margin: 0;
    text-decoration: none;
    color: var(--text-light);
}

.contact-item i,
.contact-item a {
    transition: color 150ms ease, transform 150ms ease;
}

.contact-item:hover i,
.contact-item:hover a {
    color: var(--highlight-light);
}

.contact-item:hover i {
    transform: scale(1.15);
}

.contact-back-link {
    display: flex;
    justify-content: end;
    margin-top: 49px;
}

.contact-back-link img {
    width: 110px;
    filter: hue-rotate(110deg);
}

.contact-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background-color: var(--highlight-main);
}

.contact-footer {
    position: absolute;
    right: 145px;
    bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-size: 16px;
}

.contact-footer a {
    color: var(--text-light);
    text-decoration: none;
}

.contact-footer a:hover {
    color: var(--highlight-light);
}

.contact-footer p {
    margin: 0;
}

.mobile-footer-logo {
    display: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-info .social-links {
    display: none;
}

.contact-form input.error,
.contact-form textarea.error {
    border: 1px solid #fd2e12;
}

.contact-form input.valid,
.contact-form textarea.valid {
    border-color: var(--highlight-main);
}

.contact-form input.error::placeholder,
.contact-form textarea.error::placeholder {
    color: #fd2e12;
    opacity: 1;
}

.privacy-error {
    margin: -12px 0 0 28px;
    color: #fd2e12;
    font-size: 15px;
}

.contact-form input[type="checkbox"].error {
    border-color: #fd2e12;
}