:root {
  --dark-color: 61, 61, 61;
  --white-color: 255, 255, 255;
  --light-color: 240, 240, 240;
  --primary-color: 70, 163, 88;
  --anim: 0.4s ease;
  --font-family: "Nunito", sans-serif;
}

body {
    font-size: 18px;
    font-family: var(--font-family);
    color: rgb(var(--dark-color));
}

a, button {
    color: inherit;
}

img, svg {
    max-width: 100%;
    height: auto;
}

svg {
    fill: currentColor;
}

td, th {
    padding: 16px;
}

td {
    border: 1px solid rgb(var(--light-color));
}

table {
    width: 100%;
}

th {
    background-color: rgb(var(--dark-color));
    color: rgb(var(--light-color));
}

tr:hover {
    background-color: rgb(var(--light-color));
}

.bg-lightgray {
    background-color: rgb(var(--light-color));
}

.picture-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.picture-bg::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0,0.7);
}

.picture-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
}

.primary-color {
    color: rgb(var(--primary-color));
}

.button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    background-color: rgb(var(--primary-color));
    border: 1px solid transparent;
    color: rgb(var(--white-color));
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 16px;
    transition: opacity var(--anim);
}

.button:hover {
    opacity: 0.7;
}

.burger {
    padding: 0;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    justify-content: center;
}

.burger::after,.burger::before {
    content: '';
}

.burger::after, .burger::before {
    width: 100%;
    height: 4px;
    background-color: rgb(var(--primary-color));
    border-radius: 50px;
    transition: width var(--anim);
}

.burger::after {
    width: 50%;
}

.burger:hover::after {
    width: 100%;
}

.form-control {
    border-radius: 12px;
    border: 1px solid rgb(var(--light-color));
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 500;
    background-color: rgb(var(--white-color));
    border-bottom: 1px solid rgb(var(--light-color));
}

.logo {
    display: inline-flex;
}

.header-contact__address {
    font-size: 20px;
    font-weight: 600;
}

.header-contact__clock {
    font-size: 16px;
}

.header-link {
    font-weight: 600;
    text-decoration: none;
}

.header-link--phone {
    font-size: 20px;
}

.menu {
    border-bottom: 1px solid rgb(var(--light-color));
    position: relative;
}

.menu-list {
    display: flex;
    padding: 0;
    margin: 0;
    margin-bottom: -1px;
    list-style: none;
}

.menu-item__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 16px 24px;
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    transition: background-color var(--anim), color var(--anim);
}

.menu-item__link:hover {
    background-color: rgb(var(--primary-color));
    color: rgb(var(--white-color));
}

.menu-item--current>.menu-item__link {
    background-color: rgb(var(--dark-color));
    color: rgb(var(--white-color));
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% - 4px );
    left: 0;
    padding-top: 4px;
    z-index: 10;
}

.menu-item--parent:hover>.submenu {
    display: block;
}

.menu-item--parent {
    position: relative;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 300px;
    background-color: rgb(var(--light-color));
}

.submenu .menu-item:not(:last-child) {
    border-bottom: 1px solid rgb(var(--white-color));
}

.hero-item {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: rgb(var(--white-color));
}

.hero-item__title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 140%;
}

.hero-item__description {
    font-size: 24px;
    margin-bottom: 32px;
    line-height: 165%;
}

.advantage-item__icon {
    color: rgb(var(--primary-color));
    margin-bottom: 8px;
}

.advantage-item__name {
    font-weight: 600;
}

.advantage-item__description {
    font-size: 16px;
}

.advantage-item {
    height: 100%;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgb(var(--light-color));
}

.category-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
}

.category-item__image {
    display: flex;
    width: 100%;
}

.category-item__picture {
    position: relative;
    padding-bottom: 70%;
    display: flex;
    width: 100%;
}

.category-item__picture img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    transition: transform var(--anim);
}

.category-item:hover img {
    transform: scale(1.2);
}

.category-item__name {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 36px;
    color: rgb(var(--white-color));
    margin: 0;
    font-size: 24px;
}

.category-item__picture::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgb(0,0,0,0.7), transparent);
}

.about {
    overflow: hidden;
}

.about-bg-item {
    position: absolute;
    top: 0;
    right: -30%;
    /* height: 100%; */
    display: flex;
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);
}

.about-bg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-item {
    padding: 40px;
    background-color: rgb(var(--white-color));
    border-radius: 24px;
    height: 100%;
}

.review-item--light {
    background-color: rgb(var(--light-color));
}

.review-item__name {
    font-weight: 600;
    font-size: 20px;
}

.review-item__rating {
    margin-bottom: 16px;
}

.review-item__content {
    font-size: 16px;
}

.footer-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-menu {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-menu__item-link {
    text-decoration: none;
    font-size: 20px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact__value a {
    text-decoration: none;
}

.footer-contact__value {
    font-size: 20px;
    font-weight: 600;
}

.footer-contact__caption {
    opacity: 0.7;
}

.tabs__panel {
    display: none;
}

.tabs__panel--active {
    display: block;
}

.tabs__nav {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.tabs__nav-btn {
    background-color: transparent;
    padding: 12px 24px;
    border: none;
    border-bottom: 1px solid rgb(var(--light-color));
    width: 100%;
    font-weight: 600;
    text-transform: uppercase;
}

.tabs__nav-btn--active {
    border-bottom: 1px solid rgb(var(--primary-color));
}

.tabs__nav-item {flex: 1 0 auto;width: 340px;}

.contact-item {
    border: 1px solid rgb(var(--light-color));
    padding: 24px;
    border-radius: 12px;
}

.contact-item__caption {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-item__value {
    font-weight: 700;
    font-size: 20px;
}

.contact-item__value a {
    text-decoration: none;
}

.rating-list {display: flex;align-items: center;gap: 8px;}

.rating-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: transparent;
    border: none;
    width: 24px;
    opacity: 0.2;
}

.rating-item--selected {
    opacity: 1;
    color: orange;
}

@media (min-width: 992px) {
    .burger {
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--anim), visibility var(--anim);
    }

    .header--scrolled .burger {
        opacity: 1;
        visibility: visible;
    }
    
    .categories-slider__wrapper {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .categories-slider__wrapper .swiper-slide {
        flex: 1 0 auto;
        width: 380px;
    }
}

@media (min-width: 1400px) {
    .categories-slider__wrapper .swiper-slide {
        width: 310px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1560px;
    }
}

@media (max-width: 1399px) {
    body {
        font-size: 16px;
    }
    
    .header-logo {
        max-width: 180px;
    }
    
    .header-contact__address,
    .header-link--phone {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hero-item__title {
        font-size: 36px;
    }
    
    .tabs__nav-item {
        width: 280px;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 12px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .hero-item__title {
        font-size: 28px;
    }
    
    .hero-item__description {
        font-size: 16px;
    }
    
    .hero-item {
        min-height: 260px;
    }
}