/*
Theme Name: OknaSerwis Warsaw
Theme URI: https://oknaserwis.pl
Author: AI Developer
Description: Легкая тема на базе Tailwind CSS для сервиса ремонта окон. Включает адаптивный дизайн, мобильное меню и интеграцию Contact Form 7.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: oknaserwis
*/

/* 
==========================================================================
   ОСНОВНЫЕ СТИЛИ
==========================================================================
   Мы используем Tailwind CSS (подключен в functions.php), поэтому этот файл
   содержит минимум кастомного CSS, в основном для анимаций и сброса.
*/

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden; /* Предотвращает горизонтальный скролл */
}

/* --- Анимации --- */

/* Плавное появление */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Пульсация кнопки */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.btn-pulse {
    animation: pulse-ring 2s infinite;
}

/* Скроллбар для эстетики */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Contact Form 7 Styles Override --- */

.wpcf7-not-valid-tip {
    font-size: 0.8em;
    color: #ef4444; /* red-500 */
    margin-top: 4px;
}
.service-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.service-card {
  width: 32%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid #e6e6e6;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.service-img {
  width: 100%;
  height: 180px;
  background: #d9d9d9;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 20px;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-desc {
  color: #555;
  line-height: 1.45;
  height: 60px;
}

.service-price {
  margin-top: 15px;
  font-weight: 600;
  font-size: 16px;
}

.btn-order {
  margin: 20px;
  padding: 12px 0;
  text-align: center;
  background: #0066ff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  font-weight: 600;
  transition: 0.25s;
}

.btn-order:hover {
  background: #004fcc;
}

/* Модалка */
.modal-bg {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.modal-box input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.modal-btn {
  background: #0066ff;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  width: 100%;
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: 0.25s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.price-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

.price-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #0a53ff;
}

@media (max-width: 900px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .price-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* Убираем слишком большие отступы между строк для всех карточек */
#services .grid .p-8 p {
    line-height: 1.5rem; /* ровный межстрочный интервал */
    margin-bottom: 1.5rem; /* одинаковые отступы снизу */
}

/* Bestseller / Хит продаж */
.bestseller-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 9999px;
    color: #1a1a1a;
    background-color: #facc15; /* жёлтый фон */
    border: 1px solid #fbbf24; /* чуть темнее граница */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Пример для кнопки, встроенной в нижний край карточки */
.price-card button {
    margin-top: auto; /* чтобы кнопка всегда внизу */
}

/* Для гармонии карточек */
#services .grid .bg-white {
    display: flex;
    flex-direction: column;
}
/* Единый межстрочный интервал для всех карточек */
.price-card p {
    line-height: 1.5rem; /* ровный интервал */
    margin-bottom: 1.5rem;
}

/* Встроенная кнопка в нижний край */
.price-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef1f7;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    position: relative;
}

.price-card button {
    margin-top: auto; /* кнопка всегда внизу */
}

/* Bestseller / Хит продаж */
.bestseller-text {
    font-weight: 700;
    color: #b45309; /* тёплый оранжевый / желтый */
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Картинка на всю ширину */
.price-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s;
}

.price-card img:hover {
    transform: scale(1.05);
}
.hero-bg {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, #0c304f 0%, #021a2c 100%);
  overflow: hidden;
}

/* светящиеся тонкие линии */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* вертикальные линии */
    repeating-linear-gradient(
        to right,
        rgba(63,167,255,0.12) 0px,
        rgba(63,167,255,0.12) 1px,
        transparent 1px,
        transparent 140px
    ),
    /* горизонтальные линии */
    repeating-linear-gradient(
        to bottom,
        rgba(63,167,255,0.12) 0px,
        rgba(63,167,255,0.12) 1px,
        transparent 1px,
        transparent 160px
    );
  opacity: 0.55;
  pointer-events: none;
}

/* контент поверх */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 60px 24px;
}
.hero-bg {
  position: relative;
  min-height: 520px;

  /* Градиент */
  background:
    linear-gradient(135deg, #0c304f 0%, #021a2c 100%),
    url("/img/window-pattern.svg"); /* путь замени на свой */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

.hero-text-shadow {
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


/* Чтобы контент был на переднем плане */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 60px 24px;
}
<!-- Responsive FAQ Accordion with Frames -->
.faq-section {
    padding: 60px 20px;
    background: #F9FAFB;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-sub {
    text-align: center;
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 40px;
}

.faq-item {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    font-size: 18px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-icon {
    font-size: 22px;
    transition: transform .3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 0 24px;
    max-height: 0;
    overflow: hidden;
    font-size: 16px;
    color: #4B5563;
    line-height: 1.55;
    transition: max-height .35s ease, padding .35s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px 24px;
    max-height: 200px;
}

/* responsive */
@media (max-width: 600px) {
    .faq-title { font-size: 26px; }
    .faq-question { font-size: 16px; }
}
