:root {
    --accent-color: #f1a02f;
	--none-color: transparent;
	--text-color: #0E0F0F;
	--dark-color: #000;
	--bg-color: #1A385B;
	--white-color: #fff;
}

/* start base */
.section {
    margin-bottom: 120px;
}

.list-reset {
    padding: 0;
    list-style-type: none;
}

.text-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
/* end base */

/* start header */
.header__logo img {
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    object-fit: contain;
}

.header__phone {
    flex-wrap: wrap;
}

.menu .submenu-list {
    left: 50%;
    transform: translate(-50%, 10px);
}

.menu .item.parent:not(.submenu-open):hover .submenu-list {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0px);
}

.menu-mobile {
    z-index: 999999;
}
/* end header */

/* start service-main */
.service-main__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(408px, max-content);
    gap: 20px;
}

.service-item {
    width: 100%;
    height: 100%;
}
/* end service-main */

/* start articles */
.articles__title {
    margin-bottom: 40px;
}

.articles__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, 370px);
    gap: 20px;
}

.articles-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    box-shadow: 0 6px 12px 0 rgba(42, 10, 87, .05), 0 23px 23px 0 rgba(42, 10, 87, .04), 0 51px 31px 0 rgba(42, 10, 87, .03), 0 90px 36px 0 rgba(42, 10, 87, .01), 0 141px 40px 0 rgba(42, 10, 87, 0);
    overflow: hidden;
}

.articles-link__img {
    width: 100%;
    height: 100%;
    font-size: 0;
    object-fit: cover;
    transition: transform .2s linear;
}

.articles-link__title-wrap {
    position: absolute;
    left: 50%;
    bottom: 20px;
    border-radius: 16px;
    padding: 10px;
    max-width: 95%;
    width: 100%;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background-color: var(--accent-color);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
    transition: transform .2s linear;
}

.articles-link__title {
    font-size: 22px;
    color: var(--white-color);
}
/* end articles */

/* start scroll-links */
.scroll-links {
	position: fixed;
	z-index: 30;
	right: 20px;
	bottom: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.scroll-links__link {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border: 1px solid var(--accent-color);
	border-radius: 100%;
    width: 50px;
    height: 50px;
	background-color: var(--white-color);
	transition: background-color .2s linear;
}

.scroll-links__link:hover {
    background-color: var(--accent-color);
}
.scroll-links__link:hover .scroll-links__link-icon {
    fill: var(--white-color);
}

.scroll-links__link-icon {
    width: 100%;
    height: 100%;
    fill: var(--accent-color);
    transition: background-color .2s linear;
}
/* end scroll-links */

/* start hover */
@media (hover: hover) {
    .articles-link:hover .articles-link__img {
        transform: scale(1.1);
    }
    
    .articles-link:hover .articles-link__title-wrap {
        transform: translate(-50%, 10px);
    }
}
/* end hover */

/* start small */
@media (max-width: 991px) {
    /* start header */
    .header__logo {
        max-width: 187px;
        max-height: 56px;
    }
    /* end header */
    
    /* start service-main */
    .service-main__container {
        grid-template-columns: repeat(2, 1fr);
    }
    /* end service-main */
    
    /* start articles */
    .articles__list {
        grid-template-columns: repeat(2, 1fr);
    }
    /* end articles */
}
/* end small */

/* start gallery */
.gallery-item {
    overflow: hidden;
}
/* end gallery */

/* start cookies */
.cookies {
    position: fixed;
    z-index: 10000;
    right: 0;
    bottom: 15px;
    display: flex;
    justify-content: flex-end;
    padding: 0px 25px;
    width: 100%;
}

.cookies__content-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 40px;
    padding: 20px;
    max-width: 512px;
    width: 100%;
    color: var(--text-color);
    font-size: 16px;
    background-color: var(--main-background);
}

.cookies__text-link {
    display: inline;
    text-decoration: underline;
    color: var(--accent-color);
}

.cookies__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--addiction-color-2);
    padding: 25px 35px;
    border: 2px solid var(--addiction-color-2);
    border-radius: 100px;
    max-width: 250px;
    width: 100%;
    text-decoration: none;
    background-color: var(--none-color);
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s all ease;
}
/* end cookies */

/* start phone */
@media (max-width: 767px) {
    .cookies {
        padding: 0px 10px;
    }
    
    .cookies__content-wrap {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 10px;
      font-size: 14px;
    }
    
    .cookies__btn {
        padding: 20px;
        max-width: 100%;
        width: 100%;
        min-height: 40px;
    }
    /* start base */
    .section {
        margin-bottom: 80px;
    }
    /* end base */
    
    /* start header */
    .header__logo {
        max-width: 147px;
        max-height: 56px;
    }
    /* end header */
    
    /* start service-main */
    .service-main__container {
        grid-template-columns: 1fr;
    }
    /* end service-main */
    
    /* start text-default */
    .text-default img {
        width: 100% !important;
    }
    
    .scroll-links {
		right: 10px;
		bottom: 80px;
    }
    /* end text-default */
    
    /* start sertificate */
    .owl-carousel.owl-drag .owl-item {
        padding: 0px 34px;
    }
    
    .sertificate-item {
        width: 100%;
    }
    /* end sertificate */
    
    /* start articles */
    .articles__list {
        grid-template-columns: 1fr;
    }
    /* end articles */
    
    /* start scroll-links */
    .scroll-links__link {
		width: 40px;
		height: 40px;
    }
    /* end scroll-links */
}
/* end phone */

/* start small phone */
@media (max-width: 425px) {
    /* start header */
    .header__phone {
        font-size: 14px;
    }
    /* end header */
    
    /* start sertificate */
    .owl-carousel.owl-drag .owl-item {
        padding: 0px 34px;
    }
    
    .sertificate-item {
        width: 100%;
    }
    /* end sertificate */
}
/* end small phone */

@media (hover:hover) {
    .cookies__text-link:hover {
        text-decoration: none;
    }
    
    .cookies__btn:hover {
        color: var(--white-color);
        background-color: var(--accent-color);
    }
}
