/* =====================================================
   ADENIUM CONSULTING
===================================================== */

:root {

    --bg: #f4f2eb;
    --bg-light: #faf9f5;
    --white: #ffffff;

    --green-dark: #344538;
    --green: #5e725d;
    --green-soft: #8fa28a;

    --brown: #796752;
    --brown-light: #b09b7e;

    --text: #30372f;
    --muted: #737970;

    --line: rgba(52, 69, 56, 0.25);

    --container: 1240px;
}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(
        calc(100% - 80px),
        var(--container)
    );

    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    background: var(--bg);
    padding-top: 28px;
}

.header__top {
    display: flex;
    align-items: center;

    min-height: 82px;

    border-bottom: 1px solid var(--line);
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__svg {
    width: 68px;
    height: 68px;
}

.logo__name {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.logo__name strong {
    color: var(--green-dark);

    font-family: Georgia, serif;

    font-size: 19px;
    font-weight: 400;

    letter-spacing: .16em;
}

.logo__name small {
    margin-top: 7px;

    color: var(--brown);

    font-size: 7px;

    letter-spacing: .3em;
}


/* COMPANY TITLE */

.header__title {
    flex: 1;

    padding-left: 80px;

    color: var(--green-dark);

    font-family: Georgia, serif;

    font-size: 32px;
}


/* CONTACTS */

.header__contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-bottom: 1px solid var(--line);
}

.header__contacts a {
    min-height: 57px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: var(--green-dark);

    font-family: Georgia, serif;

    font-size: 15px;
}

.header__contacts a + a {
    padding-left: 45px;

    border-left: 1px solid var(--line);
}

.header__contacts span {
    margin-bottom: 1px;

    color: var(--brown);

    font-family: Arial, sans-serif;

    font-size: 9px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .2em;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    padding: 85px 0 105px;
}

.hero__grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 1.05fr);

    gap: 90px;

    align-items: center;

    min-height: 560px;

    border-bottom: 1px solid var(--line);

    padding-bottom: 90px;
}


/* LEFT */

.hero__content {
    padding-left: 15px;
}

.hero__label {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--brown);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .22em;
}

.hero__label::before {
    content: "";

    width: 28px;
    height: 1px;

    background: var(--brown-light);
}


.hero h1 {
    margin-top: 42px;

    color: var(--green-dark);

    font-family: Georgia, serif;

    font-size: clamp(55px, 6vw, 82px);

    font-weight: 400;

    line-height: .98;

    letter-spacing: -.045em;
}


.hero__description {
    max-width: 590px;

    margin-top: 35px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.85;
}

.hero__description strong {
    color: var(--green-dark);
}

.hero__description--small {
    max-width: 500px;

    margin-top: 15px;

    font-size: 13px;
}


/* HERO LINK */

.hero__link {
    display: inline-flex;
    align-items: center;

    gap: 20px;

    margin-top: 35px;

    padding: 0;

    color: var(--green-dark);

    background: none;

    border: 0;

    border-bottom: 1px solid var(--green-dark);

    padding-bottom: 7px;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .12em;
}

.hero__link span {
    font-size: 19px;

    transition: transform .3s ease;
}

.hero__link:hover span {
    transform: translateX(6px);
}


/* PHOTO */

.hero__photo {
    position: relative;
}

.hero__photo img {
    aspect-ratio: 1.22;

    object-fit: cover;

    background: #e3e6dd;

    filter: saturate(.65);
}

.hero__photo-border {
    position: absolute;

    top: 18px;
    right: -18px;
    bottom: 18px;
    left: 18px;

    border: 1px solid rgba(94, 114, 93, .45);

    pointer-events: none;
}


/* =====================================================
   SERVICES
===================================================== */

.services {
    padding: 105px 0 120px;

    background: var(--bg-light);
}

.section-title {
    margin-bottom: 60px;
}

.section-title > span,
.section-label {
    display: block;

    margin-bottom: 18px;

    color: var(--brown);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .2em;
}

.section-title > span::before,
.section-label::before {
    content: "";

    display: inline-block;

    width: 25px;
    height: 1px;

    margin-right: 10px;

    vertical-align: middle;

    background: var(--brown-light);
}

.section-title h2 {
    color: var(--green-dark);

    font-family: Georgia, serif;

    font-size: clamp(43px, 5vw, 62px);

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -.04em;
}


/* SERVICES GRID */

.services__grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}


/* SERVICE */

.service {
    position: relative;

    display: block;

    width: 100%;

    min-height: 330px;

    padding: 30px;

    color: var(--text);

    background: transparent;

    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    text-align: left;

    transition:
        background .3s ease,
        color .3s ease;
}

.service:hover {
    background: var(--green-dark);

    color: white;
}


.service__number {
    color: var(--brown-light);

    font-family: Georgia, serif;

    font-size: 14px;
}


.service__content {
    margin-top: 65px;
}


.service h3 {
    color: var(--green-dark);

    font-family: Georgia, serif;

    font-size: 27px;

    font-weight: 400;

    line-height: 1.1;

    transition: color .3s ease;
}

.service:hover h3 {
    color: white;
}


.service p {
    max-width: 300px;

    margin-top: 17px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.75;

    transition: color .3s ease;
}

.service:hover p {
    color: #b8c2b9;
}


.service__arrow {
    position: absolute;

    right: 30px;
    bottom: 28px;

    color: var(--green);

    font-size: 25px;

    transition:
        transform .3s ease,
        color .3s ease;
}

.service:hover .service__arrow {
    color: white;

    transform: translateX(6px);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 28px 0;

    color: #849087;

    background: #29372c;

    font-size: 10px;
}

.footer__inner {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.footer__logo {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #aebcaf;

    font-size: 7px;

    letter-spacing: .2em;
}

.footer__logo-name {
    color: #e0e6dd;

    font-family: Georgia, serif;

    font-size: 16px;
}


/* =====================================================
   MODAL
===================================================== */

.modal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}


/* OVERLAY */

.modal__overlay {
    position: absolute;

    inset: 0;

    background: rgba(31, 43, 34, .62);

    backdrop-filter: blur(5px);
}


/* WINDOW */

.modal__window {
    position: relative;
    z-index: 1;

    width: min(
        100%,
        650px
    );

    max-height: calc(100vh - 50px);

    overflow-y: auto;

    padding: 55px;

    background: var(--bg-light);

    box-shadow:
        0 30px 80px rgba(20, 30, 22, .25);

    transform: translateY(20px);

    transition: transform .3s ease;
}

.modal.is-open .modal__window {
    transform: translateY(0);
}


/* CLOSE */

.modal__close {
    position: absolute;

    top: 18px;
    right: 20px;

    width: 38px;
    height: 38px;

    color: var(--green-dark);

    background: transparent;

    border: 0;

    font-size: 30px;
    font-weight: 200;

    line-height: 1;
}

.modal__close:hover {
    color: var(--green);
}


/* HEADER */

.modal__header {
    margin-bottom: 35px;
}

.modal__header h2 {
    color: var(--green-dark);

    font-family: Georgia, serif;

    font-size: clamp(38px, 5vw, 52px);

    font-weight: 400;

    line-height: 1.03;

    letter-spacing: -.04em;
}

.modal__header h2 em {
    color: var(--green);

    font-style: italic;
}

.modal__header p {
    max-width: 470px;

    margin-top: 20px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


/* FORM */

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.contact-form label {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.contact-form label > span {
    color: var(--brown);

    font-size: 9px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .16em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 13px 0;

    color: var(--green-dark);

    background: transparent;

    border: 0;

    border-bottom: 1px solid var(--line);

    outline: none;

    font-size: 14px;

    resize: vertical;

    transition: border-color .3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9b9f98;
}


.contact-form__submit {
    display: inline-flex;
    align-items: center;

    align-self: flex-start;

    gap: 25px;

    margin-top: 8px;

    padding: 15px 24px;

    color: white;

    background: var(--green-dark);

    border: 0;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .12em;

    transition: background .3s ease;
}

.contact-form__submit:hover {
    background: var(--green);
}

.contact-form__submit span {
    font-size: 18px;
}


.contact-form small {
    color: #999e97;

    font-size: 9px;

    line-height: 1.5;
}


.form-success {
    display: none;

    padding: 12px 15px;

    color: var(--green-dark);

    background: #dfe9da;

    font-size: 11px;
}

.form-success.visible {
    display: block;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 950px) {

    .container {
        width: calc(100% - 50px);
    }


    .header__title {
        padding-left: 40px;

        font-size: 26px;
    }


    .hero__grid {
        grid-template-columns:
            1fr
            1fr;

        gap: 50px;
    }


    .hero h1 {
        font-size: 58px;
    }


    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .container {
        width: calc(100% - 32px);
    }


    /* HEADER */

    .header {
        padding-top: 15px;
    }

    .header__top {
        min-height: 70px;
    }

    .logo__svg {
        width: 52px;
        height: 52px;
    }

    .logo__name strong {
        font-size: 15px;
    }

    .logo__name small {
        font-size: 6px;
    }

    .header__title {
        display: none;
    }


    .header__contacts {
        grid-template-columns: 1fr 1fr;
    }

    .header__contacts a {
        min-height: 55px;

        font-size: 11px;

        overflow: hidden;
        white-space: nowrap;
    }

    .header__contacts a + a {
        padding-left: 20px;
    }


    /* HERO */

    .hero {
        padding: 55px 0 75px;
    }

    .hero__grid {
        display: flex;
        flex-direction: column;

        gap: 50px;

        min-height: auto;

        padding-bottom: 65px;
    }


    .hero__content {
        padding-left: 0;
    }


    .hero h1 {
        margin-top: 28px;

        font-size: 50px;
    }


    .hero__description {
        margin-top: 27px;

        font-size: 13px;
    }


    .hero__photo {
        width: calc(100% - 10px);

        margin-left: auto;
    }


    .hero__photo img {
        aspect-ratio: 4 / 3;
    }


    .hero__photo-border {
        top: 10px;
        right: -10px;
        bottom: 10px;
        left: 10px;
    }


    /* SERVICES */

    .services {
        padding: 75px 0;
    }


    .section-title {
        margin-bottom: 40px;
    }


    .section-title h2 {
        font-size: 44px;
    }


    .services__grid {
        grid-template-columns: 1fr;
    }


    .service {
        min-height: 280px;

        padding: 25px;
    }


    .service__content {
        margin-top: 45px;
    }


    /* MODAL */

    .modal {
        padding: 15px;
    }

    .modal__window {
        max-height: calc(100vh - 30px);

        padding: 42px 25px 30px;
    }


    .modal__header h2 {
        font-size: 39px;
    }


    .contact-form__submit {
        width: 100%;

        justify-content: center;
    }


    /* FOOTER */

    .footer__inner {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 380px) {

    .header__contacts a {
        font-size: 9px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .section-title h2 {
        font-size: 39px;
    }

}
