:root {
    --bg: #fcfcfb;
    --panel: #ffffff;
    --ink: #0f1115;
    --body: #4a5260;
    --muted: #7d8593;
    --line: #ececea;
    --soft: #f5f5f3;
    --softer: #fafaf8;
    --blue: #0078d4;
    --blue-hover: #006bbe;
    --shadow-card: 0 1px 2px rgba(15,17,21,0.04), 0 12px 28px rgba(15,17,21,0.07);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.privacy-page {
    display: flex;
    flex-direction: column;
}

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

.container {
    width: min(1120px, calc(100% - 3rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 252, 251, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.privacy-page .topbar-inner {
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    mix-blend-mode: multiply;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}

.nav-links a,
.nav-link {
    color: var(--body);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-link:hover {
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.7rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,120,212,0.16);
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    color: #fff;
}

.btn-muted {
    background: var(--soft);
    border-color: #e0e0dc;
    color: var(--muted);
    cursor: default;
}

.btn-muted:hover {
    transform: none;
    box-shadow: none;
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo-link {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 180px;
    width: 45vw;
    height: auto;
}

/* Home */
.hero {
    padding: 2.2rem 0 3.2rem;
    text-align: center;
}

.hero-logo {
    display: block;
    width: min(280px, 58vw);
    height: auto;
    margin: 0 auto 1.2rem;
}

.hero-copy {
    max-width: 650px;
    margin: 0.7rem auto 0;
    color: var(--body);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    font-weight: 350;
    line-height: 1.55;
}

.product-section {
    padding: 1.4rem 0 5rem;
}

.section-head {
    margin-bottom: 1.25rem;
}

.section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 740;
    letter-spacing: 0;
    line-height: 1.08;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    padding: 1rem;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.product-media img {
    display: block;
    width: min(100%, 250px);
    max-height: 180px;
    object-fit: contain;
}

.obstructus .product-media img {
    width: min(100%, 360px);
    max-height: 190px;
    transform: scale(1.35);
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.3rem;
}

.product-card p {
    margin-bottom: 1.3rem;
    color: var(--body);
    font-size: 0.98rem;
    line-height: 1.55;
}

.product-card .btn {
    width: fit-content;
    margin-top: auto;
}

.subscribe {
    padding: 5rem 1.5rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.subscribe h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.subscribe p {
    color: var(--body);
    margin-bottom: 1.6rem;
}

.subscribe form {
    display: inline-flex;
    gap: 0.6rem;
    max-width: 460px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe input {
    flex: 1 1 240px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ink);
    outline: none;
}

.subscribe input:focus {
    border-color: var(--blue);
}

.subscribe button {
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.subscribe button:hover {
    background: var(--blue-hover);
}

.subscribe button:disabled {
    background: #b8c0cb;
    cursor: not-allowed;
}

.subscribe-status {
    width: 100%;
    min-height: 1.3rem;
    font-size: 0.9rem;
    color: var(--body);
}

.subscribe-status.error {
    color: #a8312f;
}

.subscribe-status.success {
    color: #1f6f3e;
}

.subscribe-fineprint {
    width: 100%;
    font-size: 0.82rem;
    color: var(--body);
    opacity: 0.75;
    margin-top: 0.2rem;
}

.subscribe-fineprint a {
    color: inherit;
}

/* Contact */
.contact-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-page h1,
.privacy-main h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
    letter-spacing: 0;
}

.meta {
    font-size: 0.95rem;
    color: var(--body);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-page form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: 0 1px 2px rgba(15,17,21,0.04);
}

.contact-page label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.contact-page select,
.contact-page textarea,
.contact-page input[type="email"] {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d8d8d4;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.contact-page select:focus,
.contact-page textarea:focus,
.contact-page input[type="email"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,120,212,0.15);
}

.contact-page textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.contact-page select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%237d8593' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}

.field {
    margin-bottom: 1.1rem;
}

.hint {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.4rem;
    line-height: 1.4;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--body);
}

.contact-page .checkbox-line {
    font-weight: 400;
}

.checkbox-line input {
    flex: 0 0 auto;
}

.counter {
    flex: 0 0 auto;
    white-space: nowrap;
}

.counter.over {
    color: #d04a4a;
    font-weight: 600;
}

.field-error {
    display: none;
    font-size: 0.82rem;
    color: #d04a4a;
    margin-top: 0.4rem;
}

.field.invalid .field-error {
    display: block;
}

.field.invalid select,
.field.invalid textarea,
.field.invalid input[type="email"] {
    border-color: #d04a4a;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

button.submit {
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

button.submit:hover:not(:disabled) {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,120,212,0.18);
}

button.submit:disabled {
    background: #b8c0cb;
    border-color: #b8c0cb;
    cursor: not-allowed;
}

.email-instead {
    font-size: 0.92rem;
    color: var(--blue);
}

.email-instead:hover {
    color: var(--blue-hover);
    text-decoration: underline;
}

.sending-text {
    font-size: 0.88rem;
    color: var(--muted);
}

.status {
    margin-top: 1.2rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
    display: none;
}

.status.success {
    display: block;
    background: #e9f7ef;
    color: #1f6f3e;
    border: 1px solid #c8e6d3;
}

.status.error {
    display: block;
    background: #fdecec;
    color: #a8312f;
    border: 1px solid #f3c8c8;
}

.privacy-consent {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.privacy-consent a {
    color: var(--blue);
    text-decoration: underline;
}

/* Privacy */
.privacy-main {
    flex: 1;
    width: min(760px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 4.5rem 0;
}

.privacy-main p {
    color: var(--body);
    margin-bottom: 1rem;
}

.privacy-main h2 {
    font-size: 1.2rem;
    color: var(--ink);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.privacy-main ul {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.privacy-main li {
    color: var(--body);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-main .email-protect {
    unicode-bidi: bidi-override;
    direction: rtl;
}

/* Footer */
.site-footer {
    background: var(--softer);
    border-top: 1px solid var(--line);
    padding: 3.5rem 1.5rem 2rem;
}

.contact-page .site-footer {
    margin-top: 3rem;
}

.footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand .brand {
    margin-bottom: 0.8rem;
}

.footer-brand p {
    max-width: 280px;
    color: var(--body);
    font-size: 0.88rem;
    line-height: 1.55;
}

.footer-col h4 {
    margin-bottom: 0.9rem;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-col a,
.footer-col span {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--body);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    max-width: 1120px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.82rem;
}

.privacy-footer {
    padding: 1.8rem 1.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
}

@media (max-width: 920px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

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

    .product-media {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 2rem, 1120px);
    }

    .topbar-inner {
        gap: 0.75rem;
        padding: 0.65rem 1rem;
    }

    .brand {
        gap: 0.45rem;
        font-size: 0.95rem;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .product-card {
        display: flex;
    }

    .product-media {
        min-height: 190px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .product-media img {
        max-height: 160px;
    }
}
