/* General Body Styles */
/* =================================================================== */
/* ОБНОВЛЕННЫЕ СТИЛИ для унифицированного блока "героя" (как в каталоге) */
.page-hero {
    background-image: url('../img/chip.webp'); /* Путь к вашему фоновому изображению */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 450px; /* Базовая высота как в catalog-title */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Растягиваем на всю ширину экрана, игнорируя контейнер */
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Затемнение как в catalog-title */
    z-index: 1;
}

.page-hero h1 {
    font-size: 55px; /* Размер шрифта как в catalog-title */
    color: #fff;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    z-index: 2;
    position: relative; /* Важно для text-shadow */
    /* УСИЛЕННЫЕ ТЕНИ И ОТСТУП МЕЖДУ БУКВАМИ */
    text-shadow:
        0 0 15px rgba(0, 0, 0, 0.9), /* Более сильное размытие и темнее */
        0 0 25px rgba(0, 0, 0, 0.7), /* Дополнительная тень */
        0 6px 12px rgba(0, 0, 0, 0.8); /* Смещение и темнее */
    letter-spacing: 1.5px; /* Небольшой отступ между буквами */
}

/* Адаптивные стили для заголовка и высоты, скопированные из catalog.css */
@media (max-width: 992px) {
    /* Если в catalog.css есть что-то для 992px, используем. Если нет, то пропускаем.
       Сейчас в catalog.css нет отдельных медиа для min-height или font-size на 992px для .catalog-title */
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 250px; /* Немного увеличено для средних экранов */
    }
    .page-hero h1 {
        font-size: 3rem; /* Немного уменьшим для средних экранов */
        letter-spacing: 1px; /* Чуть меньший отступ на меньших экранах */
    }
}

@media (max-width: 576px) {
    .page-hero h1 {
        font-size: 2.5rem; /* Размер шрифта для совсем маленьких экранов */
        letter-spacing: 0.8px; /* Ещё чуть меньший отступ */
    }

    .page-hero {
        min-height: 200px; /* Высота как в catalog-title на 576px */
    }
}
/* =================================================================== */


/* Main Content Area */
.main-content {
  max-width: 80rem;
  /* max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-top: 3rem;
  /* py-12 */
  padding-bottom: 3rem;
  /* py-12 */
  padding-left: 1rem;
  /* px-4 */
  padding-right: 1rem;
  /* px-4 */
  display: grid;
  gap: 3rem;
  /* gap-12 */
}

@media (min-width: 768px) {

  /* md: */
  .main-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* md:grid-cols-2 */
  }
}

/* Left Section: Office Info */
.office-info {
  background-color: #ffffff;
  /* bg-white */
  padding: 2rem;
  /* p-8 */
  border-radius: 0.75rem;
  /* rounded-xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* shadow-lg */
}

.office-info h3 {
  font-size: 1.875rem;
  /* text-3xl */
  font-weight: 700;
  /* font-bold */
  margin-bottom: 1.5rem;
  /* mb-6 */
  color: #111827;
  /* text-gray-900 */
}

.office-info div {
  margin-bottom: 1.5rem;
  /* mb-6 */
  line-height: 1.5;
  /* leading-normal, default for Tailwind */
  color: #374151;
  /* text-gray-700 */
  font-size: 1.125rem;
  /* text-lg */
  display: flex;
  /* Space-y-3 is typically handled by flex/gap or direct margin */
  flex-direction: column;
  gap: 0.75rem;
  /* approximate space-y-3 */
}

.office-info p strong {
  font-weight: 700;
  /* strong tag default is bold */
}

.office-info a {
  color: #2563eb;
  /* text-blue-600 */
  transition-property: text-decoration-color;
  /* Add transition for hover underline */
  transition-duration: 300ms;
}

.office-info a:hover {
  text-decoration: underline;
  /* hover:underline */
}

.office-info img {
  width: 100%;
  /* w-full */
  margin-top: 1.5rem;
  /* mt-6 */
  border-radius: 0.5rem;
  /* rounded-lg */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  /* shadow-xl */
}

/* Right Section: Contact Form */
.contact-form {
  background-color: #ffffff;
  /* bg-white */
  padding: 2rem;
  /* p-8 */
  border-radius: 0.75rem;
  /* rounded-xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* shadow-lg */
  display: flex;
  /* space-y-6 */
  flex-direction: column;
  gap: 1.5rem;
  /* space-y-6 equivalent */
}

.contact-form h3 {
  font-size: 1.875rem;
  /* text-3xl */
  font-weight: 700;
  /* font-bold */
  margin-bottom: 1.5rem;
  /* mb-6 */
  color: #111827;
  /* text-gray-900 */
}

.contact-form div {
  margin-bottom: 0;
  /* Remove default div margin if present */
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  /* font-medium */
  color: #374151;
  /* text-gray-700 */
  margin-bottom: 0.25rem;
  /* mb-1 */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  /* w-full */
  border: 1px solid #d1d5db;
  /* border border-gray-300 */
  padding: 0.75rem 1rem;
  /* px-4 py-2 */
  border-radius: 0.5rem;
  /* rounded-lg */
  transition-property: border-color, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid transparent;
  /* default outline removal */
  outline-offset: 2px;
  border-color: #3b82f6;
  /* focus:border-blue-500 */
  box-shadow: 0 0 0 1px #3b82f6;
  /* focus:ring-blue-500 */
}

.contact-form textarea {
  resize: vertical;
  /* resize-y */
}

.contact-form button {
  width: 100%;
  /* w-full */
  background-color: #000000;
  /* bg-black */
  color: #ffffff;
  /* text-white */
  padding: 0.75rem 1.5rem;
  /* px-6 py-3 */
  border-radius: 0.5rem;
  /* rounded-lg */
  transition-property: background-color;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.125rem;
  /* text-lg */
  font-weight: 600;
  /* font-semibold */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  /* shadow-md */
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #1f2937;
  /* hover:bg-gray-800 */
}

.contact-form #response {
  text-align: center;
  padding-top: 0.5rem;
  /* pt-2 */
}

.contact-form .text-green-600 {
  color: #16a34a;
}

.contact-form .text-red-600 {
  color: #dc2626;
}

.contact-form .text-gray-500 {
  color: #6b7280;
}