:root {
  --pink: #b22e5b;
  --pink-dark: #8f1e45;
  --green: #55bf49;
  --green-soft: #eaf8e6;
  --blue: #58b2f0;
  --blue-dark: #2786d7;
  --ink: #08080a;
  --muted: #5f5f66;
  --line: #dadada;
  --paper: #ffffff;
  --gray: #f3f3f3;
  --shadow-pink: 0 18px 36px rgba(178, 46, 91, 0.22);
  --shadow-blue: 0 18px 34px rgba(39, 134, 215, 0.22);
  --shadow-green: 0 18px 34px rgba(85, 191, 73, 0.2);
  --max: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 92px;
  padding: 18px max(40px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 207px;
}

.brand-logo {
  width: 207px;
  height: 48px;
  object-fit: contain;
}

.switchbid-link {
  margin-right: auto;
  color: var(--blue-dark);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.switchbid-link:hover {
  color: var(--pink);
}

h1,
h2,
h3,
.button,
.tag,
.eyebrow,
.scope-grid span,
.number {
  font-family: Montserrat, Arial Black, Arial, sans-serif;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--pink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  margin: 7px auto;
  background: var(--ink);
}

.section-band {
  background: var(--paper);
}

.hero {
  padding: 0;
  overflow: hidden;
}

.hero-shell {
  position: relative;
  display: block;
  width: 100%;
  min-height: calc(100vh - 92px);
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.hero-shell::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 39%,
    rgba(255, 255, 255, 0.94) 50%,
    rgba(255, 255, 255, 0.68) 62%,
    rgba(255, 255, 255, 0) 78%
  );
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(var(--max), calc(100% - 96px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 56px 0 54px;
}

.tag {
  align-self: flex-start;
  margin-bottom: 26px;
  padding: 7px 16px;
  border: 1px solid #7aa843;
  border-radius: 10px;
  color: #689032;
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 650px;
  color: var(--pink);
  font-size: 68px;
  font-weight: 900;
  line-height: 1.02;
}

.lead {
  max-width: 590px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px;
  margin-top: 36px;
}

.cta-with-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-transform: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #e73361, var(--pink));
  color: #fff;
  box-shadow: var(--shadow-pink);
}

.button-outline {
  border-color: var(--pink);
  color: var(--pink);
  background: transparent;
}

.button-outline:hover {
  background: #fff1f6;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f7f7f7;
  color: #202022;
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 45%;
  z-index: 0;
  min-height: 100%;
  background: #fff;
  overflow: hidden;
  pointer-events: none;
}

.hero-visual img {
  position: absolute;
  top: -48px;
  right: -16px;
  width: clamp(780px, 65vw, 1050px);
  height: auto;
  max-width: none;
  transform: none;
}

.scope-strip {
  padding: 24px 20px;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  background: #fff;
}

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

.scope-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.scope-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.section {
  padding: 110px 0;
}

#services,
#automation,
#youtube,
#contact {
  scroll-margin-top: 96px;
}

.section-gray {
  background: var(--gray);
}

.section-title {
  max-width: 900px;
  text-align: center;
}

.section-cta {
  align-items: center;
  margin-top: 28px;
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--pink);
  font-size: 20px;
  font-weight: 900;
}

h2 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 54px;
}

.work-card {
  min-height: 320px;
  padding: 36px 32px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(8, 8, 10, 0.08);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #fff1f6;
  color: var(--pink);
  font-size: 18px;
  font-weight: 900;
}

.work-card h3 {
  margin-bottom: 14px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.24;
}

.work-card p {
  color: var(--muted);
}

.automation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 70px;
}

.automation-copy p:last-child {
  max-width: 520px;
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.5;
}

.automation-cta {
  align-items: center;
  margin-top: 30px;
}

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

.feature-card {
  min-height: 230px;
  padding: 34px;
  border-radius: 22px;
  background: #fff;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

.feature-card p {
  color: #242426;
  font-size: 17px;
}

.feature-pink {
  border: 1px solid rgba(178, 46, 91, 0.2);
  box-shadow: var(--shadow-pink);
}

.feature-pink h3 {
  color: var(--pink);
}

.feature-blue {
  border: 1px solid rgba(39, 134, 215, 0.2);
  box-shadow: var(--shadow-blue);
}

.feature-blue h3 {
  color: var(--blue-dark);
}

.feature-green {
  border: 1px solid rgba(85, 191, 73, 0.22);
  box-shadow: var(--shadow-green);
}

.feature-green h3 {
  color: var(--green);
}

.feature-dark {
  background: #111114;
  color: #fff;
  box-shadow: 0 18px 36px rgba(8, 8, 10, 0.2);
}

.feature-dark p {
  color: rgba(255, 255, 255, 0.76);
}

.youtube-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 62px;
  border-radius: 26px;
  border: 1px solid rgba(178, 46, 91, 0.18);
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 8, 10, 0.08);
}

.youtube-card h2 {
  color: var(--pink);
}

.youtube-card p {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 46px;
  align-items: start;
}

.contact-copy h2 {
  max-width: 640px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(8, 8, 10, 0.1);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #2a2a2d;
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background: #f8f8f8;
  color: var(--ink);
  padding: 16px 18px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(178, 46, 91, 0.12);
}

.contact-form .button {
  width: 100%;
}

.contact-form .button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.telegram-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  justify-self: center;
  color: var(--pink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.telegram-link:hover {
  color: var(--pink-dark);
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: var(--green);
}

.form-status[data-state="error"] {
  color: var(--pink);
}

@media (max-width: 1320px) {
  .site-header {
    min-height: 82px;
    padding: 16px 32px;
  }

  .hero-shell {
    min-height: calc(100vh - 82px);
  }

  .hero-copy {
    width: min(var(--max), calc(100% - 64px));
    min-height: calc(100vh - 82px);
    padding: 52px 0;
  }

  h1 {
    max-width: 560px;
    font-size: 58px;
  }

  .lead {
    font-size: 20px;
  }

  .hero-visual {
    min-height: 100%;
  }

  .hero-visual img {
    top: -36px;
    width: clamp(680px, 66vw, 900px);
  }

  h2 {
    font-size: 44px;
  }

  .section {
    padding: 94px 0;
  }
}

@media (max-width: 1020px) {
  .hero-shell {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .hero-shell::before {
    display: none;
  }

  .automation-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: calc(100% - 48px);
    min-height: auto;
    padding: 48px 0 24px;
  }

  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: auto;
  }

  .hero-visual img {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 12px 20px;
  }

  .brand {
    min-width: 0;
  }

  .switchbid-link {
    margin-right: 0;
    font-size: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(8, 8, 10, 0.15);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 13px 4px;
  }

  .hero {
    background:
      radial-gradient(circle at 78% 52%, rgba(88, 178, 240, 0.18), transparent 35%),
      radial-gradient(circle at 10% 18%, rgba(85, 191, 73, 0.16), transparent 30%),
      linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  }

  .hero-shell {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    min-height: auto;
    padding: 34px 0 46px;
  }

  .tag {
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
  }

  h1 {
    max-width: 360px;
    font-size: 34px;
    line-height: 1.06;
  }

  .lead {
    max-width: 330px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.45;
  }

  .hero-actions {
    max-width: 320px;
    gap: 10px;
    margin-top: 22px;
  }

  .proof-row,
  .scope-strip {
    display: none;
  }

  .hero-visual {
    display: none;
  }

  .hero-shell::after {
    display: none;
  }

  h2 {
    font-size: 32px;
  }

  .lead,
  .automation-copy p:last-child,
  .youtube-card p {
    font-size: 18px;
  }

  .button {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
  }

  .cta-with-link {
    width: 100%;
  }

  .scope-grid,
  .work-grid,
  .automation-grid,
  .youtube-card {
    grid-template-columns: 1fr;
  }

  .scope-grid span {
    justify-content: flex-start;
    padding: 0 20px;
  }

  .section {
    padding: 68px 0;
  }

  .container {
    width: calc(100% - 32px);
  }

  .youtube-card,
  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 430px) {
  .brand {
    min-width: 136px;
  }

  .brand-logo {
    width: 136px;
    height: auto;
  }

  .switchbid-link {
    max-width: 88px;
    font-size: 11px;
    line-height: 1.15;
    text-align: left;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 30px 0 42px;
  }

  .tag {
    font-size: 12px;
  }

  .lead {
    max-width: 300px;
    font-size: 16px;
  }

  .hero-actions {
    max-width: 292px;
    margin-top: 18px;
  }

  .button {
    min-height: 50px;
    font-size: 14px;
  }

}
