:root {
    --color-body: #020049c4;
    --color-nav: #0c0b2bc5;
    --color-log0: #fff;
    --color-nav: #fff;
    --color-title: #fff;
    --color-section-title: #ffffffaf;
    --color-subtitle: #ffffff9e;
    --color-name: #fff;
    --color-city: #ffffff9e;
    --color-category: #ffffff9e;
    --color-date: #ffffff9e;
    --color-border: #ffffff9e;
    --color-region: #ffffff9e;
    --color-footer: #bcbcbc9d;

    --font: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

body {
    background: var(--color-body);
}

section {
    width: 100%;
    margin-bottom: 100px;
}

@media screen and (max-width: 778px) {
    section {
        margin-bottom: 50px;
    }
}

.wrapper {
    width: 100%;
    min-height: 100vh;
    background-image: url(img/45.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -5;
    padding-top: 30px;
}

/* header */

.header {
    width: 100%;
    padding: 24px 0;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 10;
    justify-content: space-between;
    margin-bottom: 100px;
}

@media screen and (max-width: 678px) {
    .header {
        margin-bottom: 50px;
    }
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.007) 0%, rgba(255, 255, 255, 0.166) 70%);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

@media screen and (max-width: 1250px) {
    .container {
        padding: 0 15px;
    }
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    max-width: 107px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.logo__text {
    font-family: var(--font);
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 8%;
    color: var(--color-log0);
}

/* @media screen and (max-width: 678px) {
    .nav__list {
        display: none;
    }

    .burger {
        display: block;
    }
} */

.nav__item {
    position: relative;
    z-index: 2;
}

.nav__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-nav);
    transition: width 0.5s ease-in-out;
}

.nav__item:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: linear-gradient(to right, rgba(255, 255, 255, 0.967) 0%, rgba(255, 255, 255, 0.166) 70%);
    transition: width 0.5s ease-in-out;
}

.nav__link {
    font-family: var(--font);
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 8%;
    color: var(--color-nav);
}

/* main */

.home {
    width: 100%;
}

.home__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 678px) {
    .home__container {
        flex-direction: column-reverse;
    }
}

.home__wrapper-img {
    max-width: 500px;
    width: 100%;
    height: 300px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.home__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.title {
    max-width: 600px;
    width: 100%;
    font-family: var(--font);
    font-weight: 400;
    font-size: 48px;
    line-height: 56px;
    letter-spacing: 8%;
    color: var(--color-title);
    text-align: center;
}

.title__region {
    max-width: 100%;
    text-align: center;
}

.wrapper-title {
    width: 100%;
}

.title-post {
    width: 100%;
    font-family: var(--font);
    font-weight: 400;
    font-size: 48px;
    line-height: 56px;
    letter-spacing: 8%;
    color: var(--color-title);
    text-align: center;
}

@media screen and (max-width: 678px) {
    .title {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 405px) {
    .title {
        font-size: 32px;
        line-height: 40px;
    }
}

.subtitle {
    width: 100%;
    font-family: var(--font);
    font-weight: 400;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 8%;
    color: var(--color-subtitle);
    text-align: center;
    margin-top: 30px;
}

@media screen and (max-width: 756px) {
    .subtitle {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 30px;
    }
}

.section__text {
    width: 100%;
    font-family: var(--font);
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 8%;
    color: var(--color-subtitle);
}

@media screen and (max-width: 776px) {
    .section__text {
        font-size: 18px;
        line-height: 24px;
        text-align: center;
    }
}

/* region */
/* category */

.region,
.category {
    width: 100%;
}

.region__list,
.category__list {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 20px;
}

@media screen and (max-width: 678px) {
    .region__list,
    .category__list {
        justify-content: center;
    }
}

.btn {
    max-width: 190px;
    width: 100%;
    padding: 20px;
    text-align: center;
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 8%;
    color: var(--color-region);
    border: 3px solid var(--color-border);
    background-color: transparent;
    cursor: pointer;
}

/* profile */

.profile {
    width: 100%;
}

.profile__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 20px;
}

@media  screen and (max-width: 678px) {
    .profile__container {
        justify-content: center;
    }
}

.section__title {
    width: 100%;
    font-family: var(--font);
    font-weight: 400;
    font-size: 40px;
    line-height: 28px;
    letter-spacing: 8%;
    color: var(--color-section-title);
    text-align: center;
    margin-bottom: 50px;
}

.about__list {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    row-gap: 10px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.about__item {
    font-family: var(--font);
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 8%;
    color: var(--color-subtitle);
}

@media screen and (max-width: 575px) {
    .about__item {
        font-size: 20px;
        line-height: 28px;
    }
}

@media screen and (max-width: 490px) {
    .about__item {
        font-size: 16px;
        line-height: 24px;
    }
}

@media screen and (max-width: 400px) {
    .about__item {
        font-size: 14px;
        line-height: 20px;
    }
}

.contact__container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 70px;
}

.contact__title {
    width: 100%;
    font-family: var(--font);
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 8%;
    color: var(--color-section-title);
    text-align: center;
    margin-bottom: 30px;
}

.contact__btn {
    max-width: 190px;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-family: var(--font);
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 8%;
    color: var(--color-title);
    border: 3px solid var(--color-border);
    background-color: transparent;
    cursor: pointer;
}

.card {
    max-width: 290px;
    width: 100%;
    height: 180px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px;
    border-radius: 10px;
}

.card__photo {
    max-width: 174px;
    width: 100%;
    height: 174px;
    border: 1px solid var(--color-border);
    background-color: rgba(14, 14, 62, 0.475);
    border-radius: 10px;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 0 0;
}

.card__name {
    font-family: var(--font);
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 4%;
    color: var(--color-name);
}

.card__city {
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 4%;
    color: var(--color-city);
}

.card__category {
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 4%;
    color: var(--color-category);
}

.card__date {
    font-family: var(--font);
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 4%;
    color: var(--color-date);
}

/* footer */

.footer {
    padding-bottom: 50px;
}

.footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 20px;
}

@media screen and (max-width: 678px) {
    .footer__container {
        justify-content: center;
    }
}

.footer__tel,
.footer__email {
    font-family: var(--font);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 8%;
    color: var(--color-region);
}

.footer__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 20px;
}

.footer__social {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}


/* ////////////////////////////////////////// */
.nav {
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.nav__checkbox {
  display: none;
}

.nav__list {
    max-width: 360px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Бургер-иконка */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 20;
}

.burger__line {
  display: block;
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
  margin: 6px 0;
  position: relative;
  transition: background 0.3s ease-in-out;
}

.burger__line::before,
.burger__line::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.burger__line::before {
  top: -10px;
}

.burger__line::after {
  top: 10px;
}

.nav__checkbox:checked + .nav__toggle .burger__line {
  background: transparent;
}

.nav__checkbox:checked + .nav__toggle .burger__line::before {
  transform: rotate(45deg);
  top: 0;
}

.nav__checkbox:checked + .nav__toggle .burger__line::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Адаптивность */
@media screen and (max-width: 678px) {
  .nav {
    flex-direction: row;
  }

  .nav__list {
    width: 150px;
    /* display: none; */
    flex-direction: column;
    position: absolute;
    top: 37px;
    right: -180px;
    background-color: #070919bf;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.6s ease;
    z-index: 10;
    gap: 30px;
    overflow: hidden;
  }

  .nav__checkbox:checked ~ .nav__list {
    display: flex;
    transition: all 0.6s ease;
    right: 0;
  }

  .nav__toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: -20px;
  }
}





