* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f4f0;
  --ink: #1b1f24;
  --muted: #5d6470;
  --accent: #0f4c81;
  --accent-soft: #e3eef8;
  --surface: #ffffff;
  --line: #d8dbe0;
  --warm: #f2e9dd;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.ad-label {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-self: flex-start;
  background: var(--warm);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.nav a {
  color: var(--ink);
}

.nav a:hover {
  text-decoration: underline;
}

.sidebar-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-home {
  background-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1400&q=80");
}

.hero-about {
  background-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?w=1400&q=80");
}

.hero-services {
  background-image: url("https://images.unsplash.com/photo-1487014679447-9f8336841d58?w=1400&q=80");
}

.hero-contact {
  background-image: url("https://images.unsplash.com/photo-1450101215322-bf5cd27642fc?w=1400&q=80");
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.hero-content {
  position: relative;
  max-width: 640px;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 38px;
}

.hero p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.btn:hover {
  background: #0b3a62;
}

.section {
  padding: 42px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section.alt {
  background: var(--surface);
}

.section.warm {
  background: var(--warm);
}

.split {
  display: flex;
  gap: 28px;
  align-items: center;
}

.split.reverse {
  flex-direction: row-reverse;
}

.split .text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split .media {
  flex: 1;
  background: #dfe6ee;
  padding: 8px;
  border-radius: 16px;
}

.media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
}

.card-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  background: #e6edf5;
}

.price {
  font-weight: 600;
  color: var(--accent);
}

.sticky-cta {
  position: sticky;
  top: 24px;
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  width: 240px;
}

.inline-link {
  font-weight: 600;
  text-decoration: underline;
}

.testimonial {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 48px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.form-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-item {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  align-items: center;
}

.service-item img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  background: #e6edf5;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 20;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.ghost-btn:hover {
  background: var(--accent-soft);
}

.page-header {
  padding: 36px 48px 12px;
}

.page-header h1 {
  margin: 0;
  font-size: 30px;
}

.legal {
  padding: 28px 48px 52px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-blocks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  background: #e6edf5;
}

@media (max-width: 980px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .split {
    flex-direction: column;
  }

  .sticky-cta {
    position: static;
    width: auto;
  }
}
