:root {
  --orange-main: #FF4500;
  --orange-soft: #FF8C00;
  --black: #111;
  --white: #fff;
  --gray-light: #f7f7f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;  
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

/* Layout */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px 20px;
}

.narrow {
  max-width: 800px;
}


/* =========================
   HEADER — Premium Glass
   ========================= */
.menu-toggle,
.close-btn {
  display: none; /* по умолчанию скрыты */
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;  
  z-index: 1000;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform .35s ease;  
}

/* Внутренний контейнер */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-hidden{
  transform:translateY(-110%);
}
/* Логотип */

.logo img {
  height: 55px;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Buttons – Premium Style */

.btn {
  display: inline-block;
  background: var(--orange-main);
  color: var(--black);
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--orange-main);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Glow + lift */
.btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.25),
    0 0 0 3px rgba(255,165,0,0.25);
  background: var(--orange-soft);
}

/* Click */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Small button */

.btn-small {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.35s ease;
}

/* Premium hover */
.btn-small:hover {
  background: var(--orange-main);
  color: var(--black);
  border-color: var(--orange-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-small:active {
  transform: translateY(0);
}

/* =========================
   NAV — Premium Buttons
   ========================= */

.nav a {
  display: inline-block;
  padding: 10px 18px;
  margin-left: 12px;

  background: var(--black);
  color: var(--white);

  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.4px;

  border-radius: 10px;
  border: 1px solid var(--black);

  transition: all 0.35s ease;
}

/* Hover */

.nav a:hover {
  color: var(--orange-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* =========================
   HERO — Premium Cinematic
   ========================= */

.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  min-height: 85vh;
  margin-top: 40px;  
}

/* Glow атмосфера */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255,140,0,0.15),
    transparent 60%
  );
  opacity: 0.6;
}

/* Контент поверх */

.hero-inner {
  position: relative;
  z-index: 2;
}

/* Логотип */

.logo-wrapper {
  display: inline-block;
  margin-bottom: 40px;
}

.hero-logo {
  width: 210px;
  height: 210px;
  object-fit: cover;

  border-radius: 50%;
  padding: 12px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);

  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  transition: transform 0.6s ease;
}

.hero-logo:hover {
  transform: scale(1.05) rotate(1deg);
}

/* Заголовок */

.hero h1 {
  font-size: 38px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* Подзаголовок */

.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  margin-bottom: 35px;
}

/* Sections */

.section {
  padding: 20px 20px;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-light {
  background: var(--gray-light);
}

/* ===ABOUT — Luxury Background=== */

#about {
  position: relative;
  color: white;
  overflow: hidden;
}

/* Фоновое изображение */
#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/about-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1);
  animation: kenburns 18s ease-in-out infinite alternate;
  z-index: 0;
}

/* Премиум затемнение */
#about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.45)
  );
  z-index: 1;
}

/* Контент поверх */
#about .container {
  position: relative;
  z-index: 2;
}

/* Glass-card */
#about .narrow {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 24px;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* Заголовок */
#about h2 {
  font-size: 34px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Текст */
#about p {
  color: rgba(255,255,255,0.9);
  font-size: 17px;
  line-height: 1.7;
}

/* SERVICES — Luxury Cards */

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #1c1c1c;
  padding: 35px 25px;
  border-radius: 18px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
  transform: translateY(-8px);
  border-color: #00c2ff;
}

.icon-circle {
  width: 85px;
  height: 85px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 55px;
  height: 55px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

/* MOBILE ADAPTATION */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }

  .card {
    padding: 25px 20px;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .icon-circle img {
    width: 36px;
    height: 36px;
  }
}

/* Portfolio */

/* Portfolio Grid */
.portfolio-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 30px; 
  margin-top: 20px;
  margin-bottom: 20px;  
}

/* Portfolio Card */
.portfolio-item { 
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto; 
  border-radius: 16px; 
  overflow: hidden;
  cursor: pointer;
  background: #000;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Image inside card */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* Hover эффект */
.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

/* Лёгкий затемняющий overlay */
.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover::after {
  opacity: 1;
}

.ba-toggle {
  position: relative;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
/* До/После внутри портфолио */
.portfolio-item .ba-toggle {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
/* Картинки */
.ba-toggle .ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

/* Видимая картинка */
.ba-toggle .ba-img.active {
  opacity: 1;
  position: relative;
  transform: scale(1);
}

/* Лёгкий зум фона */
.ba-toggle .ba-img {
  transform: scale(1.05);
}

/* Подпись */
.ba-label {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 1px;
}
.portfolio-subtitle {
  font-size: 22px;
  margin: 60px 0 20px;
  text-align: center;
}

/* ===PORTFOLIO — Luxury Background=== */

#portfolio {
  position: relative;
  padding: 140px 0;
  color: white;
  overflow: hidden;
}

/* Фоновый слой */

#portfolio::before {
  content: "";
  position: fixed;      
  inset: 0;

  background-image: url("images/portfolio-bg.webp");
  background-size: cover;       
  background-position: center;  
  background-repeat: no-repeat;

  z-index: -2;
  transform: scale(1.05); 
}

/* Затемнение */

#portfolio::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45); 
  z-index: -1;
}

/* Контент */
#portfolio .container {
  position: relative;
  z-index: 2;
}

/* Glass-эффект для заголовков */
#portfolio h2,
#portfolio .portfolio-subtitle {
  text-align: center;
  text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

/* Glass-подложка при желании */
.portfolio-subtitle {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 30px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  margin: 40px auto 10px;
}
/* =========================
   REVIEWS — Luxury Glass
   ========================= */

.reviews {
  background: linear-gradient(to bottom, #111, #000);
  color: white;
  text-align: center;
}

.reviews-subtitle {
  color: #aaa;
  margin-bottom: 50px;
}

/* Сетка */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Карточка */
.review-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 25px;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255,255,255,0.08);
  animation: fadeUp 0.6s ease both;
  position: relative;
  min-width: 320px;
  flex-shrink: 0;
}

/* Hover эффект */
.review-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* Верх карточки */
.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-header img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}

.review-header h4 {
  margin: 0;
}

/* Звёзды */
.stars {
  color: gold;
  font-size: 14px;
  letter-spacing: 2px;
}

.reviews-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.reviews-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollReviews 120s linear infinite;
}


/* Анимация движения */
@keyframes scrollReviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.review-card:hover::before {
  opacity: 1;
}
/* =========================
   FORM — Premium Style
   ========================= */

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  margin-top: 60px;
  margin-bottom: 50px;  
  scroll-margin-top: 110px;
}

.form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--orange-main);
  color: black;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.form-status {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}


/* Social icons */

.socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;   /* центрируем */
  flex-wrap: nowrap;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--black);
  color: var(--black);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--orange-main);
  color: var(--white);
  border-color: var(--orange-main);
  transform: translateY(-2px);
}

/* =========================
   CONTACTS — Clean Luxury
   ========================= */

#contacts {
  background: linear-gradient(to bottom, #fff, #f7f7f7);
  text-align: center;
}

#contacts h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

#contacts p {
  color: #666;
}

.email-link {
  color: var(--orange-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.email-link:hover {
  color: var(--black);
  background: var(--orange-main);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Services areas */
.toggle-cities-btn {
  display: inline-block;
  margin-bottom: 15px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--orange-main);
  color: var(--blacj);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-cities-btn:hover {
  background: #e69500; /* чуть темнее при наведении */
}

#cityList {
  display: none;
}

.service-areas {
  display: grid !important;
  padding: 60px 20px;
  text-align: center;
}

.service-areas h2 {
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.service-areas p {
  margin-bottom: 25px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.areas-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 220px; 
  overflow-y: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45); /* тёмная полупрозрачная подложка */
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.areas-list li {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 165, 0, 0.3);
  text-align: center;
  transition: background 0.3s ease;
}

.areas-list li:hover {
  background: rgba(255, 165, 0, 0.5);
}

/* Footer */

.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.footer p {
  opacity: 0.6;
  font-size: 14px;
}

.footer {
  padding: 25px 0;
  text-align: center;
  background: #000;
  color: #888;
  font-size: 14px;
}

.footer-dev {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.footer-dev a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-dev a:hover {
  opacity: 0.7;
}

/* АДАПТИЦИЯ ДЛЯ ЭКРАНОВ */

/* mobile version standart */

@media (max-width: 768px) {

 html {
    scroll-padding-top: 20px;
  }
    
    body{
padding-top:100px;
}

    /* ===== МОБИЛЬНОЕ УПРАВЛЕНИЕ МЕНЮ ===== */
@media (max-width: 768px) {

  .header {
    height: 70px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .header.open {
    height: 100vh;
  }

}
    
.header{
will-change: transform;
position:fixed;
top:0;
left:0;
width:100%;
z-index:1000;
background:rgba(255,255,255,0.96);
backdrop-filter:blur(10px);
transition:transform .35s ease;
}

  .header-inner{

display:flex;
flex-wrap:wrap;
align-items:center;
justify-content:space-between;
padding:10px 14px;
gap:6px;
}

  .logo img {
    height: 40px;
    order: 1;
  }
    
 h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .hero {
      
    padding: 30px 15px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    text-align: center;  
  }

  .hero-logo {
    height: 150px;
    width: 150px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    backdrop-filter: blur(4px);
    padding: 8px;  
    transform: none !important; 
    border-radius: 50%;  
    object-fit: cover;  
  }

 .hero-logo:hover {
    transform: scale(1.05);
  }

.hero-section {
    text-align: center;
  }
    
.logo-wrapper {
    margin-bottom: 25px;
    display: flex;  
    text-align: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover; 
  }
    
  .portfolio-item {
    height: 150px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;  
  }

  .hero p {
    font-size: 14px;
  }

  .section {
    padding: 60px 20px;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

   .portfolio-grid {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 20px;           
    padding: 0 15px;    
  }

  .portfolio-item {
    width: 100%;         
    max-width: 400px;   
    aspect-ratio: 1 / 1; 
    height: 250px;  
    border-radius: 16px;
    overflow: hidden;  
}
/* NAV */

  .nav {
    order: 3;

    /* СКРЫТО ПО УМОЛЧАНИЮ */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);

    /* ВАЖНО */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    width: 100%;
    margin-top: 80px;
    padding: 20px 0;

    transition: 0.3s ease;
  }

  /* ПОКАЗЫВАЕМ ПРИ ОТКРЫТИИ */
  .header.open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }



.nav::-webkit-scrollbar {
    display: none;
    }
      
.nav a{

flex-shrink:0;
font-size:13px;
padding:7px 12px;
border-radius:10px;
text-decoration:none;
white-space:nowrap;
color:#222;
background:rgba(0,0,0,0.04);
transition:0.25s;
}

.nav a:active{

background:var(--orange-main);
color:white;

}
    
.nav-btn {
  order: 2;
  grid-column: span 3;
  padding: 8px 12px !important;
  font-size: 12px !important;
  border-radius: 10px;
  display:none;
    margin-left: auto;
    margin-right: auto;
}
      
    .btn-small {
    padding: 6px 10px; 
    font-size: 11px;
    min-width: max-content;
    border-radius: 10px; 
    flex-shrink: 0;   
        
}
    .header-hidden {
    transform: translateY(-100%);
  }
    }  
@media (max-width: 768px) {

  .menu-toggle{
    display: block;
    }
  .menu-toggle,
  .close-btn {
    font-size: 28px;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
  }

  .close-btn {
    display: none;
  }

  .header.open .menu-toggle {
    display: none;
  }

  .header.open .close-btn {
    display: block;
  }

}
/* for mini size */

@media (max-width: 480px) {

  h1 {
    font-size: 22px;
  }

  .btn {
    width: 100%;
  }

  .portfolio-grid {
    gap: 15px;
  }
  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav a {
    width: 100%;
    text-align: center;
  }

}

/* for medium size like planshet */

@media (min-width: 769px) and (max-width: 1024px) {

  .hero {
    padding: 100px 40px;
  }

  .portfolio-item {
    height: 200px;
  }

}
/* for huge sizes */

@media (min-width: 1440px) {

  .container {
    max-width: 1320px;
  }

  h1 {
    font-size: 42px;
  }

}

/* ==Back To Top Button== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 48px;
  height: 48px;

  border-radius: 50%;
  border: none;

  background: var(--orange-main);
  color: var(--black);
  font-size: 20px;
  font-weight: bold;

  cursor: pointer;

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition: all 0.35s ease;
  z-index: 9999;
}

/* Появляется */

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover */

.back-to-top:hover {
  background: var(--black);
  color: var(--orange-main);
  transform: translateY(-3px);
}

/* ===Ken Burns Animation=== */

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(-10px, -10px);
  }
}
