/* ================================================
   Advantages
   ================================================ */
.advantages {
  padding: 60px 0 40px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.advantage-item {
  text-align: left;
}

.advantage-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  aspect-ratio: 1 / 1;
}

.advantage-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  line-height: 1.3;
}

.advantage-text {
  font-size: 15px;
  color: #333;
  line-height: 1.65;
}

/* ================================================
   Section Title (shared)
   ================================================ */
.section-title {
  font-size: 31px;
  font-weight: 700;
  color: #0800dd;
  line-height: 1.2;
  margin-bottom: 30px;
}

/* ================================================
   Types of Glazing
   ================================================ */
.types {
  padding: 50px 0 60px;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.type-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

.type-card img {
  aspect-ratio: 4 / 3;
}

.type-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  padding: 18px 16px;
}

/* ================================================
   Case Study
   ================================================ */
.case {
  padding: 40px 0 50px;
}

.case-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.case-text {
  flex: 1;
}

.case-text .section-title {
  margin-bottom: 20px;
}

.case-text p {
  font-size: 18px;
  color: #000;
  line-height: 1.5;
  margin-bottom: 16px;
}

.case-text p:last-child {
  margin-bottom: 0;
}

.case-image {
  flex: 0 0 40%;
}

.case-image img {
  border-radius: 20px;
  aspect-ratio: 10 / 7;
}

/* ================================================
   Marketer
   ================================================ */
.marketer {
  padding: 40px 0 60px;
}

.marketer-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.marketer-text {
  flex: 1;
}

.marketer-text .section-title {
  margin-bottom: 20px;
}

.marketer-list {
  list-style: disc;
  padding-left: 24px;
  font-size: 18px;
  color: #000;
  line-height: 1.6;
}

.marketer-list li {
  margin-bottom: 8px;
}

.marketer-image {
  flex: 0 0 40%;
}

.marketer-image img {
  border-radius: 20px;
  aspect-ratio: 5 / 3;
}

/* ================================================
   Reviews
   ================================================ */
.reviews {
  padding: 40px 0 60px;
}

.reviews-slider {
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}

.review-slide img {
  border-radius: 20px;
  aspect-ratio: 600 / 1174;
}

.reviews-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
  z-index: 2;
}

.reviews-btn:hover {
  background: rgba(0, 0, 0, .8);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.reviews-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  transition: background .2s;
}

.reviews-dot.active {
  background: #0800dd;
}

.reviews-prev {
  left: -16px;
}

.reviews-next {
  right: -16px;
}

/* ================================================
   Quiz
   ================================================ */
.quiz {
  padding: 50px 0 60px;
}

.quiz-title {
  text-align: left;
}

.quiz-box {
  max-width: 640px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
  padding: 32px 40px 36px;
}

.quiz-progress {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  margin-bottom: 16px;
}

.quiz-progress-bar {
  height: 100%;
  background: #0800dd;
  border-radius: 3px;
  transition: width .3s;
}

.quiz-step-number {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-question {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 16px;
  color: #111;
}

.quiz-option:hover {
  border-color: #0800dd;
  background: rgba(8, 0, 221, .04);
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
  accent-color: #0800dd;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.quiz-option input:checked + span {
  font-weight: 600;
}

.quiz-field {
  margin-bottom: 8px;
}

.quiz-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: #111;
  transition: border-color .2s;
}

.quiz-input:focus {
  outline: none;
  border-color: #0800dd;
}

select.quiz-input {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 18px center;
  cursor: pointer;
}

select.quiz-input:invalid,
select.quiz-input option[value=""] {
  color: #999;
}

.quiz-hint {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f7f7;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  outline: 2px solid transparent;
  transition: outline-color .2s, background .2s;
  -webkit-tap-highlight-color: rgba(0,0,0,0.04);
}

.quiz-consent.is-error {
  outline-color: #e14a4a;
  background: rgba(225,74,74,.08);
  color: #e14a4a;
}

.quiz-consent input {
  margin-top: 2px;
  width: 22px;
  height: 22px;
  accent-color: #0800dd;
  flex-shrink: 0;
  cursor: pointer;
}

.quiz-consent .policy-link {
  color: #0800dd;
}

.quiz-consent .policy-link:hover {
  color: #0600b8;
}

.quiz-consent-error {
  color: #e14a4a;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  margin-top: 8px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 16px;
}

.quiz-btn-prev,
.quiz-btn-next {
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}

.quiz-btn-prev {
  background: #f0f0f0;
  color: #333;
}

.quiz-btn-prev:hover:not(:disabled) {
  background: #e0e0e0;
}

.quiz-btn-prev:disabled {
  opacity: .4;
  cursor: default;
}

.quiz-btn-next {
  background: #ffc200;
  color: #000;
  margin-left: auto;
}

.quiz-btn-next:hover {
  background: #e6af00;
  transform: translateY(-1px);
}

.quiz-success {
  text-align: center;
  padding: 40px 0;
}

.quiz-success h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0800dd;
  margin-bottom: 12px;
}

.quiz-success p {
  font-size: 16px;
  color: #333;
}

/* ================================================
   FAQ
   ================================================ */
.faq {
  padding: 50px 0 60px;
}

.faq-list {
  border-top: 1px solid #ddd;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0800dd;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: '\25B6';
  font-size: 10px;
  transition: transform .2s;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::before {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 0 16px 20px;
}

.faq-answer p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.faq-link {
  color: #0800dd;
  text-decoration: underline;
}

.faq-link:hover {
  color: #0600b8;
}

/* ================================================
   Footer
   ================================================ */
.footer {
  background: #0800dd;
  padding: 32px 0;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link,
.footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #fff;
}

.footer-link:hover {
  color: #ddd;
}

/* ================================================
   Policy bar (below footer)
   ================================================ */
.policy-bar {
  background: #0600b8;
  padding: 12px 0;
  text-align: center;
}

.policy-bar .policy-link {
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
}

.policy-bar .policy-link:hover {
  color: #ffc200;
}

/* ================================================
   Policy popup
   ================================================ */
.policy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.policy-popup.active {
  display: flex;
}

.policy-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
}

.policy-popup-wrapper {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
}

.policy-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: #333;
  line-height: 1;
}

.policy-popup-wrapper h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0800dd;
  margin-bottom: 20px;
}

.policy-popup-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 16px 0 8px;
}

.policy-popup-body p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 8px;
}

.policy-popup-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 8px;
}

.policy-popup-body li {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.policy-date {
  margin-top: 16px;
  font-style: italic;
  color: #888 !important;
}

/* ================================================
   Consult popup
   ================================================ */
.consult-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.consult-popup.active {
  display: flex;
}

.consult-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
}

.consult-popup-wrapper {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 569px;
  width: 90%;
  z-index: 1;
}

.consult-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: #333;
  line-height: 1;
}

.consult-form-title {
  font-size: 32px;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
}

.consult-input {
  display: block;
  width: 100%;
  height: 47px;
  padding: 6px 16px;
  background: #ecf1f7;
  border: none;
  border-radius: 15px;
  font-family: inherit;
  font-size: 16px;
  color: #111;
  margin-bottom: 10px;
}

.consult-input:focus {
  outline: 2px solid #0800dd;
}

.consult-row {
  display: flex;
  gap: 10px;
}

.consult-row .consult-input {
  flex: 1;
  min-width: 0;
}

.consult-textarea {
  height: 100px;
  resize: vertical;
  padding-top: 12px;
}

.consult-submit {
  display: block;
  width: 100%;
  height: 47px;
  background: #ffc200;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border-radius: 15px;
  text-transform: uppercase;
  margin-top: 6px;
  transition: background .2s;
}

.consult-submit:hover {
  background: #e6af00;
}

.consult-consent {
  font-size: 12px;
  color: #666;
  margin-top: 12px;
}

.consult-consent .policy-link {
  color: #00f;
}

.consult-consent .policy-link:hover {
  color: #0800dd;
}

.consult-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f7f7;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  outline: 2px solid transparent;
  transition: outline-color .2s, background .2s;
  -webkit-tap-highlight-color: rgba(0,0,0,0.04);
  line-height: 1.4;
}

.consult-consent-check.is-error {
  outline-color: #e14a4a;
  background: rgba(225,74,74,.08);
  color: #e14a4a;
}

.consult-consent-check input {
  margin-top: 2px;
  width: 22px;
  height: 22px;
  accent-color: #0800dd;
  flex-shrink: 0;
  cursor: pointer;
}

.consult-consent-check .policy-link {
  color: #0800dd;
  text-decoration: underline;
}

.consult-consent-error {
  color: #e14a4a;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  margin-top: 8px;
}

.consult-form-success {
  text-align: center;
  padding: 40px 0;
}

.consult-form-success h3 {
  color: #0800dd;
}

.consult-form-success p {
  font-size: 16px;
  color: #333;
  margin-top: 12px;
}

/* ================================================
   Responsive
   ================================================ */

/* Tablet landscape */
@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .advantage-icon {
    width: 100px;
    height: 100px;
  }

  .case-inner,
  .marketer-inner {
    gap: 30px;
  }

  .reviews-prev {
    left: 8px;
  }

  .reviews-next {
    right: 8px;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .advantages {
    padding: 40px 0 32px;
  }

  .advantages-grid {
    gap: 24px 20px;
  }

  .advantage-icon {
    width: 80px;
    height: 80px;
  }

  .advantage-title {
    font-size: 18px;
  }

  .advantage-text {
    font-size: 14px;
  }

  .section-title {
    font-size: 26px;
  }

  .types {
    padding: 40px 0;
  }

  .types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .type-card h3 {
    font-size: 20px;
    padding: 14px 16px;
  }

  .case {
    padding: 32px 0 40px;
  }

  .case-inner {
    flex-direction: column;
    gap: 24px;
  }

  .case-text p {
    font-size: 16px;
  }

  .marketer {
    padding: 32px 0 40px;
  }

  .marketer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .marketer-list {
    font-size: 16px;
  }

  .review-slide {
    flex: 0 0 80%;
  }

  .reviews {
    padding: 32px 0 40px;
  }

  .faq {
    padding: 40px 0;
  }

  .faq-question {
    font-size: 16px;
  }

  .quiz-box {
    padding: 24px 20px 28px;
  }

  .quiz-question {
    font-size: 18px;
  }

  .consult-row {
    flex-direction: column;
    gap: 0;
  }

  .consult-form-title {
    font-size: 24px;
  }

  .consult-popup-wrapper {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .advantages {
    padding: 32px 0 24px;
  }

  .advantages-grid {
    gap: 24px 16px;
  }

  .advantage-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
  }

  .advantage-title {
    font-size: 16px;
  }

  .advantage-text {
    font-size: 13px;
  }

  .section-title {
    font-size: 23px;
  }

  .types {
    padding: 32px 0;
  }

  .case-text p {
    font-size: 15px;
  }

  .marketer-list {
    font-size: 15px;
  }

  .review-slide {
    flex: 0 0 85%;
  }

  .faq-answer p {
    font-size: 15px;
  }
}
