:root {
  --bg: #fbfbfc;
  --bg-alt: #f3f4f8;
  --card: #ffffff;
  --text: #202433;
  --muted: #5a6274;
  --accent: #6b41ff;
  --accent-strong: #5230d7;
  --border: #e3e6ef;
  --shadow: 0 10px 30px rgba(32, 36, 51, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 252, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 5.2rem 0 4rem;
  position: relative;
  background: url("assets/img/front-edited.jpg") center/cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 22, 35, 0.75), rgba(42, 36, 74, 0.6));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f4ddff;
  font-weight: 700;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 16px rgba(13, 15, 26, 0.55);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 700px;
  text-shadow: 0 4px 18px rgba(8, 10, 18, 0.55);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  color: #f2f4ff;
  max-width: 680px;
  font-size: 1.16rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 14px rgba(11, 13, 22, 0.45);
}

.lead-small {
  color: var(--muted);
  margin-top: 0.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-full {
  width: 100%;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-photo {
  position: relative;
}

.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 20, 0.62);
}

.section-photo-contact::before {
  background: rgba(9, 11, 20, 0.48);
}

.section-photo .container {
  position: relative;
  z-index: 1;
}

.section-photo h2,
.section-photo p,
.section-photo .lead-small,
.section-photo .contact-meta {
  color: #fff;
  text-shadow: 0 2px 14px rgba(10, 10, 18, 0.45);
}

.section-photo-community {
  background: url("assets/img/front-2.jpg") center/cover no-repeat;
}

.section-photo-contact {
  background: url("assets/img/front-edited.jpg") center/cover no-repeat;
}

.content-block p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-photo .content-block p {
  color: #f3f5ff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.services-grid {
  margin-top: 1.2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-logo {
  width: 100%;
  max-width: 180px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 0.6rem;
  margin-left: auto;
  margin-right: auto;
}

.card p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
}

.services-grid .card a {
  margin-top: 0.7rem;
}

.services-grid .card {
  padding: 0.95rem;
}

.services-grid .card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

.services-grid .card p {
  margin-bottom: 0.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-meta {
  color: var(--muted);
}

.contact-form {
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(8, 10, 18, 0.28);
  padding: 1.2rem;
}

@media (min-width: 1100px) {
  body {
    font-size: 18px;
  }

  .section {
    padding: 4.6rem 0;
  }

  .cards-grid {
    gap: 1.2rem;
  }

  .cards-grid:not(.services-grid) .card {
    min-height: 320px;
  }

  .services-grid .card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .services-grid .card {
    padding: 0.9rem;
  }
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #d5c9ff;
  border-color: #c9b8ff;
}

.site-footer {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .section {
    padding: 3.2rem 0;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .lead {
    font-size: 1.06rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: auto;
    padding: 0.8rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 0.8rem;
    font-size: 0.95rem;
  }

  .hero {
    padding: 4.2rem 0 3.2rem;
  }

  .btn-primary,
  .card a {
    min-height: 44px;
  }
}
