/* Base */
:root {
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #5b5b5b;
  --line: #e3e3e3;
  --accent: #111111;
  --highlight: #cfd8dc;
  --card: #f8f8f9;
  --shadow: 0 14px 45px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

.section {
  scroll-margin-top: 96px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", "Manrope", serif;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: var(--text);
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section--narrow {
  padding: 80px 0;
  width: min(760px, 92vw);
  margin: 0 auto;
}

.section__heading {
  text-align: center;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.divider {
  width: 32px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
}

.lead {
  font-weight: 600;
  color: var(--text);
}

/* Hero */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: block;
}

.nav__list {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav__list a {
  position: relative;
  padding: 6px 0;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav__list a:hover::after,
.nav__list a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  display: none;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-image:
    linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15)),
    url("./anarchy_inc_kv.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 20% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
              radial-gradient(60% 60% at 80% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__content {
  position: relative;
  padding: 48px 0 72px;
  width: min(1100px, 94vw);
}

.hero__text {
  max-width: 540px;
}

.hero__text h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: #fff;
  margin-bottom: 12px;
}

.hero__text p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  font-size: 15px;
  max-width: 540px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 32px;
}

.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.scroll-down span {
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  margin-top: -2px;
}

.scroll-down:hover {
  transform: translateX(-50%) translateY(3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

/* About */
#about h2 {
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
}

#about p {
  text-align: center;
}

/* Service */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card__body {
  padding: 18px 18px 22px;
}

.card__body h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

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

/* News */
.news-item {
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.news-item time {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Company */
.company {
  width: 100%;
  border-top: 1px solid var(--line);
}

.company__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.company dt {
  font-weight: 700;
  color: var(--text);
}

.company dd {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact {
  background: linear-gradient(135deg, #f7f8fa 0%, #f1f3f6 100%);
}

.contact__intro {
  text-align: center;
  margin-bottom: 28px;
  color: var(--muted);
}

.contact__form {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
  width: min(820px, 94vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.field sup {
  color: #e53935;
  margin-left: 4px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: #111;
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.policy-link {
  font-size: 13px;
  text-decoration: underline;
  color: var(--text);
}

.policy__body {
  line-height: 1.8;
}

.policy__body h3 {
  margin-top: 0;
}

.policy__body h4 {
  margin: 18px 0 8px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.btn:active {
  transform: translateY(0);
}

.form-success {
  display: none; /* replaced by modal */
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__body {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px 24px;
  width: 420px;
  max-width: 92vw;
  box-shadow: var(--shadow);
  text-align: center;
}
.modal__title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.modal__desc {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 28px 16px 36px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

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

  .nav-mobile {
    display: block;
  }

  .nav-mobile .nav__list {
    flex-direction: column;
    padding: 14px 22px 24px;
    gap: 10px;
  }

  .nav-mobile nav {
    width: min(520px, 92vw);
    margin: 0 auto;
  }

  .nav-mobile .nav__list a {
    display: block;
    padding: 10px 0;
  }

  .nav-drawer {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav-drawer {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    align-items: flex-end;
  }

  .hero__content {
    padding: 36px 0 64px;
  }

  .company__row {
    grid-template-columns: 120px 1fr;
    gap: 12px;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero__text h1 {
    font-size: 26px;
  }

  .hero__text p {
    font-size: 14px;
  }

  .modal__body {
    width: 86vw;
  }

  .policy__body h4 {
    margin: 14px 0 6px;
    font-size: 14px;
  }

  .company__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .company dt {
    font-size: 13px;
  }

  .company dd {
    font-size: 14px;
  }

  .scroll-down {
    width: 40px;
    height: 40px;
  }
}
