:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #f2f2f2;
  --text: #404040;
  --muted: #808080;
  --accent: #da2e88;
  --accent-dark: #253a58;
  --border: #d3d3d3;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-dark);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: center;
  background-image: image-set(
    url("assets/images/pixabay-2081556.avif") type("image/avif"),
    url("assets/images/pixabay-2081556.webp") type("image/webp"),
    url("assets/images/pixabay-2081556.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(37, 58, 88, 0.86), rgba(218, 46, 136, 0.52));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 3.5rem 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.15;
}

.hero p {
  max-width: 780px;
  margin: 0.9rem 0 0;
  line-height: 1.6;
}

.section {
  padding: 2.8rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.8vw, 2.1rem);
  color: var(--accent-dark);
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.services {
  display: grid;
  gap: 0.8rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-dark);
}

details[open] summary {
  margin-bottom: 0.55rem;
}

details p,
details li {
  line-height: 1.55;
}

details ul {
  margin: 0;
  padding-left: 1.9rem;
  margin-left: 0.4rem;
  clear: left;
}

details > .photo {
  float: left;
  width: min(220px, 100%);
  margin: 0.15rem 1rem 0.6rem 0;
}

details::after {
  content: "";
  display: block;
  clear: both;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
}

.contact-list p {
  margin: 0.35rem 0;
}

form {
  display: grid;
  gap: 0.65rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  width: fit-content;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #4accea;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #38c3e4;
}

.footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 1.8rem 0 2.2rem;
}

.footer p {
  margin: 0.35rem 0;
  color: #434343;
}

@media (max-width: 920px) {
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  details > .photo {
    float: none;
    width: 100%;
    margin: 0.4rem 0 0.75rem;
  }
}
