/* general styles */
:root {
    --index: calc(1vw + 1vh);
    --hover-color: #b6c1ff;
    --card-bg-color: #f3f3f3;
    --bg-table-th-color: #002b88;
    --table-header-text-color: #fff;
    --main-menu-active: #c92306;
    --main-width: 1200px;
    --main-text-color: #000;
    --slide-text-color: #fff;
    --bg-slide-text-color: rgba(0, 0, 0, 0.6);
    --text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9),
                 0 0 6px rgba(0, 0, 0, 0.6);
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('../fonts/Roboto-Bold.woff') format('woff');
    font-weight: 900;
}

@font-face {
    font-family: 'Roboto-Regular';
    src: url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
}

@font-face {
    font-family: 'ImpactLTStd';
    src: url('../fonts/ImpactLTStd.woff') format('woff');
    font-weight: 900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-family: 'Roboto-Bold', sans-serif;
    margin: 0;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto-Bold', sans-serif;
    margin: 2rem 0 0.5rem 0;
}

p {
    margin: 1.25rem 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto-Regular', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--main-width);
    margin: 0 auto;
    padding: 20px;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 15px;
}

.container {
    width: 100%;
    max-width: var(--main-width);
    margin: 0 auto;
}

/* header styles */
header {
    position: relative;
    overflow: visible;
    padding: calc(var(--fixed-nav-height, 0px) + 2%) 2% 2%;
}

header > nav { 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: column  ;
    justify-content: space-between;
    padding: 10px 2%;
    background-color: #bfbfc0ea;
}

.container-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#main-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    list-style: none;
}

#main-menu li {
    display: inline-block;
}

#main-menu li a {
    display: block;
    padding: 15px;
    color: var(--main-text-color);
    text-decoration: none;
    border: 2px solid transparent;
    transition: all .3s ease;
}

#main-menu li a:hover {
    color: var(--main-menu-active);
    background-color: var(--hover-color);
}

#main-menu li a.active {
    color: var(--main-menu-active);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/*breadcrumbs styles */
.breadcrumbs ul {
  list-style-type: none;
}

.breadcrumbs li {
  display: inline-block;
}

.breadcrumbs li::after {
  content: ">>";
  margin: 0 5px;
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--main-text-color);
}

.breadcrumbs a:hover {
    color: var(--main-menu-active);
}

.breadcrumbs li a.active {
    color: var(--main-menu-active);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.home-link {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.home-link svg {
    width: 25px;
    height: 25px;
    display: block;
}



nav .logo {
    display: inline-block;
    width: 250px;
    height: 50px;
    background-image: url('../../img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* menu-toggle */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: #1677c8;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background: #fff;
    transition: transform .3s ease, opacity .3s ease;
}

@media (max-width: 849px) {
    .menu-toggle {
        display: block;
    }

    header > nav > .container-nav > ul {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: max-content;
        min-width: 180px;
        max-width: calc(100vw - 20px);

        gap: 0;
        max-height: 0;
        padding: 0 20px;
        margin: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;

        list-style: none;
        border-radius: 14px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
        transform: translateY(-10px);

        transition:
            max-height .4s ease,
            opacity .3s ease,
            visibility .3s ease,
            transform .3s ease,
            padding .4s ease;
    }

    header > nav > .container-nav > ul.is-open {
        max-height: 400px;
        padding-top: 10px;
        padding-bottom: 10px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    header > nav > .container-nav > ul > li {
        display: block;
        width: 100%;
    }

    header > nav > .container-nav > ul > li > a {
        display: block;
        width: 100%;
        padding: 14px 8px;
        white-space: nowrap;
        border-bottom: 1px solid #e8eef3;
    }

    header > nav > .container-nav > ul > li:last-child > a {
        border-bottom: 0;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* footer styles */
footer {
    margin-top: auto;
    background-color: #575757;
    text-align: center;
    width: 100%;
    padding: 20px;
    color: #fff;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #fff;
}


/* slider styles */
.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 2/1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: #000; /* фон, щоб не було білих прогалин */
}

.slides {
    display: flex;
    transition: transform 1.2s ease-in-out;
    width: 100%;
}

.slides a {
    flex: 1 0 100%;
    position: relative; /* для caption */
}

.slides a img {
    transition: transform 1.0s ease;
}

.slides a:hover img {
    transform: scale(1.1);
}

.slides img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стрілки */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-slide-text-color);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    width: 40px;
    height: 40px;
}
.arrow:hover { background: var(--bg-slide-text-color); }
.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* Точки */
.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--bg-slide-text-color);
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
    line-height: 0;
}
.dots button.active { background: #fff; }

/* Підписи */
.caption {
    position: absolute;
    top: 10px;
    left: 0;                /* початок зліва */
    right: 0;               /* кінець справа */
    margin: 0 auto;         /* центрування */
    transform: translateX(0);
    background: var(--bg-slide-text-color);
    color: var(--slide-text-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: calc(1.3 * var(--index));
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
    max-width: 90%;
    text-align: center; 
    text-shadow: var(--text-shadow);
}

.slide-text {
    position: absolute;
    bottom: 10px;
    right: 20px;               /* кінець справа */
    margin: 0 auto;         /* центрування */
    transform: translateX(0);
    color: var(--slide-text-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: var(--index);
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
    text-shadow: var(--text-shadow);
    list-style-type: square;
    background: var(--bg-slide-text-color);
    font-size: calc(0.9 * var(--index));
}

.gases {
    left: 20px;
    right: inherit;
    display: inline-grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 10px;
    max-width: 600px;
    list-style: none;
    padding: 0;
}

.slide-text>li {
    margin: 0px 10px;
}

.slide-text > li::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
    background: url("../../img/spiral.svg") center / contain no-repeat;
    vertical-align: -0.15em;
}

.clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.clients img {
    max-width: 120px;
    object-fit: cover;
    border-radius: 50%;
    background-color: #f5f5f5;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
}


/* contact page styles */
.contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 100px;
    margin-top: 20px;
    justify-content: space-around;
    margin-bottom: 50px;
    width: 100%;
}

.iframemap {
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border: 0 !important;
    flex: 2 1 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 300px;
}

.map {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 2 1 0;
    min-width: 0;

}

.image-map {
    max-width: 500px;
    height: auto;
}

.filials {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
}


@media (max-width: 768px) {
    .map { 
        flex: 1 1 100%;
    }
    .filials {
        flex: 1 1 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-around;
    }
}


.contact-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}


.contact-header a {
    flex: 0 0 auto;
    transition: all .3s ease;
    border-radius: 10px;
    border: 3px solid transparent;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2)
}

.contact-header h2 {
    flex: 3 1 300px;
    margin: 0;
    text-align: left;
}


.contact-header a:hover {
    border-color: var(--hover-color);
    transform: scale(1.05);
}


/*social media links styles */
.social_links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social_links a img{
    width: 50px;
    
}

.social_links a {
    transition: all .3s ease;
}

.social_links a:hover {
    transform: scale(1.2);
}

.slogan_block {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}



.slogan ul {
    list-style: none;

}

.slogan h2 {
    font-family: 'Figtree-Light', 'Arial Black', sans-serif;
    font-weight: 900;
    color: #d10000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: clamp(2rem, 3vw, 5rem);
    line-height: 1.1;
    margin: 0;
}

.slogan_block img {
    max-width: 500px;
    flex: 2 1 0;

}


.products {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    margin-bottom: 50px;
    width: 100%;
}

.product-card {
    flex: 1 1 300px;
    max-width: calc(25% - 20px);
    min-width: 270px;
    padding: 15px;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition:  .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card_title {
   display: flex;
   justify-content: center;

}

.product-card_title h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    width: 90%;
}

.product-card_image-container {
    text-align: center;
}

.product-card_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card_specs{
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-card_spec-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
}

.product-card_spec-label {
    font-weight: bold;
}


.discription-img {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto 0 auto;
}

.img_primari {
    flex: 1 1 400px;
}

.img_primari img{
    max-width: calc(var(--index) * 20);
    width: auto;
    height: auto;
}

.discription-img_image {
    flex: 1 1 200px;
    padding: 10px;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition:  .3s ease;
    text-align: center;
    
}

.discription-img > img.discription-img_image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.discription-img_image img {
    max-height: 200px;
    width: auto;
}


/*table styles */
table {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    border-collapse: collapse;
    background-color: #fff;
  }
  
  caption {
    caption-side: top;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
  }
  th, td {
    border: 1px solid #ccc;
    padding: 10px 14px;
    text-align: center;
  }
  th {
    background-color: var(--bg-table-th-color);
    color: var(--table-header-text-color);
  }
  tr:nth-child(even) {
    background-color: #f2f2f2;
  }



.scrolling-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* для плавного скролла на iOS */
}

.table-title-row {
    background-color: #cfcfcf !important;
    font-weight: bold;
    text-align: center;
}


.discription-with-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 50px;
}


.discription-for-img {
    flex: 1 1 400px;
    margin-right: 0;
    align-self: center;
    height: 100%;
}

.silent_img img {
    max-height: 240px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding-top: 40px;
}
