:root{
    /* Alap skála (desktop/tablet) */
    --font-family: OpenSans;
    --leading-tight: 1.15;
    --leading-snug: 1.25;
    --leading-normal: 1.55;
    --leading-relaxed: 1.7;

    /* Finom betűközök Open Sans-hoz */
    --track-tight: -0.015em;
    --track-h1: -0.02em;
    --track-normal: 0;

    /* Méretek (desktop) */
    --fs-h1: 3rem;   /* 48px */
    --fs-h2: 2.25rem;/* 36px */
    --fs-h3: 1.875rem;/* 30px */
    --fs-h4: 1.5rem; /* 24px */
    --fs-h5: 1.25rem;/* 20px */
    --fs-h6: 1.125rem;/* 18px */
    --fs-p: 1.125rem; /* 18px alap törzsszöveg */

    /* Szinek */
    --typo: #111827;
    --sec: #CE8522;
}

/*----+ CSS RESET +----*/

*, *::after, *::before {
    box-sizing:border-box;
}

html, body, form, fieldset,
h1, h2, h3, h4, h5, h6, p, pre, samp, span,
blockquote, ul, li, ol, dl, dd, dt, address, div, abbr, dfn, acronym,
table, tr, th, td,
input, option, textarea {
    margin: 0;
    padding: 0;
    text-align: left;
    font-weight:normal;
    font-family:var(--font-family);
}

html{
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    font-feature-settings: "kern","liga","clig","calt";
}

body{
    font-size: 16px;
    line-height: var(--leading-relaxed);
    letter-spacing: var(--track-normal);
    color: var(--typo);
    margin:0;
    padding:140px 0 0 0;
}

@media (max-width: 639px){
    :root{
        --fs-h1: 2rem;    /* 32px */
        --fs-h2: 1.75rem; /* 28px */
        --fs-h3: 1.5rem;  /* 24px */
        --fs-h4: 1.25rem; /* 20px */
        --fs-h5: 1.125rem;/* 18px */
        --fs-h6: 1rem;    /* 16px */
        --fs-p: 1rem;     /* 16px törzs */
    }

    body{
        line-height: var(--leading-normal);
        -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, h4, h5, h6{
        line-height: var(--leading-snug);
        letter-spacing: -0.01em;
        margin-bottom: 0.6em;
    }

    p{
        line-height: var(--leading-normal);
        margin-bottom: 0.9em;
    }
}

/* container */

.container {
    width:1274px;
    margin-left:auto;
    margin-right:auto;
}

@media only screen and (max-width:1323px) {
    .container {
        width:960px;
    }
}

@media only screen and (max-width:993px) {
    .container {
        width:624px;
    }
}

@media only screen and (max-width:639px) {
    .container {
        width:auto;
        padding-left:24px;
        padding-right:24px;
    }
}

/* gap */

.gap {
    height:72px;
}

/* color */

.bg-pri {
    background-color:var(--typo);
}

.bg-sec {
    background-color:var(--sec);
}

.bg-pri * {
    color:#ffffff;
}

.bg-sec a {
    color:inherit;
}

/* Fejlécek */
h1, h2, h3, h4, h5, h6{
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: var(--leading-snug);
    letter-spacing: var(--track-tight);
}

h1{
    font-size: var(--fs-h1);
    line-height: var(--leading-tight);
    letter-spacing: var(--track-h1);
    margin-top: 0.1em;
}

h2{
    font-size: var(--fs-h2);
}
h3{
    font-size: var(--fs-h3);
}
h4{
    font-size: var(--fs-h4);
    font-weight: 600;
}
h5{
    font-size: var(--fs-h5);
    font-weight: 600;
}
h6{
    font-size: var(--fs-h6);
    font-weight: 600;
    letter-spacing: 0.005em;
}

/* Bekezdés */
p{
    font-size: var(--fs-p);
    line-height: var(--leading-relaxed);
    margin: 0 0 1em;
    letter-spacing: var(--track-normal);
    color: #1f2937;
}

/* Függő bekezdés-opció (kapcsold, ha kell) */

p + p{
    margin-top: 0.5em;
}

/* a */

a {
    cursor:pointer;
}

/* ul, ol */

ul:not(.nav):not(.subnav) {
    margin-left:32px;
    margin-bottom:10px;
    margin-top:10px;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

ul:not(.nav):not(.subnav) li {
    padding-left:25px;
    margin-bottom:10px;
    position:relative;
}

ul:not(.nav):not(.subnav) li:last-child {
    margin-bottom:0;
}

ul:not(.nav):not(.subnav) li::before {
    content:"";
    display:block;
    width:7px;
    height:7px;
    position:absolute;
    top:10px;
    left:0;
    background-color:var(--sec);
}

ol {
    margin-left:0;
    margin-bottom:10px;
    margin-top:10px;
    padding-left:0;
    list-style: none;
    overflow:hidden;
    counter-reset: my-counter;
}

ol ol {
    margin-left:32px;
}

ol:last-child {
    margin-bottom:0;
}

ol li {
    position:relative;
    margin-bottom:10px;
}

ol > li {
    padding-left:32px;
}

ol > li:last-child {
    margin-bottom:0;
}

ol > li::before {
    content: counters(my-counter,"");
    counter-increment: my-counter;
    display: inline-block;
    margin-right:10px;
    color:var(--sec);
}

ol > li > ol {
    counter-reset: my-2nd-counter;
}

div > ol > li > ol {
    margin-left:0;
}

ol > li > ol > li::before {
    content: counters(my-counter,"") "." counters(my-2nd-counter,"");
    counter-increment: my-2nd-counter;
}

ol > li > ol > li > ol {
    counter-reset: my-3rd-counter;
}

ol > li > ol > li > ol > li::before {
    content: counters(my-counter,"") "." counters(my-2nd-counter,"") "." counters(my-3rd-counter,"");
    counter-increment: my-3rd-counter;
}

ol > li li {
    padding-left:0;
}

ol > li::before {
    padding:3px;
    background-color:var(--sec);
    position:absolute;
    width:20px;
    text-align:center;
    font-weight:bold;
    top:2px;
    left:0;
    color:#ffffff;
    font-size:12px;
    line-height:16px;
}

ol > li li::before {
    background:none;
    color:#ffffff;
    text-align:left;
    width:auto;
    position:static;
    font-weight:normal;
}

#goTop {
    width: 55px;
    height: 55px;
    background-repeat: no-repeat;
    background-image: url('img/top.svg');
    position: fixed;
    z-index: 9999;
    right: 66px;
    bottom: -100px;
    cursor: pointer;
}

/* img */

img {
    display:block;
    max-width:100%;
    height:auto;
}

@media only screen and (max-width:1323px) {
    body {
        padding-top:120px;
    }
}

/* gallery */

.gallery {
    display:grid;
    grid-gap:32px;
    grid-template-columns: repeat(3,1fr);
}

.gallery a {
    display:block;
    position:relative;
    z-index:1;
    height:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    background-color:#ffffff;
    border-radius:10px;
    box-shadow:0 0 0 rgba(0,0,0,0.2);
    transition:1s !important;
}

.gallery a:hover {
    z-index:9;
    transform:scale(1.05,1.05) !important;
    box-shadow:10px 10px 10px rgba(0,0,0,0.2);
}


.gallery a img {
    width:100%;
    height:100%;
    aspect-ratio:1/1;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
}

@media only screen and (max-width:993px) {
    .gallery {
        grid-gap:20px;
    }
}

@media only screen and (max-width:479px) {
    .gallery {
        grid-template-columns: repeat(1,1fr);
    }
}

/* grid */

.grid {
    display:grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap:32px;
}

@media only screen and (max-width:993px) {
    .grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media only screen and (max-width:639px) {
    .grid {
        grid-template-columns: repeat(1,1fr);
    }
}

/* section */

section {
    padding:72px 0 0 0;
}

section.bg-pri,
section.bg-sec {
    padding:72px 0;
}

section .textbox {
    position:relative;
    padding:0 0 72px 0;

}

section .textbox *:last-child {
    margin-bottom:0;
}

section .textbox::after {
    content:"";
    display:block;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    height:72px;
    background-repeat:no-repeat;
    background-position:center center;
    background-size:100% 100%;
    background-image:url('img/shadow.png');
    opacity:0.2;
}

section.bg-pri .textbox,
section.bg-sec .textbox {
    padding:0;
}

section.bg-pri .textbox::after,
section.bg-sec .textbox::after {
    display:none;
}

/* header */

header {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:99;
    height:140px;
    display:flex;
    padding:0 36px;
    align-items:center;
    border-bottom:solid 5px var(--typo);
    background-color:#ffffff;
    justify-content:space-between;
    transition:0.5s;
}

@media only screen and (max-width:1323px) {
    header {
        height:120px;
    }
}

@media only screen and (max-width:639px) {
    header {
        padding:0 24px;
    }
}

body.scrolledIn header {
    height:72px;
}

/* footer */

footer {
    background-color:var(--typo);
    padding:72px 0;
    /* border-top:solid 5px var(--sec); */
}

footer * {
    color:#ffffff;
    text-align:center;
}

/* logo */

header h1 {
    margin:0;
    padding:0;
}

header h1 a {
    display:block;
}

header h1 a span {
    display:none;
}

/* menu */

#main-menu-control {
    display:none;
    position:relative;
    cursor:pointer;
    width:72px;
    height:72px;
}

#main-menu-control span {
    position:absolute;
    left:50%;
    transform:translatex(-50%);
    display:block;
    transition:0.5s;
    background-color:var(--typo);
    width:40px;
    height:3px;
    border-radius:1.5px;
}

#main-menu-control span:nth-child(1) {
    top:calc(30% - 1.5px);
}

#main-menu-control span:nth-child(2) {
    top:calc(50% - 1.5px);
}

#main-menu-control span:nth-child(3) {
    top:calc(70% - 1.5px);
}

body.menuopen #main-menu-control span:nth-child(1) {
    transform:rotate(-45deg) translatex(-50%);
    background-color:var(--sec);
}

body.menuopen #main-menu-control span:nth-child(2) {
    opacity:0;
    background-color:var(--sec);
}

body.menuopen #main-menu-control span:nth-child(3) {
    transform:rotate(45deg) translatex(-50%);
    background-color:var(--sec);
}

#main-menu {
    height:100%;
}

#main-menu ul {
    display:flex;
    margin:0;
    padding:0;
    height:100%;
}

#main-menu ul li {
    margin:0;
    padding:0;
    height:100%;
}

#main-menu ul li::before {
    display:none;
}

#main-menu ul li a {
    display:flex;
    height:100%;
    align-items:center;
    padding:20px;
    text-align:center;
    color:var(--typo);
    text-decoration:none;
    text-transform:uppercase;
    transition:0.5s;
}

#main-menu ul li a:hover {
    background-color:var(--typo);
    color:#ffffff;
}

@media only screen and (max-width:1323px) {
    #main-menu-control {
        display:block;
    }

    #main-menu {
        overflow:hidden;
        transition:0.5s;
        position:fixed;
        z-index:99;
        top:120px;
        right:-100%;
        width:100%;
        background-color:#ffffff;
        opacity:0;
        height:auto;
    }

    body.menuopen #main-menu {
        right:0;
        opacity:1;
    }

    body.scrolledIn.menuopen #main-menu {
        top:72px;
    }

    #main-menu ul {
        display:block;
    }

    #main-menu ul li:not(:last-child) {
        border-bottom:solid 1px rgba(0,0,0,0.2);
    }

    #main-menu ul li a {
        display:block;
        text-align:center;
    }
}

/* popup */

.popup.gaszler-popup .popup-content {
    max-width:90%;
    height:90vh !important;
}

.popup.gaszler-popup .popup-header {
    margin-bottom:0 !important;
}

.popup.gaszler-popup .popup-title {
    display:none;
}

.popup.gaszler-popup .popup-body {
    height:100%;
    padding:20px;
}

.popup.gaszler-popup .popup-body * {
    text-align:center;
}

.popup.gaszler-popup .popup-body p {
    display:flex;
    align-items:stretch;
    height:100%;
    margin:0;
}

.popup.gaszler-popup .popup-body img {
    margin-left:auto;
    margin-right:auto;
    max-width:100%;
    max-height:100%;
    width:auto;
}

@media only screen and (max-width:639px) {
    .popup.gaszler-popup .popup-content {
        height:60vh !important;
    }
}

/* cookie */

#form_cookie_docs > div > a:nth-of-type(2) {
    display:none !important;
}