@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/comfortaa-latin.woff2") format("woff2");
}

:root {
  --color-primary: #942046;
  --color-muted: #a69b9a;
  --color-dark: #453e3e;
  --color-ink: #2b161b;
  --color-soft: #f7f3f5;
  --color-white: #ffffff;
  --color-black: #000000;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-dark);
  background: var(--color-white);
  font-family: "Comfortaa", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 100;
  padding: 12px 18px;
  color: var(--color-primary);
  background: var(--color-white);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 120px;
  display: grid;
  grid-template-columns: minmax(210px, 300px) 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 35px;
  background: var(--color-primary);
}

.brand {
  width: min(300px, 100%);
}

.primary-nav {
  justify-self: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 120px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 36px;
  left: 0;
  height: 2px;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.phone-link:hover,
.phone-link:focus-visible {
  color: var(--color-primary);
  background: var(--color-white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.menu-toggle svg {
  display: block;
  width: 26px;
  height: 26px;
}

.menu-toggle::before {
  content: none;
}

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

.hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 0 40px;
  overflow: hidden;
  background-color: var(--color-muted);
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 22, 27, 0.6);
}

.hero-cabinet {
  background-image: url("../img/hero-cabinet.jpg");
  background-position: 33vw 0;
  background-size: 64vw auto;
}

.hero-expertise {
  min-height: 430px;
  background-image: url("../img/hero-expertise.jpg");
  background-position: 33vw 0;
  background-size: 64vw auto;
}

.hero-inner {
  position: relative;
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.hero-logo-box {
  width: min(600px, 100%);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: var(--color-white);
}

.hero-logo-box img {
  width: 253px;
}

.section {
  padding: 75px 0;
  background: var(--color-white);
}

.section-tight {
  padding-top: 50px;
}

.section-title {
  margin: 0 0 25px;
  color: var(--color-primary);
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.3;
  font-weight: 700;
}

.intro-grid {
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: 32px;
  align-items: stretch;
  padding-top: 25px;
}

.carousel {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--color-soft);
}

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

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

.intro-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.intro-copy p,
.expertise-intro p {
  margin: 0;
  text-align: justify;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
}

.competence-list {
  display: grid;
  gap: 9px;
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.competence-list li {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: start;
  gap: 11px;
  font-size: 18px;
  font-weight: 700;
}

.list-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 24px;
  color: var(--color-white);
  background: var(--color-primary);
  border: 0;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--color-white);
  background: var(--color-black);
}

.expertise-intro {
  display: grid;
  gap: 20px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 48px;
  margin-top: 50px;
}

.expertise-item {
  display: grid;
  gap: 14px;
  align-content: start;
}

.expertise-heading {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.expertise-heading svg {
  width: 32px;
  height: 32px;
}

.expertise-item ul,
.legal-content ul {
  margin: 0;
  padding-left: 22px;
}

.expertise-item li,
.legal-content li {
  margin: 0 0 5px;
}

.legal-main {
  padding: 70px 0 85px;
}

.legal-content {
  width: min(1100px, calc(100% - 64px));
  margin: 0 auto;
}

.legal-content h1 {
  margin: 0 0 34px;
  color: var(--color-primary);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
}

.legal-content h2,
.legal-content h3 {
  margin: 34px 0 14px;
  color: var(--color-primary);
  line-height: 1.3;
}

.legal-content h2 {
  font-size: clamp(24px, 2.5vw, 32px);
}

.legal-content h3 {
  font-size: 22px;
}

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

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-section {
  position: relative;
  padding: 75px 0;
  background: var(--color-white) url("../img/contact-background.jpg") center / cover no-repeat;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
}

.contact-inner {
  position: relative;
}

.contact-logo {
  width: min(768px, 100%);
  margin: 0 0 75px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

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

.contact-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
}

.contact-item svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.contact-item h2,
.form-heading {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  font-size: 18px;
}

.form-heading {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.form-heading svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.field label {
  font-size: 18px;
  font-weight: 700;
}

.required {
  color: var(--color-primary);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  background: #eeeeee;
  color: var(--color-dark);
  padding: 13px 16px;
  min-height: 48px;
}

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

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin: 0 0 18px;
  padding: 13px 16px;
  background: var(--color-soft);
  border-left: 4px solid var(--color-primary);
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.site-footer {
  padding: 22px 24px;
  color: var(--color-white);
  background: var(--color-primary);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer a {
  color: var(--color-white);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .site-header {
    min-height: 80px;
    grid-template-columns: auto 1fr auto;
    padding: 0 24px;
    gap: 18px;
  }

  .brand {
    width: min(230px, 45vw);
  }

  .primary-nav {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    display: none;
    justify-self: stretch;
    padding: 16px 24px 28px;
    background: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  }

  body.menu-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 0;
  }

  .primary-nav a {
    min-height: 44px;
  }

  .primary-nav a::after {
    bottom: 6px;
  }

  .phone-link {
    justify-self: end;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .hero-expertise {
    min-height: 50vh;
    padding: 0 32px;
    background-position: 33vw 0;
    background-size: contain;
  }

  .section,
  .section-tight {
    padding: 80px 0;
  }

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

  .carousel {
    min-height: 420px;
  }

  .contact-section {
    padding: 80px 0;
  }
}

@media (max-width: 767px) {
  .site-header {
    min-height: 64px;
    padding: 14px 20px 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand {
    width: min(185px, 44vw);
  }

  .primary-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .primary-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .primary-nav a {
    min-height: 30px;
    font-size: 13px;
  }

  .primary-nav a::after {
    bottom: 2px;
  }

  .phone-link {
    display: none;
  }

  .menu-toggle {
    display: none !important;
  }

  .container,
  .legal-content {
    width: min(100% - 48px, var(--container));
  }

  .hero,
  .hero-expertise {
    min-height: 455px;
    padding: 0 24px;
    align-items: flex-start;
    background-position: bottom center;
    background-size: 100% auto;
  }

  .hero-inner {
    width: 100%;
    padding: 40px 0 135px;
  }

  .hero-logo-box {
    width: min(280px, 100%);
    min-height: 0;
    aspect-ratio: 1.16;
    margin: 0 auto;
    padding: 16px;
  }

  .hero-logo-box img {
    width: min(175px, 72%);
  }

  .hero-expertise .hero-logo-box img {
    width: min(168px, 70%);
  }

  .section,
  .section-tight,
  .contact-section {
    padding: 64px 0;
  }

  .carousel {
    min-height: 290px;
  }

  .intro-copy p,
  .expertise-intro p,
  .contact-item p,
  .field label {
    font-size: 16px;
  }

  .expertise-grid,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .expertise-heading {
    font-size: 22px;
  }

  .contact-logo {
    margin-bottom: 46px;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .brand {
    width: min(220px, 68vw);
  }
}
