/* ==========================================================
   RICHTER elektronik — styly webu
   Barvy, velikosti a rozvržení jsou zde oddělené od HTML.
   ========================================================== */

/* 1. Základní nastavení a barvy */
:root {
    --blue: #2879b9;
    --blue-dark: #12466f;
    --blue-pale: #f3f9fe;
    --blue-light: #dff1ff;
    --ink: #18324a;
    --muted: #5c7184;
    --line: #d9e8f3;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* 2. Společné rozvržení */
.container {
    width: min(1160px, calc(100% - 44px));
    margin: 0 auto;
}

.top-bar {
    color: #355d7c;
    background: #e7f4ff;
    font-size: 13px;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
}

/* 3. Hlavička, logo a navigace */
.site-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--blue-dark);
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -0.7px;
}

.brand__logo {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, #68b9ef, #2678b7);
    box-shadow: 0 6px 16px #2879b929;
    font-size: 22px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 27px;
    color: #395b76;
    font-size: 14px;
    font-weight: 700;
}

.navigation a:hover,
.footer-links a:hover {
    color: var(--blue);
}

/* 4. Tlačítka */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 7px 18px #2879b925;
    font-size: 14px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: #1e679f;
}

.button--light {
    color: var(--blue-dark);
    background: var(--white);
    border-color: #c5e0f4;
    box-shadow: none;
}

.button--light:hover {
    background: #f7fbff;
}

.button--small {
    padding: 10px 15px;
}

/* 5. Úvodní sekce */
.hero {
    overflow: hidden;
    background: linear-gradient(115deg, #f1f9ff 0%, #e3f3ff 55%, #d5ebfc 100%);
}

.hero__grid {
    min-height: 510px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 25px;
    height: 2px;
    background: currentColor;
    content: "";
}

.hero h1 {
    margin: 19px 0;
    color: #163b59;
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 1.09;
    letter-spacing: -2.5px;
}

.hero h1 span {
    color: var(--blue);
}

.hero__text {
    max-width: 530px;
    margin: 0 0 27px;
    color: #526e84;
    font-size: 17px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__image-area {
    position: relative;
    min-height: 365px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero__image-area::before {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid #7ab7e355;
    border-radius: 50%;
    box-shadow: 0 0 0 38px #ffffff44, 0 0 0 76px #ffffff33;
    content: "";
}

.hero__image {
    position: relative;
    display: block;
    width: 100%;
    height: 320px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 16px 40px #376f9618;
    object-fit: contain;
}

.hero__note {
    position: relative;
    align-self: flex-start;
    max-width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--white);
    box-shadow: 0 8px 24px #24577910;
    font-size: 13px;
}

.hero__note strong {
    display: block;
    color: var(--blue-dark);
    font-size: 15px;
}

/* 6. Nadpisy a společné sekce */
.section {
    padding: 78px 0;
}

.section--pale {
    background: var(--blue-pale);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 35px;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
}

.section-heading h2,
.contact-section h2 {
    margin: 13px 0;
    color: #183e5d;
    font-size: clamp(29px, 3.5vw, 42px);
    line-height: 1.2;
    letter-spacing: -1.3px;
}

.section-heading > p:last-child {
    margin: 0;
    color: var(--muted);
}

/* 7. Velké produktové karty */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 34px #255b7b0a;
}

.feature-card__image {
    height: 245px;
    display: grid;
    place-items: center;
    padding: 18px;
    border-bottom: 1px solid #edf4f9;
    background: var(--white);
}

.feature-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.feature-card__body {
    padding: 27px 29px 30px;
}

.item-number {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.feature-card h3 {
    margin: 9px 0 10px;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -0.7px;
}

.feature-card__body > p {
    margin: 0 0 18px;
    color: var(--muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    color: #2a628e;
    background: #eaf5fd;
    font-size: 12px;
    font-weight: 750;
}

/* 8. Menší galerie elektronických modulů */
.mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 26px;
}

.mini-gallery__item {
    overflow: hidden;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    text-align: center;
}

.mini-gallery__item img {
    display: block;
    width: 100%;
    height: 112px;
    border-radius: 8px;
    background: var(--white);
    object-fit: contain;
    object-position: center;
}

.mini-gallery__item span {
    display: block;
    padding: 4px 0;
    color: #44657d;
    font-size: 12px;
    font-weight: 750;
}

/* 9. Kontakty a adresy */
.contact-section {
    padding: 75px 0;
    background: linear-gradient(125deg, #e8f5ff, #d7edfd);
}

.contact-section__heading {
    max-width: 730px;
    margin-bottom: 30px;
}

.contact-section h2 {
    font-size: clamp(30px, 3.6vw, 43px);
    line-height: 1.18;
}

.contact-section__heading > p:last-child {
    margin: 0;
    color: var(--muted);
}

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

.contact-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid #cfe3f2;
    border-radius: 15px;
    background: var(--white);
}

.contact-card__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 11px;
    color: var(--blue);
    background: #e6f4ff;
    font-size: 20px;
}

.contact-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.contact-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.contact-card a {
    color: #176ba6;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.contact-summary {
    margin-top: 22px;
    padding: 17px 20px;
    border-radius: 12px;
    color: #526e84;
    background: #ffffffa8;
    font-size: 13px;
}

/* 10. Patička webu */
.site-footer {
    padding: 25px 0;
    color: #d2e7f6;
    background: #123d5d;
    font-size: 12px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand--footer {
    color: var(--white);
    font-size: 17px;
}

.brand--footer .brand__logo {
    width: 31px;
    height: 31px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

/* 11. Tablet a menší notebook */
@media (max-width: 800px) {
    .navigation {
        gap: 13px;
    }

    .navigation a:not(.button) {
        display: none;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero__image-area {
        min-height: 0;
    }

    .hero__image {
        height: 260px;
        max-width: 560px;
    }

    .hero__image-area::before {
        width: 270px;
        height: 270px;
    }

    .hero__note {
        left: 0;
        bottom: -8px;
    }

    .feature-grid {
        gap: 16px;
    }

    .feature-card__image {
        height: 210px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card:last-child {
        grid-column: 1 / -1;
    }

    .section {
        padding: 62px 0;
    }
}

/* 12. Mobilní telefony */
@media (max-width: 560px) {
    .container {
        width: calc(100% - 30px);
    }

    .top-bar__inner {
        justify-content: center;
    }

    .top-bar__inner span:last-child {
        display: none;
    }

    .site-header {
        min-height: 70px;
    }

    .brand {
        font-size: 18px;
    }

    .navigation .button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .hero__grid {
        padding-top: 39px;
        padding-bottom: 45px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.8px;
    }

    .hero__text {
        font-size: 15px;
    }

    .hero__image-area {
        min-height: 0;
    }

    .hero__image {
        height: 220px;
    }

    .hero__image-area::before {
        width: 215px;
        height: 215px;
    }

    .hero__note {
        align-self: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card__image {
        height: 220px;
    }

    .feature-card__body {
        padding: 22px;
    }

    .mini-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .mini-gallery__item img {
        height: 95px;
    }

    .contact-section {
        padding: 53px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card:last-child {
        grid-column: auto;
    }

    .contact-card {
        min-height: 0;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

/* 13. Přístupnost: vypnutí animovaného posouvání dle nastavení zařízení */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
