/* ArchitekturAI — статическая версия, все пути относительные */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --white: #fff;
  --max: 80rem;
  --pad-x: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.container--narrow {
  max-width: 56rem;
}

.container--form {
  max-width: 56rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    transparent 100%
  );
}

.hero__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero__content {
  max-width: 42rem;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.btn--light {
  background: var(--white);
  color: var(--gray-900);
}

.btn--light:hover {
  background: #f3f4f6;
}

.btn--light:active {
  transform: scale(0.98);
}

.btn--dark {
  width: 100%;
  justify-content: center;
  background: var(--gray-900);
  color: var(--white);
}

.btn--dark:hover {
  background: #1f2937;
}

.btn--dark:active {
  transform: scale(0.98);
}

.btn .icon-arrow {
  width: 1.25rem;
  height: 1.25rem;
}

/* Sections */
.section {
  padding: 6rem var(--pad-x);
}

@media (min-width: 1024px) {
  .section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section--muted {
  background: var(--gray-50);
}

.section--dark {
  background: var(--gray-900);
  color: var(--white);
}

.section__intro {
  margin-bottom: 4rem;
  max-width: 42rem;
}

.section__intro p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--gray-600);
}

.section--dark .section__intro p {
  color: rgba(255, 255, 255, 0.75);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.section--dark h2 {
  color: var(--white);
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Services grid */
.grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--gray-900);
  transform: translateY(-6px);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Advantages */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
}

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

.adv-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s;
}

.adv-item:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.adv-item__dot {
  width: 8px;
  height: 8px;
  background: var(--white);
  flex-shrink: 0;
}

.adv-item p {
  margin: 0;
  font-size: 1.125rem;
}

/* Project cards */
.project {
  cursor: default;
  overflow: hidden;
}

.project__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1rem;
}

.project__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.project:hover .project__thumb img {
  transform: scale(1.08);
}

.project__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.45s ease;
  pointer-events: none;
}

.project:hover .project__thumb::after {
  background: rgba(0, 0, 0, 0.28);
}

.project h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.project p {
  margin: 0;
  color: var(--gray-600);
}

/* Testimonials */
.quote {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

.quote p {
  margin: 0 0 1.5rem;
  color: var(--gray-600);
  line-height: 1.65;
  font-style: italic;
}

.quote__name {
  font-weight: 600;
  color: var(--gray-900);
  font-style: normal;
}

.quote__loc {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.testimonials-row2 {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .testimonials-row2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-900);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  font: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gray-900);
}

.form-group textarea {
  resize: vertical;
  min-height: 9rem;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 4rem var(--pad-x);
}

@media (min-width: 1024px) {
  .footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.footer__grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer h3 a {
  color: inherit;
  text-decoration: none;
}

.footer h3 a:hover {
  color: var(--white);
}

.footer h4 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.footer p,
.footer a,
.footer span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.footer a:hover {
  color: var(--white);
}

.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer__contact-row svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer__bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}
