
:root {
    --color-black: #191919;
    --color-white: #FFFFFF;
    --color-primary: #EC2027;
    --font-size-3xl: 48px;
    --font-size-2xl: 28px;
    --font-size-xl: 20px;
    --font-size-base: 16px;
    --spacing-3xl: 60px;
    --spacing-2xl: 48px;
    --spacing-xl: 32px;
    --spacing-md: 16px;
    --spacing-sm: 12px;
    --font-family: 'Avenir Next Cyr', sans-serif;
    --font-weight-regular: 450;
    --font-weight-medium: 600;
    --font-weight-bold: 700;
    --line-height: 1.225;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--color-black);
    line-height: var(--line-height);
    background-color: var(--color-white);
    padding-top: 112px;
}

.section-title {
    width: 100%;
    text-align: center;
    font-size: var(--font-size-3xl);
    line-height: 56px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-black);
    padding: 16px;
    z-index: 1000;
}

.navigation {
    width: 100%;
    max-width: 1294px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.logo-mobile {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li{
    width: 109px;
    text-align: center;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
}

.hero-content-container {
    width: 100%;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 142px
}
.hero-content-wrapper  {
    max-width: 1308px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    padding: 0 16px;
}

.hero-content-text {
  max-width: 800px;
  height: 135px;
  font-family: var(--font-family);
  font-style: normal;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-2xl);
  line-height: 34px;
  text-align: justify;
  color: var(--color-white);
}

.hero-content h1 {
    color: var(--color-white);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    font-family: var(--font-family);
}


.hero-image-container {
   position: relative;
   min-width: 447px;
   height: 280px;
}

.hero-image {
   position: absolute;
   right: 35px;
   top: 25px;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
    max-width: 1295px;
    margin: 0 auto;
    padding: 0 16px;
}


.about {
    max-width: 1279px;
}
.about p {
    font-size: var(--font-size-2xl);
    line-height: 32px;
    font-weight: 450;
    text-align: justify;
}

.services {
    display: flex;
    gap: var(--spacing-3xl);
}

.services-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 59px;
    color: #EC2027;
}

.services-content {
    font-weight: 550;
    font-size: 28px;
    line-height: 34px;
    text-align: justify;
    color: #191919;
}

.services-content p:first-child{
    margin-bottom: 22px;
}

.amenities {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 44px;
}
.amenity-item {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: start;
}
.amenity-item-icon {
    width: 119px;
    height: 119px;
}

.amenity-item-text__title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.amenity-item-text p {
    font-weight: 500;
    font-size: 28px;
    line-height: 32px;
    text-align: justify;
}

.additional {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}
.additional-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.additional-item {
    display: flex;
    gap: 16px;
    align-items: center;
    font-weight: 550;
    font-size: 28px;
    line-height: 32px;
    text-align: justify;
    color: #191919;
}

.advantages {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.advantages-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    height: 74px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.advantages-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    align-items: stretch;
    margin-bottom: 16px;
}

.contacts-title {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-3xl);
    line-height: 42px;
    text-align: center;
}

.contacts-company {
    font-weight: 450;
    font-size: var(--font-size-2xl);
    line-height: 21px;
    text-align: center;
}

.contacts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 33px;
    margin-top: 12px;
}

.contact-item {
    flex: 1 1 calc(33.333% - 22px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

.contact-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.contact-text {
    font-weight: 500;
    font-size: var(--font-size-2xl);
    line-height: 33px;
    text-align: center;
}

.contact-text a {
    color: inherit;
    text-decoration: none;
}

footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 44px 0;
}

footer p {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    margin: 0 auto;
    font-family: var(--font-family);
    max-width: 1278px;
}

@media (max-width: 1165px) {
    .hero-image-container {
        display: none;
    }

    .hero-content-text {
        max-width: 100%;
        height: 145px;
    }

    .hero-content-container {
margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 51px;
    }

    .section-title {
        font-weight: 700;
        font-size: 20px;
        line-height: 24px;
        text-align: center;
        vertical-align: middle;
    }

    .header {
        padding: 0 18px;
    }

    .navigation {
        height: 51px;
    }

    .logo {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .nav-links {

    }

    .nav-links li {
        width: unset;
        text-align: center;
    }

    .nav-links a {
        font-weight: 600;
        font-size: 16px;
        margin-left: 10px;
    }

    .hero-content-container {
        width: 100%;
        background-color: unset;
        display: unset;
        justify-content: unset;
        align-items: unset;
        margin-bottom: 0;
        color: #191919;
    }

    .hero-content-text {
        max-width: unset;
        height: unset;
        font-style: normal;
        font-weight: 550;
        font-size: 16px;
        line-height: 20px;
        text-align: justify;
        color: #191919;
    }

    .hero-content h1 {
        color: #191919;
        font-weight: 700;
        font-size: 20px;
        line-height: 24px;
        letter-spacing: 0%;
    }

    .hero-content {
        margin-top: 32px;
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 20px;
    }

    .hero-content-wrapper {
        padding: 0;
    }

    .hero-image-container {
        display: none;
    }

    .hero-image {
        display: none;
    }

    .hero-image img {

    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin: 0 auto;
        padding: 0;
    }

    .about {

    }

    .about p {
        font-size: 16px;
        line-height: 20px;
        font-weight: 550;
        text-align: justify;
    }

    .services {
        flex-direction: column;
        gap: 16px;
    }

    .services-title {
        font-weight: 700;
        font-size: 20px;
        line-height: 24px;
        color: #EC2027;
    }

    .services-content {
        font-size: 20px;
        line-height: 24px;
    }

    .services-content p:first-child {

    }

    .amenities {
        gap: 32px;
    }

    .amenities-list {
        gap: 32px;
        margin-bottom: 0;
    }

    .amenity-item {
        gap: 12px;
    }

    .amenity-item-icon img{
        width: 58px;
        height: 58px;
    }

    .amenity-item-text__title {
        font-size: 16px;
        line-height: 20px;
        font-weight: 700;
    }

    .amenity-item-text p {
        font-size: 16px;
        line-height: 20px;
        font-weight: 450;
    }

    .additional {
        gap: 16px;
    }

    .additional-list {
        gap: 12px;
    }

    .additional-item {
        gap: 20px;
        font-size: 16px;
        line-height: 20px;
    }

    .advantages {
        gap: 16px;
    }

    .advantages-title {
        font-size: 20px;
        line-height: 24px;
        height: auto;
    }

    .advantages-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .advantages-list img {

    }

    .contacts {
        gap: 16px;
    }

    .contacts-title {
        font-size: 20px;
        line-height: 24px;
    }

    .contacts-company {
        font-size: 16px;
        line-height: 20px;
    }

    .contacts-list {
        gap: 12px;
        margin-top: 0;
    }

    .contact-item {
        flex: 1 1 100%;
        gap: 0px;
    }

    .contact-icon {
        scale: 0.75;
    }

    .contact-icon img {

    }

    .contact-text {
        font-size: 16px;
        line-height: 20px;
    }

    main {
        padding: 0 17.5px;
    }

    footer {
        padding: 24px 18px;
        text-align: justify;
    }

    footer p {
        font-weight: 550;
        font-size: 16px;
        line-height: 24px;
    }
}
