/* gagency.ae — the old Tilda landing rewritten as plain HTML/CSS. Colors, fonts and sizes are Tilda's. */
@font-face { font-family: Zaychik; src: url(fonts/zaychik-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Zaychik; src: url(fonts/zaychik-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face {
  font-family: Raleway; src: url(fonts/raleway-cyrillic.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Raleway; src: url(fonts/raleway-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #171717; --pink: #fe347e; --green: #9dfc03; --white: #fff;
  --head: Zaychik, Arial, sans-serif; --text: Raleway, Arial, sans-serif;
  --header: 100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--bg); color: var(--white); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: none; }
h1, h2, h3, p, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.up { text-transform: uppercase; }
.pink { color: var(--pink); }
.h2 { font: 400 clamp(36px, 5vw, 60px)/1 var(--head); color: var(--green); text-transform: uppercase; text-align: center; }
.decor { position: absolute; z-index: 0; pointer-events: none; }
section { position: relative; overflow: clip; }
section > .wrap > :not(.decor) { position: relative; z-index: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 260px; min-height: 56px; padding: 8px 24px;
  border: 1px solid var(--green); border-radius: 10px; font: 600 14px/1.55 var(--text); letter-spacing: 1px;
  text-transform: uppercase; text-align: center; transition: color .2s, border-color .2s, background-color .2s;
}
.btn:hover { color: var(--pink); border-color: var(--pink); }
.btn--solid { background: var(--green); border-color: var(--green); color: #000; }
.btn--solid:hover { background: transparent; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header); max-width: none; }
.logo { min-width: 0; overflow: hidden; white-space: nowrap; font: 400 50px/1 var(--head); }  /* gives way first while the font loads */
.nav { position: relative; margin: 0 auto; }
.nav summary { list-style: none; cursor: pointer; font-size: 14px; text-transform: uppercase; padding: 8px 0; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; display: inline-block; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
.nav summary:hover, .nav a:hover { color: var(--pink); }
.nav__burger { display: none; }
.nav ul {
  position: absolute; top: calc(100% + 15px); left: 50%; translate: -50% 0; width: max-content; max-width: calc(100vw - 32px);
  padding: 20px 30px; list-style: none; background: var(--bg); border: 1px solid var(--pink); border-radius: 10px;
}
.nav li a { display: block; padding: 8px 0; font-size: 14px; text-transform: uppercase; }
.social { display: flex; gap: 8px; list-style: none; padding: 0; }
.social img { width: 30px; height: 30px; }
.social a:hover { opacity: .7; }
.lang { display: flex; gap: 10px; font-size: 14px; }
.lang a { opacity: .6; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { color: var(--pink); }

/* Hero */
.hero .wrap { display: flex; flex-direction: column; min-height: calc(100svh - var(--header)); padding-block: 40px 80px; }
.hero h1, .hero p { margin-top: auto; }
.hero h1 { font: 400 clamp(54px, 8.4vw, 120px)/1 var(--head); color: var(--green); }
.hero h1 span:last-child { display: block; padding-right: 6%; text-align: right; font-weight: 500; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; color: var(--white); }
.hero p { max-width: 544px; text-transform: uppercase; }
.hero__circles { width: clamp(260px, 33vw, 465px); right: -120px; top: 50%; translate: 0 -50%; animation: spin 20s linear infinite; }
.hero__arrow { width: min(812px, 95vw); left: 0; bottom: 0; }
@keyframes spin { to { rotate: 360deg; } }

/* Service sections */
.service { padding: 90px 0 110px; }
.cols { text-transform: uppercase; display: grid; grid-template-columns: 1fr 1fr; gap: 50px 72px; margin-top: 50px; }
.cols p { max-width: 560px; }
.cols .lower { margin-top: 80px; }
.cols .btn { justify-self: start; align-self: center; }
.loops { width: 893px; left: -213px; top: 180px; }
.swirl { width: 922px; left: 180px; top: 80px; }
.arrows { width: 1160px; left: -80px; top: 100px; }

/* Running line */
.marquee { overflow: clip; padding: 30px 0; font: 400 clamp(42px, 6.3vw, 90px)/1.3 var(--head); white-space: nowrap; }
.marquee div { display: flex; width: max-content; animation: run 24s linear infinite; }
.marquee div + div { animation-direction: reverse; animation-duration: 30s; }
.marquee span { padding-right: .3em; }
.marquee b { font-weight: 400; color: var(--pink); }
@keyframes run { from { translate: -50% 0; } to { translate: 0 0; } }

/* Contact */
.contact { padding: 60px 0 110px; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; align-items: center; }
.contact h2 { font: 400 clamp(36px, 3.6vw, 52px)/1.23 var(--head); }
.contact__actions { display: grid; gap: 16px; max-width: 440px; }
.contact__actions .btn { font-size: 16px; }
.contact__phone { text-align: center; font-size: 18px; }

/* White promo */
.promo { background: var(--white); color: #000; padding: 46px 0 50px; text-align: center; }
.promo p:first-child { max-width: 946px; margin: 0 auto; font: 400 clamp(22px, 2.1vw, 30px)/1.2 var(--head); letter-spacing: .5px; color: var(--pink); text-transform: uppercase; }
.promo p + p { margin-top: 36px; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.15; letter-spacing: .5px; text-transform: uppercase; }
.promo .btn { margin: 40px 0 0 auto; display: flex; width: fit-content; color: #000; }
.promo .btn:hover { color: var(--pink); }

/* Closing line */
.closing { padding: 147px 0 280px; }
.closing p { font-size: clamp(24px, 2.6vw, 37px); line-height: 1; text-align: center; text-transform: uppercase; }
.closing .loops { width: 1278px; left: -31px; top: 88px; }

/* Inner pages */
.page { padding: 60px 0 150px; min-height: calc(100svh - var(--header) - 120px); }
.page h1 { font: 400 clamp(32px, 3.5vw, 50px)/1.2 var(--head); color: var(--green); margin-bottom: 60px; }
.page--consent h1 { color: var(--pink); }
.page--consent .text { letter-spacing: 1px; text-transform: uppercase; }
.page--consent ul { margin: 0; padding-left: 20px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid rgba(255, 255, 255, .4); }
.faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .4); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq .text { padding-bottom: 28px; font-size: 18px; font-weight: 300; }
.faq ul { padding-left: 22px; }
.notice { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 50px; min-height: calc(100svh - var(--header) - 120px); padding-block: 60px; }
.notice h1 { font: 400 clamp(30px, 4.2vw, 60px)/1.2 var(--head); text-transform: uppercase; }
.notice--404 { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.notice--404 > div { display: grid; gap: 50px; justify-items: start; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.notice--404 h1 { font: 400 clamp(30px, 3.2vw, 45px)/1.23 var(--text); max-width: 470px; }
.err { font: 400 clamp(60px, 8.4vw, 120px)/1.2 var(--head); color: var(--green); letter-spacing: 1px; }
.err span { display: inline-block; }
.err span:last-child { rotate: 30deg; translate: 0 .3em; }

/* Footer and cookie notice */
.footer { background: #111; padding: 30px 0 60px; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: none; }
.footer .policy { font: 400 15px/1 var(--head); }
.footer .top { justify-self: end; }
.footer a:hover { color: var(--pink); }
.cookies {
  position: fixed; right: 10px; bottom: 10px; z-index: 30; display: flex; align-items: center; gap: 20px; width: min(600px, calc(100% - 20px));
  padding: 15px 20px; background: #2a2a28; border-radius: 15px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.cookies[hidden] { display: none; }
.cookies button { flex: none; padding: 4px 20px; color: var(--white); background: none; border: 1px solid var(--pink); border-radius: 10px; font: inherit; cursor: pointer; }
.cookies button:hover { color: var(--pink); }

@media (min-width: 960px) { .at-right { grid-column: 2; } }
@media (max-width: 959px) {
  .cols, .contact .wrap { grid-template-columns: 1fr; }
  .cols .lower { margin-top: 0; }
  .notice--404 { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  :root { --header: 64px; }
  .header .wrap { gap: 12px; padding: 0 16px; }
  .logo { font-size: 30px; }
  .nav { position: static; }
  .nav summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav summary::after { display: none; }
  .nav__burger { display: block; width: 28px; height: 20px; border-block: 3px solid var(--pink); position: relative; }
  .nav__burger::after { content: ""; position: absolute; left: 0; right: 0; top: 5.5px; border-top: 3px solid var(--pink); }
  .nav ul { top: 100%; left: 16px; right: 16px; translate: none; width: auto; padding: 12px 20px; }
  .social { gap: 6px; }
  .social img { width: 26px; height: 26px; }
  .lang { gap: 6px; font-size: 13px; }
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-block: 30px 60px; }
  .hero h1 span:last-child { padding-right: 0; }
  .hero__circles { right: -90px; top: 30%; opacity: .7; }
  .service { padding: 60px 0 80px; }
  .cols { margin-top: 36px; gap: 28px; }
  .btn { min-width: 0; width: 100%; }
  .promo .btn { width: 100%; }
  .closing { padding: 90px 0 200px; }
  .closing .loops { width: 700px; top: 120px; }
  .footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer .top { justify-self: center; }
  .cookies { left: 10px; right: 10px; width: auto; flex-direction: column; align-items: stretch; text-align: center; gap: 12px; font-size: 12px; }
}
@media (max-width: 419px) {
  .header .wrap { gap: 8px; }
  .logo { font-size: 26px; }
  .social { gap: 4px; }
  .social img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__circles, .marquee div { animation: none; }
}
