:root {
  --color-bg: #fffaf6;
  --color-surface: #fffefe;
  --color-surface-soft: #fbf3ef;
  --color-text: #231817;
  --color-muted: #665856;
  --color-brand: #c96c4e;
  --color-brand-dark: #a8553d;
  --color-brand-soft: color-mix(in srgb, var(--color-brand) 10%, transparent);
  --color-border: #ead8cf;
  --color-focus: #7f3f2f;

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --container: 1120px;
  --header-height: 74px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 55px rgba(164, 84, 58, 0.18);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand) #f7eee9;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #f7eee9;
}

body::-webkit-scrollbar-thumb {
  background: var(--color-brand);
  border: 2px solid #f7eee9;
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-dark);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container--narrow {
  --container: 860px;
}

.section,
.hero {
  padding-block: clamp(72px, 8vw, 128px);
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--color-brand);
  color: white;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 250, 246, 0.92);
  border-bottom: 1px solid rgba(234, 216, 207, 0.8);
  backdrop-filter: blur(14px);
  transition:
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(93, 55, 42, 0.08);
}

.site-header__inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: 50%;
  overflow: hidden;
}

.brand__mark span {
  background: var(--color-brand);
}

.brand__text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
}

.brand__text small {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-nav a,
.language-switcher a {
  text-decoration: none;
}

.primary-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 10px;
  background: #f7f2ef;
}

.language-switcher a {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.language-switcher a[aria-current="true"] {
  background: white;
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: white;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin-block: 5px;
  background: var(--color-text);
}

.hero {
  background: linear-gradient(180deg, #fffaf6 0%, #f8f2ee 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-brand-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.14;
  font-weight: 500;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.25rem, 2vw, 3rem);
  color: #4b302b;
}

h2 {
  font-size: clamp(1.8rem, 1.7vw, 2.5rem);
  color: #4b302b;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.hero__content p:not(.eyebrow),
.section-heading p,
.about p,
.service-card p,
.service-card li {
  color: var(--color-text);
}

.hero__content > p:not(.eyebrow) {
  max-width: 650px;
  margin-block: 28px 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--color-brand);
  border-radius: 11px;
  background: var(--color-brand);
  color: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.button--ghost {
  background: transparent;
  color: var(--color-brand-dark);
}

.button--ghost:hover {
  color: white;
}

.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--color-surface-soft);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero__media img.is-active {
  opacity: 1;
}

.about {
  background: white;
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(56px, 7vw, 96px);
}

.about__content {
  max-width: 760px;
}

.about__content h2 {
  margin-bottom: 30px;
}

.about__content p {
  margin: 0 0 24px;
}

.about__drawing {
  color: #171313;
  opacity: 0.95;
  position: relative;
}
@media (max-width: 767px) {
  .about__drawing {
    display: none;
  }
}
@media (max-width: 767px) {
  .about__drawin__img {
    display: none;
  }
}
@media (min-width: 768px) {
  .about__drawin__img {
    display: block;
  }
}
.about__drawin__img {
  position: absolute;
  top: -450px;
  height: 590px;
  max-width: 610px;
  left: -150px;
  transform: rotate(22deg);
}
.services {
  background: #fbf8f5;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin-bottom: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  min-height: 250px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.service-card h3 {
  margin-bottom: 28px;
}

.service-card p,
.service-card ul {
  margin: 0;
}

.service-card ul {
  padding-left: 18px;
}

.contact {
  background: white;
}

.contact__container {
  --container: 900px;
}

.contact__heading {
  margin-bottom: 54px;
  text-align: center;
}

.contact__heading h2 {
  margin-bottom: 14px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 44px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d8ccc5;
  border-radius: 7px;
  background: white;
  padding: 11px 12px;
  color: var(--color-text);
}

.field input:focus,
.field textarea:focus,
.button:focus-visible,
.primary-nav a:focus-visible,
.language-switcher a:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-focus) 35%, transparent);
  outline-offset: 3px;
}

.field textarea {
  resize: vertical;
}

.field--checkbox {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
}

.field--checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.field--checkbox .field__error {
  grid-column: 2;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #b23824;
}

.field__error {
  min-height: 1.2em;
  margin: 0;
  color: #9f2f1f;
  font-size: 0.86rem;
}

.form-feedback {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.form-feedback.is-success,
.form-feedback.is-error {
  display: block;
}

.form-feedback.is-success {
  background: #ecf7ed;
  color: #23592a;
}

.form-feedback.is-error {
  background: #fff0ed;
  color: #9f2f1f;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.contact-info {
  display: grid;
  gap: 22px;
}

.contact-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--color-surface-soft);
}

.contact-card--soft {
  background: #fff7f7;
  border: 1px solid #f2dada;
}

.contact-card__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-card__item + .contact-card__item {
  margin-top: 22px;
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f7dfd6;
  color: var(--color-brand);
  font-weight: 700;
}

.contact-card h3 {
  margin-bottom: 3px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.contact-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.begirune-page {
  background: white;
}

.begirune-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: clamp(52px, 8vw, 116px);
}

.begirune-profile__content {
  max-width: 760px;
}

.begirune-profile__title {
  margin-bottom: 10px;
  color: #5a403a;
  font-size: clamp(2.15rem, 3vw, 2.6rem);
  line-height: 1.18;
}

.begirune-profile__role {
  margin: 0 0 clamp(34px, 3vw, 56px);
  color: #5a403a;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.25;
}

.begirune-profile__text {
  display: grid;
  gap: clamp(24px, 4vw, 32px);
  max-width: 730px;
}

.begirune-profile__text p {
  margin: 0;
  color: #111;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

.begirune-profile__media {
  justify-self: center;
  width: min(100%, 500px);
  margin: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.begirune-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.legal-page {
  background: white;
}

.legal-page h1 {
  margin-bottom: 24px;
}

.legal-page__intro {
  margin-bottom: 48px;
  color: var(--color-muted);
}

.legal-block {
  padding-block: 28px;
  border-top: 1px solid var(--color-border);
}

.legal-block h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.legal-block p {
  margin: 0 0 16px;
}

.site-footer {
  padding-block: 30px;
  background: #fbf8f5;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .site-header__inner {
    grid-template-columns: auto auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 18px auto 18px;
    display: none;
    justify-self: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: white;
    box-shadow: 0 24px 60px rgba(93, 55, 42, 0.16);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 14px;
  }

  .language-switcher {
    justify-self: end;
  }

  .hero__inner,
  .about__inner,
  .begirune-profile,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
  }

  .about__drawing {
    max-width: 320px;
    margin-inline: auto;
    display: none;
  }

  .begirune-profile__media {
    order: -1;
    width: min(100%, 320px);
  }

  .begirune-profile__title {
    text-align: left;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand__text small {
    display: none;
  }

  .brand__text strong {
    font-size: 1.1rem;
  }

  .language-switcher a {
    padding: 5px 6px;
    font-size: 0.78rem;
  }

  .section,
  .hero {
    padding-block: 64px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-card {
    min-height: auto;
  }

  .field--checkbox {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
