:root {
  --ink: #18211f;
  --muted-ink: #5f6863;
  --paper: #fbfaf7;
  --soft: #f0ece4;
  --warm: #f7f3ec;
  --cool: #edf2ef;
  --line: #ddd6c9;
  --green: #16352f;
  --green-2: #214a42;
  --gold: #c9a86a;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(24, 33, 31, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(221, 214, 201, 0.7);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand-text {
  display: grid;
  gap: 0;
  min-width: 0;
}

.brand-text strong {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text span {
  color: var(--muted-ink);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
}

.main-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 6px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--soft);
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.lang-link {
  border: 1px solid rgba(201, 168, 106, 0.55);
  background: rgba(201, 168, 106, 0.16);
  color: var(--ink);
  font-weight: 900;
}

.lang-link:hover,
.lang-link:focus-visible {
  background: rgba(201, 168, 106, 0.26);
}

.lang-link::after {
  display: none;
}

.nav-toggle,
.nav-button {
  display: none;
}

.section {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) max(18px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(221, 214, 201, 0.72);
}

.intro-grid,
.price-section,
.contact-section {
  background: var(--soft);
}

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: clamp(34px, 7vw, 94px);
  border-top: 0;
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(31px, 4vw, 52px);
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  color: var(--muted-ink);
  font-size: clamp(18px, 2vw, 22px);
  text-align: justify;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mobile-quick-actions {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green-2);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--white);
}

.hero-panel {
  align-self: center;
  width: min(100%, 340px);
  justify-self: end;
  padding: 30px 30px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(24, 33, 31, 0.08);
  text-align: center;
}

.portrait-photo {
  width: 152px;
  height: 152px;
  margin: 0 auto 20px;
  border: 2px solid rgba(201, 168, 106, 0.42);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
}

.hero-panel p {
  margin: 0;
  padding: 0;
  font-weight: 800;
}

.hero-panel small {
  display: block;
  margin: 4px 0 12px;
  color: var(--muted-ink);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel a {
  display: block;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hero-panel a:last-child {
  margin-bottom: 18px;
}

.intro-grid,
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 78px);
}

.text-block {
  color: var(--muted-ink);
  font-size: 18px;
  text-align: justify;
  text-wrap: pretty;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.services-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.86);
  box-shadow: 0 14px 36px rgba(24, 33, 31, 0.05);
}

.service-number {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.services-grid p,
.project-list small,
.contact-copy p,
.price-card,
.form-note {
  color: var(--muted-ink);
}

.services-grid p a {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 106, 0.7);
  text-underline-offset: 3px;
}

.services-grid p,
.project-list small,
.contact-copy p,
.price-card p,
.form-note {
  text-align: justify;
  text-wrap: pretty;
}

.price-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.price-card {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(201, 168, 106, 0.3);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.88);
  box-shadow: var(--shadow);
  font-size: 18px;
}

.price-card p {
  margin-bottom: 18px;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.price-card li::marker {
  color: var(--gold);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-list a {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.86);
  box-shadow: 0 14px 36px rgba(24, 33, 31, 0.05);
}

.project-list a:hover,
.project-list a:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 18px 48px rgba(24, 33, 31, 0.08);
}

.project-list span {
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.project-list small {
  font-size: 15px;
}

.project-list strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.project-list strong::after {
  content: " →";
  color: var(--gold);
}

.contact-details {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.contact-details div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted-ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.contact-details a {
  color: var(--green);
}

.rating-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rating-badges a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(218, 220, 224, 0.95);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.rating-badges a:hover,
.rating-badges a:focus-visible {
  border-color: var(--gold);
  background: var(--white);
}

.firmy-widget img {
  width: 168px;
  height: auto;
}

.google-widget {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
}

.google-word {
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.google-word span:nth-child(1),
.google-word span:nth-child(4) {
  color: #4285f4;
}

.google-word span:nth-child(2),
.google-word span:nth-child(6) {
  color: #ea4335;
}

.google-word span:nth-child(3) {
  color: #fbbc05;
}

.google-word span:nth-child(5) {
  color: #34a853;
}

.google-stars {
  color: #fbbc05;
  letter-spacing: 0.08em;
}

.google-widget em {
  color: var(--muted-ink);
  font-style: normal;
}

.rating-badges strong {
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-title {
  margin: 0 0 2px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.1;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form span {
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(22, 53, 47, 0.14);
}

.contact-form button {
  width: 100%;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding: 30px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted-ink);
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.legal-footer {
  padding: 14px clamp(18px, 4vw, 54px) 18px;
  border-top: 1px solid rgba(221, 214, 201, 0.72);
  background: var(--paper);
  color: var(--muted-ink);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.legal-footer p {
  margin: 0;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  white-space: nowrap;
}

.legal-footer a {
  color: var(--green);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(620px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 14px;
}

.cookie-banner .button {
  min-height: 42px;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thanks-wrap {
  width: min(680px, calc(100% - 36px));
  padding: clamp(30px, 7vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.thanks-wrap .brand-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
}

.thanks-wrap h1 {
  font-size: clamp(38px, 8vw, 64px);
}

.thanks-wrap p:not(.eyebrow) {
  color: var(--muted-ink);
  font-size: 18px;
}

@media (max-width: 880px) {
  .site-header {
    min-height: 68px;
  }

  .brand-text strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .nav-button span,
  .nav-button span::before,
  .nav-button span::after {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--ink);
    content: "";
  }

  .nav-button span {
    position: relative;
  }

  .nav-button span::before,
  .nav-button span::after {
    position: absolute;
    left: 0;
  }

  .nav-button span::before {
    top: -6px;
  }

  .nav-button span::after {
    top: 6px;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav a {
    justify-content: center;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .hero,
  .intro-grid,
  .price-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-panel {
    width: 100%;
    justify-self: stretch;
  }

  .mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-quick-actions a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
  }

  .services-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .rating-badges {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .rating-badges a {
    width: 100%;
    min-height: 56px;
    justify-content: center;
    padding: 12px 16px;
  }

  .firmy-widget img {
    width: min(250px, 100%);
  }

  .google-word {
    font-size: 18px;
  }

  .google-stars,
  .google-widget em {
    font-size: 16px;
  }
}

@media (max-width: 1180px) {
  .legal-footer p {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .section {
    width: 100%;
    padding: 54px 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    max-width: 154px;
    font-size: 14px;
  }

  .brand-text span {
    font-size: 12px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .lead,
  .text-block,
  .services-grid p,
  .project-list small,
  .contact-copy p,
  .price-card p,
  .form-note {
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .cookie-banner {
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
  }

  .services-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .services-grid article,
  .project-list a {
    min-height: auto;
  }
}
