:root {
    --blue: #155bb7;
    --blue-dark: #0d458e;
    --blue-soft: #eaf3ff;
    --ink: #172033;
    --muted: #687386;
    --line: #e2e8f0;
    --surface: #fff;
    --surface-alt: #f5f8fc;
    --green: #16794a;
    --radius: 16px;
    --shadow: 0 10px 30px rgb(23 32 51 / 8%);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface-alt);
    font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 96%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.site-header__row {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.brand:hover {
    text-decoration: none;
}

.brand__text strong {
    color: var(--blue);
}

.brand__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 3px solid var(--blue);
    border-radius: 8px 8px 2px;
}

.brand__mark span {
    width: 2px;
    height: 22px;
    background: var(--blue);
    box-shadow: 8px 0 0 var(--blue);
    transform: translateX(-4px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.main-nav a {
    color: #344056;
    font-weight: 650;
}

.main-nav a:hover {
    color: var(--blue);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    line-height: 1.2;
    transition: .18s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 20px rgb(21 91 183 / 18%);
}

.btn--primary:hover {
    background: var(--blue-dark);
}

.btn--secondary {
    background: #fff;
    color: var(--blue);
    border-color: #b8cee9;
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
    transition: .2s;
}

.breadcrumbs {
    padding: 18px 0 8px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs span {
    margin: 0 7px;
}

.company-hero {
    padding: 22px 0 32px;
}

.company-hero__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 30px;
    background: linear-gradient(135deg, #fff 0%, #f3f8ff 100%);
    border: 1px solid #dce8f7;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.company-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 14px;
    font-weight: 750;
}

.company-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.company-location {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.tag {
    padding: 6px 10px;
    color: #29415f;
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pitch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.hero-pitch strong {
    font-size: 20px;
    line-height: 1.25;
}

.hero-pitch p {
    margin: 8px 0 18px;
    color: var(--muted);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr);
    gap: 24px;
    padding-bottom: 30px;
}

.stack {
    display: grid;
    gap: 24px;
}

.card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgb(23 32 51 / 4.5%);
}

.card h2 {
    margin: 0 0 18px;
    font-size: 22px;
    letter-spacing: -.015em;
}

.card h3 {
    margin: 22px 0 10px;
    font-size: 17px;
}

.company-intro {
    margin-top: 0;
    font-size: 17px;
}

.detail-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    margin: 0;
}

.detail-list dt, .detail-list dd {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list dt {
    color: var(--muted);
}

.detail-list dd {
    font-weight: 620;
    overflow-wrap: anywhere;
}

.detail-list dt:last-of-type, .detail-list dd:last-of-type {
    border-bottom: 0;
}

.product-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.product-list li {
    position: relative;
    padding-left: 26px;
}

.product-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-links a {
    padding: 6px 10px;
    background: var(--blue-soft);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.contact-card {
    position: sticky;
    top: 98px;
}

.contact-primary {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.contact-primary a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.contact-primary a:last-child {
    border-bottom: 0;
}

.contact-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cta-panel {
    padding: 26px;
    text-align: center;
    background: var(--blue);
    color: #fff;
    border-radius: var(--radius);
}

.cta-panel h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.cta-panel p {
    margin: 0 0 18px;
    color: #dfeaff;
}

.cta-panel .btn {
    width: 100%;
    background: #fff;
    color: var(--blue-dark);
}

.notice {
    color: var(--muted);
    font-size: 13px;
}

.section-wide {
    padding: 4px 0 48px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.related-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.related-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.site-footer {
    margin-top: 28px;
    padding: 48px 0 0;
    color: #cbd5e1;
    background: #10213a;
}

.site-footer .brand {
    color: #fff;
}

.site-footer .brand__text strong {
    color: #7db7ff;
}

.site-footer .brand__mark {
    border-color: #7db7ff;
}

.site-footer .brand__mark span {
    background: #7db7ff;
    box-shadow: 8px 0 0 #7db7ff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 34px;
}

.footer-grid h2 {
    margin: 3px 0 12px;
    color: #fff;
    font-size: 15px;
}

.footer-grid a {
    display: block;
    padding: 4px 0;
    color: #cbd5e1;
}

.footer-intro {
    max-width: 360px;
    color: #94a3b8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-block: 18px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: #94a3b8;
    font-size: 13px;
}

@media (width <= 900px) {
    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        padding: 12px 16px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        padding: 10px 4px;
    }

    .company-hero__box, .content-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (width <= 620px) {
    .container {
        width: min(calc(100% - 22px), var(--max));
    }

    .site-header__row {
        min-height: 66px;
    }

    .main-nav {
        top: 66px;
    }

    .brand {
        font-size: 17px;
    }

    .brand__mark {
        width: 30px;
        height: 30px;
    }

    .company-hero {
        padding-top: 10px;
    }

    .company-hero__box {
        padding: 20px;
        border-radius: 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .card {
        padding: 20px;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .detail-list dt {
        padding: 9px 0 0;
        border-bottom: 0;
    }

    .detail-list dd {
        padding-top: 2px;
    }

    .related-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand__logo {
    display: block;
    width: auto;
    height: 62px;
    max-width: 100%;
}

@media (width <= 1100px) {
    .brand__logo {
        height: 54px;
    }
}

@media (width <= 600px) {
    .brand__logo {
        height: 46px;
    }
}

/* =========================================================
   Cookies
   ========================================================= */

.cookie-banner[hidden],
.cookie-settings[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    box-shadow:
            0 10px 40px rgb(22 42 70 / 16%);
}

.cookie-banner__content {
    flex: 1;
}

.cookie-banner__title {
    display: block;
    margin-bottom: 5px;
    color: #172b4d;
    font-size: 17px;
}

.cookie-banner p {
    margin: 0;
    color: #52657a;
    font-size: 14px;
    line-height: 1.55;
}

.cookie-banner__settings-link,
.footer-cookie-link {
    padding: 0;
    background: none;
    border: 0;
    color: #155bb7;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__settings-link {
    margin-top: 7px;
    font-size: 13px;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    white-space: nowrap;
}

.cookie-btn--necessary {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #26384a;
}

.cookie-btn--necessary:hover {
    background: #f4f7fa;
}


/* Nastavení */

.cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 30 50 / 55%);
}

.cookie-settings__box {
    position: relative;
    z-index: 1;
    width: min(100%, 600px);
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
            0 20px 60px rgb(0 0 0 / 25%);
}

.cookie-settings__box h2 {
    margin: 0 40px 22px 0;
}

.cookie-settings__close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #52657a;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid #e7ebf0;
}

.cookie-option p {
    margin: 5px 0 0;
    color: #607286;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-option__status {
    flex-shrink: 0;
    color: #48705b;
    font-size: 13px;
    font-weight: 700;
}

.cookie-settings__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}


/* Přepínač */

.cookie-switch {
    position: relative;
    display: block;
    flex: 0 0 46px;
    width: 46px;
    height: 26px;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-switch__slider {
    position: absolute;
    inset: 0;
    background: #c7d0da;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.cookie-switch__slider::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    content: "";
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
    transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
    background: #155bb7;
}

.cookie-switch input:checked + .cookie-switch__slider::before {
    transform: translateX(20px);
}

.cookie-settings-open {
    overflow: hidden;
}


/* Mobil */

@media (width <= 700px) {
    .cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .cookie-banner__inner {
        display: block;
        padding: 18px;
    }

    .cookie-banner__actions {
        margin-top: 16px;
    }

    .cookie-banner__actions .btn {
        flex: 1;
        padding-right: 12px;
        padding-left: 12px;
    }

    .cookie-option {
        align-items: flex-start;
    }

    .cookie-settings__box {
        padding: 22px;
    }
}

/* =========================================================
   PRO DODAVATELE
   ========================================================= */

.supplier-hero {
    padding: 72px 0;
    background:
            linear-gradient(
                    135deg,
                    #f3f8fc 0%,
                    #fff 65%
            );
}

.supplier-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
    gap: 64px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #e97817;
}

.supplier-hero h1 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.supplier-hero__lead {
    max-width: 720px;
    margin: 0 0 30px;
    font-size: 20px;
    line-height: 1.6;
    color: #475569;
}

.supplier-hero__actions,
.supplier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.supplier-hero__note {
    margin: 18px 0 0;
    font-size: 14px;
    color: #64748b;
}


/* NABÍDKA */

.supplier-offer {
    padding: 32px;
    background: #fff;
    border: 1px solid #dbe5ee;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgb(22 79 134 / 10%);
}

.supplier-offer__free,
.supplier-offer__paid {
    text-align: center;
}

.supplier-offer__label {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 8px;
    background: #eaf6ee;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #24713d;
}

.supplier-offer__number {
    display: block;
    font-size: 72px;
    line-height: 1;
    color: #164f86;
}

.supplier-offer__text {
    display: block;
    margin-top: 8px;
    color: #475569;
}

.supplier-offer__divider {
    height: 1px;
    margin: 28px 0;
    background: #e2e8f0;
}

.supplier-offer__paid strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

.supplier-offer__price {
    margin: 8px 0 2px;
    font-size: 38px;
    font-weight: 800;
    color: #e97817;
}


/* SEKCE */

.supplier-section {
    padding: 76px 0;
}

.supplier-section--soft {
    background: #f6f8fa;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading h2,
.supplier-section h2 {
    margin-top: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading > p:last-child,
.supplier-section p {
    line-height: 1.7;
    color: #526170;
}


/* KROKY */

.supplier-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.supplier-step {
    padding: 28px;
    border: 1px solid #e0e6eb;
    border-radius: 14px;
    background: #fff;
}

.supplier-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #164f86;
    font-weight: 700;
    color: #fff;
}

.supplier-step h3 {
    margin: 0 0 10px;
    font-size: 21px;
}


/* DVA SLOUPCE */

.supplier-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: center;
}


/* CENA */

.supplier-price-card {
    max-width: 430px;
    padding: 34px;
    margin-left: auto;
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgb(0 0 0 / 6%);
}

.supplier-price-card__label {
    font-weight: 700;
    color: #164f86;
}

.supplier-price-card__price {
    margin: 10px 0 15px;
    font-size: 54px;
    line-height: 1;
    font-weight: 800;
    color: #e97817;
}

.supplier-price-card__price small {
    font-size: 20px;
}

.btn--block {
    display: block;
    width: 100%;
    margin-top: 24px;
    text-align: center;
}


/* EXISTUJÍCÍ FIRMA */

.supplier-existing {
    padding: 32px;
    border-radius: 14px;
    background: #f6f8fa;
}

.supplier-existing h3 {
    margin-top: 0;
}

.supplier-existing hr {
    height: 1px;
    margin: 28px 0;
    border: 0;
    background: #dce3e8;
}

.text-link {
    font-weight: 700;
    color: #164f86;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}


/* CTA */

.supplier-cta {
    padding: 60px 0;
    background: #123f69;
    color: #fff;
}

.supplier-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.supplier-cta h2 {
    margin: 0 0 8px;
    font-size: 32px;
    color: #fff;
}

.supplier-cta p {
    margin: 0;
    color: #d9e5ef;
}


/* RESPONSIVE */

@media (width <= 900px) {
    .supplier-hero {
        padding: 50px 0;
    }

    .supplier-hero__grid,
    .supplier-two-columns {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .supplier-steps {
        grid-template-columns: 1fr;
    }

    .supplier-price-card {
        max-width: none;
        margin-left: 0;
    }

    .supplier-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (width <= 600px) {
    .supplier-section {
        padding: 52px 0;
    }

    .supplier-hero h1 {
        font-size: 38px;
    }

    .supplier-hero__lead {
        font-size: 18px;
    }

    .supplier-offer {
        padding: 26px 20px;
    }

    .supplier-hero__actions .btn,
    .supplier-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   PODMÍNKY PRO DODAVATELE
   ========================================================= */

.terms-hero {
    padding: 64px 0 52px;
    background: linear-gradient(
            135deg,
            #f3f8fc 0%,
            #fff 70%
    );
}

.terms-hero h1 {
    max-width: 800px;
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.terms-hero__lead {
    max-width: 720px;
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    color: #526170;
}

.terms-section {
    padding: 70px 0 90px;
}

.terms-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 70px;
    align-items: start;
}

.terms-content {
    max-width: 800px;
}

.terms-content section {
    padding-bottom: 42px;
    margin-bottom: 42px;
    border-bottom: 1px solid #e2e8f0;
}

.terms-content section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.terms-content h2 {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1.25;
    color: #173f64;
}

.terms-content p {
    margin: 0 0 16px;
    line-height: 1.75;
    color: #4e5d6b;
}

.terms-example {
    padding: 20px 22px;
    margin: 24px 0;
    border-left: 4px solid #164f86;
    background: #f3f7fa;
    border-radius: 0 8px 8px 0;
}

.terms-example strong {
    display: block;
    margin-bottom: 5px;
    color: #164f86;
}

.terms-example p {
    margin: 0;
}

.terms-price {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 25px 0;
}

.terms-price > div {
    padding: 22px;
    background: #f6f8fa;
    border-radius: 10px;
}

.terms-price span {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #64748b;
}

.terms-price strong {
    display: block;
    font-size: 28px;
    color: #164f86;
}

.terms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}


/* SIDEBAR */

.terms-sidebar {
    position: sticky;
    top: 100px;
}

.terms-sidebar__box {
    padding: 28px;
    border: 1px solid #dce5ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgb(0 0 0 / 5%);
}

.terms-sidebar h2 {
    margin: 0 0 20px;
    font-size: 22px;
}

.terms-sidebar dl {
    margin: 0 0 25px;
}

.terms-sidebar dl > div {
    padding: 13px 0;
    border-bottom: 1px solid #e6ebef;
}

.terms-sidebar dt {
    margin-bottom: 3px;
    font-size: 13px;
    color: #64748b;
}

.terms-sidebar dd {
    margin: 0;
    font-weight: 700;
    color: #173f64;
}

.terms-sidebar__back {
    display: block;
    margin-top: 18px;
    text-align: center;
    font-weight: 700;
    color: #164f86;
    text-decoration: none;
}

.terms-sidebar__back:hover {
    text-decoration: underline;
}


/* RESPONSIVE */

@media (width <= 900px) {
    .terms-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .terms-sidebar {
        position: static;
    }

    .terms-content {
        max-width: none;
    }
}

@media (width <= 600px) {
    .terms-hero {
        padding: 45px 0 38px;
    }

    .terms-section {
        padding: 50px 0 65px;
    }

    .terms-price {
        grid-template-columns: 1fr;
    }

    .terms-actions .btn {
        width: 100%;
        text-align: center;
    }
}

.supplier-offer__safe {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f2f8f4;
    font-size: 14px;
    line-height: 1.55;
    color: #356044;
}

/* =========================================================
   REGISTRACE DODAVATELE
   ========================================================= */

.supplier-page-hero {
    padding: 64px 0 38px;
    background: #f7f9fb;
}

.supplier-page-hero h1 {
    margin: 8px 0 14px;
}

.supplier-page-hero__lead {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
}

.supplier-registration {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
}

.company-check {
    margin-bottom: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e2e7eb;
}

.company-search,
.municipality-search {
    position: relative;
}

.company-search {
    margin-top: 24px;
}

.company-search label,
.supplier-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.company-search__input,
.supplier-form input[type="text"],
.supplier-form input[type="email"],
.supplier-form input[type="tel"],
.supplier-form input[type="search"],
.municipality-search__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #cbd4dc;
    border-radius: 8px;
    background: #fff;
    color: #17212b;
    font: inherit;
}

.company-search__input:focus,
.supplier-form input:focus,
.municipality-search__input:focus {
    outline: 2px solid rgb(23 91 153 / 18%);
    border-color: #175b99;
}

.company-search__results,
.municipality-search__results {
    margin-top: 8px;
}

.company-result {
    padding: 15px 16px;
    margin-bottom: 8px;
    border: 1px solid #dde4e9;
    border-radius: 8px;
    background: #fff;
}

.company-result strong {
    display: block;
    margin-bottom: 3px;
}

.company-result__meta {
    color: #66727d;
    font-size: 14px;
}

.company-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 9px;
}

.search-status {
    margin: 8px 0 0;
    padding: 11px 13px;
    border-radius: 7px;
    background: #f4f6f8;
    font-size: 14px;
}

.search-status--empty {
    background: #f7f9fb;
}

.search-status--error {
    background: #fff2f2;
}

.supplier-form {
    margin-top: 28px;
}

.supplier-form__field {
    margin-bottom: 20px;
}

.supplier-form__note {
    margin: 26px 0 20px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f2f8f4;
    color: #356044;
    line-height: 1.55;
}

.municipality-search__results {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgb(0 0 0 / 12%);
}

.municipality-result {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.municipality-result:hover,
.municipality-result:focus {
    background: #f4f7f9;
}

.form-message {
    margin: 24px 0;
    padding: 16px 18px;
    border-radius: 8px;
}

.form-message p:last-child,
.form-message ul:last-child {
    margin-bottom: 0;
}

.form-message--success {
    background: #eef8f1;
}

.form-message--error {
    background: #fff1f1;
}

.supplier-registration__aside {
    position: sticky;
    top: 24px;
}

@media (width <= 900px) {
    .supplier-registration {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .supplier-registration__aside {
        position: static;
    }

}

@media (width <= 600px) {
    .supplier-page-hero {
        padding: 42px 0 28px;
    }

    .company-result__actions {
        flex-direction: column;
        gap: 8px;
    }

}