@import url("https://use.typekit.net/gnh4aas.css");

:root {
    --font-display: ivypresto-display, serif;
    --font-display-italic: ivypresto-display, serif;
    --font-body: sofia-pro, sans-serif;
    --font-color: #1b1b1b;

    --background-color: #F9F6F3;
    --background-secondary: #EFE7DA;
    --background-dark: #2A2A2A;
    --button-color: #1b1b1b;
}

html,
body {
    font-family: var(--font-body);
    background: var(--background-color);
    padding-bottom: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--font-color);
}

/* #region Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-size: 55px;
    font-weight: 100;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 120;
}

h1 span {
    font-family: var(--font-display-italic);
    font-style: italic;
    font-weight: 300;
}

h2 {
    font-size: 45px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 25px;
}

p,
label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    margin: 0;
}

header p {
    margin-top: 15px;
}

/* #endregion */

/* #region General */

section {
    padding: 60px 0;
}

section header {
    margin-bottom: 40px;
}

/* #endregion */

/* #region Button */

.btn,
a.btn,
button.btn {
    background-color: var(--button-color);
    color: #fff;
    border-color: rgba(27, 27, 27, 0.14);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 24px;
    padding: 10px 20px;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
    background-color: var(--button-color);
    color: #fff;
    border-color: rgba(27, 27, 27, 0.18);

    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    opacity: 0.98;
}

.btn:active,
.btn.active,
.btn-check:checked+.btn,
.show>.btn.dropdown-toggle {
    background-color: var(--button-color);
    color: #fff;
    border-color: rgba(27, 27, 27, 0.18);

    transform: translateY(0);
    box-shadow: none;
    opacity: 0.95;
}

.btn:focus,
.btn:focus-visible {
    background-color: var(--button-color);
    color: #fff;
    border-color: rgba(27, 27, 27, 0.18);
    box-shadow: none;
    outline: 2px solid rgba(27, 27, 27, 0.22);
    outline-offset: 4px;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn-check:focus+.btn,
.btn-check:checked+.btn:focus {
    box-shadow: none;
    outline: none;
}

.btn-white {
    background-color: var(--background-color) !important;
    color: var(--font-color) !important;
}

/* #endregion */

/* #region Navbar */

.navbar {
    font-size: 14px;
    transition:
        background-color .3s ease,
        box-shadow .3s ease,
        padding .3s ease;
    z-index: 1050;
}

.navbar .container {
    padding: 0 15px;
}

.navbar .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--background-color);
    text-decoration: none;
    position: relative;
    transition: color 180ms ease, opacity 180ms ease;
}
.navbar .nav-link.active {
    font-weight: 800;
}

.navbar.navbar-scrolled .nav-link {
    color: var(--font-color);
}

.navbar .nav-link span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.85);
    transform-origin: left;
    transition: opacity 180ms ease, transform 180ms ease;
}

.navbar .nav-link:hover {
    color: var(--background-color);
}

.navbar.navbar-scrolled .nav-link:hover {
    color: var(--font-color);
}

.navbar .nav-link:hover span::after {
    opacity: 0.9;
    transform: scaleX(1);
}

.navbar.sticky-top {
    box-shadow: none;
    transition: box-shadow 200ms ease, backdrop-filter 200ms ease;
}

.navbar-transparent {
    background-color: transparent;
    box-shadow: none;
}

.navbar-scrolled {
    background-color: var(--background-color);
    /* scuro elegante */
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}


/* #endregion */

/* #region Contact */

.contact-section {
    background: var(--background-dark);
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--background-color);
}

.contact-section p {
    color: var(--background-color);
}

.contact-section__info {
    display: flex;
    flex-direction: column;
}

.contact-section__contacts {
    margin-top: auto;
}

.contact-section__contacts a {
    color: var(--background-color);
    text-decoration: none;
    transition: color 180ms ease;
}

.contact-form {
    background: var(--background-secondary);
    border: 1px solid rgba(27, 27, 27, 0.10);
    border-radius: 25px;
    padding: 25px;
    height: 100%;
    color: rgba(27, 27, 27, 0.88);
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-form input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(27, 27, 27, 0.12);
    background: rgba(255, 255, 255, 0.70);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(27, 27, 27, 0.88);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(27, 27, 27, 0.22);
    box-shadow: none;
}

.contact-form textarea {
    border-radius: 18px;
    padding: 12px 14px;
    resize: vertical;
    min-height: 140px;
    background: rgba(255, 255, 255, 0.70);
}

.contact-form__checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.contact-form__checkbox input[type="checkbox"] {
    width: auto !important;
    max-width: none !important;
    display: inline-block !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

.contact-form__checkbox span {
    display: inline;
    line-height: 1.35;
    font-size: 12px;
}

.contact-form__checkbox input[type="checkbox"] {
    accent-color: var(--button-color);
    border: 1px solid rgba(27, 27, 27, 0.12);
}

/* #endregion */

/* #region Footer */

footer {
    background: var(--background-dark);
    margin: 0 auto;
    padding: 20px 0;
    color: var(--background-color);
}

footer p {
    font-size: 14px;
}

footer a {
    color: var(--background-color);
    text-decoration: none;
}

/* #endregion */

/* #region Responsive */

/* Mobile */
@media (max-width: 576px) {
    h1 {
        font-size: 35px;
        line-height: 1.08;
    }

    header h2 {
        font-size: 35px;
    }

    .contact-section__contacts {
        margin-bottom: 30px;
    }

    .contact-section__form {
        padding-left: 0;
        padding-right: 0;
    }

    .contact-form {
        padding: 30px 15px;
    }

    footer p {
        margin-bottom: 10px;
    }

}

/* #endregion */