/* ==========================================================
   Бухгалтер Ольга Семенченко — стили сайта
   ========================================================== */

/* ===== Базовые ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #1f2937; line-height: 1.6; background: #fff; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* ===== Шапка ===== */
header { position: sticky; top: 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-bottom: 1px solid #eef1f5; z-index: 10; }
.head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; }
.brand span { color: #2563eb; }
.head-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ===== Кнопки ===== */
.btn {  display: inline-flex;  align-items: center;  justify-content: center;  background-color: #2563eb;  color: #ffffff !important; text-decoration: none; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 16px; line-height: 1.3; border: none; cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease; text-align: center; white-space: nowrap; box-sizing: border-box; min-width: 120px; }

.btn:hover { background-color: #1d4ed8; transform: translateY(-1px); }

.btn.ghost { background-color: transparent; color: #2563eb !important; border: 2px solid #2563eb; }

.btn.ghost:hover { background-color: #eff6ff; border-color: #1d4ed8; color: #1d4ed8 !important; }

/* ===== Первый экран ===== */
.hero { padding: 64px 0 48px; background: linear-gradient(180deg, #f8fafc, #fff); }
.hero h1 { font-size: 38px; line-height: 1.2; margin-bottom: 18px; max-width: 760px; }
.hero p { font-size: 18px; color: #4b5563; max-width: 640px; margin-bottom: 28px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Общие блоки ===== */
section { padding: 56px 0; }
.bg-grey { background: #f8fafc; }
h2 { font-size: 28px; margin-bottom: 24px; }

/* ===== Сетка и карточки ===== */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid #eef1f5; border-radius: 14px; padding: 24px; background: #fff; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: #4b5563; font-size: 15px; }
.price { font-size: 22px; font-weight: 700; margin: 14px 0 6px; color: #111827; }
.muted { color: #6b7280; font-size: 13px; }
.note { margin-top: 16px; }

/* ===== Партнёры ===== */
.partners { background: #f8fafc; border-radius: 18px; padding: 36px 28px; }
.partners-title { margin-bottom: 8px; }
.partners-sub { margin-bottom: 26px; }
.pgroup { margin-bottom: 26px; }
.pgroup.last { margin-bottom: 0; }
.pgroup h3 { font-size: 16px; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 14px; }
.plist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plink { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; background: #fff; transition: .15s; }
.plink:hover { border-color: #2563eb; box-shadow: 0 4px 14px rgba(37, 99, 235, .08); }
.plink b { font-size: 15px; font-weight: 600; }
.plink small { display: block; color: #6b7280; font-weight: 400; font-size: 13px; }
.plink .arr { color: #2563eb; font-weight: 700; }
.reklama { margin-top: 8px; font-size: 12px; color: #9ca3af; }

/* ===== Обо мне и контакты ===== */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.about p { margin-bottom: 14px; color: #374151; }
.contacts a { color: #2563eb; }
.contact-line { margin: 12px 0; }
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.hours { margin: 12px 0; padding: 12px 14px; background: #f8fafc; border-radius: 10px; font-size: 15px; }
.hours b { display: block; font-size: 13px; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; font-weight: 600; }
.map-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.map-links a { color: #2563eb; font-size: 14px; }

/* ===== Форма ===== */
.lead { margin-bottom: 22px; }
.inline-link { color: #2563eb; }
form .row { margin-bottom: 14px; }
label { display: block; font-size: 14px; margin-bottom: 6px; color: #374151; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; font-family: inherit; }
input:focus, textarea:focus { outline: none; border-color: #2563eb; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #6b7280; margin: 16px 0; }
.consent input { width: auto; margin-top: 3px; }
.formmsg { margin-top: 14px; font-size: 15px; }

/* ===== Подвал ===== */
footer { background: #111827; color: #cbd5e1; padding: 40px 0; font-size: 14px; }
footer a { color: #93c5fd; }
.foot-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.req { font-size: 13px; color: #94a3b8; line-height: 1.8; margin-top: 16px; }

/* ===== Мобильная версия ===== */
@media (max-width: 860px) {
  .cols-3, .cols-2, .plist, .about { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .head { flex-direction: column; align-items: center; text-align: center; }
  .head-actions { justify-content: center; }
  .hero { text-align: center; }
  .hero h1, .hero p { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .hero .cta .btn { width: 100%; text-align: center; }
  h2 { text-align: center; }
  .about { text-align: center; }
  .card.contacts { text-align: center; }
  .contact-btns, .map-links { justify-content: center; }
  #zayavka .wrap { text-align: center; }
  #zayavka form { text-align: left; }
  .foot-top { justify-content: center; text-align: center; }
  .req { text-align: center; }
}

/* Контейнер секции */
.about-section {
  padding: 60px 0;
}

/* Обертка без сетки, просто ограничитель ширины */
.about-stacked {
  max-width: 800px; /* Ограничиваем ширину контента, чтобы не было слишком широко */
  margin: 0 auto;
}

/* Заголовок "Обо мне" */
.about-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #111;
}

.about-text p {
  line-height: 1.6;
  color: #444;
  margin-bottom: 16px;
}

/* Карточка контактов (белая, с тенью) */
.contact-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}

/* Внутренние отступы внутри карточки */
.contact-info, 
.contact-btns, 
.map-links, 
.rating-badge-wrapper, 
.map-widget-wrapper {
  margin-bottom: 24px;
}

/* Последний элемент не должен иметь отступа снизу */
.contact-card > :last-child {
  margin-bottom: 0;
}

/* Стили для контактов и графика (те же, что и раньше) */
.contact-line {
  margin: 12px 0;
  font-size: 15px;
  color: #333;
}

.contact-line strong {
  color: #2563eb;
  margin-right: 8px;
}

.contact-line a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-line a:hover {
  text-decoration: underline;
}

.hours-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.hours-title {
  font-weight: 700;
  font-size: 16px;
  color: #111;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hours-content div {
  color: #555;
  margin-bottom: 4px;
}

/* Кнопки */
.contact-btns {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.btn-primary {
  background-color: #2563eb;
  color: #fff !important;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
  background-color: transparent;
  border: 2px solid #2563eb;
  color: #2563eb !important;
}

.btn-ghost:hover {
  background-color: #eff6ff;
  border-color: #1d4ed8;
  color: #1d4ed8 !important;
}

/* Ссылки на карты */
.map-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.map-links a {
  color: #6b7280;
  font-size: 14px;
  text-decoration: none;
}

.map-links a:hover {
  color: #2563eb;
}

/* Рейтинг */
.rating-badge-wrapper {
  margin: 0 auto;
  text-align: center;
  width: 100%;
  max-width: 150px;
}

.rating-badge-wrapper iframe {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: none;
}

/* Карта */
.map-widget-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
}

.map-widget-wrapper iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* New
/* Шапка сайта */
.site-header {
  padding: 8px 0;          /* было 12–16px — шапка стала ниже */
  background: #fff;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  position: sticky;        /* прилипание сохраняем */
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Логотип */
.logo-block {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 32px;            /* главный параметр — от него зависит высота шапки */
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;         /* было 20px */
  font-weight: 700;
  line-height: 1.15;
  color: #111;
}

.logo-sub {
  font-size: 16px;
  font-weight: 400;
  color: #6b7280;
  margin-top: 1px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

/* Кнопки в шапке */
.header-actions .btn {
  padding: 10px 22px;      /* было 16px 32px — кнопки ниже */
  font-size: 15px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .header-actions .btn {
    width: 100%;
  }

  .logo-img {
    height: 40px;
  }
}
