@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --canvas: #f4f1ec;
  --paper: #fffcf8;
  --ink: #272823;
  --muted: #65655e;
  --line: #e1ded6;
  --accent: #a33d2d;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Onest", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2, figure { margin: 0; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { display: block; flex: none; }
::selection { color: var(--ink); background: #eac8b7; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

.shell {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
  padding-block: 34px;
}

.cover {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  grid-template-areas: "intro photo" "contacts contacts";
  overflow: hidden;
  border: 1px solid #ddd7cf;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 60px -42px rgb(66 43 25 / 35%);
}

.intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px 48px 46px;
}

h1 {
  font-size: clamp(2.75rem, 4.2vw, 3.5rem);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -.055em;
}

.profession {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #883a2b;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
}

.profession svg { width: 18px; height: 18px; }
.bio {
  max-width: 430px;
  margin-top: 29px;
  font-size: 1.0625rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.soon {
  max-width: 430px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.soon-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.soon-text { margin-top: 9px; color: var(--muted); font-size: .9375rem; line-height: 1.8; text-wrap: pretty; }

.visual {
  grid-area: photo;
  position: relative;
  min-height: 526px;
  background: #d0a78b;
}

.visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.contacts {
  grid-area: contacts;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  align-items: center;
  gap: 30px;
  padding: 28px 38px 28px 48px;
  border-top: 1px solid var(--line);
  background: #fffdf9;
}

.contacts h2 { font-size: 1.375rem; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.contacts-subtitle { margin-top: 6px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.contact {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #d8d2c9;
  border-radius: 12px;
  width: 100%;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.contact:disabled {
  opacity: 1;
  cursor: wait;
}

.contact-icon { width: 21px; height: 21px; }
.contact-body { min-width: 0; }
.contact-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.contact-value { display: block; font-size: .875rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.contact-telegram { border-color: var(--accent); color: #fffdf9; background: var(--accent); }
.contact-telegram .contact-label { color: #fff2e8; }
.contact-arrow { width: 16px; height: 16px; margin-left: auto; }
.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.no-js { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; line-height: 1.7; }

@media (hover: hover) and (pointer: fine) {
  .contact:hover { border-color: #b68d7b; background: #f4eae1; }
  .contact-telegram:hover { border-color: #873225; background: #873225; }
}

@media (prefers-reduced-motion: no-preference) {
  .cover { animation: reveal .5s ease-out both; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1100px) {
  .shell { width: calc(100% - 56px); }
  .intro { padding: 36px 34px; }
  h1 { font-size: 2.875rem; }
  .contacts { grid-template-columns: 1fr 2fr; gap: 22px; padding-inline: 34px; }
  .contact { gap: 10px; padding-inline: 14px; }
  .contact-list { gap: 10px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .intro { padding-inline: 27px; }
  h1 { font-size: 2.375rem; }
  .contacts { grid-template-columns: 1fr; gap: 18px; }
  .contacts-subtitle { display: none; }
}

@media (max-width: 760px) {
  body { place-items: start center; }
  .shell { width: min(590px, calc(100% - 40px)); padding-block: 24px; }
  .cover { grid-template-columns: 1fr; grid-template-areas: "photo" "intro" "contacts"; border-radius: 20px; }
  .visual { min-height: 0; height: 230px; }
  .visual img { object-position: 50% 68%; }
  .intro { padding: 30px; }
  h1 { font-size: clamp(2.125rem, 6.5vw, 2.875rem); }
  .profession { margin-bottom: 14px; font-size: .8125rem; }
  .bio { max-width: none; margin-top: 22px; font-size: 1rem; line-height: 1.75; }
  .soon { max-width: none; margin-top: 23px; padding-top: 21px; }
  .soon-title { font-size: 1rem; }
  .soon-text { margin-top: 7px; font-size: .9375rem; line-height: 1.75; }
  .contacts { grid-template-columns: 1fr; gap: 17px; padding: 26px 30px; }
  .contacts h2 { font-size: 1.1875rem; }
  .contacts-subtitle { display: none; }
  .contact { padding: 14px; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 28px); padding-block: 17px; }
  .visual { height: 194px; }
  .intro { padding: 26px 23px; }
  h1 { font-size: clamp(1.875rem, 8.1vw, 2.375rem); }
  .contacts { gap: 15px; padding: 23px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact { padding: 13px 16px; gap: 14px; }
  .contact-value { font-size: .875rem; }
}

@media (forced-colors: active) {
  .profession, .contact { border: 1px solid ButtonText; }
}
