:root {
  --ink: #1e1e1e;
  --logo: #231f20;
  --muted: #656565;
  --paper: #fff;
  --line: #e6e6e6;
  --burgundy: #6e2c3a;
  --pad: 77px;
  --wrap: 1200px;
  --gap: 60px;
  --grid-gap: 22px;
  --header-h: 130px;
  --serif: "Cormorant Garamond", serif;
  --sans: Montserrat, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0;
}

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

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

a:hover {
  color: var(--burgundy);
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: normal;
  font-style: normal;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
}

/* Header — как у референса: логотип слева, меню справа, 77px поля */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 24px var(--pad);
  background: var(--paper);
  position: relative;
  z-index: 500;
}

.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  transition:
    background 0.45s ease,
    min-height 0.45s ease,
    padding 0.45s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header .logo,
.site-header .nav-toggle,
.site-header .site-nav {
  opacity: 0;
  transform: translateY(-40px);
  transition: transform 0.5s, opacity 0.5s;
}

.site-header.is-visible .logo,
.site-header.is-visible .nav-toggle,
.site-header.is-visible .site-nav {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-sticky {
  pointer-events: none;
}

.site-header.is-sticky .logo {
  position: fixed;
  top: 0;
  left: var(--pad);
  z-index: 310;
  height: 64px;
  display: flex;
  align-items: center;
  opacity: 1;
  transform: translateY(-100%);
  pointer-events: auto;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-sticky.is-bar .logo {
  transform: translateY(0);
}

.site-header.is-sticky .logo img {
  height: 44px;
}

.site-header.is-sticky .site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 64px;
  padding: 12px var(--pad);
  background: var(--paper);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(-100%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-sticky.is-bar .site-nav {
  transform: translateY(0);
}

.site-header.is-sticky.is-armed .logo,
.site-header.is-sticky.is-armed .site-nav {
  transition: none;
  transform: translateY(-100%);
}

.site-header.is-sticky .site-nav ul {
  justify-content: flex-end;
  width: auto;
}

.site-header.is-sticky .site-nav a {
  font-weight: 400;
  text-shadow: none;
  color: var(--ink);
}

.page-home .site-header.is-sticky {
  pointer-events: auto;
  background: var(--paper);
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  transform: translateY(-100%);
  box-shadow: 0 1px 0 rgba(30, 30, 30, 0.08);
}

.page-home .site-header.is-sticky.is-armed {
  transition: none;
  transform: translateY(-100%);
}

.page-home .site-header.is-sticky.is-bar {
  transform: translateY(0);
}

.page-home .site-header.is-sticky .logo,
.page-home .site-header.is-sticky.is-bar .logo {
  position: static;
  height: auto;
  left: auto;
  opacity: 1;
  transform: none;
}

.page-home .site-header.is-sticky .site-nav,
.page-home .site-header.is-sticky.is-bar .site-nav {
  position: static;
  min-height: 0;
  padding: 0;
  background: transparent;
  opacity: 1;
  transform: none;
  justify-content: flex-end;
}

.page-home .logo img {
  height: 72px;
  filter: brightness(0) invert(1);
  transition: height 0.45s ease, filter 0.45s ease;
}

.page-home .site-header.is-sticky .logo img {
  filter: none;
}

.page-home .nav-toggle span,
.page-home .nav-toggle::before,
.page-home .nav-toggle::after {
  background: #fff;
}

.page-home .site-header.is-sticky .nav-toggle span,
.page-home .site-header.is-sticky .nav-toggle::before,
.page-home .site-header.is-sticky .nav-toggle::after {
  background: var(--logo);
  box-shadow: none;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  height: 56px;
  width: auto;
  transition: height 0.45s ease, filter 0.45s ease;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 30;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--logo);
  position: absolute;
  left: 0;
  right: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    top 0.3s ease,
    bottom 0.3s ease,
    background 0.45s ease;
}

.nav-toggle::before { top: 0; }
.nav-toggle span { top: 9px; }
.nav-toggle::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 9px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  bottom: 9px;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: 40px;
  align-items: center;
}

.site-nav a {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  line-height: 12px;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-top: 1px solid transparent;
  transition: color 0.45s ease, border-color 0.45s ease;
}

.page-home .site-nav a {
  color: #fff;
  font-weight: 700;
  text-shadow: none;
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  border-top-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .page-home .site-header,
  .site-header .logo,
  .site-header .nav-toggle,
  .site-header .site-nav,
  .site-header.is-sticky .logo,
  .site-header.is-sticky .site-nav,
  .site-header.is-sticky.is-bar .logo,
  .site-header.is-sticky.is-bar .site-nav,
  .logo img,
  .page-home .logo img,
  .site-nav a,
  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    transition: none;
  }

  .site-header .logo,
  .site-header .nav-toggle,
  .site-header.is-sticky.is-bar .logo,
  .site-header.is-sticky.is-bar .site-nav,
  .page-home .site-header.is-sticky,
  .page-home .site-header.is-sticky.is-bar {
    transform: none;
    opacity: 1;
  }
}

/* Hero */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #f3efe8;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 22%;
}

.hero-down {
  position: absolute;
  left: var(--pad);
  bottom: 24px;
  z-index: 4;
  width: 24px;
  height: 32px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  animation: hero-down 1.8s ease-in-out infinite;
}

.hero-down svg {
  width: 23px;
  height: 24px;
  display: block;
}

@keyframes hero-down {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  68% {
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

.page-home #content {
  scroll-margin-top: 72px;
}

/* Home sections — контейнер 1200, колонки 360 / 780 */

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

.section {
  padding: 60px 0;
}

.section-tight {
  padding: 40px 0;
}

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

.split-client {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--gap);
  align-items: center;
}

.split-client .photo {
  width: 360px;
  height: 493px;
  object-fit: cover;
}

.split-client .copy h2,
.split-client .copy h3 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 16px;
}

.split-client .copy p {
  font-size: 16px;
  line-height: 24px;
  max-width: 780px;
}

.split-photos {
  display: grid;
  grid-template-columns: 570px 570px;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
}

.split-photos img:first-child {
  width: 570px;
  height: 722px;
  object-fit: cover;
}

.split-photos img:last-child {
  width: 570px;
  height: 500px;
  object-fit: cover;
}

.split-bio {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--gap);
  align-items: start;
}

.split-bio h1 {
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.split-bio .lead {
  font-size: 16px;
  line-height: 24px;
}

.split-bio .copy p {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 16px;
}

/* Portfolio grid — 3 колонки, 574×718, зазор 22, поля 77 */

.portfolio-page {
  padding: 24px var(--pad) 80px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.project-card {
  display: block;
  color: var(--ink);
}

.project-card .thumb {
  width: 100%;
  aspect-ratio: 574 / 718;
  object-fit: cover;
  background: #f4f1ec;
}

.project-card .title {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.4;
}

/* Services — две колонки 570 + 60 */

.services {
  padding: 24px 0 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: 570px 570px;
  justify-content: space-between;
  gap: 40px var(--gap);
  align-items: start;
}

.services h1,
.services h2 {
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.services h3 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 16px;
}

.services :is(ul, p) + h3 {
  margin-top: 28px;
}

.services p,
.services li {
  font-size: 16px;
  line-height: 24px;
}

.services ul {
  margin: 0 0 16px;
}

.services li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.services li::before {
  content: "–";
  position: absolute;
  left: 0;
}

.price {
  margin-top: 16px;
}

.services-photo {
  width: 100%;
  object-fit: cover;
}

.services-photo.wide {
  height: 380px;
}

.services-photo.tall {
  height: 855px;
  max-height: 70vh;
}

.faq {
  padding: 40px 0 20px;
}

.faq h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.faq > p {
  margin-bottom: 28px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Project page */

.project-page {
  padding: 10px 0 80px;
}

.project-page h1 {
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 10px 0 28px;
}

.project-lead {
  max-width: 40em;
  margin: -8px 0 32px;
}

.project-lead p {
  margin: 0 0 0.8em;
}

.project-lead p:last-child {
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.gallery a {
  display: block;
  background: #f4f1ec;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .wide {
  grid-column: 1 / -1;
}

.gallery .wide img {
  max-height: 820px;
}

.gallery-skip {
  display: block;
}

/* Contacts */

.contacts {
  padding: 10px 0 80px;
}

.contacts-visual {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 48px;
}

.contacts-visual img {
  width: 100%;
  height: min(560px, 70vh);
  object-fit: cover;
}

.contacts-copy {
  width: min(570px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.contacts-copy p {
  margin-bottom: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 34px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.contact-links a:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.contact-links svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer */

.site-footer {
  padding: 28px var(--pad) 96px;
  text-align: center;
  font-size: 14px;
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 17, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

/* 404 / privacy */

.plain {
  padding: 40px 0 80px;
}

.plain h1 {
  font-size: 38px;
  margin-bottom: 20px;
}

.plain p {
  max-width: 640px;
}

@media (max-width: 1280px) {
  :root { --pad: 40px; }

  .split-client,
  .split-bio,
  .split-photos,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-client .photo,
  .split-photos img:first-child,
  .split-photos img:last-child,
  .services-photo.tall,
  .services-photo.wide {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .split-photos img:last-child,
  .services-photo.wide {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 20px;
    --header-h: 72px;
  }

  .site-header {
    min-height: var(--header-h);
    padding: 14px var(--pad);
  }

  .logo img { height: 44px; }
  .page-home .logo img { height: 48px; }

  .nav-toggle { display: block; }

  .page-home .site-header {
    position: fixed;
  }

  .site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    pointer-events: auto;
  }

  .site-header.is-sticky .logo,
  .site-header.is-sticky .nav-toggle {
    position: static;
    height: auto;
    left: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-header.is-sticky .logo img {
    height: 44px;
  }

  .site-header.is-sticky .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    justify-content: flex-start;
    padding: 8px 20px 24px;
    min-height: 0;
    background: var(--paper);
    box-shadow: 0 12px 24px rgba(35, 31, 32, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header.is-sticky .site-nav.is-open,
  .site-header.is-sticky.is-bar .site-nav.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-header.is-sticky .site-nav ul {
    justify-content: flex-start;
  }

  .page-home .site-header.is-sticky .site-nav,
  .page-home .site-header.is-sticky.is-bar .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-height: 0;
    padding: 8px 20px 24px;
    background: var(--paper);
    justify-content: flex-start;
    box-shadow: 0 12px 24px rgba(35, 31, 32, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .page-home .site-header.is-sticky .site-nav.is-open,
  .page-home .site-header.is-sticky.is-bar .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 8px 20px 24px;
    box-shadow: 0 12px 24px rgba(35, 31, 32, 0.08);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0.35s ease;
  }

  .site-header .site-nav,
  .site-header.is-visible .site-nav,
  .site-header.is-sticky .site-nav {
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0.35s ease;
  }

  .site-header.is-visible .site-nav {
    opacity: 0;
    transform: translateY(-12px);
  }

  .site-nav.is-open,
  .site-header.is-visible .site-nav.is-open {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .page-home .site-nav a {
    color: var(--ink);
    font-weight: 400;
    text-shadow: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero img {
    object-position: 40% 20%;
  }

  .split-client,
  .split-bio,
  .split-photos,
  .services-grid,
  .portfolio-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery .wide { grid-column: auto; }
  .gallery-skip { display: none; }

  .split-client .photo,
  .split-photos img,
  .services-photo {
    width: 100%;
    height: auto;
  }

  .portfolio-page,
  .site-footer {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .split-bio h1,
  .services h1,
  .services h2,
  .project-page h1,
  .faq h2,
  .plain h1 {
    font-size: 32px;
  }

  .contacts-visual img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Share widget — светлый круг 36px; клик открывает окно, как у референса */

.share-fab {
  position: fixed;
  right: 32px;
  bottom: 92px;
  z-index: 1000;
  width: 36px;
  height: 36px;
}

.share-fab__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(248, 249, 250, 0.94);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.share-fab__btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.share-fab__btn:hover,
.share-fab__btn:focus-visible {
  color: var(--ink);
  background: #fff;
}

.share-fab__btn:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.share-card {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: rgba(35, 35, 35, 0.6);
  padding: 20px;
}

.share-card.is-open {
  display: flex;
}

.share-card__window {
  position: relative;
  width: min(750px, 100%);
  padding: 40px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.share-card__title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
}

.share-card__link {
  display: flex;
  align-items: stretch;
  max-width: 100%;
}

.share-card__url {
  flex: 1;
  min-width: 0;
  height: 43px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: rgba(30, 30, 30, 0.05);
  color: var(--ink);
  font: inherit;
}

.share-card__url:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: -2px;
}

.share-card__link button {
  flex: 0 0 auto;
  height: 43px;
  padding: 11px 14px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  white-space: nowrap;
}

.share-card__link button:hover,
.share-card__link button:focus-visible {
  background: #2a2a2a;
  color: #fff;
}

.share-card__link button:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.share-card__social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.share-card__social a {
  width: 35px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.share-card__social svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Contact widget — как у референса: круглая кнопка + карточка */

.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
}

.contact-fab__label {
  position: absolute;
  right: 68px;
  top: 50%;
  margin-top: -22px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.contact-fab__label button {
  display: inline-block;
  padding: 14px 15px;
  border-radius: 50px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.contact-fab:hover .contact-fab__label,
.contact-fab:focus-within .contact-fab__label {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.contact-fab__icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 3px 8px 1px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-fab__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.contact-fab__icon:hover,
.contact-fab__icon:focus-visible,
.contact-fab__label button:hover,
.contact-fab__label button:focus-visible {
  color: #fff;
  background: #2a2a2a;
}

.contact-fab__icon:focus-visible,
.contact-fab__label button:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.contact-card {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  background: rgba(35, 35, 35, 0.6);
  padding: 24px;
}

.contact-card.is-open {
  display: flex;
}

.contact-card__window {
  position: relative;
  width: min(600px, 100%);
  margin: 100px 0;
  padding: 64px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.contact-card__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  color: var(--ink);
}

.contact-card__close::before,
.contact-card__close::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: currentColor;
}

.contact-card__close::before { transform: rotate(45deg); }
.contact-card__close::after { transform: rotate(-45deg); }

.contact-card__avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 42% 18%;
}

.contact-card__name {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.contact-card__role {
  font-size: 16px;
  margin: 0;
  color: var(--muted);
}

.contact-card__bio {
  margin-bottom: 20px;
}

.contact-card__phone {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.contact-card__phone a:hover {
  color: var(--burgundy);
}

.contact-card__buttons {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-card__buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(300px, 100%);
  padding: 12px 32px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 16px;
  color: var(--ink);
}

.contact-card__buttons a:hover,
.contact-card__buttons a:focus-visible {
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.contact-card__buttons svg {
  width: 16px;
  height: 16px;
}

body.contact-card-open,
body.share-card-open {
  overflow: hidden;
}

body.contact-card-open .contact-fab,
body.contact-card-open .share-fab {
  visibility: hidden;
  pointer-events: none;
}

@media (hover: none) {
  .contact-fab__label { display: none; }
}

@media (max-width: 860px) {
  .contact-card__window {
    margin: 48px 0;
    padding: 48px 24px 32px;
  }

  .contact-card__name { font-size: 28px; }
  .contact-card__phone { font-size: 22px; }

  .share-card__window {
    padding: 40px 24px 32px;
  }
}

@media (max-height: 800px) and (min-width: 861px) {
  .contact-card__window {
    margin: 40px 0;
    padding: 48px 40px 36px;
  }

  .contact-card__avatar { margin-bottom: 20px; }
  .contact-card__buttons { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab__label {
    transition: none;
  }

  .hero-down {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
