:root {
  --bg: #f8f1f2;
  --surface: #ffffff;
  --text: #181b22;
  --muted: #565c68;
  --primary: #e72f73;
  --primary-strong: #c81f60;
  --line: #d8dbe3;
  --ok-bg: #e8f6ed;
  --ok-text: #1e6f39;
  --err-bg: #fdeced;
  --err-text: #8c1f28;
  --radius: 14px;
  --shadow: 0 20px 40px rgba(18, 22, 32, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(231, 47, 115, 0.14), transparent 44%),
    radial-gradient(circle at 92% 2%, rgba(200, 31, 96, 0.1), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(148, 24, 74, 0.05), transparent 55%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(243, 244, 247, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: min(282px, 100%);
  height: auto;
  transform: scale(1.05);
  transform-origin: left center;
}

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

.nav a {
  text-decoration: none;
  color: #303540;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav a:hover {
  background: #ebeef4;
}

.nav a.is-active {
  background: var(--primary);
  color: #fff;
}

main {
  padding: 2rem 0 3rem;
}

.hero,
.panel,
.card,
.contact-grid,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 1.4rem;
  padding: 1.4rem;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.hero p {
  margin: 0 0 0.9rem;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.panel {
  padding: 1rem 1.1rem;
}

.panel-spaced {
  margin-bottom: 1rem;
}

.panel h2,
.panel h3,
.card h3 {
  margin: 0 0 0.5rem;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1rem 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1rem;
}

.contact-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 0.6rem;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-slider {
  margin-top: 0.6rem;
  align-self: start;
}

.slides {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.slide {
  margin: 0;
  display: none;
}

.slide.is-active {
  display: block;
  animation: slide-fade 0.5s ease;
}

.slider-controls {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.slider-btn {
  min-width: 42px;
  min-height: 36px;
  border-radius: 999px;
  background: #e9edf5;
  color: #2f3a4a;
  padding: 0;
  line-height: 1;
}

.slider-btn:hover {
  background: #d9e3f3;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #b7c3d8;
}

.slider-dot.is-active {
  background: var(--primary);
}

@keyframes slide-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

label {
  display: block;
  font-size: 0.92rem;
  color: #3f4f65;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c7d2e3;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: inherit;
  background: #fbfcff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.field {
  margin-bottom: 0.8rem;
}

.actions {
  display: flex;
  gap: 0.6rem;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button[type="submit"] {
  background: var(--primary);
  color: #fff;
}

button[type="submit"]:hover {
  background: var(--primary-strong);
}

button[type="reset"] {
  background: #ebedf3;
  color: #313746;
}

.notice {
  margin-top: 0.9rem;
  padding: 0.65rem 0.8rem;
  display: none;
}

.notice.is-visible {
  display: block;
}

.notice.is-success {
  background: var(--ok-bg);
  color: var(--ok-text);
  border-color: #bfdfc8;
}

.notice.is-error {
  background: var(--err-bg);
  color: var(--err-text);
  border-color: #e8b4b8;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--primary-strong);
}

.cookie-consent {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(14, 18, 26, 0.45);
  z-index: 1000;
}

.cookie-consent.is-open {
  display: flex;
}

.cookie-consent__panel {
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 26px 60px rgba(9, 13, 24, 0.22);
  padding: 1rem;
}

.cookie-consent__panel h2 {
  margin: 0 0 0.5rem;
}

.cookie-consent__panel p {
  margin: 0 0 0.65rem;
}

.cookie-consent__small {
  color: var(--muted);
  font-size: 0.93rem;
}

.cookie-consent__options {
  margin: 0.9rem 0;
  display: grid;
  gap: 0.45rem;
}

.cookie-consent__options label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #253245;
}

.cookie-consent__options input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-btn {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.6rem 0.8rem;
  font-weight: 700;
}

.cookie-btn--ghost {
  background: #eef1f8;
  color: #2d3750;
  border-color: #d6deed;
}

.cookie-btn--ghost:hover {
  background: #e2e8f5;
}

.cookie-btn--primary {
  background: var(--primary);
  color: #fff;
}

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

.cookie-settings-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 990;
  border: 1px solid #d6deec;
  background: #f6f8fc;
  color: #2c374d;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(20, 26, 40, 0.18);
}

.cookie-settings-toggle:hover {
  background: #e9edf5;
}

@media (max-width: 860px) {
  .hero,
  .grid-2,
  .services,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}
