html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #f3f3f3;
}

.footer{
    height: auto;
    min-height: 100vh;
}

.footerTwo{
    height: auto;
    min-height: 1000px;
}

.footerThree{
    height: auto;
    min-height: 850px;
    margin-bottom: 10px;
}

.headerOne {
  display: flex;
  flex-direction: column; /* логотип над меню */
  align-items: center;    /* центрируем по горизонтали */
  gap: 20px;              /* расстояние между лого и меню */
  padding: 20px 0;
}

.logo {
  width: clamp(120px, 20vw, 190px);
  height: auto;
  margin: 0;
}

.nav {
  display: flex;
  justify-content: space-around; /* равные расстояния между элементами */
  align-items: center;
  flex-wrap: wrap; /* на мобильных экранах элементы могут переноситься */
  width: 100%; /* чтобы занимать всю ширину */
  max-width: 1200px; /* при желании ограничить максимальную ширину */
  margin: 0 auto; /* центрируем блок на странице */
  padding: 10px 0;
}


.item {
  text-decoration: none;
  color: black;
  font-size: 20px;
  font-family: "Forum", serif;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.item:hover {
  transform: scale(1.2);
}

/*
.logo{
    position: relative; 
    display: block;
    margin: 20px auto;
    width: clamp(120px, 20vw, 190px);
}

.nav {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-top: 5px;
    margin-left: 50px;
}

.item{
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.item:hover{
    transform: scale(1.2);
}
*/

.header{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    text-align: center;
}

.sign{
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 150;
    font-style: normal;
    font-size: clamp(28px, 6vw, 45px);
    margin-top: 0;
    letter-spacing: 5px;
}

.design{
    color: black;
    font-size: clamp(20px, 5vw, 40px);
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
    margin-top: 15px;
}

.buttonsUp{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttons{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn,
.btnBook,
.btnPort{
    background-color: #f3f3f3;
    color: black;
    border: 2px solid #555555;
    text-align: center;  
    padding: 20px;
    width: min(300px, 90%);
    font-size: 20px;
    margin-top: 10px;
    text-decoration: none;
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Плавный переход */
}

.btn:hover, 
.btnBook:hover, 
.btnPort:hover {
    background-color: #000000;
    color: #f3f3f3;
}

.line {
  height: 1px; 
  background-color: black; 
  width: 100%; 
  margin-top: 25px;
}

#about{
    display: flex;
    justify-content: center;
}

.heading{
    font-size: clamp(24px, 4vw, 30px);
    font-family: "Forum", serif;
    font-weight: 700;
    font-style: normal;
}

.containerOne {
  display: flex;
  flex-direction: column;
  justify-content: center; /* вертикальное центрирование */
  align-items: center;     /* горизонтальное центрирование */
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.photoMe{
    display: flex;
    justify-content: center;
}

.photoAbout{
    width: clamp(250px, 40%, 300px);
    height: auto;
}

.about-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;   /* текст тоже по центру */
  font-family: "Forum", serif;
  font-size: 18px;
}

.about-me {         
  text-align: left;
  word-wrap: break-word;
  font-family: "Forum", serif;
  font-size: 18px;
  line-height: 1.6; /* интервал между строчками */
}


.contact{
    display: flex;
    justify-content: center;
}

.containerTwo {
    display: flex;
    flex-direction: column;
    align-items: center;  /* центрируем все элементы по горизонтали */
    justify-content: center;
    padding: 20px;
    gap: 20px;            /* расстояние между картой, текстом и кнопкой */
    max-width: 900px;
    margin: 0 auto;       /* центр контейнера на странице */
}

.map-container {
    width: 100%;
    max-width: 600px;    /* карта не будет растягиваться больше */
    height: 300px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.address {
    text-align: center;  /* текст по центру */
    font-family: "Forum", serif;
    font-size: clamp(18px, 4vw, 20px);
    line-height: 1.5;   /* немного воздуха между строками */
    margin: 0;
}


#portfolio {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.slider-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 10px auto;
    display: flex;
    align-items: center;
}



.slider-wrapper {
    overflow: hidden;
    max-width: 100%;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 10px; /* расстояние между слайдами */
}

.slider img {
    max-height: 600px;   /* высота слайдов адаптивная */
    width: auto;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;   /* сохраняем пропорции без растяжения */
}


.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-btn:active {
    background: rgba(0,0,0,0.8);
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.resume {
    flex-shrink: 0;
}

#flashdesign{
    display: flex;
    justify-content: center;
}

.group{
    display: flex;
    justify-content: center;
}

.flash{
    width: 300px;
    margin: 5px;
}


@media all and (max-width:1366px){

.footer{
    height: auto;      /* пусть высота подстраивается под контент */
    min-height: 95vh;
}

.footerTwo{
    height: auto;
    min-height: 800px;
}

.footerThree{
    height: auto;
    min-height: 630px;
    margin-bottom: 20px;
}

/*
.logo{
    margin-top: 80px;
    margin-left: 600px;
    width: 160px;
}
*/

.item{
    transition: none;
}

.header{
    margin-top: 40px;
}

.sign{
    font-size: clamp(28px, 6vw, 40px);
}

.design{
    font-size: clamp(20px, 5vw, 35px);
}

.btn,
.btnBook,
.btnPort{
    padding: 18px;
    font-size: 18px;
    transition: none;
}


.heading{
    font-size: clamp(24px, 4vw, 28px);
}

.photoAbout{
    width: clamp(250px, 40%, 250px);
    height: auto;
}

.map-container {
  max-width: 350px;   
  height: 210px;  
}

.address {
    font-size: clamp(24px, 4vw, 16px);
}

.slider-container {
  position: relative;
  max-width: 90%;
}


.slider img {
  width: auto;       /* занимает ширину слайда */
  max-height: 600px;      /* сохраняет пропорции */
}

}

@media all and (max-width:1184px){

.footer{
    height: auto;
    min-height: 90vh;
}

.footerTwo{
    height: auto;
    min-height: 800px;
}

.footerThree{
    height: auto;
    min-height: 600px;
    margin-bottom: 20px;
}

/*
.logo{
    margin-top: 60px;
    margin-left: 460px;
    width: 160px;
}
*/

.mapouter {
  max-width: 100%;
}

.map-container {
  max-width: 350px;   
  max-height: 210px;  
  overflow: hidden;
}

.map-container iframe {
  max-width: 100%;
  height: 100%;
  border: 0;
}

.slider-container {
  max-width: 90%;
  margin: 0 auto;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slider img {
  width: auto;       /* занимает ширину слайда */
  max-height: 750px;      /* сохраняет пропорции */
}

}

@media all and (max-width:1024px){

.footer{
    height: auto; 
    min-height: 70vh;
}

.footerTwo{
    height: auto; 
    min-height: 850px;
}

.footerThree{
    height: auto; 
    min-height: 650px;
    margin-bottom: 10px;
}

/*
.logo{
    position: absolute;
    margin-top: 18px;
    margin-left: 430px;
    width: 150px;
}
*/

.item{
    text-decoration: none;
    color: black;
    font-size: 16px;
    transition: none;
}

.header{
    margin-top: 20px;
}

.sign{
    font-size: clamp(28px, 6vw, 30px);
}

.slider-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;

}

.slider-wrapper {
  overflow: hidden;
  max-width: 100%;
}

}


@media all and (max-width:820px){

.footer{
    height: auto;
    min-height: 70vh;
}

.footerTwo{
    height: auto;
    min-height: 800px;
}

.footerThree{
    height: auto;
    min-height: 500px;
    margin-bottom: 10px;
}

/*
.logo{
    position: absolute;
    margin-top: 60px;
    margin-left: 330px;
    width: 160px;
}
*/

.header{
    margin-top: 20px;
}

.sign{
    font-size: clamp(28px, 6vw, 40px);
}

.heading{
    font-size: clamp(24px, 4vw, 30px);
}

.map-container {
  max-width: 350px;   
  max-height: 210px;  
  overflow: hidden;
}

.address {
    text-align: center;  /* текст по центру */
    padding: 10px;
    font-size: clamp(18px, 4vw, 16px);
}

.slider-container {
  width: 90%;
  max-width: 800px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 8px; /* расстояние между слайдами */
}

.slider img {
  width: auto;       /* занимает ширину слайда */
  max-height: 500px;      /* сохраняет пропорции */
  flex-shrink: 0;
}

}


@media all and (max-width:768px){

.footer{
    height: auto; 
    min-height: 80vh;
}

.footerTwo{
    height: auto; 
    min-height: 800px;
}

.footerThree{
    height: auto; 
    min-height: 500px;
    margin-bottom: 20px;
}

/*
.logo{
    margin-top: 60px;
    margin-left: 320px;
    width: 160px;
}
*/

.item{
    font-size: 20px;
    transition: none;
}

.header{
    margin-top: 20px;
}

.sign{
    font-size: clamp(28px, 6vw, 40px);
    margin-top: 0;
}

.design{
    font-size: clamp(20px, 5vw, 35px);
    margin-top: 10px;
}

.photoAbout{
    width: clamp(250px, 40%, 250px);
}

.about-me {
    font-size: 16px;
}

.map-container {
  max-width: 350px;   
  max-height: 210px;  
  overflow: hidden;
}

.address {
    font-size: clamp(18px, 4vw, 16px);
}

.slider-container {
  position: relative;
  width: 90%;
  max-width: 700px;
}

.slider img {
  width: auto;       /* занимает ширину слайда */
  max-height: 500px;      /* сохраняет пропорции */
  flex-shrink: 0;
}


}


@media all and (max-width:450px){

.footer{
    height: auto;      /* пусть высота подстраивается под контент */
    min-height: 100vh;
}

.footerTwo{
    min-height: auto;
    padding-bottom: 60px;
}

.footerThree{
    min-height: auto;
    padding-bottom: 60px;
}

/*
.logo {
    position: static;
    display: block;
    margin: 10px auto; 
    width: 120px;  
}
*/

.nav {
    display: none;
}


.logo {
  width: clamp(160px, 20vw, 220px);
  height: auto;
  margin: 0;
}

.header{
    margin-top: 10px;
}

.sign{
    font-size: clamp(28px, 6vw, 40px);
    margin-top: 10px;
    font-optical-sizing: auto;
    font-weight: 150;
    font-style: normal;
    letter-spacing: 5px;
}

.design{
    font-size: clamp(20px, 5vw, 35px);
    margin-top: 20px;
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
}

.buttonsUp{
    margin-top: 10px;
}

.heading{
    font-size: clamp(18px, 4vw, 20px);
}

.photoAbout{
    width: clamp(200px, 40%, 250px);
}

.about-me {
  text-align: center;
  font-size: 15px;
}

.containerTwo {
    padding: 5px;
}

.map-container {
  width: 100%;
  height: 250px;
  margin-top: 5px;
}

.address {
    padding: 5px;
    font-size: clamp(16px, 4vw, 18px);
}

  .slider {
    display: flex;
    transition: transform 0.5s ease;
  }

.slider-container {
  position: relative;
  max-width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.slider-wrapper {
  overflow: hidden;
}


.slider img {
    min-width: 100%;   
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}


.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.resume{
    margin: 5px;
}

.hide{
    display: none;
}
}









@media all and (max-width:380px){

.footer{
    height: auto;      /* пусть высота подстраивается под контент */
    min-height: 100vh;
}

.footerTwo{
    height: auto;
    min-height: 1000px;
}

.footerThree{
    height: auto;
    min-height:  550px;
    margin-bottom: 0px;
}

/*
.logo{
    position: absolute;
    margin-top: 20px;
    margin-left: 20px;
    width: 150px;
}
    */

.item{
    font-size: 15px;
}

.sign{
    font-size: clamp(24px, 6vw, 28px);
}

.design{
    font-size: clamp(18px, 5vw, 25px);
    margin-top: 8px;
}

.heading{
    font-size: clamp(18px, 4vw, 20px);
}

.photoAbout{
    width: clamp(200px, 40%, 250px);
    height: auto;
}

.map-container {
  width: 100%;
  max-width: 350px;   
  height: 220px;  
}

.slider-container {
  position: relative;
  width: 80%;
  max-width: 350px;
}

.slider-wrapper {
  max-height: 100%;
}

.slider img {
  width: auto;          /* фото на всю ширину */
  max-height: 320px;      /* ограничение по высоте */
  object-fit: cover;      /* чтобы не растягивало */
  border-radius: 10px;
  margin: 0 5px;          /* маленький отступ между фото */
}

}