body {
    font-family: 'Ubuntu', sans-serif;
    color: #5a5a5a;
    background-color: #f7faff;
    line-height: 1.875;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

/* ---------- header ---------- */

header {
    background-color: #008798;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    row-gap: 16px;
}

.header-logo img {
    max-width: 10.25rem;
}

.header-nav {
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
}

/* ---------- header-nav ---------- */

.collapse:not(.show) {
    display: none;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
}

.header-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 1s;
}

.nav-item {
    list-style: none;
    border-top: 1px solid #209989;
    padding: 6px 0;
}

.nav-item:first-child {
    border: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
}

.nav-link:hover {
    color: #fff;
    text-decoration: underline;
}
 
.header-nav-btn {
    border: 1px solid #fff;
    padding: 0.75rem;
    border-radius: 0.125rem;
    display: flex;
    align-items: center;
}

.header-nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fff;
    display: block;
}

.collapsed .ast-close-svg {
    display: none;
}
.header-nav-btn:not(.collapsed) .ast-menu-svg {
    display: none;
}
/* ---------- hero ---------- */

.hero {
    min-height: 25rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.hero::before { 
    content: '';
    background-image: url('../img/studiodent-head.jpg');
    position: absolute;
    background-size: cover;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0.3;
}

.hero p {
    margin-bottom: 1.25rem;
}

.hero-social {
    gap: 2rem;
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding-left: 0;
}

.hero-social a {
    color: #008798;
}

.hero-social a:hover {
    color: #017685;
}

.hero-shape {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.hero-social .fab {
    font-size: 2rem;
}

.hero-shape-fill {
    fill: #fff;
}   

.header-info {
    position: relative; 
    z-index: 1;
}

/* ---------- btn ---------- */

.btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    line-height: 1;
    font-weight: 500;
    background-color: #008798;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    border: none;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.btn:hover {
    color: #fff;
    text-decoration: none;
    background-color: #017685;
}

/* ---------- heading ---------- */

.heading {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
}

.heading-h1 {
    font-size: 2.8125rem;
    margin-bottom: 1.25rem;
}

.heading-h2 {
    font-size: 2rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    text-align: center;
}

.heading-h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.heading-h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ---------- services ---------- */

.services {
    padding-top: 2.5rem;
}

.services-item:first-child {
    padding-top: 0;
}

.services-item {
    padding-top: 1.75rem;
}

.services-item img {
    margin-bottom: 1.25rem;
}

/* ---------- about-us ---------- */

.about-us {
    padding-top: 2.5rem;
}

.about-us-social {
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-us-social ul {
    justify-content: center;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    gap: 1.25rem;
}

.about-us-social a {
    text-decoration: none;
    color: #008798;
}

.about-us-social a:hover {
    color: #017685;
}

.about-us-phone {
    color: inherit;
}

/* ---------- desc-blocks ---------- */

.desc-blocks {
    padding-top: 2.5rem;
}

.desc-item {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
}

.desc-item-icon {
    font-size: 2rem;
    color: #008798;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------- photo-gallery ---------- */

.photo-gallery {
    padding-top: 2.5rem;
}

/* ---------- specialists ---------- */

.specialists {
    padding-top: 2.5rem;
}

.specialist-item {
    text-align: center;
    margin-bottom: 1rem;
}

.specialist-item img {
    margin-bottom: 0.625rem;
}

.specialist-name {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.5;
    color: #1a1a1a;
}

.specialist-function {
    display: block;
}

.specialist-class {
    text-align: center;
}

/* ---------- reviews ---------- */

.reviews {
    text-align: center;
    padding-top: 2.5rem;
}

.reviews-item {
    text-align: center;
    margin-bottom: 1.25rem;
}

.reviews-item p {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.reviews-item strong {
    display: block;
    font-size: 0.875rem;
    line-height: 1.5rem;
    font-weight: 400;
}

/* ---------- gallery ---------- */

.gallery {
    padding-top: 2.5rem;
}

/* ---------- slider ---------- */

.slider {
    display: flex;
    flex-direction: column;
}

/* ---------- contacts ---------- */

.contacts {
    text-align: center;
    padding-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.contacts-info {
    margin-bottom: 2.5rem;
}

.contact-blocks {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-item-icon {
    font-size: 2rem;
    color: #008798;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-text strong {
    font-family: 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.contact-item-text a {
    text-decoration: none;
    color: #5a5a5a;
}

.contact-item-text a:hover {
    text-decoration: underline;
}

/* ---------- footer ---------- */

footer {
    background-color: #008798;
    text-align: center;
}

.footer-logo {
    max-width: 12rem;
    width: 100%;
}

.footer-info {
    padding: 2.5rem 0;
}

.footer-menu {
    list-style-type: none;
    margin-bottom: 0;
    padding-left: 0;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.footer-social-link {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
}

.footer-social-icon svg{
    width: 1.4375rem;
    height: 1.4375rem;
    fill: #fff;
}

.footer-copyright {
    background-color: #017685;
    text-align: center;
    color: #fff;
    padding: 1.25rem 1.875rem 0.25rem;
}

@media (min-width: 767px) { 
    .header {
        padding: 1rem 2rem;
    }

    .hero {
        min-height: 24rem;
    }

    .hero::before { 
        top: -7rem;
    }

    .collapse:not(.show) {
        display: flex;
    }

    .navbar-collapse {
        flex-basis: auto;
        flex-grow: inherit;
    }

    .header-nav {
        display: flex;
        flex-direction: row;
        background-color: transparent;
        gap: 2rem;
        text-align: start;
    }
    
    .nav-item {
        border-top: none;
        padding: 0;
    }

    .heading-h1 {
        font-size: 3.5rem;
    }
    
    .heading-h2 {
        font-size: 2.5rem;
    }
    
    .heading-h3 {
        font-size: 1.25rem;
    }

    .services-item img {
        margin-bottom: 0;
    }
        
    .specialist-item {
        margin-bottom: 1.25rem;
    }

    .specialist-name {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .specialist-function {
        margin-bottom: 0.5rem;
    }

    .reviews {
        text-align: left;
    }

    .reviews-item span {
        text-align: left;
        display: block;
    }

    .reviews-item p {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .reviews-item strong {
        font-size: 1rem;
    }

    .slider {
        row-gap: 1.5rem;
    }

    .contact-item {
        margin-bottom: 0;
    } 

    footer {
        text-align: left;
    }

    .footer-info {
        padding: 3.75rem 0;
    }
}

@media (min-width: 991px) { 
    .hero {
        min-height: 30rem;
    }

    .hero::before { 
        top: -10rem;
    }

    .desc-item {
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
    }

    .services-item {
        padding-top: 3rem;
    }

    .contact-item { 
        flex-direction: row;
    }

    .footer-logo {
        max-width: 18.75rem;
    }

    .footer-social-link {
        justify-content: flex-start;
        flex-direction: row;
        gap: 2.5rem;
    }
}

.swiper {
    margin-bottom: 2.5rem;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
  }

@media (min-width: 1399px) { 
    .hero::before { 
        top: -25rem;
    }
}


@media (min-width: 1199px) and (max-width: 1199px) {
    .hero::before {
        top: -15rem;
    }
}