*
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html 
{
    scroll-behavior: smooth;
}

.topNav
{
    border: none;
}

.editorBox p
{
    margin: 0;
}

/* Odstranění horního odsazení stránky */
body #page
{
    padding-top: 0px;
}

/* Zobrazení chybové hlášky u formuláře na dalším řádku */
body .help-block.error
{
    display: block;
    margin: 1rem 0;
}

/* Flexbox layout pro řádky + zarovnání a omezení šířky - pro patičku*/
body .row
{
    margin-left: -15px;
    margin-right: 0px;
    clear: both;
    display: flex;
    align-items: stretch;
    flex-flow: row wrap;
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Bez okrajů u specifické třídy řádku - u formuláře kvůli submit-button*/
body .row-pad5
{
    margin: 0;
}

/* Reset vnitřního odsazení u řádku */
body .row
{
    padding: 0;
}

/* Tělo stránky má minimální výšku celé obrazovky */
body
{
    min-height: 100vh;
}

/* Resetování stylů sekcí - aby celá stránka neměla 1230px, ale custom*/
body .section, body .sub
{
    max-width: none;
    margin: 0;
    padding: 0;
    position: static;
}

/* Základní zarovnání obsahu sekce "proc" - oprava pro proc kde je to třeba 1230px*/
body .proc
{
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Zrušení pozadí šedé sekce formuláře */
body .greyformsection
{
    background: none;
}

/* Skrytí vodorovných čar v sekci - estetická věc a individuální*/
body .section hr
{
    display: none;
}

/* Reset vnitřního odsazení a skrytí hlavního nadpisu */
body .content
{
    padding: 0;
}

body .content h1
{
    display: none;
}

/* Zarovnání a omezení šířky hlavičky - pro navigaci*/
header[role="banner"]
{
    max-width: 1230px;
    margin: 0 auto ;
    padding: 0 15px;
}

/* Odstranění výchozích okrajů pro všechny nadpisy */
body h1, h2, h3, h4, h5
{
    margin: 0;
}

h1, h2, h3, h4, h5
{
 font-family: 'Open Sans Condensed', sans-serif;
}

/* Obrázky v sekci "proc" mají maximální šířku - aby nebyly tak široké*/
.proc img
{
    height: auto;
    max-width: 120px;
}

body .content ul li:before,.cke_editable ul li:before 
{
    vertical-align:middle;
    background:#fff
}

:root 
{
    --bg-gradient: radial-gradient(circle at 94.35384114583333% 89.61588541666666%,#261765 0%,20%,#26176500 40%),
                   radial-gradient(circle at 6.503906249999999% 88.037109375%,#e57800fc 0%,12%,#e5780000 24%),
                   radial-gradient(circle at 6.165364583333333% 12.617187499999998%,#261765 0%,42%,#26176500 70%),
                   radial-gradient(circle at 93.6865234375% 11.42578125%,#E57800 0%,46.683%,#e5780000 63%),
                   radial-gradient(circle at 48.9013671875% 49.521484375%,#FFF 0%,100%,#fff0 100%);
    --content-padding: 2rem;
}

.uvod
{
    background-image: url("https://anafra.cz/cs/file/2cf6b77d5bcc239f216e3506f417e8fa/6746/kamery-uvod-min.png");
    background-attachment: fixed;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    min-height: 50vh;
    padding: 4rem;
    text-align: left;
}

.uvod h1
{
    display: block !important;
}

.img-container
{
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-container img
{
    display: block;
    width: 100%;
    max-width: 80%;
    height: auto;
}

.container
{
    max-width: 600px;
}

.uvod h1
{
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.uvod h2
{
    font-size: clamp(1.1rem, 3vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 500;
}

.uvod ul
{
    padding-left: 0;
    list-style-position: inside;
    margin: 0 auto;
    text-align: left;
}

.uvod ul li
{
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    margin-bottom: 1rem !important;
    font-weight: 400;
    padding-left: 15px !important;
}

.uvod ul li::marker
{
    font-size: 1em;
}

.property
{
    display: flex;  
    flex-wrap: wrap;
    max-width: 1230px;
    margin: auto;
    padding: 4rem 2rem;
    color: #666;
}

.property h2
{
    font-size: clamp(0.8rem, 5vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.property p
{
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

.third-part 
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 25px;
    padding: 50px 15px;
}

.slidereal
{
    flex-basis: 300px;
    flex-grow: 0;
    box-sizing: border-box;
    padding: 25px;
    background: white;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slidereal:hover 
{
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.slidereal img 
{
    max-width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    margin-bottom: 20px;
}

.slidereal h3 
{
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #666;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.slidereal p 
{
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
    text-align: left;
}

.fourth-part
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1230px;
    margin: auto;
    gap: 25px;
    padding: 50px 15px;
}

.fourth-part img 
{
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1; 
  object-fit: contain;
  margin-bottom: 20px;
  height: auto; 
  display: block;
}



.left-right
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.right-left
{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.fourth-text h3
{
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #666;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 600;
}

.fourth-text p
{
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

.why-anafra
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    max-width: 1230px;
    margin: auto;
    gap: 25px;
    padding: 50px 15px;
}

.why-anafra h2
{
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-top: 3rem;
    font-weight: 500;
    color: #333;
}

.why-anafra .logos
{
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.why-anafra .logos img 
{
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

fieldset {
    border: 0;
}

body .help-block.error { /* Pro zobrazení chyb ve formuláři */
    display: block;
    margin: 1rem 0;
}

body .section hr { /* Pokud jsou formuláře v .section */
    display: none;
}

.row-pad5>div[class^="col-"] { /* Pokud formulář používá tuto grid strukturu */
    padding: 0;
}

/* Specifické sekce a prvky formuláře */
.form {
    background: none !important; /* Původně bylo var(--bg-gradient) a fixed */
    color: #fff; /* Z původního pravidla .form, může vyžadovat úpravu pokud je nové pozadí světlé */
    width: 100%;
    display: flex;
    justify-content: center;
}

.form-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 80%;
    max-width: 1200px;
}

.form-box { /* Často drží text/obrázek vedle formuláře */
    flex: 1;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.formGen { /* Kontejner, kam JavaScript vkládá text související s formulářem */
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: .5rem;
}

.form-group input {
    width: 50%;
    max-width: 500px;
    height: 2rem;
    padding: .5rem;
    border: 0;
    font-size: 1rem;
}

body .greyformsection 
{
    background: 0; 
    width: 100%;
    padding: 0; 
}

.greyformsection .section 
{ 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: #fff;
    width: 100%;
    margin: 0 auto;
    padding: 0; /* Finální hodnota z pozdějšího pravidla v původním CSS */
    box-sizing: border-box;
    position: relative;
}

body .greyformsection .row { /* Specifické stylování .row uvnitř této formulářové sekce */
    margin: 0;
}

.greyformsection h2 { /* Nadpisy v této formulářové sekci */
    display: none;
}

.greyformsection h3 { /* Nadpisy v této formulářové sekci */
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.greyformsection h4 {
    font-size: clamp(1rem, 5vw, 1.5rem);
    margin-bottom: 1rem;
}

.greyformsection h5 
{ 
    margin-top: 1rem;
    font-size: clamp(0.5rem, 6vw, 1.2rem);
}

.greyformsection p
{ 
    margin-bottom: 1rem;
}

.greyformsection .col-12 p 
{
    font-size: clamp(0.4rem, 5vw, 0.7rem);
    max-width: 428px;
    display: block;
    margin-bottom: 0;
}

.greyformsection .col-12 a 
{
  color: #082B42;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(8, 43, 66, 0.5);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out, text-underline-offset 0.2s ease-in-out;
}

.greyformsection .col-12 a:hover,
.greyformsection .col-12 a:focus 
{
  color: #0056b3;
  text-decoration-color: rgba(0, 86, 179, 0.7);
  outline: none;
}

.greyformsection .btn
{ 
    background-color: #e57800;
    color: #fff;
    padding: .75rem 1.5rem;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color .3s ease-in-out;
    max-width: 500px;
    width: 50%;
}

.greyformsection .btn:hover {
    background-color: #c65d00 !important;
}

/* Obrázek související s formGen */
.image-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    max-width: 50%;
    padding: 0 60px;
}

.image-box img {
    max-width: 500px;
    margin: 1rem 0;
    border-radius: 8px;
    height: auto;
    display: block;
}

@media(max-width:1024px) 
{
    .form-container {
        flex-direction: column;
        width: 90%;
        text-align: center;
    }

    .form-group input {
        width: 80%;
    }

    .greyformsection .btn {
        width: 80%;
    }

    .greyformsection .section {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .image-box {
        max-width: 70%;
        padding: 20px 0;
        justify-content: center;
    }

    .image-box img {
        max-width: 100%;
    }

    .greyformsection p {
        text-align: center;
    }
}

@media (max-width: 990px)
{
    .uvod
    {
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 2rem;
    }

    .uvod .container {
        max-width: 100%;
    }
    .uvod .img-container {
        max-width: 250px;
    }
}

@media (max-width: 768px) 
{
    .left-right 
    {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4rem; 
    }

    .right-left 
    {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4rem;
    }

    .why-anafra .logos
    {
        flex-direction: column;
    }
}

.swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.swiper-slide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.swiper-button-prev,
.swiper-button-next 
{
  color: #2D1763 !important;
;           
}


