
/* =========================================
   BASE
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #f7f3ed;
    color: #302e2b;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 18px;
    line-height: 1.6;
}

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

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

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

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    min-width: 0;
}


/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2,
h3 {
    font-family: Georgia, serif;
    font-weight: 400;
}

h1 {
    max-width: 700px;
    margin: 0;

    font-size: clamp(52px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.04em;

    overflow-wrap: break-word;
}

h2 {
    margin: 0 0 55px;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;

    overflow-wrap: break-word;
}

.eyebrow,
.section-label {
    margin: 0 0 15px;

    color: #80776e;

    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================================
   HEADER
   ========================================= */

.header {
    position: -webkit-sticky;
    position: sticky;

    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(247, 243, 237, 0.95);

    border-bottom: 1px solid rgba(48, 46, 43, 0.1);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    flex-shrink: 0;

    font-family: Georgia, serif;
    font-size: 20px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 26px;

    font-size: 14px;
}

.navigation a {
    transition: opacity 0.2s;
}

.navigation a:hover {
    opacity: 0.55;
}


/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-block;

    padding: 15px 26px;

    border: 0;
    border-radius: 100px;

    background: #47423d;
    color: #ffffff;

    font-size: 15px;
    line-height: 1.2;

    cursor: pointer;

    transition:
        transform 0.2s,
        opacity 0.2s;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    padding: 70px 0 100px;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.8fr);

    gap: 80px;

    align-items: center;
}

.hero-content {
    min-width: 0;
}

.hero-profession {
    margin: 28px 0 0;

    font-family: Georgia, serif;
    font-size: 29px;
}

.hero-text {
    max-width: 600px;
    margin: 30px 0;

    color: #5f5a54;
}

.hero-text p {
    margin-top: 0;
}

.hero-image-wrapper {
    min-width: 0;
    overflow: hidden;

    border-radius: 220px 220px 20px 20px;
    background: #ddd3c7;
}

.hero-image {
    width: 100%;
    height: 650px;

    object-fit: cover;
}


/* =========================================
   COMMON SECTIONS
   ========================================= */

.section {
    padding: 110px 0;
}


/* =========================================
   WORK FORMATS
   ========================================= */

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

    gap: 18px;
    align-items: stretch;
}

.format-card {
    min-width: 0;
    min-height: 390px;
    height: 100%;

    padding: 32px;

    display: flex;
    flex-direction: column;

    background: #ebe4da;
    border-radius: 22px;
}

.format-main {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-width: 0;
}

.format-card h3 {
    min-height: 3.3em;
    margin: 0 0 28px;

    display: flex;
    align-items: flex-end;

    font-size: 30px;
    line-height: 1.1;

    overflow-wrap: break-word;
}

.format-description {
    color: #655f59;

    font-size: 16px;
    line-height: 1.6;
}

.format-description p {
    margin: 0;
}

.format-price {
    margin-top: auto;
    padding-top: 24px;

    border-top: 1px solid rgba(48, 46, 43, 0.15);

    color: #302e2b;

    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.2;
}


/* =========================================
   ABOUT
   ========================================= */

.about-section {
    overflow: hidden;
    background: #dcd2c6;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);

    gap: 70px;
    align-items: start;
}

.about-photo-wrapper {
    min-width: 0;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-photo {
    width: 100%;
    max-width: 380px;
    max-height: 720px;

    display: block;

    object-fit: contain;
    object-position: top center;
}

.about-content {
    min-width: 0;
}

.about-content h2 {
    margin: 0 0 30px;
}

.about-text {
    max-width: 700px;

    color: #48433e;

    font-size: 18px;
    line-height: 1.75;
}

.about-text p {
    margin: 0 0 20px;
}

.about-text p:first-child {
    color: #302e2b;

    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 1.4;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* =========================================
   EDUCATION
   ========================================= */

.education-list {
    display: flex;
    flex-direction: column;
}

.education-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);

    gap: 45px;

    padding: 36px 0;

    border-top: 1px solid #cec5ba;
}

.education-card:last-child {
    border-bottom: 1px solid #cec5ba;
}

.education-photo-wrapper {
    max-width: 240px;
    overflow: hidden;

    border-radius: 12px;
}

.education-photo {
    width: 100%;
    height: 180px;

    object-fit: cover;
}

.education-content {
    min-width: 0;
}

.education-year {
    margin: 0 0 8px;

    color: #8b8177;
    font-size: 14px;
}

.education-content h3 {
    margin: 0 0 8px;

    font-size: 27px;
    line-height: 1.2;

    overflow-wrap: break-word;
}

.education-organization {
    margin: 0 0 15px;

    color: #5f5953;
}

.education-description {
    color: #6c655e;
    font-size: 16px;
}


/* =========================================
   GIFT
   ========================================= */

.gift-section {
    padding: 120px 0;

    background: #b8aa99;
}

.gift-content {
    max-width: 800px;

    text-align: center;
}

.gift-content .section-label {
    color: #5d554d;
}

.gift-content h2 {
    margin-bottom: 25px;
}

.gift-description {
    max-width: 600px;
    margin: 0 auto 30px;

    font-size: 19px;
}


/* =========================================
   CONTACTS / REQUEST FORM
   ========================================= */

.contacts-section {
    min-height: 600px;
}

.contacts-grid {
    width: 100%;
    min-width: 0;

    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);

    gap: clamp(50px, 8vw, 100px);
    align-items: start;
}

.request-block,
.direct-contacts {
    width: 100%;
    min-width: 0;
}

.request-block h3,
.direct-contacts h3 {
    margin: 0 0 15px;

    font-size: 30px;
    line-height: 1.2;
}

.request-description,
.direct-contacts > p {
    max-width: 100%;
    margin: 0 0 35px;

    color: #716a63;

    font-size: 16px;
}

.request-form {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 25px;
}

.form-field {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-field label {
    color: #746d66;

    font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 15px 0;

    border: 0;
    border-bottom: 1px solid #bfb5aa;
    border-radius: 0;

    outline: none;

    background: transparent;
    color: #302e2b;

    font-family: inherit;
    font-size: 17px;
}

.form-field select {
    appearance: auto;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-bottom-color: #302e2b;
}

.request-form .button {
    align-self: flex-start;
    margin-top: 15px;
}

.success-message {
    margin-bottom: 30px;
    padding: 18px 20px;

    background: #ded7ca;
    border-radius: 12px;

    font-size: 15px;
}

.errorlist {
    margin: 0;
    padding: 0;

    list-style: none;

    color: #8a4f43;
    font-size: 13px;
}


/* =========================================
   PERSONAL DATA CONSENT
   ========================================= */

.consent-field {
    width: 100%;
    min-width: 0;

    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);

    gap: 12px;
    align-items: start;
}

.consent-field input {
    width: 18px;
    height: 18px;

    margin: 5px 0 0;
}

.consent-field label {
    min-width: 0;

    color: #655f59;

    font-size: 14px;
    line-height: 1.55;

    overflow-wrap: normal;
    word-break: normal;
}

.privacy-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-link:hover {
    opacity: 0.65;
}


/* =========================================
   DIRECT CONTACTS
   ========================================= */

.contacts-list {
    width: 100%;
    max-width: 800px;
    min-width: 0;
}

.contact-link {
    width: 100%;
    min-width: 0;

    padding: 20px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    border-top: 1px solid #cbc3b9;

    font-family: Georgia, serif;
    font-size: 27px;
}

.contact-link:last-child {
    border-bottom: 1px solid #cbc3b9;
}

.contact-link span {
    flex-shrink: 0;

    transition: transform 0.2s;
}

.contact-link:hover span {
    transform: translateX(6px);
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    padding: 35px 0;

    background: #312e2a;
    color: #f7f3ed;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    font-size: 14px;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-links a {
    opacity: 0.8;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-links a:hover {
    opacity: 1;
}


/* =========================================
   COOKIE BANNER
   ========================================= */

.cookie-banner {
    position: fixed;

    left: 24px;
    right: 24px;
    bottom: 24px;

    z-index: 1000;

    transition:
        opacity 0.3s,
        transform 0.3s;
}

.cookie-hidden {
    opacity: 0;
    pointer-events: none;

    transform: translateY(20px);
}

.cookie-inner {
    max-width: 1050px;
    margin: 0 auto;

    padding: 28px 32px;

    background: #e2d8cc;

    border: 1px solid rgba(48, 46, 43, 0.12);
    border-radius: 20px;

    box-shadow:
        0 15px 50px rgba(48, 46, 43, 0.12);
}

.cookie-text h3 {
    margin: 0 0 8px;

    font-size: 24px;
}

.cookie-text p {
    max-width: 700px;
    margin: 0 0 24px;

    color: #625c56;

    font-size: 15px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}

.cookie-button,
.cookie-secondary,
.cookie-settings-button,
.cookie-save {
    border: 0;

    cursor: pointer;

    font-family: inherit;
}

.cookie-secondary {
    padding: 14px 22px;

    border: 1px solid #4a453f;
    border-radius: 100px;

    background: transparent;
    color: #302e2b;

    font-size: 14px;
}

.cookie-settings-button {
    padding: 10px;

    background: transparent;
    color: #655e57;

    text-decoration: underline;

    font-size: 14px;
}

.cookie-settings {
    display: none;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid rgba(48, 46, 43, 0.15);
}

.cookie-settings-visible {
    display: block;
}

.cookie-option {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 16px;
}

.cookie-option span {
    display: flex;
    flex-direction: column;
}

.cookie-option small {
    color: #736b64;
}

.cookie-save {
    margin-top: 10px;
    padding: 12px 20px;

    border-radius: 100px;

    background: #47423d;
    color: #ffffff;
}


/* =========================================
   PRIVACY PAGE
   ========================================= */

.privacy-page {
    padding: 90px 0 110px;
}

.privacy-container {
    max-width: 920px;
}

.privacy-title {
    max-width: 900px;
    margin: 0 0 60px;

    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
}

.privacy-content {
    max-width: 780px;

    color: #4f4943;

    font-size: 17px;
    line-height: 1.75;
}

.privacy-content > p {
    margin: 0 0 22px;
}

.privacy-content h2 {
    margin: 55px 0 20px;

    font-size: 30px;
    line-height: 1.2;
}

.privacy-content ul {
    margin: 0 0 25px;
    padding-left: 24px;
}

.privacy-content li {
    margin-bottom: 8px;
}

.privacy-date {
    margin-top: 55px !important;

    color: #80776e;

    font-size: 14px;
}


/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 850px) {

    .container {
        width: min(100% - 32px, 1180px);
    }

    .header-inner {
        min-height: 65px;
    }

    .navigation {
        display: none;
    }


    /* Hero */

    .hero {
        padding: 40px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    h1 {
        font-size: clamp(48px, 12vw, 64px);
    }

    h2 {
        margin-bottom: 35px;

        font-size: clamp(40px, 10vw, 52px);
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 520px;
    }

    .hero-image {
        height: min(520px, 125vw);
    }


    /* Sections */

    .section {
        padding: 75px 0;
    }


    /* Formats */

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

    .format-card {
        min-height: 320px;
    }

    .format-card h3 {
        min-height: auto;
    }


    /* About */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .about-photo-wrapper {
        order: 1;
        justify-content: flex-start;
    }

    .about-content {
        order: 2;
    }

    .about-photo {
        max-width: 320px;
        margin: 0;
    }

    .about-text {
        font-size: 17px;
    }

    .about-text p:first-child {
        font-size: 24px;
    }


    /* Education */

    .education-card {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .education-photo-wrapper {
        max-width: 350px;
    }


    /* Gift */

    .gift-section {
        padding: 80px 0;
    }


    /* Contacts */

    .contacts-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .request-block,
    .direct-contacts,
    .request-form,
    .form-field,
    .contacts-list {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .request-block h3,
    .direct-contacts h3 {
        font-size: 28px;
        line-height: 1.2;
    }

    .request-description,
    .direct-contacts > p {
        width: 100%;
        max-width: none;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .contact-link {
        width: 100%;
    }


    /* Footer */

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }


    /* Privacy */

    .privacy-page {
        padding: 70px 0 80px;
    }

    .privacy-title {
        margin-bottom: 45px;
    }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 600px) {

    body {
        font-size: 17px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-inner {
        padding: 22px;
    }

    .cookie-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-actions button {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .container {
        width: calc(100% - 32px);
    }

    .logo {
        font-size: 18px;
    }

    h1 {
        font-size: clamp(44px, 13vw, 58px);
    }

    h2 {
        font-size: 40px;
        line-height: 1.05;
    }

    .hero-profession {
        font-size: 25px;
    }

    .hero-image {
        height: 115vw;
        max-height: 500px;
    }

    .format-card {
        min-height: 290px;
        padding: 26px;
    }

    .format-card h3 {
        font-size: 27px;
    }

    .about-photo {
        max-width: 280px;
    }

    .contacts-section h2 {
        font-size: 40px;
        line-height: 1.05;
    }

    .request-block h3,
    .direct-contacts h3 {
        font-size: 26px;
    }

    .request-form .button {
        width: 100%;

        text-align: center;
    }

    .contact-link {
        font-size: 25px;
    }

    .consent-field label {
        font-size: 14px;
        line-height: 1.5;
    }

    .privacy-title {
        font-size: 40px;
    }

    .privacy-content h2 {
        font-size: 27px;
    }
}

