:root {
    --ink: #080908;
    --surface: #f4f2e9;
    --paper: #fffef8;
    --lime: #c8ff18;
    --muted: #77786f;
    --line: rgba(8, 9, 8, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { min-height: 96px; width: min(1260px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.brand img { width: 66px; height: 66px; object-fit: cover; border-radius: 50%; }
.primary-nav { display: flex; gap: 32px; align-items: center; }
.primary-nav a { text-decoration: none; font-size: 14px; font-weight: 700; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--ink); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.nav-toggle { display: none; border: 1px solid var(--ink); background: transparent; padding: 8px 12px; font: inherit; font-weight: 700; }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; padding-block: 80px; }
.eyebrow, .section-index { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--lime); box-shadow: 0 0 0 1px var(--ink); }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .page-hero h1 { margin: 24px 0 28px; font-size: clamp(56px, 7.3vw, 104px); line-height: .94; letter-spacing: -.075em; font-weight: 800; }
h1 em { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-family: "Playfair Display", serif; font-weight: 700; }
.hero-lead, .page-hero > p:not(.eyebrow) { max-width: 650px; font-size: 19px; color: #464840; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; text-decoration: none; border: 1px solid var(--ink); font-weight: 800; font-size: 14px; cursor: pointer; }
.button-primary { background: var(--ink); color: var(--lime); }
.button-primary:hover { background: var(--lime); color: var(--ink); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: var(--paper); }

.hero-mark { aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: end; position: relative; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; overflow: hidden; }
.mark-letter { font-family: "Playfair Display", serif; font-style: italic; font-size: clamp(120px, 16vw, 220px); line-height: 1; z-index: 2; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(200, 255, 24, .55); }
.orbit-one { width: 72%; height: 72%; }
.orbit-two { width: 95%; height: 42%; transform: rotate(-28deg); }
.mark-caption { position: absolute; bottom: 11%; text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }

.intro { border-top: 1px solid var(--line); padding-block: 110px; display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.intro h2, .why-heading h2, .featured h2, .business-copy h2 { font-size: clamp(36px, 5vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.intro div p, .business-copy > p:last-child { max-width: 720px; font-size: 19px; color: #4e5048; }
.section-index { color: var(--muted); }

.why-section { background: var(--ink); color: var(--paper); width: 100%; max-width: none; padding: 110px max(24px, calc((100vw - 1180px) / 2)); }
.why-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.why-heading .section-index { color: var(--lime); }
.reasons-grid { margin-top: 76px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #3b3d36; }
.reasons-grid article { padding: 28px 26px 20px 0; border-right: 1px solid #3b3d36; }
.reasons-grid article + article { padding-left: 26px; }
.reasons-grid article:last-child { border-right: 0; }
.reasons-grid span { color: var(--lime); font-size: 12px; font-weight: 800; }
.reasons-grid h3 { margin: 48px 0 14px; font-size: 21px; }
.reasons-grid p { color: #b9bbae; font-size: 14px; }

.reviews-section { padding-block: 110px 20px; }
.reviews-head { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; align-items: start; }
.reviews-head h2 { margin-bottom: 20px; font-size: clamp(36px, 5vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.reviews-head > div:last-child > p { max-width: 580px; color: var(--muted); font-size: 18px; }
.reviews-stars { color: #f4b400; font-size: 26px; letter-spacing: .08em; }
.review-images-grid { margin-top: 58px; columns: 3; column-gap: 16px; }
.review-image-card { break-inside: avoid; margin: 0 0 16px; overflow: hidden; background: #22252b; border: 1px solid var(--line); }
.review-image-card a { display: block; }
.review-image-card img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.review-image-card:hover img { transform: scale(1.012); }
.reviews-link { margin-top: 26px; }

.featured { padding-block: 110px; }
.featured-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.featured-head a { margin-bottom: 16px; font-weight: 800; text-underline-offset: 5px; }
.service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.service-card { background: var(--paper); min-height: 290px; padding: 28px; display: flex; flex-direction: column; border-top: 4px solid var(--lime); }
.service-card > span { font-size: 12px; font-weight: 800; color: var(--muted); }
.service-card h3 { margin-top: auto; font-size: 24px; line-height: 1.2; }
.service-card p { color: var(--muted); font-size: 14px; }

.page-hero { min-height: 540px; padding-block: 100px 80px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1000px; }
.business-layout { padding-block: 100px; display: grid; grid-template-columns: 1.45fr .55fr; gap: 90px; }
.address-card { background: var(--lime); padding: 38px; min-height: 380px; display: flex; flex-direction: column; }
.address-card > p { text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.address-card address { margin-top: auto; font-size: 19px; font-style: normal; }
.address-card strong { font-size: 27px; letter-spacing: -.04em; }
.address-line { border-top: 1px solid rgba(8,9,8,.35); margin: 30px 0 20px; }
.address-card > span { font-weight: 800; }
.services-section { padding-block: 90px 120px; display: grid; grid-template-columns: .55fr 1.45fr; gap: 60px; }
.services-list article { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 34px 0; border-top: 1px solid var(--line); }
.services-list article > span { color: var(--muted); font-size: 13px; font-weight: 800; }
.services-list h2 { margin-bottom: 8px; font-size: clamp(25px, 3.3vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
.services-list p { color: var(--muted); max-width: 680px; }

.dashboard, .login-section { padding-block: 90px 130px; min-height: 650px; }
.dashboard h1, .login-card h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.06em; }
.dashboard > p { max-width: 680px; }
.dashboard-list { margin-top: 56px; background: var(--paper); }
.dashboard-list div { padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.dashboard-list span { color: var(--muted); }
.login-card { width: min(520px, 100%); margin: 0 auto; background: var(--paper); padding: 42px; }
.login-card h1 { font-size: 42px; }
.login-card form { display: grid; gap: 10px; }
.login-card label { font-weight: 800; font-size: 13px; margin-top: 12px; }
.login-card input { height: 50px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font: inherit; }
.login-card button { margin-top: 20px; }
.client-portal { padding-block: 90px 130px; min-height: 650px; }
.client-portal h1 { font-size: clamp(48px, 7vw, 88px); line-height: .95; letter-spacing: -.06em; margin-block: 18px; }
.client-portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.invoice-list { display: grid; margin-top: 28px; }
.invoice-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.invoice-row h2 { margin: 4px 0 8px; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.04em; }
.invoice-row p { margin: 0; }
.invoice-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.empty-invoices { margin-top: 40px; padding: 46px; background: var(--paper); }
.empty-invoices h2 { margin-top: 0; }
.form-error { background: #fee5e5; padding: 12px 14px; font-size: 14px; }

.site-footer { background: var(--ink); color: var(--paper); padding: 70px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 50px; }
.footer-brand { color: var(--lime); font-size: 24px; font-weight: 800; }
.footer-label { color: var(--lime); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.site-footer address { font-style: normal; color: #b9bbae; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-address { text-decoration: none; }
.footer-address:hover address { color: var(--lime); }
.footer-phone { color: var(--lime); font-weight: 800; margin-top: 12px; text-underline-offset: 4px; }
.footer-access { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-access a, .footer-access button { color: var(--paper); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

.contact-section { padding-block: 90px 120px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card { min-height: 360px; padding: 38px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.contact-card:hover { transform: translateY(-6px); }
.contact-card > span { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.contact-card h2 { margin: auto 0 12px; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.055em; }
.contact-card p { font-size: 17px; }
.contact-card strong { margin-top: 24px; }
.contact-map { background: var(--lime); }
.contact-phone { background: var(--paper); border: 1px solid var(--line); }
.contact-phone h2 { margin-block: auto; }
.contact-form-section { padding-block: 20px 120px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-form-heading h2 { font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -.055em; }
.contact-form { background: var(--paper); padding: 38px; display: grid; gap: 22px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 13px; font-weight: 800; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 14px; color: var(--ink); font: inherit; border-radius: 0; }
.form-field input { min-height: 52px; }
.form-field textarea { resize: vertical; min-height: 160px; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--lime); outline-offset: 2px; }
.field-error { margin: 0; color: #a51d1d; font-size: 13px; }
.has-error input, .has-error textarea { border-color: #a51d1d; }
.form-success { margin: 0; padding: 14px 16px; background: var(--lime); font-weight: 700; }
.contact-form .button { justify-self: start; }

@media (max-width: 900px) {
    .site-header { min-height: 82px; position: relative; }
    .brand img { width: 54px; height: 54px; }
    .nav-toggle { display: block; }
    .primary-nav { display: none; position: absolute; z-index: 10; top: 82px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); color: var(--paper); padding: 14px; }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 14px; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-mark { justify-self: center; max-width: 390px; }
    .intro, .why-heading, .reviews-head, .business-layout, .services-section, .contact-section, .contact-form-section { grid-template-columns: 1fr; gap: 30px; }
    .reasons-grid { grid-template-columns: repeat(2, 1fr); }
    .reasons-grid article:nth-child(2) { border-right: 0; }
    .service-row { grid-template-columns: 1fr; }
    .review-images-grid { columns: 2; }
    .service-card { min-height: 230px; }
    .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .shell, .site-header { width: min(100% - 30px, 1180px); }
    .brand span { display: none; }
    .hero { padding-block: 60px; gap: 44px; }
    .hero h1, .page-hero h1 { font-size: 50px; }
    .hero-lead, .page-hero > p:not(.eyebrow) { font-size: 16px; }
    .hero-actions .button { width: 100%; }
    .intro, .featured, .business-layout { padding-block: 70px; }
    .why-section { padding-block: 70px; }
    .reasons-grid { grid-template-columns: 1fr; }
    .reasons-grid article, .reasons-grid article + article { border-right: 0; padding: 24px 0; }
    .reasons-grid article + article { border-top: 1px solid #3b3d36; }
    .reasons-grid h3 { margin-top: 28px; }
    .featured-head { display: block; }
    .review-images-grid { columns: 1; }
    .reviews-link { width: 100%; }
    .page-hero { min-height: auto; padding-block: 70px 55px; }
    .services-section { padding-block: 65px 90px; }
    .services-list article { grid-template-columns: 42px 1fr; }
    .address-card { min-height: 320px; }
    .dashboard-list div { flex-direction: column; gap: 4px; }
    .login-card { padding: 28px 20px; }
    .client-portal-head, .invoice-row { align-items: flex-start; flex-direction: column; }
    .invoice-row .button { width: 100%; text-align: center; }
    .empty-invoices { padding: 28px 20px; }
    .contact-form { padding: 24px 18px; }
    .contact-form .button { width: 100%; }
    .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.service-list-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-top: 1px solid rgba(20, 20, 20, 0.14);
}

.service-list-item:last-child {
    border-bottom: 1px solid rgba(20, 20, 20, 0.14);
}

.service-number {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.45;
    padding-top: 8px;
}

.service-list-content h2 {
    margin: 0 0 12px;
}

.service-list-content p {
    max-width: 760px;
    margin: 0 0 22px;
    line-height: 1.7;
}

.service-detail-link {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.service-detail-link:hover {
    transform: translateX(5px);
}

@media (max-width: 700px) {
    .service-list-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 28px 0;
    }

    .service-number {
        padding-top: 0;
    }
}

.service-detail-hero {
    padding-top: 90px;
    padding-bottom: 70px;
}

.service-detail-hero h1 {
    max-width: 900px;
    margin-bottom: 24px;
}

.service-detail-lead {
    max-width: 760px;
    font-size: 1.2rem;
    line-height: 1.7;
}

.service-detail-content {
    padding-bottom: 100px;
}

.service-description {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    padding: 60px 0;
    border-top: 1px solid rgba(20, 20, 20, 0.14);
}

.service-description-text {
    max-width: 800px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-description-text p:first-child {
    margin-top: 0;
}


/* Ценоразпис */

.service-pricing {
    padding: 60px 0;
    border-top: 1px solid rgba(20, 20, 20, 0.14);
}

.service-pricing-heading {
    margin-bottom: 32px;
}

.service-pricing-heading h2 {
    margin-top: 10px;
}

.price-list {
    border-top: 1px solid rgba(20, 20, 20, 0.18);
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;

    padding: 20px 0;

    border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.price-name {
    font-size: 1rem;
}

.price-value {
    font-weight: 700;
    white-space: nowrap;
    font-size: 1.05rem;
}


/* Контактна секция */

.service-detail-contact {
    margin-top: 30px;
    padding: 60px 0;
    border-top: 1px solid rgba(20, 20, 20, 0.14);
}

.service-detail-contact h2 {
    margin-bottom: 15px;
}

.service-detail-contact p:not(.section-index) {
    max-width: 650px;
    line-height: 1.7;
    margin-bottom: 28px;
}


@media (max-width: 700px) {

    .service-detail-hero {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .service-description {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }

    .service-pricing {
        padding: 40px 0;
    }

    .price-row {
        gap: 20px;
        padding: 17px 0;
    }

    .price-name {
        font-size: 0.95rem;
    }

    .price-value {
        font-size: 0.95rem;
    }
}