/* Внутрішні сторінки IMPERIYAKS */
body.page-inner {
  background: var(--bg);
}

.page-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
}

.page-main__container {
  flex: 1 0 auto;
  max-width: 900px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--dark-soft);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.page-content__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.article-meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.article-lead-img {
  margin: 0 0 1.5rem;
}

.article-lead-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Контент з оригінального сайту */
.text-formatted {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-soft);
}

.text-formatted h1,
.text-formatted h2,
.text-formatted h3 {
  color: var(--dark);
  margin: 1.5rem 0 0.75rem;
  font-weight: 700;
}

.text-formatted p {
  margin: 0 0 1rem;
}

.text-formatted ul,
.text-formatted ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.text-formatted img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.text-formatted a:not(.btn) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Кнопки в контенті — не як звичайні посилання */
.text-formatted a.btn,
a.btn {
  text-decoration: none;
}

.text-formatted a.btn--primary {
  color: #fff;
}

.text-formatted a.btn--primary:hover {
  color: #fff;
}

.text-formatted a.btn--outline {
  color: var(--blue);
  text-decoration: none;
}

.text-formatted p > a.btn,
.text-formatted .btn {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Форми (контакти, підписка тощо) */
.subsctibe-wrapper,
.subscribeForm-container {
  max-width: 420px;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.subscribe-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.subscribe-text {
  font-size: 0.9rem;
  color: var(--dark-soft);
  margin-bottom: 1rem;
}

.subscribe-text p {
  margin: 0;
}

.subscribe-form .input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.field-email-wrap,
.field-wrap {
  flex: 1 1 200px;
  min-width: 0;
}

.input-group-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.text-formatted input.form-control,
.text-formatted input[type="email"],
.text-formatted input[type="text"],
.text-formatted input[type="tel"],
.text-formatted input[type="password"],
.text-formatted textarea,
.text-formatted select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-formatted input::placeholder,
.text-formatted textarea::placeholder {
  color: #9aa8b3;
}

.text-formatted input:focus,
.text-formatted textarea:focus,
.text-formatted select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 168, 0.15);
}

.text-formatted button,
button.btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.text-formatted button:hover,
button.btn-default:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 111, 168, 0.25);
}

.text-formatted button.btn-submit .text {
  color: inherit;
}

.text-formatted table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.text-formatted th,
.text-formatted td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  vertical-align: top;
}

.text-formatted tr:first-child td,
.text-formatted th {
  background: var(--blue-light);
  font-weight: 600;
  color: var(--dark);
}

.contact-page .contacts-main-office__map:empty {
  display: none;
}

.text-formatted .page-main__main-utp-title {
  display: none;
}

.text-formatted .overlay {
  display: none;
}

/* Іконки зі старого шаблону Venta */
.text-formatted i[class^="ic-"],
.text-formatted i[class*=" ic-"],
.text-formatted .icon-wrapper {
  display: none !important;
}
