/* Epatent — patent bureau landing. Brand green from the E!PATENT logo, slab headings echo its lettering. */
:root {
    --green: #078c36;
    --green-deep: #0b4f27;
    --green-ink: #06371b;
    --green-tint: #e9f4ec;
    --ink: #1d2621;
    --muted: #5b6760;
    --line: #dce4de;
    --paper: #f5f7f4;
    --white: #ffffff;
    --sun: #ffe400;
    --head: 'Bitter', Georgia, serif;
    --body: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
    --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    font: 400 16px/1.6 var(--body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 26px;
    font: 600 16px/1.2 var(--body);
    border-radius: var(--radius); border: 2px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-deep); }
.btn-sun { background: var(--sun); color: var(--green-ink); }
.btn-sun:hover { background: #fff27a; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.hd {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}
.hd-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.hd-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.hd-logo img { width: 52px; height: auto; }
.hd-logo b { display: block; font: 800 22px/1 var(--head); color: var(--green); }
.hd-logo small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.hd-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hd-nav a {
    padding: 10px 12px; border-radius: var(--radius);
    color: var(--ink); text-decoration: none; font-weight: 500;
}
.hd-nav a:hover { color: var(--green); background: var(--green-tint); }
.hd-nav .hd-shop { margin-left: 8px; border: 2px solid var(--green); color: var(--green); font-weight: 600; }
.hd-nav .hd-shop:hover { background: var(--green); color: var(--white); }
.hd-phones { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; flex-shrink: 0; }
.hd-phones a { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.hd-phones a:hover { color: var(--green); }
.hd-burger { display: none; }

@media (max-width: 1080px) {
    .hd-phones a + a { display: none; }
}
@media (max-width: 900px) {
    .hd-row { gap: 12px; min-height: 64px; }
    .hd-logo img { width: 44px; }
    .hd-phones { margin-left: auto; }
    .hd-burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; padding: 0 11px;
        background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
        order: 3;
    }
    .hd-burger span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
    .hd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .hd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hd-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 16px 16px; background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(6, 55, 27, .12);
    }
    .hd-nav.is-open { display: flex; }
    .hd-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .hd-nav .hd-shop { margin: 12px 0 0; text-align: center; border-radius: var(--radius); }
}
@media (max-width: 420px) {
    .hd-logo small { display: none; }
    .hd-phones a { font-size: 14px; }
}

/* Hero */
.hero {
    position: relative; color: var(--white);
    background:
        linear-gradient(100deg, rgba(6, 55, 27, .96) 0%, rgba(11, 79, 39, .9) 45%, rgba(11, 79, 39, .55) 100%),
        url(/images/s1.jpg) center / cover no-repeat;
}
.hero-row { display: grid; grid-template-columns: 1.2fr minmax(320px, 400px); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero-sub { margin-top: 18px; font-size: clamp(17px, 1.8vw, 20px); max-width: 560px; color: rgba(255, 255, 255, .9); }
.hero-points { margin-top: 32px; display: grid; gap: 12px; max-width: 520px; }
.hero-points li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .92); }
.hero-points li::before {
    content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 9px;
    border-left: 3px solid var(--sun); border-bottom: 3px solid var(--sun); transform: rotate(-45deg);
}

/* The consultation slip: a paper application form laid over the hero */
.slip {
    position: relative;
    background: var(--white); color: var(--ink);
    border-radius: var(--radius); padding: 28px 28px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    border-top: 6px solid var(--sun);
}
.slip-head h2 { font-size: 24px; }
.slip-head p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.slip .field { margin-top: 18px; }
.slip .btn { margin-top: 20px; }
.slip-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 860px) {
    .hero-row { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 48px; }
    .hero-points { margin-top: 24px; }
}

/* Forms */
.field { display: block; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
    width: 100%; min-height: 48px; padding: 10px 14px;
    font: 400 16px var(--body); color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.field input:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(7, 140, 54, .18); }
.field input[aria-invalid="true"] { border-color: #c62828; }
.form-error { margin-top: 12px; color: #c62828; font-size: 14px; }
.form-done h2 { font-size: 24px; color: var(--green); }
.form-done p { margin-top: 10px; color: var(--muted); }
.lead-form.is-done > :not(.form-done):not(.modal-close) { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Services */
.services { padding: 88px 0; background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc {
    display: flex; align-items: center; gap: 16px;
    min-height: 92px; padding: 18px 20px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35;
    transition: border-color .2s, box-shadow .2s;
}
.svc:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(6, 55, 27, .1); }
.svc-icon {
    position: relative; flex-shrink: 0;
    display: grid; place-items: center; width: 56px; height: 56px;
    border-radius: 50%; background: var(--green-tint);
}
.svc-icon img { grid-area: 1 / 1; transition: opacity .2s; }
.svc-icon-hover { opacity: 0; }
.svc:hover .svc-icon img:first-child { opacity: 0; }
.svc:hover .svc-icon-hover { opacity: 1; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } .services { padding: 56px 0; } }

/* Attorney video */
.attorney { padding: 88px 0; }
.attorney-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--green-ink); }
.video iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: none; }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-btn {
    position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
    border-radius: 50%; background: var(--green); box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    transition: transform .2s;
}
.video-btn::after {
    content: ""; position: absolute; left: 31px; top: 24px;
    border-left: 22px solid var(--white); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video-play:hover .video-btn { transform: scale(1.08); }
.attorney-role { margin-top: 8px; color: var(--green); font-weight: 600; }
.attorney-text > p:not(.attorney-role) { margin-top: 18px; color: var(--muted); }
.attorney-text .btn { margin-top: 28px; }
@media (max-width: 860px) { .attorney-row { grid-template-columns: 1fr; gap: 28px; } .attorney { padding: 56px 0; } }

/* Registration processes */
.process { padding: 24px 0 64px; }
.proc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 48px 0; }
.proc + .proc { border-top: 1px solid var(--line); }
.proc-flip .proc-img { order: 2; }
.proc-img img { width: 100%; max-width: 440px; margin: 0 auto; }
.proc-lead { margin-top: 10px; color: var(--muted); font-size: 17px; }
.steps { margin-top: 24px; counter-reset: step; }
.steps li {
    position: relative; counter-increment: step;
    padding: 0 0 18px 48px; min-height: 34px;
}
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: -3px;
    width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 50%; background: var(--green-tint); color: var(--green);
    font: 700 15px/1 var(--head);
}
.steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 15px; top: 31px; bottom: 0; width: 2px; background: var(--line);
}
.steps li:last-child::before { background: var(--green); color: var(--white); }
.steps li:last-child { font-weight: 600; padding-bottom: 0; }
.proc .btn { margin-top: 28px; }
@media (max-width: 860px) {
    .proc { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
    .proc-flip .proc-img { order: 0; }
    .proc-img img { max-width: 300px; }
}

/* Patentability */
.patentable { padding: 88px 0; background: var(--paper); }
.patentable-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.patentable-text > p { margin-top: 16px; color: var(--muted); }
.criteria { margin: 28px 0 32px; display: grid; gap: 20px; }
.criteria dt { display: flex; align-items: center; gap: 14px; font: 700 18px/1.3 var(--head); }
.criteria dt img { width: 36px; flex-shrink: 0; }
.criteria dd { margin: 4px 0 0 50px; color: var(--muted); }
.patentable-img img { border-radius: var(--radius); mix-blend-mode: multiply; }
@media (max-width: 860px) {
    .patentable-row { grid-template-columns: 1fr; gap: 24px; }
    .patentable-img { order: -1; max-width: 360px; }
    .patentable { padding: 56px 0; }
}

/* Benefits */
.benefits { padding: 88px 0; }
.benefits-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: center; }
.benefits-col { display: grid; gap: 40px; }
.benefits-col li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
.benefits-col img { grid-row: span 2; width: 34px; align-self: start; margin-top: 2px; }
.benefits-col b { font: 700 19px/1.3 var(--head); }
.benefits-col span { color: var(--muted); grid-column: 2; }
.benefits-left li { grid-template-columns: 1fr 40px; text-align: right; }
.benefits-left img { grid-column: 2; grid-row: 1 / span 2; }
.benefits-left b, .benefits-left span { grid-column: 1; grid-row: auto; }
.benefits-logo img { width: 220px; border: 1px solid var(--line); }
@media (max-width: 860px) {
    .benefits-row { grid-template-columns: 1fr; gap: 32px; }
    .benefits-logo { order: -1; justify-self: center; }
    .benefits-logo img { width: 160px; }
    .benefits-left li { grid-template-columns: 40px 1fr; text-align: left; }
    .benefits-left img { grid-column: 1; }
    .benefits-left b, .benefits-left span { grid-column: 2; }
    .benefits { padding: 56px 0; }
}

/* Call to action band */
.cta { background: var(--green-deep); color: var(--white); padding: 56px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { max-width: 680px; }
.cta .btn { flex-shrink: 0; }
@media (max-width: 760px) { .cta-row { flex-direction: column; align-items: flex-start; } }

/* Depository */
.deposit { padding: 88px 0; }
.deposit-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.deposit-lead { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 620px; }
.docs { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.docs a {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 4px; border-bottom: 1px solid var(--line);
    color: var(--ink); text-decoration: none;
}
.docs a:hover .doc-title { color: var(--green); text-decoration: underline; }
.doc-ext {
    flex-shrink: 0; width: 48px; padding: 5px 0; text-align: center;
    font: 700 12px/1 var(--body); letter-spacing: .03em;
    border-radius: 4px; background: #fbe9e7; color: #b3261e;
}
.doc-xlsx { background: var(--green-tint); color: var(--green); }
.doc-title { flex: 1; font-weight: 500; }
.doc-size { flex-shrink: 0; font-size: 14px; color: var(--muted); }
.deposit-img img { max-width: 400px; margin: 0 auto; }
@media (max-width: 860px) {
    .deposit-row { grid-template-columns: 1fr; gap: 24px; }
    .deposit-img { order: -1; }
    .deposit-img img { max-width: 260px; }
    .deposit { padding: 56px 0; }
}
@media (max-width: 480px) { .doc-size { display: none; } }

/* Partner sites */
.partners { padding: 0 0 88px; }
.partners-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partner { padding: 40px; border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; }
.partner h2 { font-size: clamp(22px, 2.4vw, 28px); }
.partner .btn { margin-top: auto; }
.partner-shop {
    color: var(--white);
    background: linear-gradient(rgba(29, 38, 33, .88), rgba(29, 38, 33, .88)), url(/images/buy.jpg) center / cover;
}
.partner-shop h2 { color: var(--sun); }
.partner-shop .ticks { margin: 24px 0 32px; }
.partner-exchange { background: var(--paper); border: 1px solid var(--line); }
.partner-exchange img { margin-bottom: 24px; mix-blend-mode: multiply; }
.partner-exchange p { margin: 14px 0 32px; color: var(--muted); }
@media (max-width: 860px) {
    .partners-row { grid-template-columns: 1fr; }
    .partner { padding: 28px 20px; }
    .partners { padding-bottom: 56px; }
}

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
    content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 7px;
    border-left: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(-45deg);
}
.ticks-dark li::before { border-color: var(--green); }

/* Design */
.design { padding: 72px 0; background: #fff6d1; }
.design-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.design-img img { mix-blend-mode: multiply; }
.design-text > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.design-text .ticks { margin: 24px 0 32px; }
@media (max-width: 860px) { .design-row { grid-template-columns: 1fr; gap: 24px; } .design { padding: 56px 0; } }

/* Contacts */
.contacts-row { display: grid; grid-template-columns: minmax(320px, 1fr) 2fr; min-height: 440px; }
.contacts-info { padding: 56px max(24px, calc((100vw - 1200px) / 2 + 24px)); padding-right: 40px; background: var(--paper); }
.contacts-info h3 { font: 700 18px/1.3 var(--head); margin-top: 28px; }
.contacts-info > p { margin-top: 8px; color: var(--muted); }
.phones { margin-top: 20px; display: grid; gap: 16px; }
.phones li { display: flex; flex-direction: column; }
.phones span { font-size: 14px; color: var(--muted); }
.phones a { color: var(--ink); text-decoration: none; font-weight: 600; }
.phones a + a { font-weight: 400; color: var(--green); }
.phones a:hover { text-decoration: underline; }
.contacts-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (max-width: 860px) {
    .contacts-row { grid-template-columns: 1fr; }
    .contacts-info { padding: 48px 16px; }
}

/* Footer */
.ft { background: var(--green-ink); color: rgba(255, 255, 255, .62); padding: 40px 0; font-size: 13px; }
.ft-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ft-text { max-width: 820px; display: grid; gap: 8px; }
.ft-copy { color: var(--white); font-size: 15px; }
.ft-logos { display: flex; gap: 16px; flex-shrink: 0; }
.ft-logos img { width: 64px; border-radius: 3px; }
@media (max-width: 700px) { .ft-row { flex-direction: column; align-items: flex-start; } }

/* Request modal */
.modal {
    width: min(440px, calc(100% - 32px)); padding: 0;
    border: 0; border-radius: var(--radius); border-top: 6px solid var(--green);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.modal::backdrop { background: rgba(6, 55, 27, .6); }
.modal form { position: relative; padding: 32px 28px 28px; }
.modal h2 { font-size: 24px; padding-right: 32px; }
.modal-topic { margin-top: 6px; color: var(--green); font-weight: 600; }
.modal-topic:empty { display: none; }
.modal-hint { margin-top: 10px; color: var(--muted); font-size: 15px; }
.modal .field { margin-top: 18px; }
.modal .btn { margin-top: 22px; }
.modal-close {
    position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
    border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%;
}
.modal-close:hover { background: var(--paper); color: var(--ink); }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
    width: max-content; max-width: calc(100% - 32px);
    padding: 14px 20px; border-radius: var(--radius);
    background: var(--green-ink); color: var(--white); box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

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