/*
Theme Name: Core Seo
Theme URI: https://optima-design.pro
Author: Optima Design
Author URI: https://optima-design.pro
Description: Custom lightweight starter theme for Optima Design projects.
Version: 1.0.0
Text Domain: optima
*/

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset margins */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote {
  margin: 0;
}

/* Remove list styles */
ul, ol {
  list-style: none;
  padding: 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Buttons & inputs */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Body base */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
  font-size: 17px;
  font-weight: 400;
  font-style: normal;
  color: #333;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  color: #0b0b0b;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 14px;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

p {
  margin-bottom: 14px;
}

.section {
  padding: 32px 0;
}

.section--small {
  padding: 24px 0;
}

.section--large {
  padding: 48px}


.header__top {background: #223f5c; color: #fff; letter-spacing: .25px;}
.header__top_block {display: flex; align-items: center; justify-content: space-between;font-size: 16px;padding: 8px 0;}

.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 65vh;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  color: #fff;
}  

.hero__content h1 {color: #fff;}
.hero__text {margin: 20px 0 40px;}


.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 16px;
}

.hero__trust {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  padding-top: 20px;
}    
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;}

.btn--primary {
  background: #e74a49;
  color: #fff;
}

.btn--primary:hover {
  background: #111;
  color: #e74a49;
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn--secondary:active {
  transform: translateY(1px);
}

.btn--secondary-dark {
  color: #111;
  border: 1px solid #111;
}

.btn--secondary-dark:hover {
  background: #111;
  color: #fff;
}


.footer {
  background: #223f5c;
  color: #eee;
  padding-top: 40px;
}

.footer a {
  color: #eee;
  transition: 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  gap: 30px;
}

.footer__title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.footer__text {
  font-size: 14px;
  line-height: 1.6;
}

.footer__bottom {
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid #23394f;
  font-size: 13px;
}




/* --- Секция-обёртка --- */
.quote-section {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: #0d2b5e;
  background-image:
    linear-gradient(rgba(10, 35, 90, 0.82), rgba(10, 35, 90, 0.82)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.03) 18px,
      rgba(255, 255, 255, 0.03) 19px
    );
  border-radius: 4px;
  padding: 40px 44px 48px;
  overflow: hidden;
}

/* --- Надпись «GET A QUOTE» --- */
.quote-section .quote-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.9;
}

/* --- Заголовок «Request a Free Estimate!» --- */
.quote-section .quote-title {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 32px;
}

/* ================================================
   CF7 — строки полей (двухколоночные)
   ================================================ */
.quote-section .wpcf7-form .form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

/* Однострочный блок (textarea) */
.quote-section .wpcf7-form .form-row.full {
  flex-direction: column;
  gap: 0;
}

/* Обёртка поля от CF7 */
.quote-section .wpcf7-form span.wpcf7-form-control-wrap {
  flex: 1;
  display: block;
}

/* ================================================
   CF7 — стили полей ввода
   ================================================ */
.quote-section .wpcf7-form input[type="text"],
.quote-section .wpcf7-form input[type="email"],
.quote-section .wpcf7-form input[type="tel"],
.quote-section .wpcf7-form textarea {
  width: 100%;
  background: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 14px 18px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #333333;
  outline: none;
  transition: box-shadow 0.2s ease;
  display: block;
  -webkit-appearance: none;
  appearance: none;
}

/* Placeholder */
.quote-section .wpcf7-form input::placeholder,
.quote-section .wpcf7-form textarea::placeholder {
  color: #999999;
}

/* Фокус */
.quote-section .wpcf7-form input:focus,
.quote-section .wpcf7-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(230, 60, 60, 0.4);
}

/* Textarea */
.quote-section .wpcf7-form textarea {
  resize: vertical;
  min-height: 110px;
  margin-bottom: 14px;
}

/* ================================================
   CF7 — кнопка Submit
   ================================================ */
.quote-section .submit-wrap {
  position: relative;
}

/* Стрелка справа */
.quote-section .submit-wrap::after {
  content: '→';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 18px;
  pointer-events: none;
}

.quote-section .wpcf7-form input[type="submit"] {
  width: 100%;
  background: #e63232;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.quote-section .wpcf7-form input[type="submit"]:hover {
  background: #c42828;
  transform: translateY(-1px);
}

.quote-section .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* ================================================
   CF7 — валидация и сообщения
   ================================================ */

/* Невалидное поле */
.quote-section .wpcf7-form .wpcf7-not-valid {
  box-shadow: 0 0 0 2px #e63232 !important;
}

/* Текст ошибки под полем */
.quote-section .wpcf7-form .wpcf7-not-valid-tip {
  color: #ffaaaa;
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

/* Блок с ответом (успех / ошибка) */
.quote-section .wpcf7-response-output {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  color: #ffffff;
  border: none !important;
}

/* Успешная отправка */
.quote-section .wpcf7-mail-sent-ok {
  background: rgba(50, 200, 100, 0.25) !important;
}

/* Ошибка отправки / валидации */
.quote-section .wpcf7-mail-sent-ng,
.quote-section .wpcf7-validation-errors {
  background: rgba(230, 50, 50, 0.25) !important;
}


.pac-container {
    border-radius: 4px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    z-index: 9999;
}

.pac-item {
    padding: 8px 14px;
    cursor: pointer;
    color: #333;
}

.pac-item:hover,
.pac-item-selected {
    background: #f0f4ff;
}

.pac-item-query {
    font-size: 13px;
    color: #0d2b5e;
    font-weight: 600;
}

.pac-matched {
    color: #e63232;
}

/* ================================================
   Адаптив — мобильные устройства
   ================================================ */
@media (max-width: 560px) {
  .quote-section {
    padding: 28px 20px 36px;
  }

  .quote-section .quote-title {
    font-size: 30px;
  }

  .quote-section .wpcf7-form .form-row {
    flex-direction: column;
    gap: 12px;
  }
}



@media (max-width: 767px) {
  .btn {
    width: 100%;
  }
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
   body {
    font-size: 19px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

    .hero__actions {
    flex-direction: row;
  }
  .section {
    padding: 56px 0;
  }

  .section--large {
    padding: 80px 0;
  }
  .container {
    max-width: 720px;
  }
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

@media (min-width: 992px) {
  body {
    font-size: 20px;
  }
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 21px;
  }
     h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1320px) {
  .container {
    max-width: 1240px;
  }
}