/* главная страница. общее (палитра, шапка, кнопки, подвал) лежит в base.css */

/*моделька*/
#ap {
  position: relative;
}

.image-container {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--hero-image), var(--hero-gradients);
  background-size: cover;
  background-position: center;
}

/*текст*/
.image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--hero-scrim);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.text-overlay {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 140px clamp(20px, 6vw, 96px) 80px;
}

.text-overlay h1 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 0 28px var(--text-glow);
}

.text-overlay p {
  max-width: 60ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  text-shadow: 0 0 18px var(--text-glow);
}

.hero-button-wrapper {
  margin-top: 32px;
}

/*секции услууууг*/
#about {
  padding: clamp(56px, 8vw, 104px) 20px;
}

#contacts {
  padding: clamp(56px, 8vw, 104px) 20px 0;
  background: var(--bg-soft);
}

#docs {
  padding: clamp(40px, 6vw, 72px) 20px clamp(56px, 8vw, 104px);
  background: var(--bg-soft);
}

.section-title,
.docs-title,
.column h3 {
  margin: 0 0 32px;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

#about > .section-title {
  width: min(var(--page-width), 100%);
  margin-inline: auto;
}

.container,
.contacts-container,
.docs-section {
  width: min(var(--page-width), 100%);
  margin-inline: auto;
}

/*контакты и реквизиты две колонки*/
.contacts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

/*карточки услуг*/
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card h3 {
  flex: 1;
  margin: 0;
  padding: 20px 22px 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card .more-button {
  align-self: flex-start;
  margin: 18px 22px 22px;
}

/*связь вась*/
.column {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.column h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.column address {
  font-style: normal;
}

.column p {
  margin: 0 0 10px;
  color: var(--muted);
}

.column strong {
  color: var(--text);
}

.column a {
  color: var(--link);
  font-weight: 600;
  text-underline-offset: 3px;
}

/*реквезиты*/
.requisites {
  margin: 0;
}

.requisites > div {
  display: grid;
  grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.requisites > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.requisites dt {
  color: var(--muted);
}

.requisites dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/*док*/
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.doc-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.doc-item:hover {
  border-color: var(--brand-light);
  background: var(--doc-hover-bg);
}

.doc-name {
  font-weight: 600;
  line-height: 1.4;
}

/*адап*/
@media (max-width: 720px) {

  #hero-canvas {
    opacity: 0.5;
  }

  .image-container::after {
    background: var(--hero-scrim-mobile);
  }

  .text-overlay {
    padding-top: 120px;
  }
}
