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

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #272727;
  color: #eee;
  line-height: 1.6;
}

a {
  color: #ffffff;
  text-decoration: none;
}

header.hero {
  height: 100vh;
  background: url('img/header-bg.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 70px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(3px);    
  z-index: 1;
}

.hero-inner {
  z-index: 2;
  position: relative;
  color: #fff;
  padding: 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero-inner h1, .hero-inner p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 25px;
}

.logo {
  font-size: 42px;
  letter-spacing: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.tagline {
  font-size: 18px;
  margin-bottom: 10px;
}

.portfolio-desc {
  font-size: 10px;
  font-weight: 300;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,.8);
}

.subtitle {
  font-size: 16px;
  color: #ccc;
  font-style: italic;
}

section {
  padding: 27px 0px;
}

h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 20px;
  color: #ffffff;
}

.logo-img {
  max-width: 520px;
  height: auto;
  margin-bottom: 20px;
  z-index: 2;
  position: relative;
}

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 5px;
  list-style: none;
}

.main-nav a {
  color: #fff;
  font-size: 14px;
  padding: 5px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #ff0000;
}

.main-nav a:focus-visible {
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

.main-nav .brand {
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
}

.project {
  min-width: 280px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.project img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 200px;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}

.project-info a,
.project-info .soon {
  display: inline-block;
  padding: 6px 12px;
  background: #ffffff;
  color: #000;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
}

.soon {
  background: #555;
  color: #ccc;
}

.carousel-btn.left {
  left: 10px;
}
.carousel-btn.right {
  right: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: #ff0000b5;
  color: #ffffff;
  border: none;
  padding: 10px;
  margin: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn:hover {
  background: #ffffff;
  color: #000;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.carousel-container::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -50px;
  bottom: -50px;
  background: rgb(0, 0, 0);
  z-index: 1;
  background-image:
  
    repeating-linear-gradient(
      90deg,
      #272727 0px, 
      #272727 12px,
      #000000 12px, 
      #000000 24px
    ),

    repeating-linear-gradient(
      90deg,
      #272727 0px,
      #272727 12px,
      #000000 12px,
      #000000 24px
    );
  background-size: 30px 18px; 
  background-position: top left, bottom left;
  background-repeat: repeat-x;
  border-top: 15px solid #000000; 
  border-bottom: 15px solid #000000;
}

.carousel {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 2;
  padding: 0 20px;
  overflow-x: auto;
  transition: transform 0.3s ease;
  will-change: transform;
  user-select: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.carousel::-webkit-scrollbar {
  display: none;
}

.pricing {
  background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
}

.pricing-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ——— Карточки тарифов (итоговый, без дублей) ——— */
.price-card {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  text-align: left;
  flex: 1 1 300px;
  max-width: 300px;
  box-sizing: border-box;
  margin-bottom: 20px;

  cursor: pointer;                 /* рука при наведении */
  position: relative;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .3s ease,
    outline-color .15s ease;
}

.price-card:hover {
  transform: translateY(-2px) scale(1.03);
  background: #2a2a2a;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

/* фокус клавиатурой */
.price-card:focus-visible {
  outline: 3px solid #ff4d4d;
  outline-offset: 3px;
}

/* маленькая подсказка “Подробнее” в углу */
.price-card::after {
  content: "Подробнее";
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #000;
  opacity: .7;
  pointer-events: none;
  transition: opacity .2s ease;
}
.price-card:hover::after,
.price-card:focus-visible::after { opacity: 1; }

/* внутренние тексты */
.price-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 10px;
}
.price-card p {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 15px;
}
.price-card strong {
  color: #fff;
  font-size: 18px;
}

/* подсказка под заголовком (если используешь) */
.pricing-hint {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin: -10px 0 18px;
}

.contact {
  background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
  color: #eee;
  text-align: center;
}

.contact-links {
  margin-bottom: 20px;
}

.btn {
  background: linear-gradient(45deg, #ff0000, #e25b5b);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  margin: 20px;
}

.btn:hover {
  background: linear-gradient(45deg, #be0000, #ff0000); 
  transform: translateY(-2px); 
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); 
}

.btn:active {
  transform: translateY(1px); 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

footer {
  text-align: center;
  font-size: 14px;
  color: #888;
  background: #000000;
  padding: 5px;
}

.project-card {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover .overlay {
  opacity: 1;
}

.carousel-wrapper {
  overflow-x: scroll;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.carousel-item {
  flex: 0 0 320px;
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 2; 
}

.carousel-item:hover .overlay {
  opacity: 1;
}

.overlay button {
  padding: 10px 20px;
  border: none;
  background: white;
  color: black;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  overflow-y: auto;
}

.overlay h3 {
  margin-bottom: 10px;
}

.overlay p {
  font-size: 14px;
  margin-bottom: 15px;
  color: #ccc;
}

.overlay a {
  background: linear-gradient(45deg, #be0000, #ff0000); 
  color: rgb(255, 255, 255);
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

.about-us {
  position: relative;
  min-height: 80vh;
  background: url('img/us.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.about-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.677);
  backdrop-filter: blur(3.5px);
  z-index: 1;
}

.about-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 20px;
}

.about-content {
  flex: 1;
  max-width: 50%;
  color: white;
  text-align: left;
}

.about-content h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: white;
}

.about-content p {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.272);
  margin-bottom: 30px;
}

.about-content strong {
  color: white;
}

.centered {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.team-slider {
  position: relative;
  width: 100%;
  max-width: clamp(28%, 34vw, 40%);
  height: 500px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 10px;
  box-sizing: border-box;
}

.team-slides {
  position: relative;
  height: 100%;
}

.team-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  opacity: 0;
  z-index: 1;
  animation: slideShow 28s infinite step-end; /* step-end для резкой смены */
}

.team-slide:nth-child(1) { animation-delay: 0s; }
.team-slide:nth-child(2) { animation-delay: 4s; }
.team-slide:nth-child(3) { animation-delay: 8s; }
.team-slide:nth-child(4) { animation-delay: 12s; }
.team-slide:nth-child(5) { animation-delay: 16s; }
.team-slide:nth-child(6) { animation-delay: 20s; }
.team-slide:nth-child(7) { animation-delay: 24s; }

@keyframes slideShow {
  0%, 12.5% { /* 4s / 28s ≈ 14.29% */
    opacity: 1;
    z-index: 2;
  }
  14.29%, 100% {
    opacity: 0;
    z-index: 1;
  }
}

.team-slide img {
  width: 100%;
  max-width: 300px;
  height: 300px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid white;
  margin: 10px auto 10px;
  display: block;
}

.member-info h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 5px;
}

.member-info .role {
  color: #f33d3d;
  font-weight: bold;
  text-align: left;

}

.member-info .bio {
  color: #ddd;
  font-size: 14px;
  margin-top: 10px;
  padding: 0 20px;
  text-align: left;
}

@media (max-width: 768px) {
  /* hero */
  .logo-img { max-width: 70vw; }
  .hero-inner { padding: 20px; }
  .tagline { font-size: 16px; padding: 0 10px; }

  /* about-us колонкой */
  .about-us { min-height: auto; padding: 40px 20px; }
  .about-container { flex-direction: column; align-items: center; }
  .about-content { max-width: 100%; text-align: center; }
  .centered { justify-content: center; }

  /* слайдер команды */
  .team-slider { max-width: 100%; margin-top: 30px; height: 350px; padding: 10px; }
  .team-slide img {
    max-width: 200px; height: 200px; border-radius: 10px; object-fit: cover;
    border: 3px solid white; margin: 0 auto 10px; display: block;
  }
}

@media (max-width: 600px) {
  .logo { font-size: 23px; }
  .carousel-item {flex: 0 0 90%; height: 380px;}
  .pricing-grid { flex-direction: column; align-items: center;}
  .about-us { height: auto; padding: 40px 20px; }
}

@media (max-width: 600px) {
  .carousel-container::before {
    background-size: 20px 12px; 
    top: -30px;
    bottom: -30px;
    border-top: 10px solid #000000;
    border-bottom: 10px solid #000000;
  }
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #272727;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader {
  border: 4px solid #ffd700;
  border-radius: 50%;
  border-top: 4px solid transparent;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #3b3b3b;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 680px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 30px;
  color: rgb(255, 0, 0);
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

.modalV {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modalV-content {
  position: relative;
  background: #000;
  border-radius: 10px;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; 
  overflow: hidden;
}

.modalV-content video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  border-radius: 10px;
}

.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.contact-links p {
  display: flex;
  align-items: center;
  margin: 8px 0;
  justify-content: center;
}

.contact-links a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reviews-button-section {
  text-align: center;
  margin: 40px 0;
}

.reviews-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.reviews-modal .modal-content {
  background-color: #282828;
  margin: 50px auto;
  padding: 4px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.reviews-modal .close {
  position: absolute;
  right: 23px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.chat-window {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.message {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.user {
  align-self: flex-end;
  background-color: #ff000096
}

.message.client {
  align-self: flex-start;
  background-color: #2d5fdc;
}

.author {
  font-size: 1.1em;
  color: #ffffff;
  margin-top: 4px;
  margin-left: 12px;
}

.modal-header {
  position: sticky;
  top: 0;
  border-radius: 31px;
  background-color: #282828;
  padding: 9px 20px;
  /* border-bottom: 1px solid #414141; */
  text-align: center;
  z-index: 20;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

/* === Метрики (анимация появления) === */
.metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-item:hover .metrics,
.carousel-item:focus-within .metrics {
  opacity: 1;
  transform: translateY(0);
}

.metric {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.metric:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* === Задача / Решение / Результат === */
.case-block {
  text-align: left;
  width: 100%;
}

.case-block p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #ddd;
}

.case-block p strong {
  color: #ffffff;
}

.case-block .result {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.case-block .result strong {
  color: #ffd700;
}

.hero-glass{
  position:relative;
  display:inline-block;
  max-width:min(820px, 92vw);
  margin:0 auto 8px;             /* стекло близко к логотипу */
  padding:14px 18px;
  border-radius:16px;

  background: rgba(255,255,255,0.06);                  /* лёгкая «молочность» */
  border:1px solid rgba(255,255,255,0.18);             /* тонкая стеклянная кромка */
  box-shadow:0 10px 30px rgba(0,0,0,.25);              /* мягкая тень */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow:hidden;                                      /* чтобы блик не вылезал по углам */
}

.hero-glass::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient( to bottom right,
      rgba(255,255,255,.18),
      rgba(255,255,255,0) 42% );
  opacity:.6;
  pointer-events:none;
  mix-blend-mode:soft-light;
}

/* внутри стекла текст без лишних отступов */
.hero-glass .portfolio-desc{
  margin:0;
  font-size:18px;
  line-height:1.55;
}