:root {
  --black: #050505;
  --dark: #111;
  --card: #161616;
  --line: #262626;
  --white: #fff;
  --grey: #8a8a8a;
  --grey-light: #bdbdbd;
  --blue: #3469f9;
  --blue-dark: #2553d6;
  --display: "Bebas Neue", sans-serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--black); color: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.dark { background: var(--black); color: var(--white); }
.light { background: var(--white); color: var(--black); }
.center { text-align: center; margin-top: 56px; }
.muted { color: var(--grey); }

section { padding: 120px 0; }
h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 22px; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 4px; font-weight: 500; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .25s, transform .25s, border-color .25s; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--ghost { border-color: #3a3a3a; color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5,5,5,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.nav__links a { position: relative; color: var(--grey-light); transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__burger { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--white); transition: transform .3s, top .3s; }
.nav__burger span:first-child { top: 6px; }
.nav__burger span:last-child { top: 16px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 11px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 11px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 100px 0 0; }
.hero__grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.hero__hello { font-size: 30px; line-height: 1.25; color: var(--grey-light); margin-bottom: 36px; }
.hero__text { color: var(--grey); font-size: 15px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(72px, 13vw, 210px); line-height: .88; color: #7a7a7a; text-transform: uppercase; text-align: right; }
.hero__title span { display: block; }
.hero__title span:nth-child(2) { color: var(--white); font-size: .62em; margin-top: 12px; }.hero__visual { margin-top: 80px; padding-bottom: 120px; display: grid; grid-template-columns: 5fr 7fr; gap: 24px; }
.hero__photo { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; background: #1a1a1a; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero__about { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background-image: radial-gradient(circle at 100% 0%, rgba(52,105,249,.25), transparent 55%); }
.hero__quote { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.hero__facts { list-style: none; border-top: 1px solid var(--line); }
.hero__facts li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--grey-light); font-size: 15px; }
.hero__facts span { color: var(--grey); }
.hero__badge { align-self: flex-start; display: flex; align-items: center; gap: 10px; border: 1px solid #333; border-radius: 30px; padding: 8px 16px; font-size: 14px; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }

@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Section head */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 64px; flex-wrap: wrap; }
.section-head__note { color: var(--grey); max-width: 340px; font-size: 15px; }

/* Projects */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.project { display: block; }
.project__thumb { position: relative; aspect-ratio: 16/11; border-radius: 6px; overflow: hidden; margin-bottom: 24px; background: #eee; border: 1px solid #e5e5e5; }
.project__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.project:hover .project__thumb img { transform: scale(1.04); }
.project__visit { position: absolute; right: 20px; bottom: 20px; background: var(--blue); color: var(--white); font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 30px; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.project:hover .project__visit, .project:focus-visible .project__visit { opacity: 1; transform: none; }
.project h3 { font-size: 22px; margin-bottom: 8px; }
.project:hover h3 { color: var(--blue); }
.project__desc { color: #555; font-size: 15px; margin-bottom: 10px; max-width: 560px; }
@media (hover: none) { .project__visit { opacity: 1; transform: none; } }
.project__meta { color: var(--grey); font-size: 15px; }
.project__meta i { font-style: normal; margin: 0 8px; }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 40px 32px; transition: background .3s, transform .3s, border-color .3s; }
.card:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-6px); }
.card:hover p, .card:hover .card__icon { color: var(--white); }
.card--featured { border-color: var(--blue); }
.card__icon { display: inline-block; font-family: var(--display); font-size: 40px; color: var(--blue); margin-bottom: 28px; transition: color .3s; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--grey); font-size: 15px; transition: color .3s; }

/* Offers */
.offers { padding-top: 0; }
.offers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offer { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 40px 32px; transition: transform .3s, border-color .3s; }
.offer:hover { transform: translateY(-6px); border-color: #3a3a3a; }
.offer--featured { border-color: var(--blue); background-image: radial-gradient(circle at 100% 0%, rgba(52,105,249,.22), transparent 60%); }
.offer--featured:hover { border-color: var(--blue); }
.offer__tag { position: absolute; top: -13px; left: 32px; background: var(--blue); font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 20px; }
.offer__name { font-size: 26px; }
.offer__desc { color: var(--grey); font-size: 15px; margin-top: 6px; }
.offer__price { font-family: var(--display); font-size: 72px; line-height: 1; margin: 28px 0; }
.offer__price small, .extra__price small { display: block; font-family: var(--sans); font-size: 13px; color: var(--grey); line-height: 1.4; }
.offer__price em, .extra__price em { font-style: normal; font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--grey-light); vertical-align: middle; }
.offer__price small:last-child, .extra__price small:last-child { margin-top: 6px; }
.offer__list { list-style: none; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 12px; flex: 1; margin-bottom: 32px; }
.offer__list li { position: relative; padding-left: 26px; color: var(--grey-light); font-size: 15px; }
.offer__list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 600; }
.offer__btn { justify-content: center; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.extra { display: flex; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px; }
.extra h3 { font-size: 18px; margin-bottom: 6px; }
.extra p { color: var(--grey); font-size: 14px; }
.extra .extra__price { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--white); text-align: right; white-space: nowrap; }
.offers__note { color: var(--grey); font-size: 13px; margin-top: 32px; text-align: center; }

/* Why */
.why { padding-top: 0; }
.why__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; border-top: 1px solid var(--line); padding-top: 120px; }
.why__title { position: sticky; top: 120px; align-self: start; }
.why__item { display: flex; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.why__item:first-child { padding-top: 0; }
.why__num { color: var(--blue); font-weight: 500; min-width: 44px; }
.why__item h3 { font-size: 28px; margin-bottom: 10px; }
.why__item p { color: var(--grey); }

/* Numbers */
.numbers { padding-top: 0; }
.numbers__title { margin-bottom: 56px; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.number { padding: 40px 24px 0 0; border-right: 1px solid var(--line); padding-left: 24px; }
.number:first-child { padding-left: 0; }
.number:last-child { border-right: 0; }
.number strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 8vw, 120px); line-height: 1; }
.number span { color: var(--grey); }

/* Process */
.process { padding-top: 0; }
.process h2 { margin-bottom: 56px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { border-top: 2px solid var(--line); padding-top: 28px; transition: border-color .3s; }
.step:hover { border-color: var(--blue); }
.step span { color: var(--blue); font-size: 14px; font-weight: 500; }
.step h3 { margin: 10px 0 12px; }
.step p { color: var(--grey); font-size: 15px; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.faq details { border-bottom: 1px solid #e5e5e5; padding: 28px 0; }
.faq details:first-child { padding-top: 0; }
.faq summary { list-style: none; cursor: pointer; font-size: 20px; font-weight: 500; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; transition: transform .3s; color: var(--blue); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #555; margin-top: 16px; max-width: 640px; }

/* Contact */
.contact__title { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 11vw, 170px); line-height: .9; text-transform: uppercase; margin-bottom: 72px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border-top: 1px solid var(--line); padding-top: 56px; }
.contact__info { display: flex; flex-direction: column; gap: 12px; }
.contact__big { font-size: clamp(28px, 3.5vw, 44px); font-weight: 500; }
.contact__email { font-size: clamp(20px, 2.6vw, 34px); color: var(--blue); overflow-wrap: anywhere; }
.contact__big:hover { text-decoration: underline; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 16px; color: var(--white); font: inherit; font-size: 15px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form__hp { position: absolute; left: -9999px; }
.form__intro { margin-bottom: 4px; }
.form__status { font-size: 15px; min-height: 1.4em; color: var(--grey); }
.form__status--ok { color: #4ade80; }
.form__status--error { color: #f87171; }
.form__status a { color: var(--blue); text-decoration: underline; }
.booking { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--blue); border-radius: 6px; padding: 28px; margin-bottom: 28px; background-image: radial-gradient(circle at 100% 0%, rgba(52,105,249,.22), transparent 60%); }
.booking__label { color: var(--blue); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.booking__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.2; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--grey); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--white); }

/* Reveal on scroll (only hides when JS is running) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 991px) {
  section { padding: 88px 0; }
  .nav__links { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--black); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .4s; }
  .nav__links.open { max-height: 400px; }
  .nav__links a { padding: 18px 32px; border-top: 1px solid var(--line); }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { text-align: left; order: -1; }
  .hero__visual { margin-top: 56px; padding-bottom: 88px; grid-template-columns: 1fr 1fr; }
  .hero__about { padding: 32px; }
  .services__grid, .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .offers__grid, .extras { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .offers__grid { row-gap: 40px; }
  .why__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .why__grid { padding-top: 88px; }
  .why__title { position: static; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .number { padding: 32px 16px 32px 0; border-bottom: 1px solid var(--line); }
  .number:nth-child(odd) { padding-left: 0; }
  .number:nth-child(even) { border-right: 0; padding-left: 16px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav__links a { padding: 18px 16px; }
  section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .hero__hello { font-size: 24px; margin-bottom: 20px; }
  .hero__visual { grid-template-columns: 1fr; padding-bottom: 72px; }
  .hero__about { padding: 24px; gap: 28px; }
  .hero__facts li { grid-template-columns: 1fr; gap: 2px; }
  .projects__grid, .services__grid, .process__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .why__item { gap: 16px; }
  .why__item h3 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
