/* ================= ALLER FONT ================= */
@font-face {
    font-family: 'Aller';
    src: url('../fonts/Aller_Lt.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aller';
    src: url('../fonts/Aller_Rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aller';
    src: url('../fonts/Aller_Bd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ================= RESET & BASE ================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --yellow: #E8A317;
    --dark: #111111;
    --ink: #2B2A29;
    --gray: #555555;
    --soft-gray: #F4F4F4;
    --white: #FEFEFE;
    --content: 1530px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: var(--soft-gray);
    color: var(--dark);
    font-family: 'Aller', Arial, sans-serif;
}

::selection {
    background: rgba(232, 163, 23, 0.32);
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatPencil {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@keyframes mouseWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 9px);
    }
}

/* ================= HEADER + HERO ================= */
.wrapper {
    width: min(var(--content), calc(100% - 48px));
    margin: 0 auto;
}

.header {
    height: 105px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 11px;
}

.logo-img {
    display: block;
    width: 178px;
    height: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 58px;
    padding-top: 19px;
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: var(--dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.navigation a {
    position: relative;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.25s ease;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 3px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--yellow);
    transition: transform 0.25s ease;
}

.navigation a:hover,
.navigation a:focus-visible {
    color: var(--yellow);
}

.navigation a:hover::after,
.navigation a:focus-visible::after {
    transform: scaleX(1);
}

.btn-talk,
.btn-explore,
.btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-talk {
    min-width: 159px;
    min-height: 46px;
    padding: 0 28px;
    border-radius: 8px;
    background: var(--yellow);
    color: var(--dark);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-talk:hover,
.btn-talk:focus-visible {
    background: var(--dark);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.18);
    transform: translateY(-2px);
}

.hero-section {
    position: relative;
    height: 881px;
}

.left-sidebar {
    position: absolute;
    left: 0;
    top: 208px;
    bottom: 190px;
    width: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--dark);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 1.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.vertical-line {
    width: 4px;
    flex: 1 1 auto;
    min-height: 40px;
    margin-top: 24px;
    background: var(--dark);
}

.content-area {
    position: absolute;
    left: 74px;
    top: 208px;
    z-index: 2;
    width: 650px;
    max-width: calc(100% - 74px);
    animation: fadeUp 0.7s ease both;
}

.sub-title {
    margin-bottom: 22px;
    color: var(--dark);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.05;
}

.main-title {
    margin-bottom: 58px;
    color: var(--dark);
    font-size: 142px;
    font-weight: 700;
    line-height: 0.91;
}

.black-text,
.yellow-text {
    display: inline-block;
}

.yellow-text {
    color: var(--yellow);
}

.separator {
    display: flex;
    width: 291px;
    height: 7px;
    margin-bottom: 53px;
}

.line-black {
    width: 231px;
    background: var(--dark);
}

.line-yellow {
    flex: 1;
    background: var(--yellow);
}

.description {
    max-width: 630px;
    margin-bottom: 52px;
    color: var(--dark);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.36;
}

.btn-explore {
    width: 205px;
    height: 40px;
    background: var(--ink);
    color: var(--white);
    font-size: 21px;
    font-weight: 400;
}

.btn-explore:hover,
.btn-explore:focus-visible,
.btn-send:hover,
.btn-send:focus-visible {
    background: var(--dark);
    color: var(--yellow);
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.22);
    transform: translateY(-3px);
}

.image-area {
    position: absolute;
    left: 546px;
    top: 42px;
    right: 56px;
    height: 838px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
}

.hero-graphic {
    width: 100%;
    height: 100%;
    max-width: 978px;
    max-height: 838px;
    object-fit: contain;
    animation: floatPencil 5.5s ease-in-out infinite;
}

.right-sidebar {
    position: absolute;
    right: 0;
    top: 313px;
    bottom: 125px;
    width: 38px;
    z-index: 3;
}

.social-icons,
.social-icons-row {
    display: flex;
}

.social-icons {
    flex-direction: column;
    gap: 28px;
}

.social-icons a,
.social-icons-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: var(--dark);
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-icons a {
    width: 36px;
    height: 36px;
    font-size: 18px;
}

.social-icons a:hover,
.social-icons a:focus-visible,
.social-icons-row a:hover,
.social-icons-row a:focus-visible {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--dark);
    transform: translateY(-3px);
}

.site-footer .social-icons-row a:hover,
.site-footer .social-icons-row a:focus-visible {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.22);
}

.scroll-down {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--dark);
}

.scroll-down span {
    font-size: 20px;
    font-weight: 400;
}

.mouse {
    position: relative;
    width: 30px;
    height: 58px;
    border: 4px solid var(--ink);
    border-radius: 18px;
}

.mouse::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 10px;
    width: 7px;
    height: 9px;
    border-radius: 999px;
    background: var(--yellow);
    animation: mouseWheel 1.2s ease-in-out infinite;
}

/* ================= ABOUT ================= */
.about-section {
    min-height: 750px;
    display: flex;
    align-items: flex-start;
    background: var(--dark);
    color: var(--white);
    padding: 164px 24px 120px;
}

.about-container {
    width: min(1140px, 100%);
    margin: 0 auto;
}

.about-subtitle,
.services-subtitle {
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.about-subtitle {
    margin-bottom: 51px;
    color: var(--white);
}

.about-title {
    margin-bottom: 52px;
    color: var(--white);
    font-size: 49px;
    font-weight: 400;
    line-height: 1.12;
    white-space: nowrap;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-word;
}

.highlight-yellow {
    color: var(--yellow);
}

.about-desc {
    margin-bottom: 24px;
    color: var(--white);
    font-size: 34px;
    font-weight: 300;
    line-height: 1.15;
    text-align: justify;
    text-justify: inter-word;
}

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

/* ================= SERVICES ================= */
.services-section {
    min-height: 750px;
    background: var(--soft-gray);
    padding: 97px 24px 92px;
}

.services-container {
    width: min(1141px, 100%);
    margin: 0 auto;
}

.services-subtitle {
    margin-bottom: 42px;
    color: var(--dark);
}

.services-title {
    margin-bottom: 52px;
    color: var(--dark);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.12;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 31px 30px;
}

.service-card {
    min-height: 181px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
    background: var(--white);
    padding: 23px 30px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-card:hover {
    box-shadow: 0 22px 45px rgba(17, 17, 17, 0.10);
    transform: translateY(-7px);
}

.service-card:hover .service-icon img {
    transform: scale(1.06) rotate(-2deg);
}

.service-text {
    position: relative;
    z-index: 1;
    width: 52%;
}

.service-text h3 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.16;
}

.service-text p {
    color: var(--dark);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.service-icon {
    width: 129px;
    height: 129px;
    flex: 0 0 129px;
}

.service-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.28s ease;
}

.bottom-row .service-text {
    text-align: right;
}

/* ================= CONTACT ================= */
.contact-section {
    min-height: 562px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--white);
    padding: 62px 24px 27px;
}

.contact-container {
    width: min(1140px, 100%);
}

.contact-form-container h2 {
    text-align: center;
    color: var(--dark);
    font-size: 37px;
    font-weight: 700;
    line-height: 1;
}

.title-underline {
    width: 301px;
    height: 4px;
    margin: 11px auto 21px;
    background: var(--yellow);
}

.contact-form {
    display: grid;
    gap: 20px 31px;
}

.form-row {
    display: grid;
    gap: 31px;
}

.form-row-three {
    grid-template-columns: repeat(3, 1fr);
}

.form-row-two {
    grid-template-columns: 356px 1fr;
}

.form-group,
.full-width {
    width: 100%;
}

.form-group input,
.textarea-group {
    width: 100%;
    border: 3px solid var(--ink);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group input {
    height: 59px;
    padding: 0 27px;
    font-size: 18px;
    outline: none;
}

.form-group input::placeholder,
.textarea-group textarea::placeholder {
    color: var(--ink);
    opacity: 0.95;
}

.form-group input:focus,
.textarea-group:focus-within {
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px rgba(232, 163, 23, 0.17);
    transform: translateY(-2px);
}

.textarea-group {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    padding: 18px 28px;
}

.textarea-group label {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 18px;
}

.textarea-group textarea {
    min-height: 78px;
    border: 0;
    outline: 0;
    resize: vertical;
    color: var(--ink);
    background: transparent;
    font-size: 16px;
}

.btn-send {
    width: 213px;
    height: 56px;
    justify-self: center;
    margin-top: 7px;
    background: var(--yellow);
    color: var(--dark);
    font-size: 22px;
    font-weight: 400;
}

.btn-send:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.form-message {
    display: none;
    width: min(680px, 100%);
    justify-self: center;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.form-message.show {
    display: block;
}

.form-message.success {
    border: 1px solid #b6e2c5;
    background: #e7f6ec;
    color: #1c7c3e;
}

.form-message.error {
    border: 1px solid #f5c2bd;
    background: #fdecec;
    color: #c0392b;
}

/* ================= FOOTER ================= */
.site-footer {
    min-height: 381px;
    background: var(--soft-gray);
    padding: 63px 24px 60px;
    color: var(--dark);
}

.footer-container {
    width: min(1140px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    column-gap: 64px;
}

.footer-logo img {
    width: 237px;
    height: auto;
    display: block;
}

.footer-intro {
    margin-bottom: 57px;
}

.footer-intro h3,
.footer-block h4 {
    color: var(--yellow);
    font-weight: 700;
}

.footer-intro h3 {
    margin-bottom: 28px;
    font-size: 22px;
}

.footer-intro p,
.footer-block a {
    color: var(--dark);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.footer-block a {
    transition: color 0.25s ease;
}

.footer-block a:hover,
.footer-block a:focus-visible {
    color: var(--yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1.2fr;
    gap: 42px;
}

.footer-block {
    min-height: 79px;
}

.footer-block + .footer-block {
    border-left: 2px solid var(--yellow);
    padding-left: 42px;
}

.footer-block h4 {
    margin-bottom: 34px;
    font-size: 22px;
}

.social-icons-row {
    gap: 17px;
}

.social-icons-row a {
    width: 38px;
    height: 38px;
    font-size: 21px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1700px) {
    .wrapper {
        width: min(1360px, calc(100% - 48px));
    }

    .content-area {
        left: 74px;
        width: calc(48% - 74px);
        max-width: calc(100% - 74px);
    }

    .image-area {
        left: 45%;
        right: 56px;
    }

    .main-title {
        font-size: clamp(96px, 8vw, 132px);
    }
}

@media (max-width: 1199px) {
    .wrapper {
        width: min(960px, calc(100% - 40px));
    }

    .header {
        height: 96px;
        align-items: center;
        padding-top: 0;
    }

    .logo-img {
        width: 142px;
    }

    .header-right {
        gap: 24px;
        padding-top: 0;
    }

    .navigation {
        gap: 28px;
    }

    .navigation a {
        font-size: 14px;
    }

    .btn-talk {
        min-width: 132px;
        min-height: 40px;
        font-size: 14px;
    }

    .hero-section {
        min-height: calc(100vh - 96px);
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 24px;
        padding: 48px 0 70px;
        text-align: center;
    }

    .left-sidebar,
    .right-sidebar {
        display: none;
    }

    .content-area,
    .image-area {
        position: static;
        width: auto;
    }

    .content-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        animation: fadeUp 0.7s ease both;
    }

    .description {
        max-width: 100%;
    }

    .sub-title {
        font-size: clamp(18px, 2vw, 24px);
    }

    .main-title {
        margin-bottom: 34px;
        font-size: clamp(72px, 10vw, 104px);
    }

    .separator {
        margin-bottom: 32px;
    }

    .line-black,
    .line-yellow {
        flex: 1;
        width: auto;
    }

    .description {
        margin-bottom: 34px;
        font-size: clamp(17px, 2vw, 22px);
    }

    .image-area {
        height: auto;
    }

    .hero-graphic {
        width: 100%;
        height: auto;
        max-width: 620px;
    }

    .about-section,
    .services-section,
    .contact-section {
        min-height: auto;
    }

    .about-section {
        padding: clamp(72px, 10vw, 120px) 24px;
    }

    .about-container,
    .services-container,
    .contact-container,
    .footer-container {
        width: min(900px, 100%);
    }

    .about-title {
        white-space: normal;
        font-size: clamp(36px, 5.6vw, 52px);
        text-align: center;
        text-align-last: center;
    }

    .about-desc {
        font-size: clamp(22px, 3.2vw, 30px);
        text-align: center;
    }

    .services-section {
        padding: 80px 24px;
    }

    .services-title {
        font-size: clamp(34px, 5vw, 48px);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-section {
        padding: 76px 24px;
    }

    .form-row-three,
    .form-row-two {
        grid-template-columns: 1fr 1fr;
    }

    .form-row-three .form-group:last-child {
        grid-column: 1 / -1;
    }

    .footer-container {
        grid-template-columns: 200px 1fr;
        column-gap: 42px;
    }

    .footer-logo img {
        width: 190px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-block + .footer-block {
        border-left: 0;
        padding-left: 0;
    }

    .footer-block h4 {
        margin-bottom: 14px;
    }
}

@media (max-width: 860px) {
    .wrapper {
        width: min(680px, calc(100% - 32px));
    }

    .header {
        position: relative;
        z-index: 20;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .btn-talk {
        order: 2;
    }

    .navigation {
        position: absolute;
        top: 72px;
        right: 0;
        width: min(280px, calc(100vw - 32px));
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 2px solid var(--dark);
        background: var(--white);
        box-shadow: 0 18px 35px rgba(17, 17, 17, 0.16);
    }

    .navigation a {
        padding: 16px 20px;
    }

    .navigation a::after {
        display: none;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .menu-toggle:checked ~ .navigation {
        display: flex;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 28px;
    }

    .image-area {
        order: -1;
        justify-self: center;
        max-width: 480px;
    }

    .content-area {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-title {
        font-size: clamp(62px, 15vw, 96px);
    }

    .description br {
        display: none;
    }

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

    .service-card,
    .bottom-row {
        min-height: 0;
        flex-direction: row;
    }

    .contact-form-container h2 {
        font-size: clamp(30px, 8vw, 37px);
    }

    .title-underline {
        width: min(301px, 70vw);
    }

    .form-row-three,
    .form-row-two {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row-three .form-group:last-child {
        grid-column: auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        row-gap: 34px;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    .social-icons-row {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .wrapper {
        width: calc(100% - 28px);
    }

    .header {
        height: auto;
        min-height: 82px;
        align-items: center;
    }

    .logo-img {
        width: 118px;
    }

    .btn-talk {
        min-width: 105px;
        min-height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }

    .header-right {
        gap: 14px;
    }

    .hero-section {
        padding-bottom: 54px;
    }

    .sub-title {
        font-size: 16px;
    }

    .main-title {
        margin-bottom: 26px;
        font-size: clamp(52px, 18vw, 72px);
    }

    .separator {
        width: min(230px, 76vw);
        height: 5px;
        margin-bottom: 28px;
    }

    .description {
        font-size: 16px;
    }

    .btn-explore {
        width: 178px;
    }

    .about-section,
    .services-section,
    .contact-section,
    .site-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .about-title {
        margin-bottom: 30px;
        font-size: 31px;
    }

    .about-desc {
        font-size: 19px;
        line-height: 1.35;
    }

    .services-title {
        font-size: 31px;
    }

    .service-card,
    .bottom-row {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
    }

    .service-text,
    .bottom-row .service-text {
        width: 100%;
        text-align: center;
    }

    .service-icon {
        order: -1;
        width: 160px;
        height: 160px;
        flex: 0 0 160px;
    }

    .form-group input {
        height: 54px;
        padding: 0 18px;
        font-size: 16px;
    }

    .textarea-group {
        padding: 16px 18px;
    }

    .btn-send {
        width: 190px;
        font-size: 19px;
    }
}

@media (max-width: 360px) {
    .wrapper {
        width: calc(100% - 20px);
    }

    .logo-img {
        width: 92px;
    }

    .header-right {
        gap: 8px;
    }

    .btn-talk {
        min-width: 82px;
        min-height: 34px;
        padding: 0 8px;
        font-size: 11px;
    }

    .hamburger {
        width: 24px;
        height: 19px;
    }

    .hamburger span {
        height: 2px;
    }

    .navigation {
        top: 64px;
        width: calc(100vw - 20px);
    }

    .main-title {
        font-size: clamp(45px, 19vw, 52px);
    }

    .about-section,
    .services-section,
    .contact-section,
    .site-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .about-title,
    .services-title {
        font-size: 28px;
    }

    .footer-logo img {
        width: 170px;
    }

    .footer-intro p,
    .footer-block a {
        overflow-wrap: anywhere;
        font-size: 15px;
    }

    .social-icons-row {
        flex-wrap: wrap;
        gap: 12px;
    }
}