:root {
  --color-iris: #4d5ae5;
  --color-ocean: #404bbf;
  --color-green: #31d0aa;
  --color-slate: #434455;
  --color-light-slate: #8e8f99;
  --color-cornflower: #e7e9fc;
  --color-cloud: #f4f4fd;
  --color-white: #ffffff;
  --color-dairy: #fcfcfc;
  --color-grey: #1a2745;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--color-slate);
  background-color: var(--color-white);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.list {
  list-style: none;
}

.link {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin: 0;
  padding: 0;
}

input,
textarea,
button {
  font: inherit;
}

button {
  cursor: pointer;
  color: currentColor;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}



.is-hidden-js {
  transform: scale(0.3);
  position: absolute;
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  border: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.visually-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;
}

.container {
  min-width: 320px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

@media screen and (min-width: 428px) {
  .container {
    width: 428px;
  }
}

@media screen and (min-width: 768px) {
  .container {
    width: 768px;
  }
}

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

/* ---------- Page Startseite ---------- */

.header {
  box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
    background-color: var(--color-grey);
}

.header-container {
  display: flex;
  align-items: center;

}

.header-nav {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .header-nav__item {
    display: none;
  }
  
}

.header-nav__logo-blue {
  color: var(--color-iris);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 76px;
}

.header-nav__logo-black {
  color: var(--color-grey);
}

.header-nav__list {
  display: flex;
  gap: 40px;
}

.header-nav__link {
  color: var(--color-cloud);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  padding-top: 24px;
  padding-bottom: 24px;
  position: relative;
  display: block;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav__link:hover,
.header-nav__link:focus {
  color: var(--color-ocean);
}

.header-nav__link.current {
  color: var(--color-ocean);
}

.header-nav__link.current::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-ocean);
  position: absolute;
  bottom: -1px;
  left: 0;
}

.header-contacts {
  font-style: normal;
  margin-left: auto;
  margin-top: 15px;
}



@media screen and (min-width: 1158px) {
  .header-contacts__list {
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    gap: 40px;
  }

  .header-contacts {
  font-style: normal;
  margin-left: auto;
}
}


@media screen and (max-width: 1157px) {
  .header-contacts__item:first-child {
    margin-bottom: 12px;
  }
}

@media screen and (min-width: 768px) {
  .header-contacts__link {
    color: var(--color-cloud);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@media screen and (min-width: 1158px) {
  .header-contacts__link {
    font-size: 16px;
    line-height: 1.5;
    display: inline-block;
  }
  
}

.header-contacts__link:hover,
.header-contacts__link:focus {
  color: var(--color-ocean);
}

.header-contacts__link {
  display: inline-flex;
  align-items: center;
}

.header-contacts__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-contacts__text {
  display: none; /* телефон + планшет */
}

@media screen and (min-width: 1158px) {
  .header-contacts__text {
    display: inline;
  }

  .header-contacts__link {
    gap: 8px;
  }
}
@media screen and (max-width: 767px) {
  .header-contacts__icon {
    width: 28px;
    height: 28px;
  }
}
@media screen and (max-width: 767px) {
  .header-container {
    display: flex;
    align-items: center;
  }

  .header-contacts {
    order: 1;          /* слева */
    margin-left: 0;
  }

  .header-nav {
    order: 2;          /* центр */
    margin: 0 auto;   /* логотип по центру */
  }

  .mobile-menu__open {
    order: 3;          /* справа */
  }

  /* убираем то, что мешает центру */
  .header-nav__logo-blue {
    margin-right: 0;
  }
}


/* ------------------------------------------------------ */

.hero {
  background-color: var(--color-grey);
}

@media screen and (max-width: 1157px) {
  .hero {
    padding: 112px 0;
  }
}


@media screen and (min-width: 1158px) {
  .hero {
    padding: 188px 0;
  }
}

.hero__bg-image {
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url('../images/01-hero/hero.webp');
}

.logo_image {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 40px;
  background-image: url('../images/PHOTO-2025-12-02-07-27-19.png');
}

@media (min-device-pixel-ratio: 2),
  (min-resolution: 192dpi),
  (min-resolution: 2dppx) {
  .hero__bg-image {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url('../images/01-hero/hero.webp');
  }
}

@media screen and (min-width: 768px) {
  .hero__bg-image {
    width: 100%;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url('../images/01-hero/hero.webp');
  }

  @media (min-device-pixel-ratio: 2),
    (min-resolution: 192dpi),
    (min-resolution: 2dppx) {
    .hero__bg-image {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url('../images/01-hero/hero.webp');
    }
  }
}

/* Desktop 1x */
@media screen and (min-width: 1158px) {
  .hero__bg-image {
    width: 100%;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../images/01-hero/hero.webp");
  }
}

/* Desktop 2x (Retina) */
@media screen and (min-width: 1158px) and
  (min-device-pixel-ratio: 2),
  screen and (min-width: 1158px) and
  (min-resolution: 192dpi),
  screen and (min-width: 1158px) and
  (min-resolution: 2dppx) {

  .hero__bg-image {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../images/01-hero/hero.webp");
  }
}


.hero__title {
  color: var(--color-white);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  max-width: 320px;
  text-align: center;
  margin: 0 auto 72px;
}

@media screen and (min-width: 768px) {
  .hero__title {
    font-size: 56px;
    line-height: 1.07;
    max-width: 496px;
    margin: 0 auto 36px;
  }
}

@media screen and (min-width: 1158px) {
  .hero__title {
    margin: 0 auto 48px;
  }
}

.hero__button {
  color: var(--color-white);
  background-color: var(--color-grey);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 4px;
  padding: 16px 32px 16px 32px;
  border: none;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
  min-width: 169px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__button:hover,
.hero__button:focus {
  background-color: var(--color-ocean);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
}



/* ------------------------------------------------------ */

@media screen and (max-width: 1157px) {
  .company {
    padding: 20px 0;
  }
  
}

@media screen and (min-width: 1158px) {
  .company {
    padding: 50px 0;
  }

    .company__list {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .company__item {
    width: calc((100% - 48px) / 3);
  }
}

@media screen and (max-width: 767px) {
  .company__list {
    display: flex;
    flex-direction: column;
    gap: 10px;

  }
}

@media screen and (min-width: 768px) {
  .company__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 30px;
    column-gap: 10px;
  }
}

.header-contacts__icon {
  fill: currentColor;
  margin-right: 8px;

}

.header-contacts__link {
  color: #ffffff;
  display: flex;
  align-items: center;
}

.footer__map {
  display: flex;
  align-items: center;
}


@media screen and (min-width: 1158px) {
  .company__list {
    flex-wrap: nowrap;
    gap: 24px;
  }
}

@media screen and (min-width: 768px) {
  .company__item {
    width: calc((100% - 24px) / 2);
  }

  
}




.company__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  border-radius: 4px;
  background-color: var(--color-cloud);
}

@media screen and (max-width: 1157px) {
  .company__wrapper {
    display: none;
  }
}

.company__title {
  color: var(--color-grey);
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.11;

}
.company__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.company__link:hover,
.company__link::after {
  cursor: pointer;
  color: var(--color-iris);
}

.company__title {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.company__title::after {
  margin-left: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.company__title:hover,
.company__title:hover::after {
  color: var(--color-ocean);
}

.company__title:hover::after {
  transform: translateX(4px);
}




/* заголовок как ссылка */
.company__title {
  margin-bottom: 12px;
}

/* контейнер картинки */
.company__link > div {
  width: 100%;
  height: 200px;              /* ❗ одинаковая высота */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* сама картинка */
.company__image {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ❗ обрезка без искажений */
  display: block;
}

/* лёгкий hover-эффект (по желанию) */
.company__link:hover .company__image {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}


@media screen and (min-width: 768px) {
  .company__title {
    text-align: start;
  }
}



@media screen and (min-width: 1158px) {
  .company__title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
  }
}

.company__text {
  color: var(--color-slate);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

@media screen and (min-width: 1158px) {
  .company__text {
    font-weight: 400;
  }
}

@media screen and (max-width: 767px) {
  .company__wrapper {
    display: flex;
  }
}


/* ------------------------------------------------------ */


@media screen and (max-width: 1157px) {
  .works__list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 0;
    padding-left: 32px;
    position: relative; 
    padding-bottom: 20px;
  }}
  @media screen and (max-width: 1157px) {

  /* светлая вертикальная линия */
  .works__list::before {
    content: "";                /* ❗ ОБЯЗАТЕЛЬНО */
    position: absolute;
    top: 0;
    left: 12px;
    width: 3px;
    height: 95%;
    background-color: #d6e9d8;
    z-index: 0;
  }

  /* зелёный участок (ТОЛЬКО первый шаг) */
  .works__list::after {
    content: "";                /* ❗ ОБЯЗАТЕЛЬНО */
    position: absolute;
    top: 0;
    left: 12px;
    width: 3px;
    height: 60px;
    background-color: #2e8b57;
    z-index: 1;
  }

  .works__item {
    position: static; /* ❗ убираем координатную систему */
  }

  .works__item--decorated::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 13.5px;               /* ТО ЖЕ значение, что у линии */
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #2e8b57;
    z-index: 1000;
  }


  

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .workswrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .works__image {
    width: 100%;
    height: auto;
    display: block;
  }

  .workswrapper h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
  }

  .workswrapper p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
  }
}

@media screen and (min-width: 1158px) {
  .works {
    padding-bottom: 50px;
  }
  .works__list {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    margin-top: 80px;
  }


.works__list::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #d6e9d8;
}

  .works__list::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 18%; /* под первый элемент */
  height: 3px;
  background-color: #2e8b57;
}
 .works__item {
  width: 22%;
  position: relative;
  text-align: center;
}
.works__item--decorated::before {
  content: "";
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #2e8b57;
}


  .works__title {
    color: var(--color-grey);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    text-transform: capitalize;
    margin-bottom: 72px;
  }

  .works__list {
    display: flex;
    gap: 24px;
  }
}

/* ------------------------------------------------------ */

.team {
  background-color: var(--color-cloud);
}

@media screen and (max-width: 1157px) {
  .team {
    padding: 10px 0;
  }
}

@media screen and (min-width: 1158px) {
  .team {
    padding: 30px 0;
  }
}

.team__title {
  color: var(--color-grey);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  margin-bottom: 72px;
}

.team__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 72px;
}

@media screen and (min-width: 768px) {
  .team__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 64px;
    column-gap: 24px;
  }
}

@media screen and (min-width: 1158px) {
  .team__list {
    flex-wrap: nowrap;
    gap: 24px;
  }
}

.team__item {
  background-color: var(--color-white);
  box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08);
  border-radius: 0px 0px 4px 4px;
}

@media screen and (min-width: 768px) {
  .team__item {
    width: calc((100%-24px) / 2);
  }
}

@media screen and (min-width: 1158px) {
  .team__item {
    width: calc((100%-72px) / 4);
  }
}

.team__wrapper {
  padding: 32px 0;
}

.team__specialist {
  color: var(--color-grey);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 8px;
}

.team__job-title {
  color: var(--color-slate);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 8px;
}

.team__list-icons {
  display: flex;
  align-items: center;
  justify-content:start;
  gap: 24px;
}

.mobile-menu__list-icons
{
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: start;
  gap: 8px;
}

@media screen and (max-width: 1157px) {
.team__list-icons{
  justify-content: center;}
}

.team__description {
  padding: 20px 16px 0 16px;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--color-slate);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.43;

}

.about__description {
  padding: 20px 16px 0 16px;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--color-slate);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.43;

}

.about-hero{
  padding: 20px;
  background-color: var(--color-cloud);
}

@media screen and (min-width: 1158px) {
  .about-hero{
    padding: 70px 70px 30px 70px;
    background-color: var(--color-cloud);
  }
  .about__description {
    color: var(--color-slate);
    font-size: 20px;
    line-height: 1.5;
  } }



.team__item-icon {
  width: 40px;
  height: 40px;
}

.team__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-iris);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.team__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-iris);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* WhatsApp modifier */
.team__link-icon--whatsapp {
  background-color: var(--color-green);
}

.team__link-icon:hover,
.team__link-icon:focus {
  background-color: var(--color-ocean);
}

.team__link-icon--whatsapp:hover,
.team__link-icon--whatsapp:focus {
  background-color: var(--color-darkgreen);
}


.team__link-icon:hover,
.team__link-icon:focus {
  background-color: var(--color-ocean);
}

.team__icon {
  fill: var(--color-cloud);
}

/* ------------------------------------------------------ */

@media screen and (max-width: 1157px) {
  .customers {
    padding: 96px 0;
  }
}



@media screen and (min-width: 768px) and (max-width: 1157px) {
  .customers__container {
    width: 552px;
  }
}

.customers__title {
  color: var(--color-grey);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 72px;
}

.customers__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  row-gap: 72px;
}

@media screen and (min-width: 768px) {
  .customers__list {
    gap: 24px;
    row-gap: 72px;
  }
}

@media screen and (min-width: 1158px) {
  .customers__list {
    gap: 24px;
  }
}

.customers__item {
  width: calc((100% - 16px) / 2);
  height: 88px;
}

@media screen and (min-width: 768px) {
  .customers__item {
    width: calc((100% - 48px) / 3);
  }
}

@media screen and (min-width: 1158px) {
  .customers__item {
    width: calc((100% - 120px) / 6);
  }
}

.customers__link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--color-light-slate);
  border-radius: 4px;
  border: 1px solid var(--color-light-slate);
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  fill: currentColor;
}

.customers__link:hover,
.customers__link:focus {
  color: var(--color-ocean);
  border-color: var(--color-ocean);
  fill: var(--color-ocean);
}

/* ------------------------------------------------------ */

.footer {
  background-color: var(--color-grey);
}

.footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  text-align: center;
}


.footer__copyright {
  margin-top: 24px;
  text-align: center;
  opacity: 0.8;
  font-size: 14px;
}

.footer__bottom p {
  margin: 0;        
}


.footer__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.17;
  color: var(--color-white);
  margin-bottom: 16px;
}

@media screen and (max-width: 1157px) {
  .footer {
    padding-bottom: 96px;
  }
    .footer__bottom {
    flex-direction: column;
    gap: 12px;
  }

}

@media screen and (min-width: 1158px) {
  .footer {
    padding-bottom: 100px;
  }
  .footer__bottom {
    flex-direction: row;
    gap: 1px;
  }
}

@media screen and (min-width: 768px) {
  .footer {
    padding: 100px 0;
  }
}

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

@media screen and (min-width: 768px) and (max-width: 1157px) {
  .fff {
    width: 552px;
    text-align: start;
    display: flex;
    flex-wrap: wrap;
  }

  @media screen and (min-width: 768px) {
  .company__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 30px;
    column-gap: 10px;
  }
}
}

@media screen and (min-width: 1158px) {
  .footer-container {
    display: flex;
    text-align: center;
  }
}

.footer__logo-wrapper {
  width: 264px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .footer__logo-wrapper {
    margin: 0 24px 0 0;
  }
}

@media screen and (min-width: 1158px) {
  .footer__logo-wrapper {
    margin-right: 120px;
  }
}

.footer__text {
  color: var(--color-cloud);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  width: 264px;
  margin-left: auto;
  margin-right: auto;
}



.footer__hours {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  column-gap: 12px;
  margin-bottom: 22px;

}



/* рядок: день | години */
.footer__time-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 4px;
  row-gap: 4px;
  align-items: start;
}

/* години справа одна під одною */
.footer__time-wrapper > div {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

/* примітка */
.footer__note {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}

.footer__link {
  color: #ffffff;            /* білий */
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover,
.footer__link:focus {
  color: #1e6cff;            /* синій при наведенні */
}


.footer__logo-box{
  display: flex;
  flex-direction: column;
  align-items: center;
}


.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;

  row-gap: 8px;   /* відстань між параграфами */
  padding: 0 20px;
  margin-bottom: 20px;
}


@media screen and (min-width: 1158px) {
  .footer__map {
    flex: 1;
  }

  .footer__logo-box{
     margin-bottom: 32px;
}
  }



/* ---------- Page Portfolio ---------- */

.gallery {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media screen and (min-width: 768px) {
  .gallery {
    padding-top: 64px;
    padding-bottom: 96px;
  }
}

@media screen and (min-width: 1158px) {
  .gallery {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* ---------- GRID LOGIC (calc stays) ---------- */

.gallery__list {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
}

/* tablet = 2 cards */
@media screen and (min-width: 768px) {
  .gallery__item {
    width: calc((100% - 24px) / 2);
  }
}

/* desktop = 3 cards */
@media screen and (min-width: 1158px) {
  .gallery__item {
    width: calc((100% - 48px) / 3);
  }
}

/* ---------- CARD STRUCTURE ---------- */

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

.gallery__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__link:hover,
.gallery__link:focus {
  box-shadow:
    0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 2px 1px rgba(46, 47, 66, 0.08);
}

/* ---------- IMAGE ---------- */

.gallery__overley-wrapper {
  width: 100%;
  height: 280px;          /* ключ: однакова висота */
  overflow: hidden;
}

@media screen and (min-width: 1158px) {
  .gallery__overley-wrapper {
    height: 340px;
  }
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- CONTENT ---------- */

.gallery__wrapper {
  border: 1px solid var(--color-cornflower);
  border-top: none;
  padding: 24px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery__title {
  color: var(--color-grey);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

/* ---------- TEXT ---------- */

.company__text {
  color: var(--color-slate);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---------- LISTS (FIXED & BEAUTIFUL) ---------- */

.gallery__list-text,
.gallery__wrapper ul {
  margin-top: 12px;
  padding-left: 18px;
  list-style: disc;
}

.gallery__list-text li,
.gallery__wrapper ul li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-slate);
  margin-bottom: 6px;
}

/* ---------- MOBILE FIX ---------- */

@media screen and (max-width: 767px) {
  .gallery__item {
    width: 100%;
  }
}




/* ---------- Modal Window ---------- */

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 47, 66, 0.4);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 408px;
  min-height: 584px;
  border-radius: 4px;
  box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2),
    0px 1px 3px 0px rgba(0, 0, 0, 0.12), 0px 1px 1px 0px rgba(0, 0, 0, 0.14);
  background-color: var(--color-dairy);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 72px 24px 24px 24px;
}

@media screen and (max-width: 427px) {
  .modal {
    max-width: 320px;
    overflow-y: scroll;
  }
}

@media screen and (min-width: 768px) {
  .modal {
    max-width: 408px;
  }
}

.modal__button-close {
  padding: 0;
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--color-cornflower);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__button-close:hover,
.modal__button-close:focus {
  background-color: var(--color-ocean);
  border: none;
  fill: var(--color-white);
}

.modal__icon-close {
  fill: var(--color-grey);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__button-close:hover .modal__icon-close,
.modal__button-close:focus .modal__icon-close {
  fill: var(--color-white);
}

.modal__title {
  color: var(--color-grey);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.32px;
  text-align: center;
  margin-bottom: 16px;
  display: block;
}

.modal__wrapper {
  margin-bottom: 8px;
}

.modal__label {
  color: var(--color-light-slate);
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

.modal__icon-wrapper {
  position: relative;
}

.modal__input {
  width: 100%;
  height: 40px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  background-color: transparent;
  padding-left: 38px;
  outline: transparent;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__input:focus {
  border-color: var(--color-iris);
}

.modal__input:focus + .modal__icon {
  fill: var(--color-iris);
}

.modal__icon {
  fill: var(--color-grey);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__text-field-wrapper {
  margin-bottom: 16px;
}

.modal__text-field {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  width: 100%;
  min-height: 120px;
  padding: 8px 16px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  outline: transparent;
  resize: none;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color:#1a2745;
  background-color: transparent;
}

.modal__text-field::placeholder {
  color: rgba(46, 47, 66, 0.4);
}

.modal__text-field:focus {
  border-color: var(--color-iris);
}

.modal__check-wrapper {
  margin-bottom: 24px;
}

.modal__check-input:checked + .modal__check-text .modal__check-box {
  background-color: var(--color-ocean);
  border: none;
  fill: var(--color-cloud);
}

.modal__check-text {
  color: var(--color-light-slate);
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.modal__check-box {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: transparent;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1),
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.modal__check-input:focus + .modal__check-text .modal__check-box {
  border-color: var(--color-ocean);
}

.modal__link-text {
  margin-left: 4px;
  color: var(--color-iris);
  text-decoration: underline;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__link-text:hover,
.modal__link-text:focus {
  color: var(--color-ocean);
}

.modal__button-submit {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  min-width: 169px;
  height: 56px;
  border-radius: 4px;
  background-color: var(--color-iris);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  padding: 16px 32px;
  margin: 0 auto;
  display: block;
  color: var(--color-white);
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__button-submit:hover,
.modal__button-submit:focus {
  background-color: var(--color-ocean);
}

/* ---------- Mobile Menu ---------- */

@media screen and (min-width: 768px) {
  .mobile-menu__open {
    display: none;
  }
}

.mobile-menu__open {
  padding: 24px 0;
  line-height: 0;
  background-color: transparent;
  border: none;
  margin-left: auto;
}

.mobile-menu__open-icon {
  fill: var(--color-grey);
}

.mobile-menu__container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-cloud);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__container.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

@media screen and (max-width: 767px) {
  .mobile-menu__wrapper {
    max-width: 428px;
  }
}

.mobile-menu__wrapper {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 80px 40px 40px 40px;
  margin-left: auto;
  margin-right: auto;
  overflow: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__close:hover,
.mobile-menu__close:focus {
  background-color: var(--color-ocean);
  border: none;
  fill: var(--color-white);
}

.mobile-menu__close-icon {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__item:not(:last-child) {
  margin-bottom: 20px;
}

.mobile-menu__nav {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: var(--color-grey);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__nav:hover,
.mobile-menu__nav:focus {
  color: var(--color-ocean);
}

.mobile-menu__nav.current {
  color: var(--color-ocean);
}

.mobile-menu__contacts {
  margin-top: auto;
  margin-bottom: 40px;
}

.mobile-menu__contacts-item:last-child {
  margin-top: 40px;
}

.mobile-menu__contacts-list{
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}
.mobile-menu__contacts-tel {
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--color-iris);
}

.mobile-menu__contacts-mail {
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-slate);
}

.mobile-menu__social-list {
  display: flex;
  justify-content: start;
  gap: 56px;
}

.mobile-menu__social-item {
  width: 40px;
  height: 40px;
}

.mobile-menu__social-icon {
  fill: var(--color-cloud);
}

.mobile-menu__social-link {
  width: 100%;
  height: 100%;
  background-color: var(--color-iris);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__social-link:focus {
  background-color: var(--color-ocean);
}

@media screen and (max-width: 427px) {
  .mobile-menu__social-list {
    gap: calc((100% - 160px) / 4);
  }

  .mobile-menu__contacts-tel {
    font-size: 24px;
  }
}

.is-active-js {
  color: var(--color-white);
  background-color: var(--color-ocean);
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.12),
    0px 2px 1px 0px rgba(0, 0, 0, 0.08), 0px 3px 1px 0px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
}

.form-message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  z-index: 9999;
  transition: opacity 0.4s;
}

.form-message.success {
  background-color: #2e8b57;
}

.form-message.error {
  background-color: #c0392b;
}
/* ===== Datenschutz checkbox ===== */

.modal__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  color: var(--color-slate);
}

.modal__checkbox-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal__checkbox-custom {
  width: 16px;
  height: 16px;
  border: 1px solid #8e8f99;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.modal__checkbox-label input:checked + .modal__checkbox-custom {
  background-color: var(--color-ocean);
  border-color: var(--color-ocean);
}

.modal__checkbox-label input:checked + .modal__checkbox-custom::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

.modal__checkbox-wrapper {
  margin: 16px 0;
  font-size: 14px;
}

.modal__checkbox-label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #333;
}

.modal__checkbox-label input {
  margin-top: 3px;
}

.modal__privacy-link {
  color: #1e6cff;
  text-decoration: underline;
  cursor: pointer;
}


.modal--large {
  max-width: 720px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal__content h3 {
  margin-top: 16px;
}

.modal__checkbox-label input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  opacity: 1;
  position: static;
  width: 16px;
  height: 16px;
}


/* ================================
   DATENSCHUTZ MODAL – FULL STYLES
================================ */

/* BACKDROP */
.backdrop--datenschutz {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, 0.7);

  opacity: 1;
  visibility: visible;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.backdrop--datenschutz.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* MODAL */
.modal--datenschutz {
  position: relative;

  width: 100%;
  max-width: 820px;
  max-height: 90vh;

  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  padding: 32px 40px;
  overflow-y: auto;
}

/* CLOSE BUTTON */
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;

  width: 36px;
  height: 36px;

  border: none;
  background: transparent;
  border-radius: 50%;

  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #475569;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color 200ms ease, color 200ms ease;
}

.modal__close:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

/* TITLE (H2) */
.modal__title {
  margin-bottom: 28px;

  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;

  color: #0f172a;
}

/* CONTENT WRAPPER */
.modal__content {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

/* PARAGRAPHS */
.modal__content p {
  margin-bottom: 16px;

  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

/* HEADINGS (H3) */
.modal__content h3 {
  margin-top: 28px;
  margin-bottom: 12px;

  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;

  color: #0f172a;
}

/* LINKS */
.modal__content a {
  color: #0284c7;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;

  transition: color 200ms ease;
}

.modal__content a:hover {
  color: #0369a1;
}

/* CONTACT BLOCK */
.modal__contact {
  margin-top: 24px;
  font-weight: 500;
  color: #0f172a;
}

/* SCROLLBAR (optional, clean look) */
.modal--datenschutz::-webkit-scrollbar {
  width: 6px;
}

.modal--datenschutz::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* MOBILE */
@media (max-width: 768px) {
  .modal--datenschutz {
    padding: 24px 20px;
    max-height: 92vh;
  }

  .modal__title {
    font-size: 22px;
  }

  .modal__content h3 {
    font-size: 17px;
  }

  .modal__content p {
    font-size: 14px;
  }
}
.is-invalid {
  border-color: #e53935;
}

.is-invalid:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}

