:root {
    --color-fresh: #8CE85F;
    --color-fresh-dark: #7AD14A;
    --color-void: #0E0E0C;
    --color-shadow: #828983;
    --color-alloy: #ACB4AD;
    --color-haze: #DFE4DF;
    --color-white: #FFFFFF;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(14, 14, 12, 0.04);
    --shadow-md: 0 8px 32px rgba(14, 14, 12, 0.08);
    --shadow-lg: 0 16px 48px rgba(14, 14, 12, 0.12);

    --container: 1200px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-void);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== HEADER ====== */
.header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 24px 0;
    background: transparent;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__logo { display: inline-flex; align-items: center; height: 72px; }
.header__logo img { height: 100%; width: auto; }

.header__nav {
    display: flex;
    gap: 32px;
    align-items: center;
}
.header__nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-void);
    transition: opacity var(--transition);
}
.header__nav a:hover { opacity: 0.6; }

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header__social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1877F2;
    transition: background var(--transition), transform var(--transition);
}
.header__social svg { width: 22px; height: 22px; display: block; }
.header__social:hover {
    background: rgba(24, 119, 242, 0.08);
    transform: translateY(-1px);
}

.header__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--color-void);
    color: var(--color-white);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition);
}
.header__cta:hover { background: #1f1f1c; }

/* ====== HERO ====== */
.hero {
    padding: 160px 0 0;
    background: linear-gradient(165deg, #E8EBEF 0%, #F4F5F7 55%, #FAFAFA 100%);
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: end;
    position: relative;
    z-index: 2;
}

.hero__content {
    text-align: left;
    padding-bottom: 80px;
    align-self: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-shadow);
    margin-bottom: 24px;
}
.hero__badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--color-fresh);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(140, 232, 95, 0.2);
}

.hero__title {
    font-size: clamp(36px, 4.6vw, 60px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero__title .accent {
    background: linear-gradient(135deg, var(--color-fresh) 0%, var(--color-fresh-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__text {
    font-size: clamp(16px, 1.4vw, 18px);
    color: var(--color-shadow);
    max-width: 540px;
    margin: 0 0 32px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-width: 480px;
    margin-left: auto;
}
.hero__visual-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero__placeholder,
.hero__photo {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 1;
    display: block;
}
.hero__placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
.hero__photo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom;
}


/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-fresh);
    color: var(--color-void);
}
.btn--primary:hover {
    background: var(--color-fresh-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(140, 232, 95, 0.35);
}

.btn--dark {
    background: var(--color-void);
    color: var(--color-white);
}
.btn--dark:hover {
    background: #1f1f1c;
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--color-void);
    border: 1.5px solid var(--color-void);
}
.btn--ghost:hover {
    background: var(--color-void);
    color: var(--color-white);
}

/* ====== SECTIONS ====== */
.section { padding: 120px 0; }
.section--dark { background: var(--color-void); color: var(--color-white); }

.services.section--dark {
    background-color: var(--color-void);
    background-image:
        linear-gradient(rgba(14, 14, 12, 0.35), rgba(14, 14, 12, 0.5)),
        url('../img/black-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section__head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}
.section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-fresh-dark);
    margin-bottom: 16px;
}
.section--dark .section__eyebrow { color: var(--color-fresh); }
.section__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section__text {
    font-size: 18px;
    color: var(--color-shadow);
}
.section--dark .section__text { color: var(--color-alloy); }

/* ====== SERVICES ====== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service {
    padding: 40px 32px;
    background: var(--color-white);
    border: 1px solid var(--color-haze);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-fresh) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    border-radius: inherit;
}
.service:hover {
    transform: translateY(-4px);
    border-color: var(--color-fresh);
    box-shadow: var(--shadow-md);
}
.service:hover::before { opacity: 0.05; }

.section--dark .service {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.section--dark .service:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--color-fresh);
    box-shadow: 0 16px 48px rgba(140, 232, 95, 0.12);
}
.section--dark .service__title { color: var(--color-white); }
.section--dark .service__text  { color: var(--color-alloy); }

.service__icon {
    height: 36px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
}
.service__icon img {
    height: 100%;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}
.service__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.service__text {
    color: var(--color-shadow);
    font-size: 15px;
    line-height: 1.65;
}

/* ====== WHY US ====== */
.why {
    background: var(--color-white);
    color: var(--color-void);
}
.why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.why__visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.why__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.why__content .section__eyebrow { color: var(--color-fresh-dark); }
.why__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.why__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.why__list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.why__list li::before {
    content: '';
    flex: 0 0 26px;
    height: 26px;
    margin-top: 1px;
    background-image: url('../img/check.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.why__list strong {
    display: block;
    color: var(--color-void);
    font-weight: 700;
    margin-bottom: 4px;
}
.why__list span {
    color: var(--color-shadow);
    font-size: 15px;
    line-height: 1.6;
}

/* ====== CONTACT ====== */
.contact {
    background-color: var(--color-haze);
    background-image: url('../img/gray-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}
.contact__title {
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.contact__text {
    font-size: 17px;
    color: var(--color-shadow);
    margin-bottom: 32px;
    line-height: 1.6;
}
.contact__fb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--color-white);
    border-radius: 999px;
    font-weight: 600;
    color: var(--color-void);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.contact__fb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.contact__fb svg {
    width: 22px; height: 22px;
    color: #1877F2;
}

.form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.form__row { margin-bottom: 20px; }
.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form__grid .form__row { margin-bottom: 8px; }
.form__hint {
    font-size: 13px;
    color: var(--color-shadow);
    margin: -4px 0 20px;
}
.form__hint.is-error { color: #e53e3e; }
@media (max-width: 480px) {
    .form__grid { grid-template-columns: 1fr; gap: 0; }
}
.form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-void);
}
.form__label .req { color: #e53e3e; }

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--color-haze);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--color-void);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-fresh);
    box-shadow: 0 0 0 4px rgba(140, 232, 95, 0.15);
}
.form__textarea { resize: vertical; min-height: 100px; }

.form__error {
    display: none;
    color: #e53e3e;
    font-size: 13px;
    margin-top: 6px;
}
.form__row.has-error .form__input,
.form__row.has-error .form__textarea { border-color: #e53e3e; }
.form__row.has-error .form__error { display: block; }

.form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
}

.form__submit {
    width: 100%;
    margin-top: 8px;
}
.form__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form__success,
.form__fail,
.form__rate {
    display: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
}
.form__success { background: #E8F8E0; color: #2D5A1A; }
.form__fail    { background: #FEE;    color: #C53030; }
.form__rate    { background: #FFF6E5; color: #8B5A00; }
.form.is-success .form__success { display: block; }
.form.is-fail    .form__fail    { display: block; }
.form.is-rate    .form__rate    { display: block; }

/* ====== FOOTER ====== */
.footer {
    background: var(--color-void);
    color: var(--color-alloy);
    padding: 64px 0 32px;
}
.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}
.footer__logo { height: 36px; width: auto; margin-bottom: 20px; }
.footer__tagline {
    font-size: 14px;
    color: var(--color-alloy);
    max-width: 320px;
    line-height: 1.6;
}
.footer__col h4 {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
    font-size: 14px;
    color: var(--color-alloy);
    transition: color var(--transition);
}
.footer__col a:hover { color: var(--color-fresh); }

.footer__legal {
    font-size: 12px;
    color: var(--color-shadow);
    line-height: 1.7;
}
.footer__legal p { margin: 4px 0; }
.footer__bottom {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--color-shadow);
    text-align: center;
}
.footer__links { margin-bottom: 8px; }
.footer__copy  { color: var(--color-shadow); }

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
    .header { padding: 16px 0; }
    .header__logo { height: 56px; }
    .header__nav { display: none; }
    .hero { padding: 130px 0 0; }
    .hero__inner { gap: 32px; }
    .hero__visual { max-width: 360px; }
    .services__grid { grid-template-columns: 1fr; gap: 16px; }
    .why__inner { grid-template-columns: 1fr; gap: 48px; }
    .why__visual { max-width: 480px; margin: 0 auto; }
    .contact__inner { grid-template-columns: 1fr; gap: 40px; }
    .footer__top { grid-template-columns: 1fr; gap: 32px; }
    .section { padding: 80px 0; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 0 64px; }
    .hero__inner { grid-template-columns: 1fr; align-items: stretch; }
    .hero__content { padding-bottom: 0; }
    .hero__visual { display: none; }
}

@media (max-width: 560px) {
    .container { padding: 0 20px; }
    .form { padding: 28px 20px; }
    .hero__actions .btn { width: 100%; }
    .hero__actions { flex-direction: column; }
}

/* ====== LEGAL PAGES ====== */
.header--solid {
    position: relative;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-haze);
}
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 100px;
    color: var(--color-void);
}
.legal h1 {
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.legal__updated {
    color: var(--color-shadow);
    font-size: 14px;
    margin-bottom: 40px;
}
.legal h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 14px;
    letter-spacing: -0.005em;
}
.legal p {
    color: #2c2c2a;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.legal ul {
    margin: 0 0 18px 22px;
    padding: 0;
    list-style: disc;
}
.legal li {
    color: #2c2c2a;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 8px;
}
.legal a {
    color: var(--color-fresh-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal a:hover { color: var(--color-void); }
.legal code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: var(--color-haze);
    padding: 1px 6px;
    border-radius: 4px;
}

.footer__bottom a {
    color: var(--color-alloy);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--color-fresh); }

/* ====== COOKIE BANNER ====== */
.cookie {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 16px 16px 22px;
    background: var(--color-white);
    color: var(--color-void);
    border: 1px solid var(--color-haze);
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(14, 14, 12, 0.18);
    font-size: 14px;
    line-height: 1.45;
    animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.cookie[hidden] { display: none; }
.cookie__text { flex: 1; margin: 0; color: var(--color-shadow); }
.cookie__btn {
    background: var(--color-fresh);
    color: var(--color-void);
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}
.cookie__btn:hover { background: var(--color-fresh-dark); }

@media (max-width: 560px) {
    .cookie {
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px;
    }
    .cookie__btn { width: 100%; }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.is-visible {
    animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
