/* скидання стилів  */
@import url("reset.css");

/* підключення шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300..700&display=swap');

html {
    scroll-behavior: smooth;
}

body._lock {
    overflow: hidden;
}

html, body {
  font-family: "Inter Tight", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrapper {
    min-height: 100%;
}

.page {
    padding: 0;
    background: #EBF5EF;
}

/* === Two Columns === */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 90px;
  align-items: center;
}

.two-columns .left {
  background: url('https://task.site-dev.com.ua/wp-content/themes/task-pg/img/bg.svg') center center no-repeat;
  background-size: contain;
  display: flex;
  align-items: center;    
  justify-content: center; 
  min-height: 700px;
}

.two-columns .left h2 {
  color: #212227;
  font-size: 48px;
  line-height: 130%;
  font-weight: 600;
}

.two-columns .right .form-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
}

.form-wrapper .form-title {
  color: #212227;
  text-align: center;
  font-size: 22px;
  line-height: 119%;
  font-weight: 600;
  margin-bottom: 30px; 
}

/* --- Адаптація --- */

@media (max-width: 768px) {
  .two-columns {
    grid-template-columns: 1fr; 
    gap: 30px;
    padding: 90px 20px; 
  }

  .two-columns .left {
    min-height: 400px; 
    background-size: contain; 
  }

  .two-columns .left h2 {
    font-size: 28px; 
  }

  .two-columns .right .form-wrapper {
    padding: 20px;
  }

  .form-wrapper .form-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
}

/* === Form (Contact Form 7) === */

.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  border: 1px solid #e7e2f4;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

/* Лейбли */

.form-label,
.wpcf7 form label {
  display: block;
  color: #212227;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
}

/* Інпути */

.form-input,
.form-textarea {
  margin-top:8px;
  border: 1px solid #8a8e91;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

/* Текстова область */
.form-textarea {
  min-height: 125px;
  resize: vertical;
}

/* Стан фокусу */ 

.form-input:focus,
.form-textarea:focus {
  border-color: #f0392d;
  /*box-shadow: 0 0 0 2px rgba(240, 57, 45, 0.15);*/
  outline: none;
}

/* Плейсхолдери */

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8a8e91;
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
  opacity: 1;
}

/* Селект */

.form-select {
  margin-top: 8px;
  border: 1px solid #8a8e91;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
  width: 100%;
  background-color: #fff;
  color: #212227;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='none' stroke='%238a8e91' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-sizing: border-box;
}

/* Стан фокусу */

.form-select:focus {
  border-color: #f0392d;
  outline: none;
}

/* Деактивований стан */

.form-select:disabled {
  background-color: #f5f5f5;
  color: #a0a0a0;
  cursor: not-allowed;
}

/* Опції випадаючого списку */
.form-select option {
  color: #212227;
  background-color: #fff;
}

/* Кнопка */
.wpcf7 .form-button {
  display: block;
  background: #f2512e;
  border: none;
  border-radius: 8px;
  padding: 20px 40px;
  width: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s;
  box-sizing: border-box;
}

.wpcf7 .form-button:hover {
  background: #d94422;
}

/* Повідомлення від CF7 */
.wpcf7-response-output {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}

.wpcf7-mail-sent-ok {
  border: 2px solid #28a745;
  background: #eafaf1;
  color: #28a745;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked {
  border: 2px solid #dc3545;
  background: #fbeaea;
  color: #dc3545;
}

/* === Чекбокси === */
.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #212227;
  cursor: pointer;
  margin-bottom: 6px;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #8a8e91;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"]:checked {
  background-color: #f2512e;
  border-color: #f2512e;
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 3px;
  font-size: 14px;
  color: #fff;
  font-weight: bold;
}

/* Спінер */

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .spinner {
    width: 14px;
    height: 14px;
  }
}

/* === Header === */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #D9E1F3;
    border-bottom: #C4C4C4 solid 1px;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 30px;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.header__logo {
    position: relative;
    z-index: 5;
}

.header__logo img {
    width: 70px;
    height: auto;
    display: block;
}

/* меню */
.menu__icon { display: none; }
.menu__list>li {
    position: relative;
    margin: 0 0 0 20px;
}
.menu__link {
    color: #000;
    font-size: 18px;
    text-transform: uppercase;
}
.menu__link:hover { text-decoration: underline; }

/* підменю */
.menu__sub-list {
    position: absolute;
    top: 100%;
    background-color: #FFFCF7;
    padding: 15px;
    min-width: 200px;
}
.menu__sub-list li { margin-bottom: 10px; }
.menu__sub-list li:last-child { margin-bottom: 0; }
.menu__sub-link { color: #080808; font-size: 16px; }
.menu__sub-link:hover { text-decoration: underline; }

/* десктоп */
@media (min-width: 767px) {
    .menu__list { display: flex; align-items: center; }
    .menu__list>li { padding: 10px 0; }
    .menu__sub-list {
        transform: translate(0, 10%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    body._pc .menu__list>li:hover .menu__sub-list {
        opacity: 1;
        visibility: visible;
        transform: translate(0,0);
        pointer-events: all;
    }
    .link-phone {
        font-weight: 600;
        margin-left: 50px;
    }
}

/* мобільне меню */

@media (max-width:767px) {
    .menu__icon {
        z-index: 5;
        display: block;
        position: relative;
        width: 30px;
        height: 18px;
        cursor: pointer;
    }
    .menu__icon span,
    .menu__icon::before,
    .menu__icon::after {
        left: 0;
        position: absolute;
        height: 10%;
        width: 100%;
        transition: all 0.3s ease;
        background-color: #000;
    }
    .menu__icon::before,
    .menu__icon::after { content: ""; }
    .menu__icon::before { top: 0; }
    .menu__icon::after { bottom: 0; }
    .menu__icon span {
        top: 50%;
        transform: scale(1) translate(0,-50%);
    }
    .menu__icon._active span { transform: scale(0) translate(0,-50px); }
    .menu__icon._active::before {
        top: 50%;
        transform: rotate(-45deg) translate(0,-50%);
    }
    .menu__icon._active::after {
        top: 50%;
        transform: rotate(45deg) translate(0,50%);
    }
    .menu__body {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: #EBF5EF;
        padding: 100px 30px 30px;
        transition: left 0.3s ease;
        overflow: auto;
    }
    .menu__body._active { left: 0; }
    .menu__body::before {
        content: "";
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        height: 70px;
        background-color: #D9E1F3;
        z-index: 2;
    }
    .menu__list>li { flex-wrap: wrap; margin-bottom: 30px; }
    .menu__list>li:last-child { margin-bottom: 0; }
    .menu__list>li._active .menu__sub-list { display: block; }
    .menu__link { font-size: 24px; }
    .menu__sub-list {
        position: relative;
        background-color: #f1f2f2;
        flex: 1 1 100%;
        margin-top: 20px;
        display: none;
    }
    .menu__sub-link { font-size: 20px; color: #303032; }
}

/* Стилі для модального вікна */

.popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #EBF5EF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup.show {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.popup__content {
  background: #fff;
  padding: 55px;
  max-width: 500px;
  width: 90%;
  position: relative;
  border-radius: 16px;
  text-align: center;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.popup.show .popup__content {
  transform: translateY(0);
}

.close-popup-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #6f6f72;
  font-size: 13px;
  line-height: 140%;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

/* Стилі для заголовка модального вікна */
.popup__content h3 {
  color: #13121e;
  font-size: 40px;
  line-height: 124%;
  font-weight: 600;
  margin: 20px 0 0 0; /* відступ зверху та знизу */
}

/* Стилі для абзацу модального вікна */
.popup__content p {
  color: #13121e;
  font-size: 15px;
  line-height: 140%;
  font-weight: 500;
  margin: 0 0 10px 0; /* відступ знизу, щоб не злипалося з заголовком */
}

/* footer */

.site-footer {
    background-color: #111;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}
.site-footer__inner { max-width: 960px; margin: 0 auto; }
.site-footer__copyright {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

/* === 404 Page === */

.page-404 {
    background-color: #111;
    color: #fff;
    padding: 300px 20px;
    text-align: center;
}
.page-404__title { font-size: 40px; margin-bottom: 20px; }
.page-404__text { font-size: 18px; margin-bottom: 40px; color: #ccc; }
.page-404__button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #fff;
    color: #111;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.page-404__button:hover { background-color: #eee; color: #000; }
@media (max-width: 600px) {
    .page-404__title { font-size: 28px; }
    .page-404__text { font-size: 16px; }
}

/*сторінка анкети */

.form-section.one-column {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background: #fff;
}

.form-container {
  max-width: 600px;
  width: 100%;
  /*text-align: center;*/
}

.form-section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #212227;
}

/*сторінка файл*/

.file-section {
  display: flex;
  justify-content: center;
  padding: 260px 20px;
  background: #fff;
}

.file-container {
  max-width: 700px;
  text-align: center;
}

.file-section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

.file-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #444;
}

.file-download-btn {
  display: inline-block;
  background: #f2512e;
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
}

.file-download-btn:hover {
  background: #d94422;
}

/*сторінка фаворбуд*/

