@import "base.css";
@import "product.css";
@import "category_types.css";
@import "certain_portfolio.css";
@import "constructor.css";
@import "category_cards.css";
@import "policy.css";

*,
*::before,
*::after{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  text-decoration: none;
  padding: 0;
}

h1, h2, h3 {
    font-family: math;
}

a {
    text-decoration: none;
}

.top-bg {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: url('../img/bg.gif') center/cover no-repeat;
}

.top-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.top-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding-top: 20%;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(0.1);
  opacity: 0;
}

.top-content.visible {
    transform: scale(1);
    opacity: 1;
}

.top-content h1 {
    font-size: 52px;
    font-family: 'Montserrat';
}

.top_buttons-container {
  display: flex;
  gap: 16px;
  margin-top: 42px;
  justify-content: center;
}

.top-btn {
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(0.1);
  opacity: 0;
}

.top-btn.visible {
    transform: scale(1);
    opacity: 1;
}

.top-btn:hover {
    transform: scale(1.07);
}

.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.service-block {
    min-height: 100vh;
    width: 100vw;
    background-color: #000;
}

.service_title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.service_title-block h1 {
    margin-top: 80px;
    color: #fff;
    font-size: 35px;
}

.service_title-block h3 {
    color: #fff;
    font-size: 20px;
}

.service-container {
    display: flex;
    margin: 90px auto;
    width: 80vw;
    justify-content: space-between;
}

.service-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
    transform-origin: center;
    display: block;
    height: 23vh;
    width: 27%;
    border-radius: 20px;
    border: 2px solid #e6bd31;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.3);
}

.service-item img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.service_item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-item:hover .service_item-img{
    transform: scale(1.2);
    filter: brightness(40%);
}

.service-item:hover .service_item-content {
   opacity: 1;
   transform: translateY(0);
}

.company_text-container {
   opacity: 0;
   transform: translateY(50px);
   transition: opacity 0.8s ease, transform 0.8s ease;
   text-align: center;
   max-width: 800px;
   margin: 0 auto;
}

.company_text-container.visible {
   opacity: 1;
   transform: translateY(0);
}

.company_text-container h2 {
   font-size: 36px;
   margin-bottom: 20px;
   color: white;
   text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.company_text-container p {
   font-size: 18px;
   line-height: 1.6;
   color: #e0e0e0;
   margin-bottom: 30px;
   max-width: 600px;
   margin-left: auto;
   margin-right: auto;
}


.locfor-quiz {
    /* Изолированные переменные */
    --lq-bg-primary: #0a0a0f;
    --lq-bg-card: #12121a;
    --lq-border: #2a2a3a;
    --lq-text-primary: #eaeaf0;
    --lq-text-secondary: #7a7a8e;
    --lq-accent: #6c5ce7;
    --lq-accent-glow: rgba(108, 92, 231, 0.35);
    --lq-success: #00cec9;
    --lq-radius: 16px;
    --lq-radius-sm: 10px;
    --lq-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--lq-bg-primary);
    color: var(--lq-text-primary);
    width: 100%;
    min-height: 100vh; /* Измените под высоту вашего блока */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
  }

  .quiz-img {
    width: 15%;
    height: 70%;
    border-radius: 12px;
  }

  /* Фоновый эффект строго внутри компонента */
  .locfor-quiz::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(0, 206, 201, 0.06) 0%, transparent 50%);
    animation: lq-bgShift 20s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
  }

  @keyframes lq-bgShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 3%) rotate(3deg); }
  }

  .locfor-quiz__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
  }

  .quiz-container {
    background: var(--lq-bg-card);
    border: 1px solid var(--lq-border);
    border-radius: var(--lq-radius);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  }

  .quiz-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--lq-accent), var(--lq-success), transparent);
    opacity: 0.7;
  }

  /* Progress */
  .progress-section { margin-bottom: 36px; }
  .progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .progress-label { font-size: 13px; font-weight: 600; color: var(--lq-text-secondary); text-transform: uppercase; letter-spacing: 1.2px; }
  .progress-step { font-size: 13px; font-weight: 700; color: var(--lq-accent); background: rgba(108, 92, 231, 0.12); padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(108, 92, 231, 0.2); transition: var(--lq-transition); }
  .progress-track { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; overflow: hidden; }
  .progress-fill { height: 100%; background: linear-gradient(90deg, var(--lq-accent), var(--lq-success)); border-radius: 10px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); position: relative; box-shadow: 0 0 12px var(--lq-accent-glow); }
  .progress-fill::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; background: white; border-radius: 50%; box-shadow: 0 0 10px var(--lq-accent-glow); opacity: 0.9; }

  /* Dots */
  .step-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 32px; }
  .step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 2px solid transparent; transition: var(--lq-transition); cursor: pointer; }
  .step-dot.active { background: var(--lq-accent); border-color: var(--lq-accent); box-shadow: 0 0 12px var(--lq-accent-glow); transform: scale(1.2); }
  .step-dot.completed { background: var(--lq-success); border-color: var(--lq-success); box-shadow: 0 0 8px rgba(0, 206, 201, 0.3); }

  /* Layers */
  .options-grid-2x3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 32px;
    }

    .options-grid-2x3 .option-btn {
      flex-direction: column;
      align-items: stretch;
      padding: 0;
      height: 180px;
      overflow: hidden;
    }

    .options-grid-2x3 .option-image {
      width: 100%;
      height: 100px;
      overflow: hidden;
      border-radius: var(--lq-radius-sm) var(--lq-radius-sm) 0 0;
    }

    .options-grid-2x3 .option-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .options-grid-2x3 .option-btn:hover .option-image img {
      transform: scale(1.05);
    }

    .options-grid-2x3 .option-content {
      padding: 12px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .options-grid-2x3 .option-title {
      font-size: 14px;
      margin-bottom: 4px;
    }

    .options-grid-2x3 .option-desc {
      font-size: 11px;
      opacity: 0.8;
    }

    .options-grid-2x3 .option-radio {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 20px;
      height: 20px;
      background: rgba(0,0,0,0.5);
      z-index: 2;
    }

    .options-grid-2x3 .option-btn.selected .option-radio {
      background: var(--lq-accent);
      border-color: white;
    }

  .quiz-layer { display: none; }
  .quiz-layer.active { display: block; animation: lq-fadeSlideIn 0.5s ease forwards; }
  .quiz-layer.exit-left { animation: lq-fadeSlideOutLeft 0.3s ease forwards; }
  .quiz-layer.exit-right { animation: lq-fadeSlideOutRight 0.3s ease forwards; }
  .quiz-layer.enter-right { animation: lq-fadeSlideInRight 0.4s ease forwards; }
  .quiz-layer.enter-left { animation: lq-fadeSlideInLeft 0.4s ease forwards; }

  @keyframes lq-fadeSlideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes lq-fadeSlideOutLeft { to { opacity: 0; transform: translateX(-30px); } }
  @keyframes lq-fadeSlideOutRight { to { opacity: 0; transform: translateX(30px); } }
  @keyframes lq-fadeSlideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes lq-fadeSlideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

  .question-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--lq-accent), #a29bfe); border-radius: var(--lq-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; box-shadow: 0 4px 15px var(--lq-accent-glow); }
  .question-text { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
  .question-sub { font-size: 14px; color: var(--lq-text-secondary); margin-bottom: 28px; line-height: 1.5; }

  .options-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
  .option-btn { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--lq-border); border-radius: var(--lq-radius-sm); cursor: pointer; transition: var(--lq-transition); position: relative; overflow: hidden; }
  .option-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--lq-accent), var(--lq-success)); opacity: 0; transition: var(--lq-transition); }
  .option-btn:hover { border-color: rgba(108, 92, 231, 0.4); background: rgba(108, 92, 231, 0.06); transform: translateX(4px); }
  .option-btn:hover::before { opacity: 0.05; }
  .option-btn.selected { border-color: var(--lq-accent); background: rgba(108, 92, 231, 0.1); box-shadow: 0 0 20px rgba(108, 92, 231, 0.15); }
  .option-btn.selected::before { opacity: 0.08; }
  .option-radio { width: 22px; height: 22px; min-width: 22px; border: 2px solid var(--lq-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--lq-transition); position: relative; z-index: 1; }
  .option-btn.selected .option-radio { border-color: var(--lq-accent); background: var(--lq-accent); }
  .option-btn.selected .option-radio::after { content: "✓"; color: white; font-size: 12px; font-weight: 700; }
  .option-content { position: relative; z-index: 1; }
  .option-title { font-size: 15px; font-weight: 600; color: var(--lq-text-primary); margin-bottom: 2px; }
  .option-desc { font-size: 12px; color: var(--lq-text-secondary); }
  .option-btn.selected .option-title { color: #fff; }

  .quiz-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
  .quiz-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: none; border-radius: var(--lq-radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--lq-transition); font-family: inherit; }
  .btn-back { background: transparent; color: var(--lq-text-secondary); border: 1px solid var(--lq-border); }
  .btn-back:hover { color: var(--lq-text-primary); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); }
  .btn-back:disabled { opacity: 0.3; cursor: not-allowed; }
  .btn-next { background: linear-gradient(135deg, var(--lq-accent), #a29bfe); color: white; box-shadow: 0 4px 15px var(--lq-accent-glow); }
  .btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--lq-accent-glow); }
  .btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
  .btn-next .arrow { transition: transform 0.3s ease; }
  .btn-next:hover .arrow { transform: translateX(4px); }

  .quiz-complete { text-align: center; padding: 20px 0; }
  .complete-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--lq-success), #55efc4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 24px; box-shadow: 0 8px 30px rgba(0, 206, 201, 0.3); animation: lq-popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
  @keyframes lq-popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
  .complete-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; background: linear-gradient(135deg, var(--lq-success), #55efc4); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .complete-text { font-size: 15px; color: var(--lq-text-secondary); line-height: 1.6; margin-bottom: 32px; }
  .btn-restart { background: linear-gradient(135deg, var(--lq-success), #55efc4); color: #0a0a0f; font-weight: 700; box-shadow: 0 4px 20px rgba(0, 206, 201, 0.3); }
  .btn-restart:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0, 206, 201, 0.4); }

  @media (max-width: 480px) {
    .quiz-container { padding: 28px 20px; }
    .question-text { font-size: 18px; }
    .option-btn { padding: 14px 16px; }
    .quiz-btn { padding: 11px 20px; font-size: 13px; }
  }




.process-block {
    background-color: #000;
    width: 100vw;
    min-height: 100vh;
}

.process_title-container {
    display: flex;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.process_title-container.visible {
   opacity: 1;
   transform: translateY(0);
}

.process_title-container h1 {
    margin-top: 80px;
    font-size:35px;
    color: #fff;
}

.process_title-container h3 {
    color: #595555;
    font-size: 20px;
    color: #fff;
}

.process-container {
    display: flex;
    margin: 90px auto;
    width: 80vw;
    justify-content: space-between;
    gap: 30px;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background-color: #fff;
    padding: 20px;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.process-item-img {
    width: 220px;
    height: 130px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-item-img img {
    width: 100%;
    height: 100%;
}

.process-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.process-item:nth-child(1).visible {
    transition-delay: 0.1s;
}

.process-item:nth-child(2).visible {
    transition-delay: 0.3s;
}

.process-item:nth-child(3).visible {
    transition-delay: 0.5s;
}

.process-item p {
    color: gray;
    font-size: 32px;
}

.process-content {
    margin-top: 15px;
}

.process-content h3 {
    font-family: 'Montserrat';
    text-align: center;
}

.process-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.process-text {
    font-family: sans-serif;
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.portfolio-block {
    width: 100vw;
    min-height: 100vh;
    background-color: #020e18;
}

.portfolio_title-container {
    display: flex;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.portfolio_title-container.visible {
   opacity: 1;
   transform: translateY(0);
}

.portfolio_title-container h1 {
    margin-top: 80px;
    font-size:35px;
    color: #fff;
}

.portfolio_title-container h3 {
    font-size: 20px;
    color: #fff;
    text-align: center;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 34px;
    margin: 90px auto;
    width: 80vw;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
    transform-origin: center;
    display: block;
    width: 20vw;
    height: 23vh;
    border-radius: 20px;
    border: 2px solid #e6bd31;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.3);
}

.portfolio-item img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.portfolio-item-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-item-text {
   opacity: 1;
   transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.2);
    filter: brightness(40%);
}

.construction_technology-block {
    background-color: #000;
    width: 100%;
    height: 100vh;
    padding-top: 70px;
}

.construction_technology-block h1 {
    margin-top: 50px;
    font-size: 42px;
    text-align: center;
    color: #fff;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.construction_technology-slider {
    display: flex;
    margin: 150px auto;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.construction_technology-item {
    flex: 0 0 280px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 2px solid #e6bd31;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.construction_technology-image {
     width: 100%;
     height: 180px;
     overflow: hidden;
}

.construction_technology-image img {
    width: 100%;
    height: 100%;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
}

.construction_technology-content {
    padding: 10px;
}

.construction_technology-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.construction_technology-item p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 44px;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
}


.prev-btn { left: -100px; }
.next-btn { right: -100px; }

